/* ----------------------------------------------------
   Nachhilfe-Verwaltung – Global Styles (Light Theme)
   Version: 2025-08-26
---------------------------------------------------- */

/* ========== Design Tokens ========== */
:root{
  --bg:#ffffff;
  --fg:#0f172a;
  --muted:#475569;

  --surface:#ffffff;      /* Karten / Panels */
  --surface-2:#f7faff;    /* sehr leichtes Blau für Footer/Absetzungen */
  --border:#e2e8f0;

  --brand:#1e3a8a;        /* Logo-Blau (dunkel) */
  --brand-500:#2563eb;    /* optional */
  --brand-light:#3b82f6;  /* Logo-Blau (hell) */

  --accent:#facc15;       /* Akzent-Gelb (Login/Primary-CTA) */
  --accent-700:#eab308;

  --good:#10b981; --warn:#f59e0b; --bad:#ef4444;

  --radius:14px;
  --shadow:0 10px 30px rgba(2,6,23,.08);
  --container: clamp(16px, 4vw, 32px);

  --overlay: rgba(255,255,255,.86); /* helles Overlay fürs Video */
}

/* ========== Reset/Utilities ========== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--fg); background:var(--bg); overflow-x:hidden;
}
a{color:var(--brand-light); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1200px; margin-inline:auto; padding-inline:var(--container)}
.muted{color:var(--muted)}
.center{text-align:center}
.sr-only{position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}
:focus-visible{outline:3px solid var(--accent); outline-offset:3px}

/* ========== Global Background Video ========== */
.video-bg{
  position:fixed; inset:0; width:100%; height:100%; object-fit:cover; z-index:-3;
}
.video-overlay{
  position:fixed; inset:0; z-index:-2;
  background:
    linear-gradient(180deg,var(--overlay),var(--overlay)),
    radial-gradient(1200px 600px at 10% -10%, rgba(31,85,214,.10), transparent 55%);
}
@media (prefers-reduced-motion: reduce){ .video-bg{display:none} }

/* ========== Header / Navigation ========== */
header.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:3px solid var(--brand);
}
.nav-inner{display:flex; align-items:center; justify-content:space-between; min-height:88px}
.brand{display:inline-flex; align-items:center}
.brand img{height:64px}
@media (max-width:720px){ .brand img{height:56px} }

.menu{display:flex; gap:14px; align-items:center}
.nav-link{padding:.65rem .8rem; border-radius:8px; color:var(--fg)}
.nav-link:hover{background:rgba(255,255,255,.6)}

