
:root{
  --navy: #0A1A47;
  --navy-deep: #071335;
  --navy-tint: #E9ECF5;
  --gold: #F2A81D;
  --gold-hover: #FFBB3D;
  --bg: #FFFFFF;
  --surface: #F5F6F8;
  --text: #10192E;
  --text-muted: #5B6472;
  --line: #E2E5EA;
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  --font-heading: var(--font);
}

header{position:sticky; top:0; z-index:60; background:var(--navy);}
.nav{max-width:1180px; margin:0 auto; padding:16px 24px;}
.nav-top{display:flex; align-items:center; justify-content:space-between; height:62px;}
.logo{
  display:inline-flex; align-items:center;
  background:#fff; border-radius:6px; padding:6px 14px;
  text-decoration:none;
}
.logo img{height:50px; width:auto; display:block;}
.nav-links{display:flex; align-items:center; justify-content:center; gap:32px; padding-top:14px;}
.nav-links a{font-family:var(--font); font-size:15px; font-weight:600; color:#fff; opacity:0.88; transition:opacity 0.15s ease; text-decoration:none;}
.nav-links a.active{opacity:1; border-bottom:2px solid var(--gold); padding-bottom:4px;}
.nav-links a:hover, .nav-links a:focus-visible{opacity:1;}

/* Untermenüs (21.08.2026, z.B. "Services"): .nav-item-wrap ersetzt an dieser
   einen Stelle das sonst direkte <a>-Kind von .nav-links, behält aber
   dieselbe Ausrichtung/den Abstand bei (Flexbox-"gap" wirkt unabhängig vom
   Tag). Der Dropdown selbst öffnet per :hover (Desktop) UND per .open-Klasse
   (Klick auf den Pfeil -- für Touch/Tastatur, siehe header.js), damit beide
   Bedienwege funktionieren, ohne dass eines das andere stört. */
.nav-item-wrap{position:relative;}
.nav-item-row{display:flex; align-items:center; gap:2px;}
.nav-item-row a{padding-bottom:0;}
.nav-caret-btn{
  background:none; border:none; color:#fff; opacity:0.75; cursor:pointer;
  font-size:11px; line-height:1; padding:6px 2px; display:inline-flex; align-items:center;
  transition:opacity 0.15s ease, transform 0.15s ease;
}
.nav-caret-btn:hover, .nav-caret-btn:focus-visible{opacity:1;}
.nav-item-wrap:hover .nav-caret-btn, .nav-item-wrap.open .nav-caret-btn{transform:rotate(180deg);}

.nav-dropdown{
  position:absolute; top:100%; left:50%; transform:translateX(-50%);
  padding-top:14px; /* Teil der Hover-Fläche -- kein margin, sonst reisst :hover beim Runterfahren mit der Maus ab */
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity 0.15s ease, visibility 0.15s ease;
  z-index:70;
}
.nav-item-wrap:hover .nav-dropdown,
.nav-item-wrap:focus-within .nav-dropdown,
.nav-item-wrap.open .nav-dropdown{
  opacity:1; visibility:visible; pointer-events:auto;
}
.nav-dropdown-inner{
  background:var(--navy-deep); border-radius:10px; padding:10px 0; min-width:300px;
  box-shadow:0 16px 40px rgba(0,0,0,0.4);
}
.nav-dropdown-inner a{display:block; padding:11px 22px; font-size:14px; font-weight:600; color:#fff; opacity:0.82; white-space:normal; text-decoration:none;}
.nav-dropdown-inner a.active{opacity:1;}
.nav-dropdown-inner a:hover, .nav-dropdown-inner a:focus-visible{opacity:1; background:rgba(255,255,255,0.07);}

.nav-right{display:flex; align-items:center; gap:22px;}
.nav-right a{font-family:var(--font); font-size:15px; font-weight:600; color:#fff; display:flex; align-items:center; gap:8px; text-decoration:none;}
.menu-toggle{display:flex; background:none; border:none; color:#fff; font-size:24px; cursor:pointer;}
@media (min-width:900px){ .menu-toggle{display:none;} }
@media (max-width:899px){
  .nav-links{
    position:absolute; top:94px; left:0; right:0; z-index:59;
    flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:0; padding-top:0;
    background:var(--navy-deep);
    max-height:0; overflow:hidden; transition:max-height 0.25s ease;
  }
  .nav-links.open{max-height:1400px;}
  .nav-links a{padding:16px 24px; width:100%; border-bottom:1px solid rgba(255,255,255,0.08); opacity:1;}
  .nav-links a.active{border-bottom:1px solid var(--gold);}
  .nav-right{gap:16px;}
  .nav-right span{display:none;}

  /* Untermenüs auf Mobil: kein schwebendes Dropdown (macht auf einer
     ohnehin schon vertikalen Liste keinen Sinn) -- stattdessen ein
     Akkordeon, das sich unter dem Elternpunkt ausklappt. Öffnen/Schließen
     ausschließlich per Klick auf den Pfeil (kein :hover auf Touch-Geräten). */
  .nav-item-wrap{width:100%;}
  .nav-item-row{width:100%; border-bottom:1px solid rgba(255,255,255,0.08);}
  .nav-item-row a{flex:1; padding:16px 24px; border-bottom:none;}
  .nav-caret-btn{padding:16px 20px; font-size:15px;}
  .nav-dropdown{
    position:static; transform:none; padding-top:0;
    opacity:1; visibility:visible; pointer-events:auto; /* Sichtbarkeit steuert hier max-height, nicht opacity */
    max-height:0; overflow:hidden;
    transition:max-height 0.2s ease;
  }
  .nav-item-wrap.open .nav-dropdown{max-height:600px;}
  .nav-dropdown-inner{background:rgba(0,0,0,0.18); border-radius:0; padding:0; box-shadow:none;}
  .nav-dropdown-inner a{padding:14px 24px 14px 40px; border-bottom:1px solid rgba(255,255,255,0.06); opacity:0.85; font-size:13.5px;}
}
@media (max-width:420px){
  .nav{padding:16px 16px;}
  .nav-right a.btn{padding:10px 16px; font-size:13.5px;}
}

footer{background:var(--navy-deep); padding:52px 0 26px;}
.footer-top{display:flex; flex-wrap:wrap; justify-content:space-between; gap:32px; margin-bottom:36px;}
.footer-about{max-width:380px;}
.footer-about .logo{margin-bottom:14px;}
.footer-about p{color:rgba(255,255,255,0.6); font-size:14px;}
.footer-cols{display:flex; gap:56px; flex-wrap:wrap;}
.footer-col h4{font-size:12px; text-transform:uppercase; letter-spacing:0.06em; color:rgba(255,255,255,0.5); margin-bottom:14px; font-weight:700;}
.footer-col a{display:block; font-size:14px; color:#fff; opacity:0.85; margin-bottom:10px; text-decoration:none;}
.footer-col a:hover{color:var(--gold); opacity:1;}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.12); padding-top:20px; display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; font-size:12.5px; color:rgba(255,255,255,0.55);}
.footer-bottom a{color:rgba(255,255,255,0.55); text-decoration:none;}
.footer-bottom a:hover{color:#fff;}

.back-to-top{
  position:fixed; right:24px; bottom:28px; z-index:70;
  width:48px; height:48px; border-radius:50%; border:none;
  background:var(--navy); color:#fff; font-size:20px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; box-shadow:0 10px 24px rgba(10,26,71,0.28);
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.back-to-top.show{opacity:1; visibility:visible; transform:translateY(0);}
.back-to-top:hover, .back-to-top:focus-visible{background:var(--gold); color:var(--navy-deep);}
@media (max-width:560px){ .back-to-top{right:16px; bottom:16px; width:44px; height:44px;} }

.cc-banner{
  position:fixed; left:0; right:0; bottom:0; z-index:200;
  background:#fff; border-top:1px solid var(--line);
  box-shadow:0 -10px 30px rgba(7,19,53,0.15); padding:20px 24px;
  font-family:var(--font);
}
.cc-banner-inner{max-width:1180px; margin:0 auto; display:flex; flex-wrap:wrap; gap:18px; align-items:center; justify-content:space-between;}
.cc-banner-text{flex:1; min-width:240px;}
.cc-banner-text h2{font-size:16px; margin:0 0 4px; color:var(--navy); font-family:var(--font); font-weight:800;}
.cc-banner-text p{font-size:13.5px; color:var(--text-muted); margin:0; line-height:1.5;}
.cc-banner-actions{display:flex; gap:10px; flex-wrap:wrap; flex-shrink:0; align-items:center;}

.cc-btn-primary, .cc-btn-secondary{
  font-family:var(--font); font-weight:700; font-size:14px; padding:12px 20px;
  border-radius:var(--radius); border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition:background 0.15s ease;
}
.cc-btn-primary{background:var(--gold); color:var(--navy-deep);}
.cc-btn-primary:hover{background:var(--gold-hover);}
.cc-btn-secondary{background:#fff; border-color:var(--navy); color:var(--navy);}
.cc-btn-secondary:hover{background:var(--navy-tint);}
.cc-btn-settings{
  background:none; border:none; color:var(--navy); text-decoration:underline;
  font-family:var(--font); font-size:14px; padding:12px 4px; cursor:pointer;
}

.cc-modal-overlay{
  position:fixed; inset:0; background:rgba(7,19,53,0.6); z-index:201;
  display:none; align-items:center; justify-content:center; padding:20px;
}
.cc-modal-overlay.show{display:flex;}
.cc-modal-box{
  background:#fff; border-radius:var(--radius); max-width:480px; width:100%;
  max-height:85vh; overflow-y:auto; padding:28px; box-shadow:0 30px 60px rgba(7,19,53,0.35);
  font-family:var(--font);
}
.cc-modal-box h2{font-size:20px; margin-bottom:8px; color:var(--navy); font-weight:800;}
.cc-modal-sub{font-size:13.5px; color:var(--text-muted); margin-bottom:20px; line-height:1.5;}
.cc-category{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:14px 0; border-bottom:1px solid var(--line);}
.cc-category:last-of-type{border-bottom:none;}
.cc-category-info strong{display:block; font-size:14px; color:var(--navy); margin-bottom:2px;}
.cc-category-info span{font-size:12.5px; color:var(--text-muted);}
.cc-toggle{position:relative; display:inline-block; width:40px; height:22px; flex-shrink:0;}
.cc-toggle input{opacity:0; width:0; height:0;}
.cc-slider{position:absolute; inset:0; background:var(--line); border-radius:22px; cursor:pointer; transition:background .15s ease;}
.cc-slider::before{content:''; position:absolute; width:16px; height:16px; left:3px; top:3px; background:#fff; border-radius:50%; transition:transform .15s ease;}
.cc-toggle input:checked + .cc-slider{background:var(--gold);}
.cc-toggle input:checked + .cc-slider::before{transform:translateX(18px);}
.cc-toggle input:disabled + .cc-slider{background:var(--navy-tint); cursor:not-allowed;}
.cc-modal-actions{display:flex; gap:10px; margin-top:20px; flex-wrap:wrap;}

@media (max-width:600px){
  .cc-banner-inner{flex-direction:column; align-items:stretch;}
  .cc-banner-actions{width:100%;}
  .cc-banner-actions .cc-btn-primary, .cc-banner-actions .cc-btn-secondary{flex:1;}
}
