/* ============================================================
   MEDIENAMPEL – Stylesheet
   ============================================================ */

:root {
  --blue:    #2563EB;
  --blue-dk: #1D4ED8;
  --blue-lt: #EFF6FF;
  --green:   #10B981;
  --green-lt:#ECFDF5;
  --amber:   #F59E0B;
  --amber-lt:#FFFBEB;
  --red:     #EF4444;
  --red-lt:  #FEF2F2;
  --purple:  #8B5CF6;
  --purple-lt:#F5F3FF;
  --bg:      #F8FAFC;
  --surface: #FFFFFF;
  --border:  #E2E8F0;
  --text:    #1E293B;
  --muted:   #64748B;
  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 2px 12px rgba(0,0,0,.08);
  --shadow-md:0 4px 24px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── UTILITIES ─────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.badge {
  display:inline-block; padding:3px 10px; border-radius:999px;
  font-size:.75rem; font-weight:600; letter-spacing:.03em;
}
.badge-blue   { background:var(--blue-lt); color:var(--blue); }
.badge-green  { background:var(--green-lt); color:var(--green); }
.badge-amber  { background:var(--amber-lt); color:#B45309; }
.badge-red    { background:var(--red-lt); color:var(--red); }
.badge-purple { background:var(--purple-lt); color:var(--purple); }

.section-label {
  font-size:.8rem; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--blue); margin-bottom:8px;
}
.section-title {
  font-size:2rem; font-weight:800; line-height:1.2; margin-bottom:12px;
}
.section-sub { font-size:1.05rem; color:var(--muted); max-width:640px; }

/* ── HEADER / NAV ──────────────────────────────────────────── */
#site-header {
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
  box-shadow:0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
}
.logo {
  display:flex; align-items:center; gap:10px;
  font-size:1.2rem; font-weight:800; color:var(--text);
}
.logo-icon {
  width:36px; height:36px; background:var(--blue);
  border-radius:10px; display:flex; align-items:center; justify-content:center;
  font-size:1.2rem;
}
nav { display:flex; gap:4px; }
nav a {
  padding:8px 14px; border-radius:8px; font-size:.9rem; font-weight:500;
  color:var(--muted); transition:all .2s;
}
nav a:hover, nav a.active {
  background:var(--blue-lt); color:var(--blue); text-decoration:none;
}
.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding:8px; }
.nav-toggle span {
  display:block; width:22px; height:2px; background:var(--text);
  margin:5px 0; transition:.3s; border-radius:2px;
}

/* ── HERO ──────────────────────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #0EA5E9 100%);
  color:#fff; padding:80px 0 60px;
  overflow:hidden; position:relative;
}
#hero::before {
  content:''; position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23ffffff10'/%3E%3C/svg%3E") repeat;
}
.hero-inner {
  position:relative; display:grid;
  grid-template-columns:1fr auto; gap:40px; align-items:center;
}
.hero-title {
  font-size:clamp(2rem, 5vw, 3.2rem);
  font-weight:900; line-height:1.1; margin-bottom:16px;
}
.hero-title span { color:#93C5FD; }
.hero-sub { font-size:1.15rem; opacity:.9; margin-bottom:32px; max-width:540px; }
.hero-cta { display:flex; gap:12px; flex-wrap:wrap; }
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 24px; border-radius:10px;
  font-size:.95rem; font-weight:600; cursor:pointer;
  transition:all .2s; border:none;
}
.btn-white { background:#fff; color:var(--blue); }
.btn-white:hover { background:#EFF6FF; text-decoration:none; }
.btn-outline { background:transparent; color:#fff; border:2px solid rgba(255,255,255,.4); }
.btn-outline:hover { background:rgba(255,255,255,.1); text-decoration:none; }
.btn-blue { background:var(--blue); color:#fff; }
.btn-blue:hover { background:var(--blue-dk); text-decoration:none; }
.hero-stats {
  display:grid; grid-template-columns:1fr 1fr; gap:16px;
  flex-shrink:0;
}
.stat-card {
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.2);
  border-radius:var(--radius); padding:20px;
  text-align:center; min-width:130px;
}
.stat-num { font-size:2rem; font-weight:900; line-height:1; }
.stat-label { font-size:.8rem; opacity:.8; margin-top:4px; }

/* ── QUICK LINKS ───────────────────────────────────────────── */
#quick {
  background:var(--surface);
  border-bottom:1px solid var(--border);
  padding:32px 0;
}
.quick-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:16px;
}
.quick-card {
  display:flex; flex-direction:column; align-items:center;
  gap:10px; padding:20px 16px; border-radius:var(--radius);
  border:2px solid var(--border); background:var(--bg);
  transition:all .2s; cursor:pointer; text-align:center;
  text-decoration:none; color:var(--text);
}
.quick-card:hover {
  border-color:var(--blue); background:var(--blue-lt);
  transform:translateY(-2px); text-decoration:none; color:var(--text);
}
.quick-icon { font-size:2rem; }
.quick-label { font-size:.85rem; font-weight:600; }

