/* ==========================================================
   style.css — gemeinsames Stylesheet für alle hd1-tv-Seiten
   Wird von header.php auf jeder Seite eingebunden, damit
   Aussehen und Layout überall gleich sind.
   ========================================================== */

:root{
  --navy:#0a1628;
  --navy-2:#0e1e3a;
  --teal:#0e9aa7;
  --orange:#f4812a;
  --ice:#b8d4e0;
}
*{ box-sizing:border-box; }
body{
  margin:0;
  background:#1a1a1a;
  font-family: system-ui, -apple-system, sans-serif;
  padding:24px;
  overflow-wrap:break-word;
}
.frame{
  max-width:1000px;
  margin:0 auto;
  background:var(--navy);
  border-radius:12px;
}

/* Navigation */
.nav{
  background:linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  padding:20px 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(14,154,167,0.2);
  border-radius:12px 12px 0 0;
  position:sticky;
  top:0;
  z-index:100;
}
.nav .brand img{ height:34px; display:block; }
.nav .links{ display:flex; gap:24px; }
.nav .links a{ color:#fff; font-size:14px; text-decoration:none; }
.nav .links a.active{ color:var(--orange); border-bottom:2px solid var(--orange); padding-bottom:4px; }

/* Mobiles Menü (Hamburger) */
.nav-toggle{
  display:none;
  background:none;
  border:none;
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  padding:4px 8px;
}
@media (max-width: 700px){
  .nav{ flex-wrap:wrap; }
  .nav-toggle{ display:block; }
  .nav .links{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--navy-2);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px 0;
    border-top:1px solid rgba(14,154,167,0.3);
    border-bottom:1px solid rgba(14,154,167,0.3);
    box-shadow:0 8px 20px rgba(0,0,0,0.35);
    z-index:1500;
  }
  .nav .links.mobile-open{ display:flex; }
  .nav .links a{
    width:100%;
    padding:14px 24px;
    box-sizing:border-box;
    border-bottom:1px solid rgba(255,255,255,0.06);
  }
  .nav .links a:last-child{ border-bottom:none; }
  .nav .links a.active{ border-bottom:1px solid rgba(255,255,255,0.06); border-left:3px solid var(--orange); padding-left:21px; }

  /* 🔴 KORREKTUR: Footer-Spalten liefen auf schmalen Bildschirmen aus
     dem Rahmen heraus (3 feste Spalten nebeneinander) — auf Mobile
     werden sie stattdessen einfach übereinander gestapelt.
     (Die eigentliche Regel dazu steht weiter unten, siehe Kommentar
     dort — hier nur der Hinweis, damit man sie nicht doppelt sucht.) */
}