.btn{
  border-radius:12px; padding:.6rem 1rem; font-weight:600;
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  text-decoration:none;
}
.btn.primary{background:var(--brand); color:#fff}
.btn.primary:hover{background:var(--brand-light)}
.btn.secondary{background:transparent; color:var(--fg); border:1px solid var(--border)}
.btn.secondary:hover{background:rgba(255,255,255,.5)}
.btn.login{background:var(--accent); color:#0b1533; border:1px solid #f1d24b}
.btn.login:hover{background:var(--accent-700)}
.btn.ghost{background:#fff; color:var(--fg); border:1px dashed var(--border)}
.btn.danger{background:var(--bad); color:#fff}

/* Hamburger (falls benötigt) */
.nav-toggle{display:none}
@media (max-width:980px){
  .nav-toggle{display:inline-flex; border:1px solid var(--border); background:#fff; color:var(--fg); padding:.6rem .7rem; border-radius:10px}
  .menu{
    position:fixed; left:0; right:0; top:88px; background:#fff; border-bottom:1px solid var(--border);
    padding:12px var(--container) 16px; display:none; flex-direction:column; gap:6px;
  }
  .menu[data-open="true"]{display:flex}
}

/* ========== Hero ========== */
.hero{padding: clamp(72px, 10vw, 140px) 0 32px; text-align:center}
.hero .logo, .hero-logo{height:92px; margin:0 auto 14px; display:block}
.headline{font-size: clamp(2rem, 3.2vw, 3rem); line-height:1.1; margin:.6rem 0 10px}
.sub{color:#1f2a44; max-width:80ch; margin:0 auto 16px}
.actions{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:10px}

/* ========== Sections / Layout Blocks ========== */
.section{padding: clamp(36px, 6vw, 72px) 0}
.section-title{font-size: clamp(1.6rem, 3vw, 2.2rem); margin:0 0 .4rem}

/* Grids */
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:18px}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.grid-4{display:grid; grid-template-columns:repeat(4,1fr); gap:18px}
@media (max-width:1024px){ .grid-4{grid-template-columns:repeat(2,1fr)} }
@media (max-width:980px){ .grid-3{grid-template-columns:1fr} }
@media (max-width:760px){ .grid-2{grid-template-columns:1fr} }

/* Cards / Panels / Tiles */
.panel{background:rgba(255,255,255,.92); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:22px}
.card{background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:16px; box-shadow:var(--shadow)}
.card h3{margin:.2rem 0 .4rem; font-size:1.2rem}
.list{margin:.4rem 0 0; padding:0 0 0 18px}
.list li{margin:.25rem 0}

/* Feature row mit Bild */
.feature{
  display:grid; grid-template-columns: 1fr 1fr; gap:18px; align-items:center;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px; box-shadow:var(--shadow)
}
.feature img{width:100%; border-radius:12px}
@media (max-width:980px){ .feature{grid-template-columns:1fr} }

/* ========== Tiles (Highlights) ========== */
.tiles{display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; margin-top:18px}
.tile{background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:16px; box-shadow:var(--shadow); text-align:left}
.tile strong{display:block; margin-bottom:6px; color:#0b1533}
@media (max-width:980px){ .tiles{grid-template-columns:repeat(2,1fr)} }
@media (max-width:560px){ .tiles{grid-template-columns:1fr} }

/* ========== Testimonials ========== */
.testimonials{background:var(--surface-2); border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:60px 0}
.testi-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:24px}
.testimonial{background:#fff; border:1px solid var(--border); border-radius:20px; padding:24px; box-shadow:var(--shadow); position:relative}
.testimonial header{display:flex; align-items:center; gap:14px; margin-bottom:12px}
.avatar{height:60px; width:60px; border-radius:50%; background:#fff; display:grid; place-items:center; border:1px solid var(--border)}
.avatar img{max-height:40px}
.testimonial blockquote{margin:0; font-size:1.05rem; color:var(--fg); font-style:italic}
.testimonial footer{margin-top:12px; color:var(--muted); font-weight:600}

/* ========== Partner-Leiste ========== */
.partners{display:flex; gap:22px; flex-wrap:wrap; justify-content:center; margin-top:22px}
.partner{background:#fff; padding:20px 24px; border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow)}
.partner img{height:72px}

/* ========== CTA-Band (z. B. unter Partnern/Start) ========== */
.cta-band{
  background:linear-gradient(135deg, var(--brand-light), var(--brand));
  color:#fff; text-align:center; padding: clamp(28px, 6vw, 48px) 0;
  border-top:1px solid rgba(255,255,255,.25);
  border-bottom:1px solid rgba(0,0,0,.05);
}
.cta-band h3{margin:0 0 8px; font-size:clamp(1.4rem,2.6vw,2rem)}
.cta-band p{margin:0 0 16px; color:#eef2ff}
.cta-actions{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}

/* ========== Tabellen (rechtliche Seiten, Cookies) ========== */
.table{width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid var(--border); border-radius:12px; background:#fff}
.table th, .table td{padding:12px 14px; border-bottom:1px solid var(--border); vertical-align:top}
.table th{background:var(--surface-2); text-align:left; font-weight:700}
.table tr:last-child td{border-bottom:none}

/* ========== Footer ========== */
footer{
  border-top:3px solid var(--brand); background:var(--surface-2);
  margin-top:44px; padding:30px 0;
}
.f-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px}
.footer-brand{height:64px}
.credit{margin-top:20px; font-size:0.95rem; color:var(--muted); display:flex; justify-content:center; align-items:center; gap:8px}
.credit img{height:32px}
@media (max-width:720px){ .footer-brand{height:56px} .credit img{height:28px} }

/* ========== PRICING (Pakete, Rechner, Fair & Transparent) ========== */
.pricing{padding: clamp(20px, 4vw, 28px) 0}
.plans{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; margin-top:18px}
.plan{
  background:#fff; border:1px solid var(--border); border-radius:18px; padding:18px; box-shadow:var(--shadow);
  position:relative; display:flex; flex-direction:column; gap:12px;
}
.plan.best{outline:3px solid var(--brand-light)}
.plan h3{margin:.2rem 0 .2rem}
.badge{position:absolute; top:12px; right:12px; background:#eaf2ff; color:#1e3a8a; padding:.25rem .5rem; border-radius:999px; font-weight:700; font-size:.78rem; border:1px solid var(--border)}
.sticker{position:absolute; top:12px; left:12px; background:#10b981; color:#fff; padding:.25rem .5rem; border-radius:999px; font-weight:700; font-size:.78rem}
.price{font-size:1.8rem; font-weight:800}
.per{font-size:.9rem; color:var(--muted)}
.plan .features{margin:.4rem 0 0; padding:0 0 0 18px}
.plan .features li{margin:.25rem 0}
.cta-row{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:6px}
.btn.pay-now{background:var(--accent); color:#0b1533; border:1px solid #f1d24b}
.btn.pay-now:hover{background:var(--accent-700)}
.btn.pay-monthly{background:transparent; color:var(--fg); border:1px solid var(--border)}
.btn.pay-monthly:hover{background:rgba(255,255,255,.5)}
.savings{font-size:.85rem; color:#065f46; background:#ecfdf5; border:1px solid #a7f3d0; padding:.25rem .5rem; border-radius:8px; display:inline-block; margin-top:4px}

/* Schnellrechner */
.calc{background:#fff; border:1px solid var(--border); border-radius:16px; padding:16px; box-shadow:var(--shadow)}
.calc .row{display:grid; grid-template-columns:1fr; gap:10px}
.range{appearance:none; width:100%; height:10px; border-radius:999px; background:#e5e7eb; outline:none}
.range::-webkit-slider-thumb{appearance:none; width:22px; height:22px; border-radius:50%; background:var(--brand-light); cursor:pointer; border:2px solid white; box-shadow:0 1px 3px rgba(0,0,0,.2)}
.range::-moz-range-thumb{width:22px; height:22px; border-radius:50%; background:var(--brand-light); border:2px solid white; cursor:pointer}

/* Fair & Transparent Boxen */
.fair-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px}
.fair{background:#fff; border:1px solid var(--border); border-radius:14px; padding:14px; box-shadow:var(--shadow)}
.fair strong{display:block; margin-bottom:6px}

/* FAQ (Akkordeon) */
.faq{display:grid; gap:10px}
.faq details{background:#fff; border:1px solid var(--border); border-radius:12px; padding:10px 14px; box-shadow:var(--shadow)}
.faq summary{cursor:pointer; font-weight:700; color:var(--brand)}
.faq summary::-webkit-details-marker{display:none}
.faq details[open]{border-color:#bfdbfe; background:#f0f7ff}

/* ========== Cookie-Banner (konform/modern) ========== */
.cookie-banner{
  position:fixed; inset:auto 16px 16px 16px; z-index:100;
  max-width:680px; background:#fff; border:1px solid var(--border); border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,.18);
  padding:16px;
}
.cookie-banner h4{margin:0 0 6px; color:var(--brand)}
.cookie-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.cookie-actions .btn{flex:1 1 160px}
@media (max-width:520px){ .cookie-banner{inset:auto 10px 10px 10px} }

/* ========== Helpers ========== */
.hidden{display:none!important}
.max-w-prose{max-width:72ch}