/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 

/* Final mobile overrides (ensure precedence) */
@media (max-width: 768px) {
  .nav-menu.open { display: flex !important; }
  .hero .hero-image,
  .hero .hero-art,
  .hero .hero-replace-img { display: none !important; }
}

/* (moved) hero image hide rule will be placed later after .hero-image base styles */

:root {
    /* Dark Mode Color Palette */
    --primary-dark: #0a1628;
    --secondary-dark: #1a2332;
    --accent-blue: #3b82f6;       /* lighter blue */
    --accent-turquoise: #60a5fa;  /* light blue for accents/icons */
    --accent-cyan: #93c5fd;       /* very light blue for hovers */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-turquoise) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.site-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.55) saturate(1.1);
    background-color: var(--primary-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 22, 40, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.35);
    z-index: 3000; /* ensure overlay above hero content */
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-start; /* logo left, links + actions push right via auto margin */
    align-items: center;
    min-height: 80px;
    max-height: 80px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo .logo {
    height: 130px;
    width: auto;
    max-height: 130px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto; /* push nav links to the right side */
}

/* Right-aligned navbar actions (Login) */
.nav-actions {
    display: flex;
    align-items: center;
    margin-left: 2rem; /* push login button further to the right */
}

.btn-login {
    padding: 0.32rem 0.68rem;
    font-size: 0.86rem;
    border-radius: 7px;
    border: 1px solid rgba(148,163,184,0.28);
    background: rgba(59,130,246,0.16);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(2,6,23,0.26);
}
.btn-login:hover {
    background: rgba(59,130,246,0.25);
    border-color: var(--accent-turquoise);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav-actions { margin-left: 0; display: none; }
  .nav-menu { margin-left: 0; }
  .btn-login { padding: 0.30rem 0.62rem; font-size: 0.84rem; border-radius: 7px; }
}

/* Mobile hamburger */
.nav-toggle { display: none; background: transparent; border: none; color: var(--text-primary); font-size: 1.6rem; cursor: pointer; z-index: 5000; padding: 0.5rem; line-height: 1; }

@media (max-width: 768px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 8px); /* directly below navbar */
    right: 0;
    left: 0;
    background: rgba(10, 22, 40, 0.94);
    border: 1px solid rgba(148,163,184,0.22);
    border-radius: 12px;
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 6000;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 0.75rem 1rem; }
  /* Mobile-only Login item inside the menu */
  .nav-login-mobile { display: block; order: 99; font-weight: 700; color: #ffffff; }
}

/* Ensure hamburger is hidden on desktop explicitly */
@media (min-width: 769px) {
  .nav-toggle { display: none !important; }
  .nav-login-mobile { display: none !important; }
}

/* Strong mobile overrides to hide all hero decorative imagery */
@media (max-width: 768px) {
  .hero .hero-image,
  .hero .hero-art,
  .hero .hero-replace-img { display: none !important; }
  /* Fallback: hide by filename to avoid any missed selector */
  .hero img[src*="JPCodix2.png"],
  img[src*="JPCodix2.png"] { display: none !important; }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-turquoise);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-bg-video { display: none; }

.hero::before {
    content: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 0rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    display: block;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto; /* center the panel */
    padding: 2rem 24rem 2rem 1.5rem; /* space on the right for the image */
    background: rgba(10, 22, 40, 0.60);
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.22), 0 10px 30px rgba(2, 6, 23, 0.6);
    z-index: 1;
    grid-column: 1 / -1; /* span across both columns */
    min-height: 460px; /* reserve enough height to prevent layout shift */
    position: relative; /* anchor for absolute logo */
}

/* Linke Textspalte begrenzen, damit nichts unter das Logo läuft */
.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .hero-highlights,
.hero-content .hero-buttons {
    max-width: 680px; /* tighter column for bessere Lesbarkeit */
}

/* Desktop: etwas weiter nach rechts */
@media (min-width: 1200px) {
  .hero-content {
    margin-left: auto;
    margin-right: auto; /* keep perfectly centered on wide screens */
  }
}

.hero-title {
    margin-bottom: 1.25rem;
    line-height: 1.08;
    font-size: clamp(2rem, 3.6vw, 2.7rem);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.55;
}

