:root{
  --bg:#eef5ff;          /* light blue background (not pure white) */
  --surface:#ffffff;     /* white surface */
  --card:#ffffff;        /* white cards */
  --border:#d6e2f0;      /* blue-grey border */
  --muted:#5a6b80;       /* muted slate */
  --text:#102033;        /* dark navy text */
  --primary:#1f6feb;     /* primary BLUE (buttons/links) */
  --primary-2:#7ab3ff;   /* lighter blue accent */
  --accent:#0ea5e9;      /* cyan accents */
  --highlight:#ff7a1a;   /* LIMITED orange accent */
  --ok:#16a34a;
  --warn:#f59e0b;
  --danger:#ef4444;
  --ring:#a3c7ff;        /* focus ring light blue */
  --shadow:0 6px 24px rgba(31,111,235,.12), 0 2px 10px rgba(0,0,0,.06);
  --radius:12px;
}


*{box-sizing:border-box}
html,body{margin:0;padding:0;background: var(--bg);color:var(--text);font-family:Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Noto Sans, "Apple Color Emoji","Segoe UI Emoji"; line-height:1.6}
img{max-width:100%;display:block}
a{color:var(--primary);text-decoration:none}
a:hover{opacity:.9; text-decoration:none}
.container{max-width:1180px;margin:0 auto;padding:24px}
.grid{display:grid; gap:18px}
@media (min-width:880px){ .grid.cols-2{grid-template-columns:1fr 1fr} .grid.cols-3{grid-template-columns:repeat(3,1fr)} .grid.cols-4{grid-template-columns:repeat(4,1fr)}}