/* ── SECTION BASE ──────────────────────────────────────────── */
.section { padding:72px 0; }
.section-alt { background:var(--surface); }

/* ── AGE TABS ──────────────────────────────────────────────── */
#age-section { padding:72px 0; }
.tab-bar {
  display:flex; gap:8px; flex-wrap:wrap; margin-bottom:32px;
  border-bottom:2px solid var(--border); padding-bottom:0;
}
.tab-btn {
  padding:10px 20px; border-radius:10px 10px 0 0;
  border:2px solid transparent; border-bottom:none;
  background:none; cursor:pointer; font-size:.9rem; font-weight:600;
  color:var(--muted); transition:all .2s; position:relative; top:2px;
}
.tab-btn:hover { background:var(--blue-lt); color:var(--blue); }
.tab-btn.active {
  background:var(--surface); border-color:var(--border);
  border-bottom-color:var(--surface); color:var(--blue);
}
.tab-pane { display:none; }
.tab-pane.active { display:grid; grid-template-columns:1fr 1fr; gap:32px; }

.age-card {
  background:var(--surface); border-radius:var(--radius-lg);
  border:1px solid var(--border); overflow:hidden;
  box-shadow:var(--shadow);
}
.age-card-header {
  padding:24px; display:flex; align-items:center; gap:16px;
}
.age-emoji { font-size:2.5rem; }
.age-card-header h3 { font-size:1.2rem; font-weight:700; }
.age-card-header p { font-size:.85rem; color:var(--muted); }
.age-card-body { padding:0 24px 24px; }

.info-row {
  display:flex; align-items:flex-start; gap:12px;
  padding:12px 0; border-bottom:1px solid var(--border);
}
.info-row:last-child { border-bottom:none; }
.info-icon { font-size:1.2rem; flex-shrink:0; margin-top:2px; }
.info-text strong { font-size:.85rem; font-weight:700; display:block; }
.info-text span { font-size:.85rem; color:var(--muted); }

