:root{
  --brand-primary: #23619e;
  --brand-accent:  #d27029;
  --brand-dark:    #0f2233;
  --brand-light:   #f7fafc;
  --radius-xl: 16px;
  --shadow-sm: 0 6px 16px rgba(0,0,0,.06);
  --shadow-md: 0 12px 28px rgba(0,0,0,.10);
  --container: 1200px;
}
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{ margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji"; color: #111; background:#fff; }
.container{ width: min(var(--container), 100% - 2rem); margin: 0 auto; }

/* NAV */
.nav{ position: fixed; inset: 0 auto auto 0; width: 100%; z-index: 50; transition: all .3s ease; }
.nav-inner{ display:flex; align-items:center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; margin: 0 auto; width: min(var(--container), 100% - 2rem); border-bottom-left-radius: var(--radius-xl); border-bottom-right-radius: var(--radius-xl); }
.nav.transparent{ background: transparent; color: #fff; }
.nav.solid{ backdrop-filter: saturate(140%) blur(6px); background: rgba(255,255,255,.82); color: var(--brand-dark); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.nav.hidden{ transform: translateY(-16px); opacity: 0; pointer-events: none; }
.brand{ display:flex; align-items:center; gap:.75rem; text-decoration:none; color: inherit; }
.brand-badge{ height: 38px; width: 38px; border-radius: 12px; background: var(--brand-accent); display:grid; place-items:center; box-shadow: inset 0 2px 6px rgba(255,255,255,.25); }
.brand-badge span{ color:#fff; font-weight:900; }
.brand-title{ line-height:1.05; }
.brand-title .name{ font-weight:800; font-size: 1rem; }
.brand-title .sub{ font-size: .72rem; opacity:.85; }
.nav ul{ list-style:none; display:flex; align-items:center; gap: 1rem; margin:0; padding:0; }
.nav a{ text-decoration:none; color: inherit; font-weight:600; font-size: .95rem; opacity: .95; }
.nav a:hover{ opacity:.75; }

/* HERO */
.hero{ position: relative; min-height: 78vh; display:grid; place-items:center; background: var(--brand-dark); color:#fff; }
.hero video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.7; }
.hero::after{ content:""; position:absolute; inset:0; background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,.2), var(--brand-dark)); }
.hero .content{ position: relative; z-index: 1; text-align:center; padding: 3rem 1rem; }
.chip{ display:inline-block; padding:.4rem .75rem; border-radius: 999px; background: color-mix(in oklab, var(--brand-accent) 90%, white 0%); color:#fff; font-weight:700; font-size:.72rem; letter-spacing:.02em; }
.hero h1{ margin:.8rem auto 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height:1.05; font-weight: 900; max-width: 20ch; }
.lead{ max-width: 70ch; margin: 1rem auto 0; opacity: .92; font-size: clamp(1rem, 1.7vw, 1.15rem); }
.hero .cta{ display:flex; gap:.75rem; justify-content:center; margin-top: 1.2rem; flex-wrap: wrap; }
.btn{ appearance:none; border:none; border-radius: 14px; padding:.8rem 1.1rem; font-weight:700; cursor:pointer; text-decoration:none; display:inline-block; }
.btn.primary{ background:#fff; color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.btn.ghost{ border:1px solid rgba(255,255,255,.7); color:#fff; background: transparent; }

/* Sections */
section{ padding: 4rem 0; }
.section-anchor{ scroll-margin-top: 90px; }
.badge{ display:inline-flex; align-items:center; gap:.4rem; padding:.35rem .7rem; border-radius:999px; font-weight:700; font-size:.72rem; color: var(--brand-dark); background: var(--brand-light); border:1px solid rgba(0,0,0,.06); }
h2{ font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin:.6rem 0 0; font-weight: 900; color: var(--brand-dark); }
p.muted{ color: #222; opacity:.75; max-width: 70ch; }

.bg-accent {
  background: var(--brand-accent);
  color: #fff;
}

.bg-accent h2,
.bg-accent p,
.bg-accent .muted {
  color: #fff;
  opacity: 0.95;
}

.bg-accent .card {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  border: none;
}

.bg-accent .card h3 {
  color: var(--brand-dark);
}

.bg-accent .badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
}

.btn.mail {
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #23619e;
  font-weight: 700;
}
.btn.mail:hover {
  background: color-mix(in srgb, #23619e 10%, white);
}

.bg-accent .card,
.bg-accent .card h3,
.bg-accent .card p,
.bg-accent .card small,
.bg-accent .card .muted {
  color: #111 !important;
  opacity: 0.9 !important;
}

/* Cards Grid */
.grid { display: grid; gap: 1rem; }
@media (min-width: 768px) {
  .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.card .media {
  aspect-ratio: 16/10;           
  background: var(--brand-light);
  display: grid;
  place-items: center;
}
.card .media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}


.card img.media {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;           
  height: auto;                   
  object-fit: cover;             
  object-position: center center; 
}

.card .body { padding: 1rem; }
.card h3 { margin: 0 0 .2rem; font-size: 1.05rem; color: var(--brand-dark); }
.card p  { margin: .25rem 0; color:#222; opacity:.8; font-size:.95rem; }
.card small { display:block; margin-top:.5rem; color:#000; opacity:.55; font-style: italic; }

  /* Marke/Logo bleibt zentriert */
  .brand {
    justify-content: center;
  }

  /* Footer mittig */
  footer .foot {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: .5rem;
  }

  footer {
    text-align: center;
  }

/* Intro */
.split{ display:grid; gap: 2rem; align-items: center; }
@media (min-width: 900px){ .split{ grid-template-columns: 1.05fr .95fr; } }
.figure{ border:1px solid rgba(0,0,0,.06); overflow:hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }

/* Kontakt */
.contact{ background: var(--brand-light); }
.form{ background:#fff; border:1px solid rgba(0,0,0,.06); border-radius: var(--radius-xl); padding: 1.25rem; box-shadow: var(--shadow-sm); display:grid; gap:.9rem; }
.row{ display:grid; gap:.9rem; }
@media (min-width: 640px){ .row.two{ grid-template-columns: 1fr 1fr; } }
label{ display:grid; gap:.3rem; font-size:.95rem; }
input, textarea{ border:1px solid rgba(0,0,0,.12); border-radius: 12px; padding:.7rem .85rem; font: inherit; }
textarea{ min-height: 120px; resize: vertical; }
.note{ font-size:.78rem; opacity:.6; }

/* Footer */
footer{ border-top:1px solid rgba(0,0,0,.06); padding: 2rem 0; background:#fff; }
.foot{ display:flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
@media (min-width: 700px){ .foot{ flex-direction: row; align-items: center; justify-content: space-between; } }
.foot a{ color: inherit; opacity:.9; text-decoration:none; }
.foot a:hover{ text-decoration: underline; }

/* Helper */
.bg-light{ background: var(--brand-light); }

/* Danke */
.thank-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.thank-box {
  text-align: center;
  background: var(--brand-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.thank-box img {
  width: 130px;
  height: auto;
}
.thank-box .btn {
  background: var(--brand-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* Kontaktbereich: mobil 1-spaltig, ab 900px 2-spaltig */
#kontakt .split {
  display: grid;
  grid-template-columns: 1fr !important;   /* überschreibt evtl. inline-style */
  gap: 2rem;
}

/* Abstand zwischen Textblock und Formular auf Mobile */
#kontakt .form { margin-top: 1.25rem; }

@media (min-width: 900px){
  #kontakt .split {
    grid-template-columns: 1.05fr .95fr !important;  /* zwei Spalten ab 900px */
    align-items: start;
  }
  #kontakt .form { margin-top: 0; }  /* oben kein Extraabstand mehr */
}

/* Bild-/Logo-Karte im Split responsiv begrenzen */
.split .figure {
  width: min(520px, 100%);
  margin: 1rem auto 0;          /* mittig */
}

.split .figure img {
  width: 100%;
  height: auto;                  /* kein Hochskalieren */
  display: block;
}

/* Auf sehr kleinen Screens noch kompakter */
@media (max-width: 480px){
  .split .figure { width: min(360px, 100% - 2rem); }
}

/* --- MOBILE NAV: zentriert, nebeneinander, ohne zusätzlichen Balken --- */
@media (max-width: 900px){
  /* Basisleiste */
  .nav-inner{
    display: flex;
    justify-content: center !important;   /* horizontal zentriert */
    align-items: center !important;       /* vertikal zentriert */
    text-align: center;
    padding: .9rem 0 1rem !important;     /* etwas höher, aber dezent */
    background: transparent !important;   /* kein weißer Hintergrund */
    box-shadow: none !important;          /* kein Schatten */
    border-radius: 0 !important;          /* keine Rundung */
  }

  /* Linkliste mittig nebeneinander */
  .nav ul{
    display: inline-flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.2rem;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }

  /* Logo ausblenden, damit nichts „zieht“ */
  .brand{ display: none !important; }

  /* Farben je nach Zustand */
  .nav.transparent a{ color:#fff !important; text-shadow:0 1px 2px rgba(0,0,0,.25); }
  .nav.solid a{ color: var(--brand-dark) !important; }
}

/* === MOBILE NAV: garantiert mittig, ohne Balken, nebeneinander === */
@media (max-width: 900px){

  /* Der Container ist kein Flex mehr → nichts wird nach rechts gedrückt */
  .nav-inner{
    display: block !important;
    text-align: center !important;
    padding: .9rem 0 1rem !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
  }

  /* Logo ausblenden, damit wirklich nur die Links übrig bleiben */
  .brand{ display: none !important; }

  /* Die Linkliste als "Block mit Eigenbreite" und auto-zentriert */
  .nav ul{
    display: inline-flex !important;      /* nebeneinander */
    flex-direction: row !important;
    gap: 1.2rem;
    list-style: none;
    padding: 0 !important;
    margin: 0 auto !important;            /* horizontal zentriert */
    width: max-content !important;        /* nur so breit wie die Links */
  }

  /* falls irgendwo margin-left:auto o.ä. gesetzt wurde – neutralisieren */
  .nav ul,
  .nav ul li{
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Farben je nach Zustand (transparent über Video vs. solid) */
  .nav.transparent a{ color:#fff !important; text-shadow:0 1px 2px rgba(0,0,0,.25); }
  .nav.solid a{ color: var(--brand-dark) !important; }
}

/* Einfache Captcha-Zeile */
.captcha-row {
  margin-top: 1rem;
  font-size: .9rem;
  color: #444;
}

.captcha-row label {
  display: block;
  margin-bottom: .35rem;
}

.captcha-row input {
  max-width: 140px;
  padding: .5rem .75rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.18);
  font-size: .95rem;
}

/* ===== MODAL / OVERLAY ===== */
.modal-overlay{
  position: fixed; inset: 0;
  background: rgba(15,34,51,.55);
  backdrop-filter: blur(2px);
  z-index: 80;
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-overlay[hidden]{ display:none; }
.modal-overlay.show{ opacity:1; }

.modal{
  position: fixed; inset: 0;
  display: grid; place-items: center;
  padding: 1rem;
  z-index: 90;
}
.modal[hidden]{ display:none; }

.modal > .modal-head,
.modal > .modal-body{ width: min(100%, 980px); }

.modal > .modal-head{
  display:none; /* Header sitzt optisch im Card-Container */
}

.modal .modal-close{
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 22px; line-height: 1;
  background: #fff; color: #111; box-shadow: var(--shadow-sm);
}

.modal .modal-body{
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.1rem;
}
.modal .modal-body h3{
  margin: .2rem 0 0.6rem;
  color: var(--brand-dark);
}
.modal .modal-text{ color:#222; opacity:.9; }

.modal .modal-gallery{
  margin-top: .9rem;
  display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.modal .modal-gallery img{
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 12px; display: block;
}

/* Seite fixieren wenn Modal offen */
body.modal-open{ overflow: hidden; }

/* Karten als klickbare Fläche */
.open-modal{ cursor: pointer; }
.open-modal:focus{ outline: 3px solid color-mix(in oklab, var(--brand-primary) 70%, white); outline-offset: 3px; }

/* ===== Video Hinweis-Button ===== */
.video-badge{
  position: absolute;
  top: 16px; right: 16px;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: none; cursor: pointer;
  background: rgba(255,255,255,.9);
  color: var(--brand-dark);
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  z-index: 5;   /* über dem Video */
}

/* kleine Sprechblase rechts vom Button */
.badge-popover{
  position: absolute;
  top: 16px; right: 68px;
  background: rgba(255,255,255,.96);
  color: var(--brand-dark);
  padding: .55rem .8rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  font-size: .9rem;
  max-width: 80vw;
}
.badge-popover[hidden]{ display:none; }

/* sicherstellen, dass .hero parent relativ ist */
.hero{ position: relative; }




/* ============================================
   ZENTRIERTER INFO-BUTTON IM HERO-BEREICH
============================================ */
.status-wrapper {
  position: relative;
  width: 100%;
  text-align: center;
  margin-bottom: 1.4rem;
}

.video-badge {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.badge-popover {
  margin-top: .65rem;
  background: rgba(255,255,255,.96);
  padding: .6rem .9rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  color: var(--brand-dark);
  display: inline-block;
  max-width: 85%;
  font-size: .9rem;
  text-align: center;
}

.badge-popover[hidden] {
  display: none;
}



/* ============================================
   ZENTRIERTER INFO-BUTTON IM HERO-BEREICH
   (Override Version)
============================================ */
.status-wrapper {
  position: relative;
  width: 100%;
  text-align: center;
  margin-bottom: 2.2rem;
}

.video-badge {
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.badge-popover {
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin-top: .65rem;
  background: rgba(255,255,255,.96);
  padding: .6rem .9rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  color: var(--brand-dark);
  display: inline-block;
  max-width: 85%;
  font-size: .9rem;
  text-align: center;
}

.badge-popover[hidden] {
  display: none;
}
