:root{
  /* ── Legacy vars (backward compat) ── */
  --ink:#0e1218;--muted:#5f6b7a;--brand:#2253ff;--bg:#f7f8fb;--paper:#fff;
  --line:#e7eaf0;--cta:#1ca36a;--cta-dark:#128d59;--disc-bg:#f6f7fa;--disc-border:#e5e7eb;

  /* ── Theme defaults (overridden by themes/[name]/style.css) ── */
  --accent:        #6366f1;
  --accent-dark:   #4f46e5;
  --accent-2:      #8b5cf6;
  --accent-rgb:    99,102,241;
  --text:          #0f172a;
  --text-muted:    #64748b;
  --card:          #ffffff;
  --border:        #e2e8f0;
  --surface:       #f1f5f9;
  --radius:        16px;
  --radius-sm:     10px;
  --radius-xs:     6px;
  --font:          system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --shadow:        0 4px 14px rgba(0,0,0,.05);
  --shadow-md:     0 10px 28px rgba(0,0,0,.08);
  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink)}
body{font:16px/1.7 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:980px;margin:0 auto;padding:0 16px}

/* Header */
header{background:#fff;border-bottom:1px solid var(--line)}
.top{display:flex;align-items:center;gap:16px;padding:14px 0;flex-direction:column;text-align:center}
.logo img{height:48px}

/* Bekannt-aus */
.header-trust{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 0}
.header-trust .inner{max-width:980px;margin:0 auto;padding:0 16px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}
.header-trust-text{margin:0;font-size:14px;font-weight:600;color:#1f2937}
.header-trust-logos{display:flex;align-items:center;justify-content:space-around;flex:1;gap:14px}
.header-trust-logos img{max-height:22px;width:auto;display:block;opacity:.9;transition:opacity .2s}
.header-trust-logos img:hover{opacity:1}
@media(max-width:720px){
  .header-trust .inner{flex-direction:column;align-items:stretch;gap:8px}
  .header-trust-logos{justify-content:flex-start;gap:16px;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;padding:6px 2px;scrollbar-width:none}
  .header-trust-logos::-webkit-scrollbar{display:none}
  .header-trust-logos img{flex:0 0 auto;scroll-snap-align:center}
}

.faq {
  margin: 20px 0;
  display: grid;
  gap: 10px;
}
.faq details {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  transition: all 0.2s ease-in-out;
}
.faq details:hover {
  border-color: #cbd5e1;
  background: #f9fafb;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after {
  content: "＋";
  font-weight: bold;
  font-size: 18px;
  color: #2253ff;
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq details[open] summary::after {
  content: "–";
  transform: rotate(180deg);
  color: #1ca36a;
}
.faq p {
  margin: 10px 0 0;
  color: #374151;
  line-height: 1.5;
}

/* ---- TTS Player ---- */
.tts-bar{display:flex;flex-direction:column;gap:10px}
.tts-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.btn{background:#0f172a;color:#fff;border:1px solid #0b1220;border-radius:10px;padding:8px 12px;font-weight:600;cursor:pointer}
.btn:hover{opacity:.95}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.btn-ghost{background:#fff;color:#0f172a;border:1px solid #e5e7eb}
.tts-speed{display:inline-flex;align-items:center;gap:8px;margin-left:auto}
.tts-speed input{accent-color:#0f172a}
.tts-status{font-size:13px;color:#6b7280}
.tts-current{background:linear-gradient(transparent 60%, #fff59d 60%);border-radius:4px}



/* Hero */
.badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#334155;background:#eef2ff;border:1px solid #dbe3ff;border-radius:999px;padding:4px 10px}
.hero{display:grid;gap:22px;grid-template-columns:1.05fr .95fr;margin:20px 0}
.card{background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 6px 16px rgba(0,0,0,.05);overflow:hidden}
.hero .card{padding:22px}
h1{font-size:30px;line-height:1.2;margin:8px 0 10px}
.sub{font-size:18px;color:#1f2937;margin:8px 0 12px}
.meta{display:flex;flex-wrap:wrap;gap:10px;color:var(--muted);font-size:13px;margin:6px 0 2px}
.cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--cta);color:#fff;font-weight:700;text-decoration:none;border-radius:10px;padding:12px 16px}
.cta:hover{background:var(--cta-dark)}

/* Content */
.content{display:grid;gap:18px;grid-template-columns:1.35fr .65fr;margin:14px 0 32px}
.section{padding:22px}
.section h2{font-size:22px;margin:4px 0 8px}
.section p{margin:10px 0}
.note{background:#fafafa;border:1px solid var(--line);border-radius:10px;padding:12px;margin-top:20px}
.hi{background:#f1fcf7;border:1px solid #d2f4e4;border-left:4px solid #1ca36a;border-radius:10px;padding:12px}
.list{padding-left:18px}

/* Artikelbild */
.article-img{margin:20px 0;text-align:center}
.article-img img{border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,.08);border:1px solid #e5e7eb}
.article-img figcaption{font-size:13px;color:#6b7280;margin-top:6px;text-align:center}

/* Tabelle */
.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:10px;border:1px solid var(--line);background:#fff;position:relative}
.table-wrap::after{content:"👉 Wischen";position:absolute;right:12px;bottom:8px;font-size:12px;color:#6b7280;background:rgba(255,255,255,.9);padding:2px 6px;border-radius:6px}
@media(min-width:721px){.table-wrap::after{display:none}}
.compare{width:100%;border-collapse:collapse;font-size:15px;min-width:640px}
.compare th,.compare td{border-bottom:1px solid var(--line);padding:10px;text-align:left}
.compare th{background:#f9fafb}

/* Sidebar */
.sidebar .box,
.sidebar .video-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px 18px;
  box-shadow:0 2px 6px rgba(0,0,0,0.05);
}
.sidebar .box + .box,
.sidebar .video-block {margin-top:16px}
.sidebar h3{font-size:16px;margin:0 0 10px;color:#111}
.hi-procontra{background:#f1fcf7;border:1px solid #d2f4e4;border-radius:10px;padding:12px;font-size:14px;line-height:1.4}
.hi-procontra strong{display:block;margin-bottom:4px}

/* Video */
.video-caption{font-size:14px;color:#5f6b7a;margin-top:8px;text-align:center}
.video-block video{max-width:100%;border-radius:12px}

/* Social Comments */
.social-comments{display:grid;gap:14px;margin-top:6px}
.sc__row{display:flex;align-items:flex-start}
.sc__avatar{width:32px;min-width:32px}
.sc__avatar img{width:32px;height:32px;border-radius:50%;object-fit:cover}
.sc__body{flex:1}
.sc__bubble{background:#f1f1f1;border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.35}
.sc__name{color:#3b5998;font-weight:700;margin-bottom:4px}
.sc__text{color:#111}
.sc__meta{display:flex;align-items:center;justify-content:space-between;margin-left:10px;margin-top:6px;font-size:12px}
.sc__time{color:#65676b}
.sc__react{display:inline-flex;align-items:center;gap:6px;background:#fff;border-radius:999px;padding:3px 6px;box-shadow:0 1px 3px rgba(0,0,0,.2);position:relative;bottom:16px;right:2px}
.sc__react img{width:18px;height:18px}
.sc__more{margin-top:8px;display:inline-block;background:#eef2ff;color:#1f2a5a;border:1px solid #dbe3ff;border-radius:8px;padding:8px 12px;font-weight:700;font-size:14px}
.sc__more:hover{background:#e6ecff}
.is-hidden{display:none}

/* Footer */
footer{background:#fff;border-top:1px solid var(--line);margin-top:20px}
.foot{font-size:13px;color:#5f6b7a;padding:14px 0;text-align:center}
.foot-links{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-bottom:8px}
.foot-links a{color:#334155;text-decoration:none}
.foot-links a:hover{text-decoration:underline}
.adnote{background:var(--disc-bg);border-top:1px solid var(--disc-border);color:#475569;font-size:12.5px;line-height:1.55}
.adnote .wrap{padding:14px 16px}

/* Sticky CTA */
.sticky{position:fixed;left:0;right:0;bottom:-120px;background:#0f172a;color:#fff;border-top:1px solid #0b1220;padding:10px;z-index:50;transition:bottom .3s}
.sticky.show{bottom:0}
.sticky .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sticky .cta{background:#22c55e;white-space:nowrap}
@media(max-width:480px){.cta,.sticky .cta{padding:10px 12px;font-size:14px;white-space:nowrap}}
@media(max-width:900px){.hero{grid-template-columns:1fr}.content{grid-template-columns:1fr}}
@media(max-width:720px){.hero .card{padding:18px}.section{padding:18px}}

.mag-hero { margin: 18px 0 24px; }
.mag-feature { display:flex; gap:16px; align-items:stretch; text-decoration:none; overflow:hidden; }
.mag-feature__text { flex:1; padding:18px; }
.mag-feature__img { width:min(44%, 420px); }
.mag-feature__img img { width:100%; height:100%; object-fit:cover; display:block; }

.mag-grid__head { display:flex; justify-content:space-between; align-items:flex-end; margin: 8px 0 14px; }
.mag-grid__sub { font-size: 13px; opacity:.75; }

.grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
@media (max-width: 980px){ .grid{ grid-template-columns: repeat(2,1fr);} .mag-feature{flex-direction:column;} .mag-feature__img{width:100%;} }
@media (max-width: 640px){ .grid{ grid-template-columns: 1fr; } }

.mag-card { text-decoration:none; overflow:hidden; display:flex; flex-direction:column; }
.mag-card__img img { width:100%; height:170px; object-fit:cover; display:block; }
.mag-card__body { padding:14px; }
.mag-card__body p { opacity:.85; }

.pager { margin-top:16px; padding:12px 14px; }
.pager__inner { display:flex; gap:10px; align-items:center; justify-content:center; flex-wrap:wrap; }
.pager__btn, .pager__num { padding:8px 10px; border-radius:10px; text-decoration:none; }
.pager__num.is-active { font-weight:700; }
.pager__dots { padding:0 4px; opacity:.6; }
.pager__btn.is-disabled { opacity:.35; pointer-events:none; }
.pager__meta { text-align:center; font-size:12px; opacity:.7; margin-top:8px; }

/* ====== MAGAZINE LAYOUT FIX (Index) ====== */

.magazine { padding-top: 18px; }

.mag-hero { margin: 10px 0 22px; }
.hero-card{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:16px;
  padding:18px;
  border-radius:16px;
  background:#fff;
  text-decoration:none;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  overflow:hidden;
}
.hero-top{ display:flex; gap:10px; align-items:center; margin-bottom:10px; }
.hero-badge{
  font-size:12px;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  background:#111;
  color:#fff;
}
.hero-date{ font-size:12px; opacity:.75; }
.hero-title{ margin:0 0 10px; line-height:1.15; }
.hero-sub{ margin:0 0 14px; opacity:.86; }
.hero-cta{ font-weight:700; }

.hero-media{
  border-radius:14px;
  overflow:hidden;
  min-height: 220px;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;   /* WICHTIG */
  display:block;
}

/* Section Head */
.mag-section__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin: 8px 0 12px;
}
.mag-section__meta{ font-size:13px; opacity:.7; }

/* List / Teaser */
.mag-list{ display:flex; flex-direction:column; gap:12px; }

.teaser{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap:14px;
  padding:14px;
  border-radius:14px;
  background:#fff;
  text-decoration:none;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  overflow:hidden;
}

.teaser-thumb{
  border-radius:12px;
  overflow:hidden;
  height: 120px;     /* WICHTIG: verhindert XXL Bilder */
  background:#f2f2f2;
}
.teaser-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;  /* WICHTIG */
  display:block;
}

.thumb-fallback{ width:100%; height:100%; background:#eee; }

.teaser-meta{ font-size:12px; opacity:.75; margin-bottom:6px; }
.teaser-title{ margin:0 0 8px; line-height:1.2; }
.teaser-desc{ margin:0; opacity:.86; }

/* Pagination */
.mag-pager{
  margin: 16px 0 4px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  justify-content:center;
}
.mag-pager__btn, .mag-pager__num{
  padding:8px 10px;
  border-radius:10px;
  background:#fff;
  text-decoration:none;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  font-size:14px;
}
.mag-pager__num.is-active{
  font-weight:800;
  background:#111;
  color:#fff;
}
.mag-pager__dots{ opacity:.6; padding:0 2px; }
.mag-pager__btn.is-disabled{
  opacity:.35;
  pointer-events:none;
}
.mag-pager__meta{
  width:100%;
  text-align:center;
  font-size:12px;
  opacity:.7;
  margin-top:4px;
}

/* Responsive */
@media (max-width: 980px){
  .hero-card{ grid-template-columns: 1fr; }
  .hero-media{ min-height: 200px; }
  .teaser{ grid-template-columns: 140px 1fr; }
  .teaser-thumb{ height: 110px; }
}
@media (max-width: 640px){
  .teaser{ grid-template-columns: 1fr; }
  .teaser-thumb{ height: 180px; }
}

/* nur Startseite */
.home-mag a:visited { color: inherit; }
.home-mag a, .home-mag a:visited { color:#0e1218; }

/* Back-to-top */
.back-to-top{position:fixed;bottom:24px;right:20px;width:44px;height:44px;background:#4f46e5;color:#fff;border:none;border-radius:50%;font-size:20px;cursor:pointer;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,transform .2s;box-shadow:0 4px 16px rgba(79,70,229,.4);display:flex;align-items:center;justify-content:center;z-index:900;line-height:1}
.back-to-top.show{opacity:1;visibility:visible}
.back-to-top:hover{transform:translateY(-3px)}