/* Checkliste unter dem Untertitel */
.hero-highlights {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.hero-highlights li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tweak hero buttons only inside hero panel for better contrast */
.hero-content .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.25);
}
.hero-content .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--accent-turquoise);
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
        padding: 1.25rem;
        border-radius: 14px;
        background: rgba(10, 22, 40, 0.58);
        box-shadow: 0 14px 40px rgba(59, 130, 246, 0.18), 0 8px 20px rgba(2, 6, 23, 0.5);
        margin-left: 0; /* center on mobile */
    }
    .hero-content .hero-title,
    .hero-content .hero-subtitle,
    .hero-content .hero-highlights,
    .hero-content .hero-buttons {
        max-width: 100%;
    }
    .hero-highlights {
        grid-template-columns: 1fr;
        margin-bottom: 1.25rem;
    }
    .hero-graphic {
        width: 300px;
        height: 300px;
    }
    .hero-image {
        position: static;
        transform: none;
    }
    .hero-art { width: auto; height: auto; margin-top: 0.75rem; }
    .hero-art img { max-width: 220px; }
}

/* Tablet: etwas weniger Platz für Logo, damit es sauber passt */
@media (max-width: 1200px) and (min-width: 769px) {
  .hero-content {
    padding: 1.75rem 18rem 1.75rem 1.25rem; /* restore right padding on tablet */
  }
  .hero-content .hero-title,
  .hero-content .hero-subtitle,
  .hero-content .hero-highlights,
  .hero-content .hero-buttons {
    max-width: 620px;
  }
  .hero-graphic { width: 380px; height: 380px; }
  .hero-art { width: auto; height: auto; }
  .hero-art img { max-width: 300px; }
}

/* Sehr große Screens: mehr Platz rechts und größeres Logo */
@media (min-width: 1440px) {
  .hero-content { padding: 2rem 30rem 2rem 1.75rem; min-height: 500px; }
  .hero-graphic { width: 500px; height: 500px; }
  .hero-art { width: auto; height: auto; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
    position: absolute; /* sit inside hero panel area */
    right: 6rem; /* nudge a bit to the left */
    bottom: 3rem;
    top: auto;
    transform: none;
    z-index: 2; /* above the panel */
    pointer-events: none; /* decorative */
}

/* Strong mobile override: hide decorative hero image on phones */
@media (max-width: 768px) {
  .hero .hero-image { display: none !important; }
}

/* Decorative art that always renders on the right side */
.hero-art {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

/* Size the actual hero image (logo/illustration) */
.hero-art img {
    display: block;
    max-width: 400px; /* slightly larger on desktop */
    height: auto;
}

/* Animate lines and nodes inside the inline SVG */
.hero-art .flow {
  stroke-dasharray: 5 6;
  stroke-linecap: round;
  animation: hero-dash 9s linear infinite;
}
.hero-art svg g[fill="none"] .flow:nth-of-type(2) { animation-delay: -2s; }
.hero-art svg g[fill="none"] .flow:nth-of-type(3) { animation-delay: -4s; }

.hero-art .pulse circle {
  transform-origin: center;
  animation: hero-pulse 2.6s ease-in-out infinite;
}
.hero-art .pulse:nth-of-type(2) circle { animation-delay: .4s; }
.hero-art .pulse:nth-of-type(3) circle { animation-delay: .8s; }
.hero-art .pulse:nth-of-type(4) circle { animation-delay: 1.2s; }

@keyframes hero-dash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -220; }
}

@keyframes hero-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  .hero-art .flow, .hero-art .pulse circle { animation: none !important; }
}

.hero-graphic {
    position: relative;
    width: 440px;
    height: 440px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic i {
    position: absolute;
    font-size: 4rem;
    color: var(--accent-turquoise);
    animation: float 3s ease-in-out infinite;
}

/* New hero image replacing icons */
.hero-replace-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 32px rgba(2,10,36,0.55)) drop-shadow(0 8px 18px rgba(59,130,246,0.18));
    animation: fadeInRight 1s ease-out;
}

.hero-graphic i:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.hero-graphic i:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.hero-graphic i:nth-child(3) {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-turquoise);
    color: var(--accent-turquoise);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Override generic .btn sizing specifically for the navbar login button */