header.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(8px);
  background:rgba(255,255,255,.85); border-bottom:1px solid var(--border);
}
.nav .inner{display:flex; gap:16px; align-items:center; justify-content:space-between; padding:14px 24px}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.3px}
.brand .logo{width:30px; height:30px; border-radius:10px; background: radial-gradient(60% 60% at 50% 40%, #1f6feb 0%, #7ab3ff 50%, #dbe8ff 90%, rgba(255,122,26,.35) 100%); box-shadow: var(--shadow);}
nav a{padding:8px 12px; border-radius:10px; color:#18314f}
nav a.active, nav a:hover{background:#eaf2ff; border:1px solid var(--border)}

.hero{padding:64px 0 32px}
.hero .title{font-size:clamp(28px,4vw,44px); line-height:1.1; margin:0 0 8px; letter-spacing:.2px}
.hero .subtitle{color:var(--muted); margin:0}
.badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.badge{font-size:12px; padding:6px 10px; border-radius:999px; border:1px solid var(--border); background:#eef4ff; color:#18314f}
.btns{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 16px; border-radius:12px; font-weight:700;
  background:var(--primary);
  color:#ffffff; border:1px solid #1f6feb;
  box-shadow: 0 6px 16px rgba(31,111,235,.22), 0 0 0 0 rgba(163,199,255,0);
  transition: box-shadow .2s ease, transform .05s ease, background .2s ease;
}
.btn:hover{box-shadow: 0 8px 22px rgba(31,111,235,.28), 0 0 0 3px rgba(163,199,255,.65)}
.btn:active{transform: translateY(1px)}
.btn:focus-visible{outline:none; box-shadow:0 0 0 3px rgba(163,199,255,.85), 0 8px 22px rgba(31,111,235,.28)}
.btn.secondary{background:#fff; border:1px solid var(--border); color:var(--primary); box-shadow:0 1px 0 rgba(0,0,0,.02)}
.btn.secondary:hover{box-shadow:0 0 0 3px rgba(163,199,255,.5)}
.btn.ghost{background:transparent; border:1px dashed var(--border); color:var(--primary)}
.btn.ghost:hover{box-shadow:0 0 0 3px rgba(163,199,255,.4)}

.section{padding:24px 0}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px; box-shadow: var(--shadow);
  transition: box-shadow .2s ease, border-color .2s ease, transform .05s ease;
}
.card:hover{border-color:#b7d2ff; box-shadow:0 10px 28px rgba(31,111,235,.16), 0 2px 10px rgba(0,0,0,.06)}
.kicker{letter-spacing:.12em; text-transform:uppercase; font-size:11px; color:#9a806f}
h2{font-size:clamp(22px,3vw,32px); margin:6px 0 10px}
h3{margin:6px 0 8px}
.muted{color:var(--muted)}

.pricing .price{font-size:32px; font-weight:800}
.pricing .tag{font-size:12px; color:#88ffd5; background:#0f2a22; border:1px solid #1e5a46; padding:4px 8px; border-radius:999px}

footer{border-top:1px solid var(--border); margin-top:24px}
footer .foot{padding:18px 0; color:var(--muted); font-size:14px}

.banner{
  padding:14px; border-radius:14px;
  border:1px solid var(--border);
  background:#f7faff;
  box-shadow: 0 0 0 0 rgba(255,211,138,0);
}
.banner:hover{box-shadow:0 0 0 4px rgba(255,211,138,.45)}

.code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; background:#f4f8ff; border:1px solid var(--border); padding:10px; border-radius:10px; overflow:auto}

.reel{display:flex; gap:12px; overflow:auto; padding-bottom:6px; scroll-snap-type:x mandatory}
.reel .chip{min-width:200px; scroll-snap-align:center; padding:14px; border-radius:14px; background:#f7faff; border:1px solid var(--border)}

.accordion details{background:#f7faff; border:1px solid var(--border); border-radius:12px; padding:12px}
.accordion summary{cursor:pointer; font-weight:700}

.table{width:100%; border-collapse:separate; border-spacing:0 10px}
.table th, .table td{padding:10px 12px; text-align:left}
.table tr{background:#ffffff; border:1px solid var(--border)}
.table tr td:first-child, .table tr th:first-child{border-top-left-radius:12px; border-bottom-left-radius:12px}
.table tr td:last-child, .table tr th:last-child{border-top-right-radius:12px; border-bottom-right-radius:12px}

.callout{border-left:3px solid var(--highlight); padding:8px 12px; background:#edf5ff; border-radius:8px; box-shadow:0 0 0 0 rgba(163,199,255,0)}
.callout:hover{box-shadow:0 0 0 3px rgba(255,211,138,.5)}

.hero-glow{
  position:relative; isolation:isolate;
}
.hero-glow:before{
  content:""; position:absolute; inset:-30px -10px -10px; z-index:-1;
  background: radial-gradient(600px 240px at 20% -10%, rgba(31,111,235,.18), transparent 60%),
              radial-gradient(700px 280px at 80% -10%, rgba(130,180,255,.16), transparent 60%);
  filter: blur(10px);
  opacity:.9;
}

hr{border:none; border-top:1px solid var(--border); margin:16px 0}
small{color:var(--muted)}

/* === Scale (0–10) buttons for Orientierungs-Check === */
.q { margin-bottom: 12px; }
.q label { display:block; font-weight:600; margin-bottom:8px; }

.scale { display:block; }
.scale-buttons { display:flex; flex-wrap:wrap; gap:6px; }

.scale button{
  appearance:none; -webkit-appearance:none;
  padding:8px 10px; min-width:36px; line-height:1;
  border-radius:10px; border:1px solid var(--border);
  background:#fff; color:var(--text); font-weight:700;
  transition: box-shadow .2s ease, border-color .2s ease, transform .05s ease, background .2s ease, color .2s ease;
  cursor:pointer;
}
.scale button:hover{ box-shadow:0 0 0 3px rgba(255,211,138,.4); }
.scale button:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(255,211,138,.7); }
.scale button.active{
  background:var(--primary); color:#fff; border-color:#ff7a1a;
  box-shadow: 0 6px 14px rgba(255,106,0,.25);
}
.scale .hint{ display:block; margin-top:6px; color:var(--muted); font-size:12px; }

/* Optional: tighter look on very small screens */
@media (max-width:420px){
  .scale button{ min-width:32px; padding:7px 8px; border-radius:8px; }
}

/* === ADD-ON: Mobile Zentrierung, Safe-Area & Utilities (keine bestehenden Regeln gelöscht) === */

/* Utility-Klassen */
.text-center{ text-align:center; }
.centered{ display:block; margin-left:auto; margin-right:auto; }
.mx-auto{ margin-left:auto; margin-right:auto; }

/* Hero-Link Standard (falls inline style fehlt) */
.hero-link{ text-align:center; margin:20px 0; }
.hero-link img{ display:block; margin:16px auto; }

/* iOS Safe-Area & Container auf Mobil mittig mit Luft links/rechts */
@media (max-width: 640px){
  .container{
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .nav .inner{
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  /* Hero-Inhalte mittig ausrichten */
  .hero .title, .hero .subtitle{ text-align:center; }
  .badges{ justify-content:center; }
  .btns{ justify-content:center; }

  /* Karten/Gitter auf 1 Spalte, sanftere Abstände */
  .grid{ grid-template-columns: 1fr !important; gap:14px; }
  .card{ padding:16px; }

  /* Tabellen auf Mobil etwas luftiger */
  .table th, .table td{ padding:8px 10px; }
}

/* Sicherstellen, dass Bilder nie überlaufen und leicht zentriert werden können */
img.responsive{ max-width:100%; height:auto; display:block; }

/* === Hero-CTA Card Styles (Intro-Trailer) === */
.hero-cta-card{
  position:relative;
  display:inline-block;
  padding:12px;
  border-radius:16px;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
  box-shadow:0 4px 14px rgba(0,0,0,.1);
}
.hero-cta-card:hover,
.hero-cta-card:focus-visible{
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 8px 28px rgba(31,111,235,.25);
}
.hero-cta-card:focus-visible{outline:none; box-shadow:0 0 0 4px var(--ring), 0 8px 28px rgba(31,111,235,.25);}

.hero-cta-img {
  display: block;
  width: 100%;          /* immer so breit wie das Eltern-Element */
  height: auto;         /* Höhe proportional skalieren */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: filter .3s ease;
}

.hero-cta-glow{
  content:"";
  position:absolute;
  inset:0;
  border-radius:16px;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.3), transparent 70%),
             radial-gradient(circle at 70% 70%, rgba(31,111,235,.25), transparent 80%);
  pointer-events:none;
  opacity:.0;
  transition:opacity .35s ease;
}
.hero-cta-card:hover .hero-cta-glow{opacity:.8;}

.hero-cta-play{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  font-size:48px;
  color:#fff;
  text-shadow:0 2px 6px rgba(0,0,0,.45);
  opacity:0;
  transition:opacity .3s ease, transform .3s ease;
}
.hero-cta-card:hover .hero-cta-play{opacity:1; transform:translate(-50%,-50%) scale(1.1);}

.hero-cta-label{
  display:block;
  margin-top:8px;
  font-size:14px;
  font-weight:600;
  color:var(--primary);
  text-align:center;
  transition:color .3s ease;
}
.hero-cta-card:hover .hero-cta-label{color:var(--highlight);}

/* Centering fix for Hero-Link section */
.hero-link{
  text-align:center;
}
.hero-cta-card{
  margin:0 auto;
  text-align:center;
}
.hero-cta-label,
.hero-link small{
  display:block;
  text-align:center;
  margin-top:6px;
}

/* === Mobile Drawer Navigation (Youth) === */
.nav { position: relative; z-index: 40; }

/* Hamburger button */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid rgba(0,0,0,.06);
  border-radius: 10px; background: #fff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nav-toggle-box { display: inline-block; }
.nav-toggle-bar { display:block; width:20px; height:2px; margin:4px 0; background: currentColor; border-radius: 2px; }

@media (min-width: 960px){ .nav-toggle{ display:none; } }

/* Desktop menu stays inline; Mobile becomes off-canvas */
.menu { list-style:none; margin:0; padding:0; display:flex; gap:16px; }
.menu a { color: var(--text); text-decoration: none; }

@media (max-width: 959px){
  .menu {
    position: fixed; top:0; right:0; height: 100dvh; width: min(85vw, 320px);
    display: block; padding: 20px; background: var(--surface);
    border-left: 1px solid var(--border); box-shadow: -16px 0 40px rgba(0,0,0,.12);
    transform: translateX(100%); transition: transform .28s ease;
    overflow-y: auto;
  }
  .menu.is-open { transform: translateX(0); }
  .menu li { margin: 12px 0; }
  .menu a { display:block; padding:10px 8px; border-radius:10px; }
  .menu a:focus-visible { outline:none; box-shadow:0 0 0 3px var(--ring); }
}

/* Dimmed backdrop behind drawer */
.nav-overlay{
  position: fixed; inset: 0; background: rgba(0,0,0,.38);
  opacity:0; visibility:hidden; transition: opacity .2s ease, visibility .2s ease;
  z-index: 30;
}
.nav-overlay.is-active{ opacity:1; visibility:visible; }

/* Prevent body scroll when drawer is open */
body.no-scroll { overflow: hidden; }

/* Optional spacing so drawer content doesn't stick to top on mobile */
@media (max-width: 959px){ .nav .menu { padding-top: 72px; } }

/* === Custom Logo Override (optional) === */
.brand .logo {
  background-image: url("content/logo_shayan.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow: none;
}



/* === FOOTER / IMPRESSUM – mobile-safe, zentriert, ohne Jojo-Scroll === */
/* Basis: existiert bereits .foot; wir erweitern nur */
footer { overflow-x: hidden; }
footer .foot{
  display:flex;            /* statt reinem Block: sauber layouten */
  align-items:center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;         /* erlaubt Umbruch, verhindert Überlauf */
  line-height: 1.5;
  max-width: 100%;
  box-sizing: border-box;
}
footer .foot a{
  text-decoration:none;
  color: var(--muted);
}
footer .foot a:hover{ color: var(--text); }

/* Spezielle Leiste für Impressum/Datenschutz, optional im HTML nutzbar */
.legal-bar{
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  text-align: center;
  margin-top: 6px;
}
.legal-bar a, .legal-bar button{
  white-space: normal;         /* darf umbrechen */
  word-break: break-word;      /* lange Wörter/URLs umbrechen */
}

/* Mobile-Optimierung + Safe-Area (iOS) */
@media (max-width: 640px){
  /* Container links/rechts ist schon safe; hier Footer mittig ausrichten */
  footer .foot{
    justify-content: center;   /* mittig statt space-between */
    text-align: center;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .legal-bar{ justify-content: center; }
}

/* Zusätzliche Sicherheitsnetze gegen horizontales Wackeln */
html, body{ overflow-x: hidden; }