.app-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.chip {
  padding:4px 12px; border-radius:999px;
  font-size:.78rem; font-weight:600;
  background:var(--blue-lt); color:var(--blue);
  display:inline-flex; align-items:center; gap:4px;
}
.chip-green { background:var(--green-lt); color:#065F46; }
.chip-amber { background:var(--amber-lt); color:#92400E; }
.chip-red   { background:var(--red-lt); color:#991B1B; }
.chip-purple{ background:var(--purple-lt); color:#5B21B6; }

/* ── SCREENTIME TABLE ──────────────────────────────────────── */
.st-table { width:100%; border-collapse:collapse; font-size:.9rem; }
.st-table th {
  background:var(--blue); color:#fff;
  padding:12px 16px; text-align:left; font-weight:700;
}
.st-table th:first-child { border-radius:var(--radius) 0 0 0; }
.st-table th:last-child { border-radius:0 var(--radius) 0 0; }
.st-table td {
  padding:12px 16px; border-bottom:1px solid var(--border);
  vertical-align:top;
}
.st-table tr:last-child td { border-bottom:none; }
.st-table tr:nth-child(even) td { background:#F8FAFC; }
.st-table tr:hover td { background:var(--blue-lt); }

.tip-box {
  background:var(--amber-lt); border:1px solid #FDE68A;
  border-radius:var(--radius); padding:16px 20px;
  display:flex; gap:12px; align-items:flex-start; margin-top:20px;
}
.tip-box .tip-icon { font-size:1.3rem; flex-shrink:0; }
.tip-box p { font-size:.9rem; }

/* ── DEVICE GUIDES ─────────────────────────────────────────── */
.device-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:24px;
}
.device-card {
  background:var(--surface); border-radius:var(--radius-lg);
  border:1px solid var(--border); overflow:hidden; box-shadow:var(--shadow);
}
.device-card-header {
  display:flex; align-items:center; gap:14px;
  padding:20px 24px; cursor:pointer;
  border-bottom:1px solid var(--border);
  transition:background .2s;
}
.device-card-header:hover { background:var(--bg); }
.device-logo { font-size:2rem; }
.device-card-header h3 { font-size:1.05rem; font-weight:700; flex:1; }
.chevron { font-size:1rem; color:var(--muted); transition:transform .3s; }
.device-card.open .chevron { transform:rotate(180deg); }
.device-card-body { padding:0; max-height:0; overflow:hidden; transition:max-height .4s ease; }
.device-card.open .device-card-body { max-height:2000px; }
.device-steps { padding:24px; }
.step {
  display:flex; gap:14px; padding:12px 0;
  border-bottom:1px solid var(--border);
}
.step:last-child { border-bottom:none; }
.step-num {
  width:28px; height:28px; border-radius:50%;
  background:var(--blue); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:.8rem; font-weight:700; flex-shrink:0;
}
.step-text { font-size:.88rem; line-height:1.6; }
.step-text strong { display:block; font-weight:700; margin-bottom:2px; }
.step-text code {
  background:#F1F5F9; padding:1px 6px; border-radius:4px;
  font-family:monospace; font-size:.82rem;
}

/* ── SOCIAL MEDIA ──────────────────────────────────────────── */
.sm-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px; margin-bottom:32px;
}
.sm-card {
  background:var(--surface); border-radius:var(--radius);
  border:1px solid var(--border); padding:20px;
  box-shadow:var(--shadow);
}
.sm-card-top {
  display:flex; align-items:center; gap:12px; margin-bottom:14px;
}
.sm-logo { font-size:2rem; }
.sm-card h3 { font-size:1.05rem; font-weight:700; }
.sm-age {
  display:inline-block; padding:3px 10px; border-radius:999px;
  font-size:.8rem; font-weight:700;
}
.age-red { background:#FEE2E2; color:#991B1B; }
.age-amber { background:#FEF3C7; color:#92400E; }
.sm-card ul { padding-left:18px; font-size:.88rem; color:var(--muted); }
.sm-card li { margin-bottom:6px; }
.sm-card li strong { color:var(--text); }

.warning-box {
  background:#FEF2F2; border:2px solid #FECACA;
  border-radius:var(--radius); padding:20px;
  display:flex; gap:14px; align-items:flex-start;
}
.warning-box h4 { font-weight:700; margin-bottom:6px; color:var(--red); }
.warning-box p { font-size:.9rem; }

/* ── AI SECTION ────────────────────────────────────────────── */
.ai-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}
.ai-card {
  background:var(--surface); border-radius:var(--radius);
  border:1px solid var(--border); padding:22px;
  box-shadow:var(--shadow);
}
.ai-card h3 { font-size:1rem; font-weight:700; margin-bottom:10px; }
.ai-card p { font-size:.88rem; color:var(--muted); margin-bottom:12px; }
.ai-card ul { padding-left:18px; font-size:.88rem; }
.ai-card li { margin-bottom:5px; }

/* ── FAMILY PLAN ───────────────────────────────────────────── */
#familienplan {
  background:linear-gradient(135deg,#F0FDF4,#ECFDF5);
}
.plan-card {
  background:#fff; border-radius:var(--radius-lg);
  border:2px solid #A7F3D0; padding:32px;
  box-shadow:var(--shadow-md); max-width:800px; margin:0 auto;
}
.plan-card h3 { font-size:1.3rem; font-weight:800; margin-bottom:4px; }
.plan-card .sub { font-size:.9rem; color:var(--muted); margin-bottom:24px; }
.plan-section { margin-bottom:28px; }
.plan-section h4 {
  font-size:.9rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.08em; color:var(--green); margin-bottom:12px;
}
.rule-list { list-style:none; }
.rule-list li {
  display:flex; align-items:center; gap:10px;
  padding:8px 0; border-bottom:1px dashed #D1FAE5;
  font-size:.9rem;
}
.rule-list li:last-child { border-bottom:none; }
.rule-check { color:var(--green); font-weight:700; font-size:1.1rem; }
.plan-footer {
  display:flex; gap:12px; flex-wrap:wrap; margin-top:20px;
}
.print-btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 20px; border-radius:8px;
  background:var(--green); color:#fff; font-weight:600;
  font-size:.9rem; cursor:pointer; border:none;
  transition:background .2s;
}
.print-btn:hover { background:#059669; }

/* ── RESOURCES ─────────────────────────────────────────────── */
.res-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
}
.res-card {
  background:var(--surface); border-radius:var(--radius);
  border:1px solid var(--border); padding:20px;
  box-shadow:var(--shadow); display:flex; flex-direction:column; gap:10px;
}
.res-card h3 { font-size:1rem; font-weight:700; }
.res-card p { font-size:.85rem; color:var(--muted); flex:1; }
.res-card a {
  display:inline-flex; align-items:center; gap:6px;
  font-size:.85rem; font-weight:600; color:var(--blue);
}
.res-tag {
  display:inline-block; padding:2px 8px; border-radius:6px;
  font-size:.72rem; font-weight:600;
  background:var(--blue-lt); color:var(--blue);
}
.res-tag.de { background:#EDE9FE; color:#5B21B6; }
.res-tag.at { background:#FEE2E2; color:#991B1B; }
.res-tag.en { background:#D1FAE5; color:#065F46; }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background:#1E293B; color:#94A3B8; font-size:.85rem;
  padding:40px 0 24px;
}
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr;
  gap:32px; margin-bottom:32px;
}
.footer-brand h3 { color:#fff; font-size:1.1rem; font-weight:800; margin-bottom:8px; }
.footer-brand p { line-height:1.7; }
.footer-col h4 { color:#E2E8F0; font-size:.9rem; font-weight:700; margin-bottom:12px; }
.footer-col ul { list-style:none; }
.footer-col li { margin-bottom:8px; }
.footer-col a { color:#94A3B8; }
.footer-col a:hover { color:#fff; text-decoration:none; }
.footer-bottom {
  border-top:1px solid #334155; padding-top:20px;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px;
}
.footer-note { font-size:.8rem; }

/* ── PROGRESS BAR (screen time visual) ─────────────────────── */
.progress-bar {
  height:8px; background:var(--border); border-radius:999px; overflow:hidden;
  margin-top:6px;
}
.progress-fill {
  height:100%; border-radius:999px;
  transition:width .6s ease;
}

/* ── ALERT BOX ─────────────────────────────────────────────── */
.alert {
  border-radius:var(--radius); padding:16px 20px;
  display:flex; gap:12px; align-items:flex-start; margin:16px 0;
  font-size:.9rem;
}
.alert-blue { background:var(--blue-lt); border:1px solid #BFDBFE; }
.alert-green { background:var(--green-lt); border:1px solid #A7F3D0; }
.alert-amber { background:var(--amber-lt); border:1px solid #FDE68A; }
.alert-icon { font-size:1.2rem; flex-shrink:0; }

/* ── ACCORDION ─────────────────────────────────────────────── */
.accordion { border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.acc-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px; cursor:pointer; background:var(--surface);
  font-weight:600; font-size:.95rem; transition:background .2s;
}
.acc-header:hover { background:var(--bg); }
.acc-body { padding:0 20px; max-height:0; overflow:hidden; transition:max-height .35s ease; }
.acc-body.open { max-height:1000px; }
.acc-body-inner { padding:16px 0; border-top:1px solid var(--border); font-size:.9rem; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media(max-width:900px){
  .hero-stats { display:none; }
  .tab-pane.active { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media(max-width:640px){
  .section-title { font-size:1.5rem; }
  nav { display:none; }
  nav.open { display:flex; flex-direction:column; gap:4px; }
  .nav-toggle { display:block; }
  .header-inner { flex-wrap:wrap; }
  .tab-bar { gap:4px; }
  .tab-btn { padding:8px 12px; font-size:.8rem; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; align-items:flex-start; }
}

/* ── EXTRA MOBILE ──────────────────────────────────────────── */
@media(max-width:480px){
  /* Hero */
  #hero { padding:48px 0 40px !important; }
  .hero-title { font-size:1.75rem !important; }
  .hero-sub { font-size:.95rem !important; }
  .hero-cta { flex-direction:column; gap:8px; }
  .btn { width:100%; justify-content:center; }

  /* Quick links */
  .quick-grid { grid-template-columns:1fr 1fr !important; gap:10px; }
  .quick-card { padding:14px 10px; }
  .quick-icon { font-size:1.5rem; }
  .quick-label { font-size:.78rem; }
  .quick-card span:last-child { display:none; }

  /* Sections */
  .section { padding:48px 0; }
  .section-title { font-size:1.4rem !important; }
  .section-sub { font-size:.9rem !important; }
  .section-label { font-size:.75rem; }

  /* Age tab pane */
  .tab-pane.active { grid-template-columns:1fr !important; }
  .tab-bar { gap:2px; border-bottom:none; }
  .tab-btn { padding:6px 10px !important; font-size:.75rem !important; border-radius:8px; border:1px solid var(--border) !important; top:0 !important; }
  .tab-btn.active { background:var(--blue) !important; color:#fff !important; border-color:var(--blue) !important; }

  /* Age card */
  .age-card-header { gap:10px; padding:16px; }
  .age-emoji { font-size:1.8rem; }
  .age-card-body { padding:0 14px 14px; }
  .info-row { gap:8px; padding:10px 0; }
  .app-chips { gap:4px; }
  .chip { font-size:.73rem; padding:3px 8px; }

  /* Screen time table */
  .st-table { font-size:.78rem; }
  .st-table th, .st-table td { padding:8px 10px; }
  .st-table th:nth-child(3), .st-table td:nth-child(3) { display:none; }

  /* Device grid */
  .device-grid { grid-template-columns:1fr !important; }
  .device-card-header { padding:14px 16px; }
  .device-steps { padding:16px; }
  .step { gap:10px; }
  .step-num { width:24px; height:24px; font-size:.75rem; flex-shrink:0; }
  .step-text { font-size:.82rem; }

  /* Social media */
  .sm-grid { grid-template-columns:1fr !important; }
  .sm-card { padding:16px; }

  /* AI grid */
  .ai-grid { grid-template-columns:1fr !important; }

  /* Family plan */
  .plan-card { padding:20px 16px; }
  .plan-footer { flex-direction:column; }
  .print-btn { width:100%; justify-content:center; }

  /* Resources */
  .res-grid { grid-template-columns:1fr !important; }

  /* Footer */
  .footer-grid { grid-template-columns:1fr !important; }

  /* Tip box */
  .tip-box { flex-direction:column; gap:8px; padding:14px; }
  .warning-box { flex-direction:column; gap:8px; }
}

@media(max-width:768px){
  /* Better touch targets for nav */
  nav a { padding:10px 12px; min-height:44px; display:flex; align-items:center; }

  /* Stat grid in hero hidden (already hidden at 900px) */
  .hero-stats { display:none !important; }

  /* Quick grid 3 col on medium mobile */
  .quick-grid { grid-template-columns:repeat(3,1fr); }

  /* Tab bar scrollable */
  .tab-bar { overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px; -webkit-overflow-scrolling:touch; }
  .tab-bar::-webkit-scrollbar { display:none; }
  .tab-btn { flex-shrink:0; }

  /* Device steps full width */
  .device-grid { grid-template-columns:1fr; }

  /* SM grid 1 col */
  .sm-grid { grid-template-columns:1fr; }

  /* Plan grid 1 col */
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns:1fr !important; }
}

/* ── PRINT ─────────────────────────────────────────────────── */
@media print {
  #site-header, #quick, footer, .hero-cta, .btn, .print-btn { display:none !important; }
  .section { padding:20px 0; }
  .plan-card { border:2px solid #ccc; box-shadow:none; }
}