.btn.btn-login {
    padding: 0.34rem 0.72rem;
    font-size: 0.88rem;
    border-radius: 7px;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Subtitle under section titles */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin: 0.75rem auto 2rem auto;
    max-width: 920px;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Prominent box around the special CTA subtitle in Services */
.section-subtitle.cta-highlight {
    display: block; /* acts like a box we can center */
    width: fit-content; /* shrink to content */
    margin: 0.75rem auto 2rem auto; /* center horizontally */
    padding: 0.9rem 1.1rem;
    color: #eaf2ff;
    background: linear-gradient(180deg, rgba(15,32,62,0.65), rgba(10,22,40,0.65));
    border: 2px solid rgba(96,165,250,0.85);
    border-radius: 14px;
    box-shadow: 0 16px 44px rgba(59,130,246,0.25);
}

.section-subtitle.cta-highlight:hover {
    border-color: var(--accent-turquoise);
    box-shadow: 0 20px 56px rgba(59,130,246,0.35);
}

/* Mail address chip for visibility in subtitles */
.mailto-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem; /* slimmer */
    border-radius: 10px;
    border: 1px solid rgba(96,165,250,0.65); /* thinner */
    background: rgba(59,130,246,0.18);
    color: #ffffff;
    font-weight: 600; /* slimmer text */
    letter-spacing: 0.005em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(59,130,246,0.22);
    transition: all .2s ease;
}

.mailto-chip:hover {
    border-color: var(--accent-turquoise);
    background: rgba(96,165,250,0.28);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(59,130,246,0.35);
}

/* Small envelope icon using Font Awesome (already loaded) */
.mailto-chip::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0e0"; /* envelope */
    font-size: 0.85em;
    color: inherit;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .section-subtitle {
        margin: 0.5rem 1rem 1.5rem 1rem;
        font-size: 0.98rem;
    }
    .mailto-chip { display: inline-flex; font-weight: 800; }
}

/* Services Section */
.services {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(10, 22, 40, 0.55);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.12);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--accent-turquoise);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(59, 130, 246, 0.12) 100%);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-primary);
}

.service-card:hover h3 {
    color: var(--accent-turquoise);
    transform: translateY(-2px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Why Choose Us Section */
.why-choose-us {
    background: transparent;
}

/* Default spacing for titles inside the Why section */
.why-choose-us .section-title {
  margin-top: 0;
  margin-bottom: 2rem;
}

/* Large offset only for the specific Prozess title */
.why-choose-us .process-title {
  margin-top: 15rem;
}

@media (max-width: 768px) {
  .why-choose-us .process-title { margin-top: 3rem; }
}

/* Create breathing room under the advantages grid before the process title */
.why-choose-us .advantages-grid {
  margin-bottom: 3rem;
}

.process-flow {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 2rem auto 0.5rem auto;
  align-items: center;
  position: relative;
  width: min(820px, 94%);
}

.process-step {
  background: linear-gradient(180deg, rgba(10,22,40,0.42), rgba(10,22,40,0.55));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 100%;
}
.process-step h3 { color: var(--text-primary); font-size: 1.06rem; margin: 0 0 0.2rem 0; }
.process-step p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }
.process-step:hover { transform: translateY(-2px); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; border-color: var(--accent-turquoise); box-shadow: 0 16px 36px rgba(59,130,246,0.22); }

.step-icon {
  width: 44px; height: 44px; margin: 0 auto 0.35rem; border-radius: 50%;
  background: var(--gradient-primary); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(59,130,246,0.22);
  outline: 2px solid rgba(96,165,250,0.35);
  outline-offset: 0;
}
.step-icon i { color: #fff; font-size: 1.05rem; }

.process-arrow { position: relative; display: flex; align-items: center; justify-content: center; color: var(--accent-turquoise); padding: 0.1rem 0 0.3rem 0; width: 100%; }
.process-arrow::before { content: ""; width: 1px; height: 18px; background: linear-gradient(180deg, rgba(96,165,250,0.0), rgba(96,165,250,0.45), rgba(96,165,250,0.0)); display: block; position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.process-arrow i { font-size: 0.95rem; opacity: 0.9; filter: drop-shadow(0 2px 6px rgba(59,130,246,0.28)); }

@media (max-width: 768px) {
  .process-flow { width: 100%; gap: 0.5rem; }
  .process-step { padding: 0.85rem 0.9rem; }
  .step-icon { width: 40px; height: 40px; }
  .process-step h3 { font-size: 1.02rem; }
  .process-step p { font-size: 0.94rem; }
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 22, 40, 0.55);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.advantage-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--accent-turquoise);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, var(--secondary-dark) 0%, rgba(59, 130, 246, 0.12) 100%);
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-primary);
}

