/* ========== GLOBAL ========== */
body {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  padding: 0;
  color: #1c1c1c;
  background: #f9f9f9;
}

/* === Prevent Horizontal Scroll === */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}


/* ========== HEADER & NAVIGATION ========== */
header {
  background: #0f172a;
  color: white;
  padding: 0;
  height: 65.5px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-img,
.logo img,
.navbar-brand img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

nav a {
  color: white;
  margin: 0 1rem;
  font-weight: 500;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
  color: #38bdf8;
}

/* ========== HAMBURGER MENU ========== */
.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
  margin-left: auto;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay Navigation */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to right, #051421, #042636);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transition: 0.4s ease-in-out;
  z-index: 1000;
}

.mobile-nav-overlay.open {
  right: 0;
}

.mobile-nav-overlay a {
  color: #00f7ff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: 0.2s;
}

.mobile-nav-overlay a:hover {
  color: #f0f0f0;
}

body.menu-open {
  overflow: hidden;
}

.navbar {
  overflow-x: hidden;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  background: #0a0f2c;
  z-index: 9999;
  padding: 2rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.mobile-menu a {
  display: block;
  color: white;
  margin-bottom: 1rem;
  text-decoration: none;
}


/* ========== HERO / MAIN ========== */
.hero {
  padding: 2rem;
  background: #e0f2fe;
  text-align: center;
}

main.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-image {
  position: relative;
  background-image: image-set(
    url("../images/spider_web.4f94cbe36795.webp?v=2") type('image/webp'),
    url("../images/spider_web.04a479bbc79c.jpeg?v=2") type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.75rem;
  text-align: center;
  background: rgba(10, 12, 16, 0.64); /* darker for better contrast */
  border-radius: 14px;
  backdrop-filter: blur(2px);
}

/* Force white headline + readable glow */
.hero-title {
  color: #ffffff;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

/* (kept for compatibility if you ever use h2 here) */
.hero-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* default paragraph style inside hero */
.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #eaf2ff; /* lighter text on dark bg */
  text-shadow: 1.25px 1.25px 2.5px rgba(0, 0, 0, 0.7);
}

/* staged fade-in */
.hero-overlay h2,
.hero-overlay p,
.hero-overlay a {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}
.hero-overlay h2 { animation-delay: 0.1s; }
.hero-overlay p  { animation-delay: 0.3s; }
.hero-overlay a  { animation-delay: 0.5s; display: inline-block; }

/* improved contrast for subtitle line */
.hero-subtitle {
  color: #e6f0ff;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  margin: 0 0 1.25rem;
  opacity: 0.96;
}

/* CTAs row: spacing + perfect alignment */
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem; /* more breathing room before “Also offering …” */
}

/* ensure both buttons share the same baseline & height */
.hero-ctas .btn,
.hero-ctas .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;              /* kills baseline drift */
  padding: 0.6rem 1rem;        /* identical paddings */
  border-radius: 6px;
  font-weight: 600;
}

/* “Also offering …” line + links: explicitly light */
.hero-alt {
  margin-top: 1rem;            /* clearer separation from CTAs */
  font-size: 0.98rem;
  color: #e8f2ff;
  opacity: 0.95;
}
.hero-alt a {
  color: #dbeafe;
  text-decoration: underline;
}
.hero-alt a:hover { text-decoration: none; }

/* Mobile tweaks */
@media (max-width: 640px) {
  .hero-ctas .btn,
  .hero-ctas .btn-secondary {
    width: 100%;
  }
}


/* ========== BUTTONS ========== */
.btn {
  background: #0ea5e9;
  color: white;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  text-decoration: none;
  border-radius: 4px;
}

.btn-secondary {
  border: 1px solid #0ea5e9;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  color: #e6f0ff;              /* readable on dark overlay */
}

/* ========== FLOATING CTA ========== */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #0ea5e9;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  z-index: 1000;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.floating-cta:hover {
  background-color: #0284c7;
  text-decoration: none;
}


/* ========== SERVICE CARDS ========== */
.card-img-top {
  object-fit: cover;
  height: 200px;
  border-bottom: 1px solid #e0e0e0;
  aspect-ratio: 16 / 9;
}

.card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 174, 255, 0.25);
}

.card-title {
  color: #00bcd4;
  transition: color 0.3s ease-in-out;
}

.card:hover .card-title {
  color: #0ea5e9;
}

/* ========== SERVICES SECTION ENHANCEMENT ========== */
.services-section {
  background-color: #f8fafc;
  padding: 4rem 1rem;
}