/* Seiten-Hero (Unterseiten) */
.page-hero{
  background:linear-gradient(135deg, var(--navy-2) 0%, #1a3a5c 100%);
  padding:52px 32px;
  text-align:center;
  border-bottom:1px solid rgba(14,154,167,0.2);
  background-size:cover;
  background-position:center;
  position:relative;
}
/* Wenn eine Seite ein eigenes Hintergrundbild per Inline-Style setzt
   (background-image:url(...)), liegt dieser dunkle Verlauf automatisch
   darüber, damit der weiße Text immer lesbar bleibt. */
.page-hero.with-image{
  background-image: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(26,58,92,0.82) 100%), var(--page-hero-img);
}
.page-hero .kicker{ color:var(--teal); font-size:12px; letter-spacing:3px; margin:0 0 12px 0; }
.page-hero h1{ color:#fff; font-size:32px; font-weight:500; margin:0 0 14px 0; letter-spacing:-0.5px; }
.page-hero p{ color:var(--ice); font-size:15px; line-height:1.6; max-width:580px; margin:0 auto; }

/* Callout-Box */
.callout{ background:var(--navy-2); padding:28px 32px; border-left:4px solid var(--orange); margin:28px 32px; border-radius:0 8px 8px 0; }
.callout .label{ color:var(--orange); font-size:12px; letter-spacing:2px; margin:0 0 8px 0; font-weight:500; }
.callout p{ color:#fff; font-size:16px; margin:0; line-height:1.6; font-weight:300; }

/* Ausführlicher Erklär-Textblock (z.B. Reha-Seite) */
.explainer{ padding:8px 32px 8px 32px; }
.explainer h2{ color:#fff; font-size:19px; font-weight:500; margin:0 0 12px 0; }
.explainer p{ color:var(--ice); font-size:14px; line-height:1.75; margin:0 0 16px 0; }
.explainer p:last-child{ margin-bottom:0; }

/* Vertrauens-Box (z.B. Rehaportal-Erwähnung) */
.trustbox{ display:flex; align-items:flex-start; gap:18px; background:rgba(14,154,167,0.08); border:1px solid rgba(14,154,167,0.35); border-left:4px solid var(--orange); border-radius:0 8px 8px 0; padding:22px 24px; margin:24px 32px 8px 32px; }
.trustbox .icon{ font-size:30px; line-height:1; flex-shrink:0; }
.trustbox-body{ flex:1; }
.trustbox-label{ color:var(--orange); font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; margin:0 0 10px 0; }
.trustbox p{ color:#fff; font-size:13.5px; line-height:1.7; margin:0; }
.trustbox-source{ display:inline-block; color:var(--teal); font-size:12.5px; font-weight:600; text-decoration:none; margin-top:12px; }
.trustbox-source:hover{ text-decoration:underline; }

/* Projekt-Karten */
.cards{ padding:8px 32px 40px 32px; }
.card{ background:rgba(14,154,167,0.08); border:1px solid rgba(14,154,167,0.3); border-radius:8px; overflow:hidden; margin-bottom:24px; transition:transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover{ transform:translateY(-4px); box-shadow:0 12px 28px rgba(0,0,0,0.35); border-color:rgba(14,154,167,0.6); }
.card .image{ width:100%; aspect-ratio:2/1; background:linear-gradient(135deg, #1a3a5c 0%, #0a1628 100%); background-size:cover; background-position:center; position:relative; }
.card .live-badge{ position:absolute; top:12px; right:12px; background:rgba(0,0,0,0.6); color:var(--teal); font-size:10px; padding:4px 10px; border-radius:3px; letter-spacing:1px; }
.card .body{ padding:24px; }
.card .badges{ margin-bottom:12px; }
.card .badge{ display:inline-block; background:rgba(244,129,42,0.2); color:var(--orange); font-size:10px; padding:3px 10px; border-radius:3px; letter-spacing:1px; font-weight:500; margin-right:8px; }
.card h3{ color:#fff; font-size:21px; font-weight:500; margin:0 0 18px 0; }
.card .block{ margin-bottom:16px; }
.card .block .h{ color:var(--teal); font-size:10px; font-weight:500; letter-spacing:1.5px; margin:0 0 6px 0; }
.card .block p{ color:var(--ice); font-size:13px; margin:0; line-height:1.7; }
.card .benefit{ background:rgba(244,129,42,0.08); border-left:3px solid var(--orange); padding:16px 18px; border-radius:0 6px 6px 0; margin-bottom:20px; }
.card .benefit .h{ color:var(--orange); font-size:10px; font-weight:500; margin:0 0 8px 0; letter-spacing:1.5px; }
.card .benefit ul{ color:#fff; font-size:13px; margin:0; padding-left:20px; line-height:1.8; }
.card .actions{ display:flex; gap:12px; align-items:center; }
.card .btn-primary{ background:var(--orange); color:#fff; font-size:13px; text-decoration:none; font-weight:500; padding:10px 18px; border-radius:4px; }
.card .btn-secondary{ color:var(--teal); font-size:13px; text-decoration:none; font-weight:500; }

/* Cross-Sell-Banner (z.B. HafenScout360 -> Charterschein24) */
.card .crosssell{ display:flex; align-items:center; justify-content:space-between; gap:16px; background:var(--teal); border-radius:6px; padding:16px 20px; margin-bottom:20px; flex-wrap:wrap; }
.card .crosssell-icon{ width:44px; height:auto; flex-shrink:0; }
.card .crosssell .text{ color:#fff; font-size:14px; font-weight:500; flex:1; min-width:160px; }
.card .crosssell .text span{ display:block; color:rgba(255,255,255,0.85); font-size:12px; font-weight:400; margin-top:2px; }
.card .crosssell a{ background:#fff; color:var(--navy); text-decoration:none; font-size:13px; font-weight:600; padding:10px 18px; border-radius:4px; white-space:nowrap; }

/* Auffälliger Hinweis-Kasten (z.B. Pilotprojekt-Suche) */
.card .pilot-note{ background:var(--orange); border:none; border-radius:6px; padding:20px 22px; margin-bottom:4px; display:flex; gap:14px; align-items:flex-start; }
.card .pilot-note .icon{ font-size:24px; line-height:1; flex-shrink:0; }
.card .pilot-note .text-wrap{ flex:1; }
.card .pilot-note .label{ color:#fff; font-size:11px; font-weight:700; letter-spacing:1.5px; margin:0 0 8px 0; }
.card .pilot-note p{ color:#fff; font-size:13.5px; line-height:1.7; margin:0 0 10px 0; }
.card .pilot-note p:last-child{ margin-bottom:0; }
.card .pilot-note a{ color:var(--navy); font-weight:700; text-decoration:none; background:#fff; padding:2px 8px; border-radius:3px; }
.card .pilot-note a:hover{ text-decoration:underline; }

/* CTA-Band */
.cta-band{ background:var(--teal); padding:32px; text-align:center; }
.cta-band h2{ color:#fff; font-size:20px; font-weight:500; margin:0 0 8px 0; }
.cta-band p{ color:rgba(255,255,255,0.9); font-size:14px; margin:0 0 16px 0; }
.cta-band a{ display:inline-block; background:var(--orange); color:#fff; text-decoration:none; padding:12px 32px; border-radius:4px; font-size:14px; font-weight:500; }

/* Footer */
.footer{ background:var(--navy-2); border-top:1px solid rgba(14,154,167,0.2); padding:40px 32px 24px 32px; border-radius:0 0 12px 12px; }
.footer .cols{ display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap:28px; max-width:900px; margin:0 auto 28px auto; }

/* 🔴 KORREKTUR: Diese Regel MUSS nach der obigen .footer .cols-Regel
   stehen, sonst gewinnt bei gleicher Spezifität die spätere Regel im
   Quelltext — unabhängig davon, ob sie in einer @media-Bedingung
   steckt. (Genau das war der Bug: die Mobile-Regel stand vorher
   weiter oben und wurde dadurch von der allgemeinen Regel überschrieben.) */
@media (max-width: 700px){
  .footer .cols{ grid-template-columns:1fr; gap:24px; }
}
.footer .logo-col img{ height:40px; margin-bottom:12px; display:block; }
.footer .logo-col p{ color:var(--ice); font-size:12px; line-height:1.6; margin:0; }
.footer h4{ color:#fff; font-size:12px; letter-spacing:1px; margin:0 0 12px 0; font-weight:500; }
.footer ul{ list-style:none; margin:0; padding:0; }
.footer li{ margin-bottom:8px; }
.footer a{ color:var(--ice); font-size:13px; text-decoration:none; }
.footer a:hover{ color:var(--teal); }
.footer .bottom{ border-top:1px solid rgba(255,255,255,0.08); padding-top:16px; max-width:900px; margin:0 auto; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.footer .bottom span{ color:#6c8296; font-size:11px; }
.footer .trademark{ max-width:900px; margin:10px auto 0 auto; color:#4d5f70; font-size:10px; }

/* Startseiten-Hero */
.hero{ position:relative; min-height:520px; display:flex; align-items:flex-end; background-image: linear-gradient(180deg, rgba(10,22,40,0.15) 0%, rgba(10,22,40,0.55) 55%, rgba(10,22,40,0.95) 100%), url('images/hero.jpg?v=2'); background-size:cover; background-position:center 30%; }
.hero .ai-badge{ position:absolute; top:16px; right:16px; background:rgba(255,255,255,0.85); color:#333; font-size:10px; padding:4px 10px; border-radius:20px; }
.hero .content{ padding:40px 48px 44px 48px; max-width:640px; }
.hero .kicker{ color:var(--teal); font-size:12px; letter-spacing:2px; margin:0 0 10px 0; }
.hero h1{ color:#fff; font-size:34px; font-weight:500; line-height:1.2; margin:0 0 14px 0; letter-spacing:-0.5px; }
.hero .sub{ color:var(--ice); font-size:16px; line-height:1.6; margin:0 0 22px 0; }
.hero .cta{ display:inline-block; background:var(--orange); color:#fff; border:none; padding:13px 30px; border-radius:4px; font-size:14px; font-weight:500; text-decoration:none; letter-spacing:0.3px; cursor:pointer; }
.below{ background:var(--navy-2); padding:36px 48px; border-bottom:1px solid rgba(14,154,167,0.15); }
.below p{ color:var(--ice); font-size:14px; line-height:1.75; max-width:680px; margin:0 auto; }
.bereiche{ padding:44px 32px; background:var(--navy); }
.bereiche h2{ color:#fff; text-align:center; font-size:22px; font-weight:500; margin:0 0 28px 0; }
.grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:16px; max-width:760px; margin:0 auto; }
.grid .card{ background:rgba(14,154,167,0.08); border:1px solid rgba(14,154,167,0.3); border-radius:8px; padding:20px; margin-bottom:0; display:block; text-decoration:none; transition:background 0.15s ease, border-color 0.15s ease; }
.grid .card:hover{ background:rgba(14,154,167,0.16); border-color:rgba(14,154,167,0.6); }
.grid .card .icon{ font-size:22px; margin-bottom:8px; }
.grid .card h3{ color:#fff; font-size:15px; font-weight:500; margin:0 0 6px 0; overflow-wrap:break-word; word-break:break-word; }
.grid .card p{ color:var(--ice); font-size:13px; margin:0; line-height:1.5; overflow-wrap:break-word; word-break:break-word; }

/* Kontaktformular */
.contact-form{ max-width:480px; margin:0 auto; text-align:left; }
.contact-form .row{ margin-bottom:16px; }
.contact-form label{ display:block; color:var(--ice); font-size:12px; font-weight:500; letter-spacing:0.3px; margin-bottom:6px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea{ width:100%; background:rgba(255,255,255,0.06); border:1px solid rgba(14,154,167,0.35); border-radius:4px; padding:10px 12px; color:#fff; font-size:14px; font-family:inherit; }
.contact-form input::placeholder, .contact-form textarea::placeholder{ color:#5c7286; }
.contact-form textarea{ resize:vertical; min-height:90px; }
.contact-form .checkbox-group{ display:flex; flex-wrap:wrap; gap:10px; }
.contact-form .checkbox-group label{ display:flex; align-items:center; gap:6px; background:rgba(14,154,167,0.1); border:1px solid rgba(14,154,167,0.3); border-radius:20px; padding:7px 14px; font-size:12.5px; color:#fff; font-weight:400; cursor:pointer; margin-bottom:0; }
.contact-form .checkbox-group input{ accent-color:var(--orange); }
.contact-form .submit-btn{ background:var(--orange); color:#fff; border:none; padding:13px 32px; border-radius:4px; font-size:14px; font-weight:500; cursor:pointer; width:100%; }
.contact-form .required-note{ color:#5c7286; font-size:11px; margin-top:4px; }
.alt-contact{ text-align:center; margin-top:20px; padding-top:20px; border-top:1px solid rgba(255,255,255,0.08); color:var(--ice); font-size:13px; }
.alt-contact a{ color:var(--teal); font-size:13px; text-decoration:none; }

/* Film-Kacheln (Filmproduktion-Seite) */
.film-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  margin-bottom:32px;
}
.film-tile{
  aspect-ratio:16/9;
  background:linear-gradient(135deg, #1a3a5c 0%, #0a1628 100%);
  border:1px solid rgba(14,154,167,0.3);
  border-radius:6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:border-color 0.15s ease, background 0.15s ease;
}
.film-tile:hover{ border-color:rgba(14,154,167,0.7); background:linear-gradient(135deg, #234a72 0%, #0e1e3a 100%); }
.film-tile .play{ color:var(--teal); font-size:22px; margin-bottom:8px; }
.film-tile p{ color:#fff; font-size:12px; margin:0; text-align:center; padding:0 8px; }

/* Video-Lightbox */
#video-modal{
  display:none;
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,0.85);
  z-index:1000;
  align-items:center;
  justify-content:center;
  padding:24px;
}
#video-modal.open{ display:flex; }
#video-modal-inner{
  position:relative;
  width:100%;
  max-width:900px;
}
#video-modal-player{
  width:100%;
  aspect-ratio:16/9;
  background:#000;
  border-radius:6px;
  display:block;
}
#video-modal-desc{
  color:#cfe3ea;
  font-size:13px;
  line-height:1.6;
  margin:14px 4px 0 4px;
}
#video-modal-close{
  position:absolute;
  top:-40px;
  right:0;
  background:none;
  border:none;
  color:#fff;
  font-size:20px;
  cursor:pointer;
  padding:6px 10px;
}

/* Cookie-Banner (DSGVO) — nach dem Muster von Charterschein24 */
#cookie-banner{
  position:fixed;
  left:0; right:0; bottom:0;
  background:var(--navy-2);
  border-top:1px solid rgba(14,154,167,0.4);
  padding:18px 24px;
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  z-index:2000;
  box-shadow:0 -4px 20px rgba(0,0,0,0.4);
}
#cookie-banner.show{ display:flex; }
#cookie-banner-text{
  color:var(--ice);
  font-size:13px;
  line-height:1.6;
  max-width:640px;
}
#cookie-banner-text strong{ color:#fff; }
#cookie-banner-actions{ display:flex; gap:10px; flex-wrap:wrap; }
#cookie-banner-actions button{
  background:transparent;
  border:1px solid rgba(14,154,167,0.5);
  color:#fff;
  font-size:13px;
  padding:9px 18px;
  border-radius:4px;
  cursor:pointer;
  font-family:inherit;
}
#cookie-banner-actions button.primary{
  background:var(--orange);
  border-color:var(--orange);
  font-weight:500;
}

/* Cookie-Einstellungen-Modal */
#cookie-settings-modal{
  display:none;
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,0.75);
  z-index:2001;
  align-items:center;
  justify-content:center;
  padding:24px;
}
#cookie-settings-modal.open{ display:flex; }
#cookie-settings-inner{
  background:var(--navy);
  border:1px solid rgba(14,154,167,0.4);
  border-radius:8px;
  padding:28px;
  max-width:440px;
  width:100%;
}
#cookie-settings-inner h3{ color:#fff; margin:0 0 18px 0; font-size:17px; font-weight:500; }
.cookie-cat{ margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid rgba(255,255,255,0.08); }
.cookie-cat:last-of-type{ border-bottom:none; }
.cookie-cat-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.cookie-cat-head span{ color:#fff; font-size:14px; font-weight:500; }
.cookie-cat-head input{ accent-color:var(--orange); width:18px; height:18px; }
.cookie-cat p{ color:var(--ice); font-size:12.5px; line-height:1.6; margin:0; }
#cookie-settings-buttons{ display:flex; gap:10px; margin-top:8px; }
#cookie-settings-buttons button{
  flex:1;
  background:transparent;
  border:1px solid rgba(14,154,167,0.5);
  color:#fff;
  font-size:13px;
  padding:10px 14px;
  border-radius:4px;
  cursor:pointer;
  font-family:inherit;
}
#cookie-settings-buttons button.primary{
  background:var(--orange);
  border-color:var(--orange);
  font-weight:500;
}