.advantage-item:hover h3 {
    color: var(--accent-turquoise);
    transform: translateY(-2px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-icon i {
    font-size: 1.5rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-item h3 {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-item h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.advantage-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about {
    background: transparent;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem;
    background: rgba(10, 22, 40, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
}

.about-text h2 {
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-turquoise);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: transparent;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.contact .contact-info {
    padding: 2rem;
    background: rgba(10, 22, 40, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(148,163,184,0.15);
}

.contact .contact-item i {
    color: var(--accent-turquoise);
    width: 20px;
}

/* Footer contact list should not use chip styles */
.footer .contact-item {
    background: transparent;
    border: none;
    padding: 0;
}
.footer .contact-item i {
    width: 16px;
}

/* subtle hover elevation for both cards */
.contact .contact-info:hover,
.contact-cta:hover {
    transform: translateY(-4px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border-color: var(--accent-turquoise);
    box-shadow: 0 22px 54px rgba(59, 130, 246, 0.2);
}

/* Contact CTA */
.contact-cta {
    background: rgba(10, 22, 40, 0.55);
    padding: 2.25rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.contact-cta h3 {
    color: var(--accent-turquoise);
    margin-bottom: 0.25rem;
    font-size: 1.4rem;
}

.contact-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-turquoise);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: rgba(10, 22, 40, 0.55);
    border-top: 1px solid rgba(148, 163, 184, 0.20);
    padding: 3rem 0 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 -10px 40px rgba(59, 130, 246, 0.08);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-logo span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
  .social-links { justify-content: center; }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-turquoise);
    color: white;
    border-color: var(--accent-turquoise);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-turquoise);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer .contact-item i {
    color: var(--text-secondary);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.20);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-turquoise);
}

.scroll-to-top {
    position: absolute;
    right: -180px;
    top: -20px;
    width: 50px;
    height: 50px;
    background: var(--accent-turquoise);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.scroll-to-top:hover {
    background: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(920px, calc(100% - 2rem));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem;
    background: rgba(10, 22, 40, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.55);
    z-index: 100000; /* ensure above everything */
    pointer-events: auto;
}

.cookie-banner * { pointer-events: auto; }

/* Respect the [hidden] attribute so JS can hide the banner */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner .cookie-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-banner .cookie-text a {
    color: var(--accent-turquoise);
    text-decoration: underline;
}

.cookie-banner .cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 0.75rem;
    width: calc(100% - 1.5rem);
    bottom: 12px;
  }
  .cookie-banner .cookie-actions .btn { width: 100%; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero { padding-top: 96px; }
    /* Make anchor jumps land below the fixed navbar */
    section { scroll-margin-top: 96px; }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }
    .hero-buttons .btn { width: 100%; }
    .nav-logo .logo { height: 90px; max-height: 90px; }
    .nav-container { min-height: 70px; max-height: 70px; padding: 0.75rem 1rem; }
    section { padding: 3.5rem 0; }
    .contact-cta .btn-large { width: 100%; }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        gap: 2rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .scroll-to-top {
        position: static;
        margin: 0 auto;
    }
    
    .hero-art img {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    .nav-logo .logo { height: 72px; max-height: 72px; }
    section { padding: 3rem 0; }
    .hero-art img { max-width: 200px; }
    
    .service-card,
    .contact-cta {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    background-color: var(--primary-dark);
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

/* Hover effects for interactive elements */
.service-card,
.advantage-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.advantage-item:hover {
    transform: translateY(-2px);
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-turquoise);
    outline-offset: 2px;
}

.btn:focus,
.nav-link:focus {
    outline: none;
}

/* Legal Pages Styles */
.legal-page {
    padding: 8rem 0 5rem;
    background: transparent; /* allow background video to show */
    min-height: 100vh;
}

.legal-content {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(10, 22, 40, 0.55);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.12);
}

.legal-content h1 {
    color: var(--text-primary);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-content h2 {
    color: var(--accent-turquoise);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid rgba(96,165,250,0.35);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: var(--accent-turquoise);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-content h4 {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent-turquoise);
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: var(--accent-turquoise);
    text-decoration-color: var(--text-primary);
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content em {
    color: var(--text-muted);
    font-style: italic;
}

/* FAQ Section */
.faq {
    background: transparent;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(10, 22, 40, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.12);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span {
    pointer-events: none;
}

.faq-item summary::after {
    content: '\002B';
    color: var(--accent-cyan);
    font-weight: 700;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .faq-list {
        margin: 0 1rem;
    }
}

/* Footer contact center alignment on mobile */
@media (max-width: 768px) {
  .footer .contact-info { align-items: center; }
  .footer .contact-item { justify-content: center; }
}

/* AGB-spezifische Styles wie auf der echten Website */
.info-section {
    margin-bottom: 2rem;
}

.subsection {
    margin-bottom: 1.5rem;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.legal-list li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.legal-list li::before {
    content: "•";
    color: var(--accent-turquoise);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.agb-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.agb-footer p {
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
}