.services-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #0f172a;
  text-align: center;
}

.services-section .card {
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.services-section .card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.services-section .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.services-section .card-text {
  font-size: 1rem;
  color: #334155;
}

@media (max-width: 768px) {
  .services-section {
    padding: 3rem 1rem;
  }
}

/* ========= SERVICE DETAIL ========= */

/* Reserve space and prevent CLS on the hero image */
.service-hero-img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-height: 300px;      
  object-fit: cover;      /* preserve crop */
  aspect-ratio: 16 / 9;   /* helps layout reserve space */
}

/* Optional: slightly stronger visual hierarchy for the list */
.list-group-item {
  font-size: 1.02rem;
  line-height: 1.5;
}

/* Highlight the primary Payment & API Integrations card */
.featured-service .card {
  border: 2px solid #0ea5e9;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.2);
}

/* ========== TECH SPLIT SECTION ========== */
.tech-split {
  height: 400px;
  display: flex;
  flex-wrap: wrap;
}

.tech-split .text-block {
  width: 50%;
  background: #0f172a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
}

.tech-split .text-block h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tech-split .text-block p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.95;
}

.tech-split .image-block {
  width: 50%;
  background-image: url("/static/images/tech_word_cloud.7a84e8a51ba3.jpeg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;
}

@media (max-width: 768px) {
  .tech-split {
    flex-direction: column;
    height: auto;
  }

  .tech-split .text-block,
  .tech-split .image-block {
    width: 100%;
    height: 300px;
  }

  .tech-split .text-block {
    height: auto;
    padding: 3rem 1.5rem;
  }
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  background-color: #f1f5f9;
}

.contact-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0f172a;
}

.contact-section a {
  color: #0ea5e9;
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
  color: #0284c7;
}

.contact-section .form-control {
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* ========== CONTACT SPLIT SECTION ========== */
.contact-split {
  display: flex;
  flex-wrap: wrap;
  min-height: 600px;
}

.contact-left,
.contact-right {
  width: 50%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-left h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.contact-left i {
  color: #0ea5e9;
  margin-right: 0.5rem;
}

.contact-right {
  background-image: url("/static/images/teal_yellow_nodes.387fb256b0af.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .contact-split {
    flex-direction: column;
  }

  .contact-left,
  .contact-right {
    width: 100%;
    padding: 2rem;
    min-height: 400px;
  }
}

/* ========== FOOTER ========== */
.footer-bg {
  background-image: url("/static/images/network_nodes.8b94eaef7694.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.footer-overlay {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(2px);
  padding: 2rem 1rem;
}

footer {
  background: #1e293b;
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: #38bdf8;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FEATURED WORK SECTION ========== */
.featured-work-section {
  background-color: #f9f9f9;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.project-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.project-body {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0ea5e9;
  margin-bottom: 0.75rem;
}

.project-description {
  font-size: 1.05rem;
  color: #334155;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background-color: #e2e8f0;
  color: #1e293b;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.85rem;
}

/* Coming Soon badge */
.badge-coming-soon {
  background: #facc15;
  color: #1c1c1c;
  padding: 0.4rem 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Scroll animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Long German words should wrap nicely on mobile */
h1, .page-title, .container h1 {
  overflow-wrap: anywhere;     /* modern wrap */
  word-break: break-word;      /* safe fallback */
  hyphens: auto;               /* enable soft hyphenation */
  line-height: 1.15;
}

/* Make huge headings scale down on small screens */
@media (max-width: 576px) {
  h1, .page-title, .container h1 {
    font-size: clamp(1.5rem, 6vw + 0.5rem, 2.25rem);
    letter-spacing: 0;  /* avoid extra width from tracking */
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Footer layout */
.footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.footer-copy{
  opacity:.9;
  font-size:0.95rem;
}

.footer-links{
  text-align:center;
  font-size:0.95rem;
}

.footer-links a{ color:inherit; text-decoration:none; }
.footer-links a:hover{ text-decoration:underline; }

/* exali badge styling */
.trust-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity:.9;
  transition:opacity .2s ease, transform .2s ease;
}
.trust-badge:hover{ opacity:1; transform:translateY(-1px); }
.trust-badge img{
  display:block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
  border-radius:4px;           /* macht es optisch ruhiger */
}

/* Mobile: Badge unter die Links und zentrieren */
@media (max-width: 576px){
  .footer-row{
    justify-content:center;
    text-align:center;
  }
  .trust-badge{
    order:3;
    margin-top:8px;
  }
}
/* ========== END OF FILE ========== */