/* Selbst gehostete Schriften (kein Google-Aufruf, DSGVO-sauber). Variable Fonts. */
@font-face{
  font-family:'Inter';
  src:url('/assets/fonts/inter-latin-var.woff2') format('woff2');
  font-weight:100 900; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Playfair Display';
  src:url('/assets/fonts/playfair-latin-var.woff2') format('woff2');
  font-weight:400 900; font-style:normal; font-display:swap;
}

/* =========================================================================
   Illupunk – Frontend (Richtung A · Editorial)
   Akzent zentral als Variable: --accent (hell, Fuellungen/Knoepfe),
   --link (dunkel, Textlinks – erreicht 4.5:1 auf Weiss). Beide beim
   Logo-Eingang in EINEM Zug auf die echte Markenfarbe umstellen.
   Fonts: Fallback-Stack ohne externen Aufruf (DSGVO). Self-Hosting per
   @font-face unter /assets/fonts/ spaeter hier ergaenzen.
   ========================================================================= */
:root{
  --bg:#FAFAFA; --surface:#ffffff; --surface-2:#f6f6f7;
  --text:#26262b; --heading:#18181B; --muted:#6b7280; --border:#ececec;
  --accent:#EC4899; --accent-strong:#db2777; --link:#be185d; --accent-soft:#fce7f3;
  --footer-bg:#18181B; --footer-text:#e7e5e4;
  --radius:16px; --radius-sm:10px; --maxw:1120px;
  --shadow:0 6px 24px rgba(20,20,25,.08);
  --font-head:'Playfair Display',Georgia,'Times New Roman',serif;
  --font-body:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-body);
  font-size:17px;line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
a,button,.nav-toggle,.lang-switch,.btn,.btn-buy{-webkit-tap-highlight-color:transparent}
h1,h2,h3,h4{font-family:var(--font-head);color:var(--heading);line-height:1.2;font-weight:600}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}
.skip-link{position:absolute;left:-999px;top:0;background:#fff;padding:10px 16px;z-index:100}
.skip-link:focus{left:8px;top:8px}
:focus-visible{outline:3px solid var(--link);outline-offset:2px;border-radius:4px}

/* --- Kopf + Navigation --- */
.site-header{background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:40}
.site-header-inner{display:flex;flex-wrap:wrap;align-items:center;gap:26px;min-height:66px}
.site-logo{display:flex;align-items:center}
.site-logo img{height:42px;width:auto}
.site-header-right{margin-left:auto;display:flex;align-items:center;gap:14px}
/* Hamburger mit federndem "Punk-Flip": morpht beim Oeffnen zum pinken X.
   Rein CSS, gesteuert ueber aria-expanded (setzt blog.js bereits). */
.nav-toggle{display:none;position:relative;width:42px;height:42px;background:none;border:0;cursor:pointer;
  padding:0;margin-left:auto;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent;
  transition:transform .5s cubic-bezier(.68,-0.6,.32,1.6)}
.nav-toggle span{position:absolute;left:50%;top:50%;width:24px;height:2px;background:var(--heading);border-radius:2px;
  transition:transform .45s cubic-bezier(.68,-0.6,.32,1.6),background-color .3s ease,opacity .2s ease}
.nav-toggle span:nth-child(1){transform:translate(-50%,-50%) translateY(-7px)}
.nav-toggle span:nth-child(2){transform:translate(-50%,-50%)}
.nav-toggle span:nth-child(3){transform:translate(-50%,-50%) translateY(7px)}
.nav-toggle:hover span:nth-child(1){transform:translate(-50%,-50%) translateY(-8.5px)}
.nav-toggle:hover span:nth-child(3){transform:translate(-50%,-50%) translateY(8.5px)}
.nav-toggle[aria-expanded="true"]{transform:rotate(180deg)}
.nav-toggle[aria-expanded="true"] span{background:var(--accent)}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translate(-50%,-50%) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;transform:translate(-50%,-50%) scaleX(0)}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translate(-50%,-50%) rotate(-45deg)}
@media(prefers-reduced-motion:reduce){
  .nav-toggle,.nav-toggle span{transition-duration:.12s}
  .nav-toggle[aria-expanded="true"]{transform:none}
}

.site-nav{flex:1}
.site-nav-list{list-style:none;margin:0;padding:0;display:flex;gap:6px}
.site-nav-item{position:relative}
.site-nav-item>a{display:block;padding:10px 14px;font-weight:600;font-size:15.5px;color:var(--heading);border-radius:8px}
.site-nav-item>a:hover{background:var(--surface-2);text-decoration:none;color:var(--link)}
.site-nav-item.active>a{color:var(--link)}
.site-nav-item .caret{font-size:.8em;opacity:.6}
.site-subnav{list-style:none;margin:0;padding:8px;position:absolute;top:calc(100% + 4px);left:0;
  min-width:210px;background:var(--surface);border:1px solid var(--border);border-radius:12px;
  box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .18s,transform .18s,visibility .18s;z-index:50}
.site-nav-item.has-children:hover .site-subnav,.site-nav-item.open .site-subnav{opacity:1;visibility:visible;transform:translateY(0)}
.site-subnav a{display:block;padding:9px 12px;border-radius:8px;font-size:14.5px;font-weight:500;color:var(--text)}
.site-subnav a:hover{background:var(--accent-soft);color:var(--link);text-decoration:none}
.site-subnav a.active{color:var(--link);font-weight:600}

.lang-toggle{display:inline-flex;border:1px solid var(--border);border-radius:999px;overflow:hidden;
  font-size:13px;font-weight:700;line-height:1;background:var(--surface)}
.lang-seg{padding:8px 14px;color:var(--muted);text-decoration:none;letter-spacing:.02em;
  transition:background .15s,color .15s}
.lang-seg:hover{background:var(--surface-2);color:var(--heading);text-decoration:none}
.lang-seg.on{background:#F2529D;color:#fff}
.flag{border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.06)}

/* --- Startseite --- */
.site-main{min-height:60vh;padding:0 0 60px}
.home-hero{text-align:center;padding:56px 20px 34px}
.home-hero h1{font-size:clamp(30px,5vw,46px);margin:0 0 14px}
.home-hero p{max-width:62ch;margin:0 auto;color:var(--muted);font-size:19px}
.topic-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;margin:26px 0}
.topic-tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:22px;transition:transform .2s,box-shadow .2s;color:inherit}
.topic-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow);text-decoration:none}
.topic-tile h2{font-size:20px;margin:0 0 6px}
.topic-tile p{margin:0;color:var(--muted);font-size:14.5px}
.topic-tile .sub{margin-top:10px;font-size:13px;color:var(--link);font-weight:600}
.section-head{margin:38px 0 16px;font-size:26px}

/* --- Artikel-Kacheln (Uebersicht) --- */
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}
.post-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;transition:transform .2s,box-shadow .2s;color:inherit;display:flex;flex-direction:column}
.post-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);text-decoration:none}
.post-card .thumb{aspect-ratio:16/9;background:var(--surface-2);object-fit:cover;width:100%}
.post-card .card-body{padding:16px 18px 18px}
.post-card .chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:9px}
.chip{display:inline-block;font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:999px;
  background:var(--accent-soft);color:var(--link)}
.post-card h3{font-size:19px;margin:0 0 8px;line-height:1.25}
.post-card .excerpt{margin:0;color:var(--muted);font-size:14.5px}
.post-card .card-meta{margin-top:12px;font-size:12.5px;color:var(--muted)}

/* --- Redaktions-Merker [todo]: erscheint NUR in der Backend-Vorschau ------ */
.blog-todo{background:#fff7ed;border:2px dashed #f97316;color:#9a3412;border-radius:12px;
  padding:14px 18px;margin:22px 0;font-weight:700;font-size:16px;clear:both}

/* --- Breadcrumb --- */
.breadcrumb{font-size:13.5px;color:var(--muted);padding:20px 0 0}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--link)}
.breadcrumb .sep{margin:0 7px;opacity:.5}

/* --- Artikel --- */
.article{max-width:880px;margin:0 auto;padding:8px 0 20px}
.article-hero{aspect-ratio:16/9;width:100%;object-fit:cover;border-radius:var(--radius);margin:16px 0 8px;background:var(--surface-2)}
.article h1{font-size:clamp(28px,4.4vw,40px);margin:18px 0 10px;line-height:1.15}
.article-meta{color:var(--muted);font-size:14px;margin-bottom:8px}
.article-body{font-size:18px;line-height:2.0}   /* Fliesstext-Zeilenabstand 2.0 (Briefing 1.4) */
.article-body h2{font-size:27px;margin:1.6em 0 .5em;scroll-margin-top:80px}
.article-toc{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:14px 18px;margin:1.4em 0}
.article-toc .toc-h{font-family:var(--font-head);font-weight:600;font-size:16px;margin-bottom:6px;color:var(--heading)}
.article-toc ol{margin:0;padding-left:1.3em}
.article-toc li{margin:4px 0}
.article-toc a{color:var(--link);text-underline-offset:2px}
.article-body h3{font-size:22px;margin:1.4em 0 .4em}
.article-body h4{font-size:19px;margin:1.2em 0 .3em}
.article-body p{margin:0 0 1.1em}
.article-body ul,.article-body ol{margin:0 0 1.1em;padding-left:1.4em}
.article-body li{margin:.3em 0}
.article-body blockquote{margin:1.3em 0;padding:.4em 1.1em;border-left:4px solid var(--accent);
  background:var(--surface-2);border-radius:0 8px 8px 0;color:#333}
.article-body code{background:var(--surface-2);padding:.12em .4em;border-radius:5px;font-size:.9em}
.article-body hr{border:0;border-top:1px solid var(--border);margin:2em 0}
.article-body a{color:var(--link);text-decoration:underline;text-underline-offset:2px}
.article-body a.btn-buy,.article-body a.btn{color:#fff;text-decoration:none}

/* Bilder im Text */
.blog-img{margin:1.4em 0}
.blog-img-media{position:relative;display:inline-block;line-height:0}
.blog-img img{border-radius:12px;width:100%}
.blog-img figcaption{font-size:13.5px;color:var(--muted);margin-top:7px;line-height:1.5}
.blog-img-links{float:left;max-width:46%;margin:.4em 1.4em .3em 0}
.blog-img-rechts{float:right;max-width:46%;margin:.4em 0 .3em 1.4em}
.blog-img-zentriert{text-align:center}
.blog-img-voll img{width:100%}
.ai-badge{position:absolute;left:10px;bottom:10px;background:rgba(24,24,27,.82);color:#fff;
  font-size:11.5px;padding:4px 9px;border-radius:999px;line-height:1;letter-spacing:.02em}
.ai-badge b{color:var(--accent);font-weight:700}

/* KI-Kennzeichnung des Beitrags: Kreis, der beim Hover/Tap zur Pille aufklappt (Marken-Pink) */
.ki-badge{position:absolute;left:10px;bottom:10px;z-index:3;width:40px;height:40px;border-radius:999px;
  background:#F2529D;color:#fff;box-shadow:0 2px 9px rgba(0,0,0,.26);overflow:hidden;cursor:default;
  transition:width .3s cubic-bezier(.4,0,.2,1)}
.ki-badge--inline{position:relative;left:auto;bottom:auto;display:inline-block;vertical-align:middle;margin:0 0 8px}
.ki-badge:hover,.ki-badge:focus{width:170px;outline:none}
.ki-c,.ki-p{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;transition:opacity .2s}
.ki-c{flex-direction:column}
.ki-c svg{width:17px;height:17px}
.ki-c b{font-size:10px;font-weight:800;letter-spacing:.03em;line-height:1;margin-top:1px}
.ki-p{flex-direction:row;gap:7px;opacity:0;white-space:nowrap;padding:0 13px}
.ki-p svg{width:15px;height:15px;flex:none}
.ki-p b{font-size:13px;font-weight:800}
.ki-badge:hover .ki-c,.ki-badge:focus .ki-c{opacity:0}
.ki-badge:hover .ki-p,.ki-badge:focus .ki-p{opacity:1}
@media(prefers-reduced-motion:reduce){.ki-badge{transition:none}}

/* Hinweis / FAQ / Werbehinweis */
.blog-note{background:#f5f5f6;border:1px solid #e8e8ea;border-radius:12px;padding:16px 18px 16px 16px;margin:1.4em 0;display:flex;gap:13px;align-items:flex-start}
.blog-note-ic{flex:none;width:26px;height:26px;border-radius:50%;background:#e3e3e6;color:#5b5b63;display:flex;align-items:center;justify-content:center;margin-top:2px}
.blog-note-body{min-width:0}
.blog-note-body>*:first-child{margin-top:0}.blog-note-body>*:last-child{margin-bottom:0}
.blog-faq{margin:2em 0}
.blog-faq h2{font-size:25px;margin-bottom:.5em}
.blog-faq dt{font-weight:700;font-family:var(--font-head);font-size:18px;margin:1em 0 .3em;color:var(--heading)}
.blog-faq dd{margin:0 0 .6em;color:var(--text)}
.blog-ad-note{background:#f7f7f8;border:1px solid #ececec;color:#6b7280;border-radius:10px;
  padding:11px 15px;font-size:13.5px;margin:0 0 20px}
.blog-ai-foot{font-size:13px;color:var(--muted);border-top:1px solid var(--border);padding-top:14px;margin-top:26px}
/* AdSense-Anzeige am Artikelende */
.blog-ad-unit{margin:2em 0 1em;text-align:center;min-height:50px}
.blog-ad-label{display:block;font-size:11px;letter-spacing:.06em;color:var(--muted);margin-bottom:5px}
.blog-ad-unit .adsbygoogle{display:block}

/* --- Produkt-Box + Vergleich (netzwerk-neutral) --- */
.product-box{border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin:1.6em 0;
  background:var(--surface);display:grid;grid-template-columns:190px 1fr;gap:18px;align-items:stretch}
/* Bildspalte waechst auf die volle Hoehe der Box mit (align-items:stretch am
   .product-box) und das Bild fuellt sie komplett aus – kein Leerraum unten. */
.product-box .p-media{position:relative;border-radius:10px;overflow:hidden;background:var(--surface-2);
  min-height:180px;align-self:stretch}
.product-box .p-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;padding:0}
.product-box .ad-tag{position:absolute;top:8px;left:8px;z-index:2;background:rgba(24,24,27,.8);color:#fff;
  font-size:10px;font-weight:700;letter-spacing:.05em;padding:2px 7px;border-radius:5px}
.product-box .p-body{display:flex;flex-direction:column;text-align:center}
.product-box h3{margin:0 0 4px;font-size:21px}
.product-box .stars{color:#F59E0B;letter-spacing:2px;font-size:16px}   /* Gold = gelernte Bewertungsfarbe */
.product-box .stars span{color:var(--muted);font-size:13px;letter-spacing:0}
.product-box .p-body>p{margin:.5em 0;font-size:15px}
.product-box .p-proscons{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0;text-align:left}
.product-box .p-proscons.one{grid-template-columns:1fr}
.product-box .pc-col{border-radius:9px;padding:9px 12px}
.product-box .pc-pro{background:#eef7e6}
.product-box .pc-con{background:var(--surface-2)}
.product-box .pc-h{font-size:12.5px;font-weight:700;margin-bottom:3px}
.product-box .pc-pro .pc-h{color:#3b6d11}
.product-box .pc-con .pc-h{color:#8a5a12}
.product-box .p-proscons ul{margin:0;padding-left:1.1em;font-size:14px;line-height:1.55}
.product-box .p-proscons li{margin:2px 0}
.product-box .offers{display:flex;flex-direction:column;gap:8px;margin-top:auto}
.product-box .price-note{text-align:center}
.btn-buy{display:inline-block;background:var(--accent);color:#fff;font-weight:700;padding:12px 18px;
  border-radius:10px;font-size:15px}
.product-box .btn-buy{display:block;width:100%;text-align:center}

/* Download-Box: gleicher Rahmen wie die Produkt-Box, aber mit Datei-Download.
   Ohne Cover-Bild steht im Media-Bereich ein grosses Format-Kuerzel (PDF/Excel). */
.download-box{border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin:1.6em 0;
  display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:center;background:var(--surface);box-shadow:var(--shadow)}
.download-box .dlb-media{position:relative;border-radius:10px;overflow:hidden;background:var(--surface-2);
  aspect-ratio:1/1;display:flex;align-items:center;justify-content:center}
.download-box .dlb-media img{width:100%;height:100%;object-fit:cover}
.download-box .dlb-ico{font-family:var(--font-head);font-weight:700;font-size:34px;color:var(--accent-strong);letter-spacing:.02em}
.download-box .dlb-tag{position:absolute;top:8px;left:8px;z-index:2;font-size:10px;font-weight:700;letter-spacing:.05em;
  background:var(--heading);color:#fff;border-radius:6px;padding:2px 7px}
.download-box .dlb-body h3{margin:0 0 6px;font-size:19px}
.download-box .dlb-body p{margin:0 0 12px;color:var(--muted);font-size:15px}
.download-box .dlb-btn{display:inline-flex;align-items:center;gap:8px;width:auto}
.download-box .dlb-btn .dl-ico{width:18px;height:18px;flex:none}
@media (max-width:520px){
  .download-box{grid-template-columns:1fr;text-align:center}
  .download-box .dlb-media{max-width:180px;margin:0 auto}
  .download-box .dlb-btn{display:block;width:100%}
}
.btn-buy:hover{background:var(--accent-strong);text-decoration:none;color:#fff}
.btn-buy .merchant{font-weight:500;opacity:.9;font-size:13px}
.price-note{font-size:12px;color:var(--muted);margin-top:6px}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:1.6em 0;
  border:1px solid var(--border);border-radius:12px}
.md-table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.5;background:var(--surface)}
.md-table th,.md-table td{padding:10px 14px;text-align:left;border-bottom:1px solid var(--border);vertical-align:top}
.md-table thead th{font-family:var(--font-head);font-weight:700;color:var(--heading);
  background:var(--surface-2);border-bottom:2px solid var(--border);white-space:nowrap}
.md-table tbody tr:last-child td{border-bottom:0}
.md-table tbody tr:nth-child(even) td{background:rgba(20,20,25,.025)}
.compare-table-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:14px;margin:1.6em 0}
.compare-table{width:100%;border-collapse:collapse;margin:0;font-size:15px;min-width:560px;background:var(--surface)}
.compare-table th,.compare-table td{padding:14px;text-align:left;vertical-align:middle;border-top:1px solid var(--border)}
.compare-table thead th{background:var(--surface-2);border-top:0;font-family:var(--font-body);font-weight:600;font-size:14px;color:var(--heading)}
.compare-table .ct-prod{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}
.compare-table .ct-prod img{width:84px;height:84px;object-fit:cover;background:var(--surface-2);border-radius:10px;padding:0}
.compare-table .ct-prod strong{font-size:15px}
.compare-table .stars{color:#F59E0B;letter-spacing:1px}
/* Empfehlungs-Zeile im Vergleich: zartes Gruen + Badge (konkurriert nicht mit dem Pink-CTA) */
.compare-table tr.ct-reco>td{background:#f0f9eb}
.ct-reco-badge{display:block;width:max-content;margin-top:6px;background:#4e8a30;color:#fff;
  font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;letter-spacing:.02em}
.compare-table ul{list-style:none;margin:0;padding:0;font-size:14px}
.compare-table ul li{position:relative;padding-left:19px;margin:3px 0}
.compare-table ul li::before{content:"✓";position:absolute;left:0;color:#4e8a30;font-weight:700}   /* Gruen = positiv; Pink bleibt exklusiv fuer Buttons */
.compare-table .offers{display:flex;flex-direction:column;gap:6px}
.compare-table .price-note{font-size:12px;color:var(--muted);margin-top:2px}
.compare-table .highlight{background:var(--accent-soft)}

/* --- Teilen --- */
.share{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:26px 0;padding-top:18px;border-top:1px solid var(--border)}
.share .label{font-weight:600;color:var(--muted);font-size:14px;margin-right:2px}
.share-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:999px;
  background:var(--surface);border:1px solid var(--border);color:#3f3f46;font-size:13px;font-weight:600;
  cursor:pointer;text-decoration:none;transition:border-color .15s,background .15s,box-shadow .15s}
.share-pill .si{display:inline-flex;align-items:center}
.share-pill:hover{background:var(--surface);border-color:var(--accent);box-shadow:0 2px 8px rgba(20,20,25,.06);text-decoration:none}
@media(max-width:520px){.share-pill span:not(.si){display:none}.share-pill{padding:9px}}

/* --- Related --- */
.related{margin:40px 0 10px}
.related h2{font-size:24px;margin-bottom:14px}

/* --- 404 --- */
.notfound{text-align:center;padding:80px 20px}
.notfound h1{font-size:40px;margin-bottom:12px}
.notfound p{color:var(--muted);margin-bottom:20px}
.btn{display:inline-block;background:var(--accent);color:#fff;font-weight:700;padding:12px 22px;border-radius:10px}
.btn:hover{background:var(--accent-strong);color:#fff;text-decoration:none}

/* --- Preview-/Draft-Banner --- */
.preview-banner{background:#fef3c7;color:#92400e;text-align:center;padding:10px;font-weight:600;font-size:14px}

/* --- Footer --- */
.site-footer{background:var(--footer-bg);color:var(--footer-text);margin-top:40px}
.site-footer-inner{padding:34px 20px}
.site-footer-brand{font-family:var(--font-head);font-size:22px;color:#fff;margin-bottom:12px}
.site-footer-brand img{height:34px;width:auto}
.site-footer-nav{display:flex;flex-wrap:wrap;gap:18px;margin-bottom:14px}
.site-footer-nav a{color:#fff;font-weight:600;font-size:14.5px}
.site-footer-ad{color:#a8a29e;font-size:13px;max-width:80ch;margin:0 0 8px}
.site-footer-copy{color:#a8a29e;font-size:13px;margin:0}

/* --- Cookie-Banner --- */
.cookie-banner{position:fixed;left:16px;right:16px;bottom:16px;max-width:520px;margin:0 auto;
  background:var(--heading);color:#fff;border-radius:14px;padding:16px 18px;box-shadow:0 10px 40px rgba(0,0,0,.3);z-index:80}
.cookie-banner p{margin:0 0 12px;font-size:14px}
.cookie-banner .cb-actions{display:flex;gap:10px;flex-wrap:wrap}
.cookie-banner button{border:0;border-radius:8px;padding:9px 16px;font-weight:600;cursor:pointer;font-size:14px}
.cb-accept{background:var(--accent);color:#fff}
.cb-decline{background:#3f3f46;color:#fff}

/* --- PDF-/Lead-Dialog --- */
.lead-pdf{font-weight:600}
.modal-overlay{position:fixed;inset:0;background:rgba(24,24,27,.55);display:none;align-items:center;
  justify-content:center;z-index:90;padding:20px}
.modal-overlay.open{display:flex}
.modal{background:var(--surface);border-radius:var(--radius);max-width:460px;width:100%;padding:14px 30px 30px;
  box-shadow:0 24px 70px rgba(20,20,25,.32);position:relative;overflow:hidden}
/* Marken-Akzentstreifen oben – bindet das Popup ans Seiten-Design */
.modal::before{content:"";position:absolute;top:0;left:0;right:0;height:5px;
  background:linear-gradient(90deg,var(--accent),var(--accent-strong))}
.modal h3{margin:6px 0 4px;font-size:25px;font-family:var(--font-head);color:var(--heading)}
.modal .modal-intro{margin:0 0 6px;color:var(--muted);font-size:14.5px}
.modal label{display:block;font-size:14px;font-weight:600;margin:16px 0 6px;color:var(--heading)}
.modal input[type=email]{width:100%;padding:13px 15px;border:1.5px solid var(--border);border-radius:var(--radius-sm);
  font:inherit;font-size:16px;background:var(--surface);transition:border-color .18s,box-shadow .18s}
.modal input[type=email]:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.modal .cb-row{display:flex;gap:10px;align-items:flex-start;margin:16px 0 2px;font-size:14px;color:var(--text);
  background:var(--surface-2);border-radius:var(--radius-sm);padding:11px 13px;cursor:pointer}
.modal .cb-row input{margin-top:2px;width:18px;height:18px;flex:none;accent-color:var(--accent);cursor:pointer}
.modal .price-note{font-size:12.5px;color:var(--muted);margin-top:12px;line-height:1.5}
.modal .modal-actions{display:flex;gap:10px;margin-top:20px}
.modal .modal-actions .btn{flex:1;text-align:center;padding:13px 22px}
.modal .modal-actions .prev2{background:var(--surface-2);color:var(--text);border:1px solid var(--border);
  border-radius:10px;font-weight:600;padding:13px 20px;cursor:pointer;transition:background-color .18s}
.modal .modal-actions .prev2:hover{background:var(--border)}
.modal .modal-close{position:absolute;top:12px;right:12px;background:none;border:0;font-size:24px;line-height:1;
  cursor:pointer;color:var(--muted);width:34px;height:34px;border-radius:50%;transition:background-color .18s,color .18s}
.modal .modal-close:hover{background:var(--surface-2);color:var(--heading)}
.modal-err{color:#b91c1c;font-size:13px;margin-top:6px;display:none}
@media (prefers-reduced-motion: no-preference){
  .modal-overlay.open .modal{animation:modalIn .22s ease}
  @keyframes modalIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
}

/* --- Mobile --- */
@media(max-width:860px){
  .site-logo{flex-shrink:0}
  .site-logo img{height:40px}
  .lang-switch span{display:none}
  .lang-switch{width:42px;height:42px;padding:0;border-radius:50%;justify-content:center;gap:0}
  .nav-toggle{display:flex;order:3}
  .site-nav{order:4;flex-basis:100%;display:none}
  .site-nav.open{display:block}
  .site-nav-list{flex-direction:column;gap:2px;padding:10px 0}
  .site-nav-item>a{padding:12px 8px}
  .site-subnav{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;
    border-left:2px solid var(--border);border-radius:0;margin:0 0 6px 14px;display:none}
  .site-nav-item.open .site-subnav{display:block}
  .site-header-right{order:2}
  .product-box{grid-template-columns:1fr}
  .product-box .p-media{aspect-ratio:16/9;min-height:0}
  .product-box .p-proscons{grid-template-columns:1fr}
  .blog-img-links,.blog-img-rechts{float:none;max-width:100%;margin:1.2em 0}
}

/* =========================================================================
   Sanfte Scroll-Animationen (dezent, wiederholend, alle Geraete).
   blog.js vergibt .reveal an Artikel-Elemente und schaltet .in beim
   Sichtbarwerden (rauf UND runter). Ohne JS bleibt alles sichtbar -> SEO/A11y.
   ========================================================================= */
.reveal{opacity:0;transform:translateY(12px);
  transition:opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1)}
.reveal.in{opacity:1;transform:none}

/* Titelbild "setzt sich" weich von leicht groesser auf normal (Container clippt) */
.article>.blog-img-media{overflow:hidden;border-radius:var(--radius);margin:16px 0 8px}
.article>.blog-img-media>.article-hero{margin:0;border-radius:0;
  transition:transform .9s cubic-bezier(.22,.61,.36,1);will-change:transform}
.reveal.blog-img-media>.article-hero{transform:scale(1.06)}
.reveal.in.blog-img-media>.article-hero{transform:scale(1)}

/* Buttons: Anheben am Desktop + spuerbares Tap-Feedback auf Mobile */
.btn,.btn-buy{transition:transform .18s ease, box-shadow .25s ease, background-color .2s ease}
@media(hover:hover){.btn:hover,.btn-buy:hover{transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(236,72,153,.28)}}
.btn:active,.btn-buy:active{transform:translateY(0) scale(.96)}

/* Produktboxen: dezentes Anheben am Desktop */
.product-box{transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease}
@media(hover:hover){.product-box:hover{transform:translateY(-3px);
  box-shadow:0 14px 34px rgba(0,0,0,.07);border-color:#efd3e0}}

/* Bewegung reduzieren, wenn im System gewuenscht */
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1 !important;transform:none !important;transition:none}
  .article>.blog-img-media>.article-hero,.btn,.btn-buy,.product-box{transition:none}
  .reveal.blog-img-media>.article-hero{transform:none}
}

/* --- Autorenseite (E-E-A-T-Profil) --- */
.author-hero{display:flex;gap:22px;align-items:flex-start;flex-wrap:wrap;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:24px 26px;margin:18px 0 26px;box-shadow:var(--shadow)}
.author-photo{width:120px;height:120px;border-radius:50%;object-fit:cover;flex:0 0 auto;
  border:3px solid var(--accent-soft)}
.author-meta{flex:1 1 260px;min-width:0}
.author-meta h1{margin:0 0 4px;font-size:30px}
.author-role{margin:0 0 10px;color:var(--link);font-weight:600;font-size:15px}
.author-bio{margin:0 0 14px;color:var(--text);font-size:16px;line-height:1.65;max-width:60ch}
.author-links{display:flex;flex-wrap:wrap;gap:8px}
.author-links a{display:inline-block;padding:6px 12px;border:1px solid var(--border);
  border-radius:999px;font-size:13.5px;font-weight:500;color:var(--muted);background:var(--surface-2)}
.author-links a:hover{color:var(--link);border-color:var(--accent);text-decoration:none}
.author-posts-h{font-size:20px;margin:6px 0 16px}
/* Autoren-Box am Artikelende */
.author-box{display:flex;gap:16px;align-items:flex-start;margin:30px 0 6px;padding:18px 20px;
  background:var(--surface-2);border:1px solid var(--border);border-radius:14px}
.author-box-ph{flex:0 0 auto}
.author-box-ph img{width:72px;height:72px;border-radius:50%;object-fit:cover;display:block;
  border:2px solid var(--surface)}
.author-box-body{min-width:0}
.author-box-kicker{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.author-box-name{display:inline-block;margin-top:2px;font-family:var(--font-head);font-size:19px;
  font-weight:700;color:var(--heading);text-decoration:none}
.author-box-name:hover{color:var(--link)}
.author-box-role{color:var(--link);font-weight:600;font-size:13.5px;margin-top:1px}
.author-box-bio{margin:8px 0 8px;color:var(--text);font-size:14.5px;line-height:1.6}
.author-box-more{font-size:13.5px;font-weight:600;color:var(--link);text-decoration:none}
.author-box-more:hover{text-decoration:underline}
.author-link{color:inherit;font-weight:600;text-decoration:none;border-bottom:1px solid var(--accent-soft)}
.author-link:hover{color:var(--link);border-bottom-color:var(--accent)}
@media(max-width:560px){
  .author-hero{padding:20px;gap:16px}
  .author-photo{width:88px;height:88px}
  .author-meta h1{font-size:25px}
}

/* Vergleichstabelle: Kauf-Knoepfe nie umbrechen; Angebots-Spalte nimmt nur ihre
   noetige Breite, die Vorteile-Spalte gibt entsprechend nach (und bleibt lesbar). */
.compare-table .btn-buy{white-space:nowrap}
.compare-table th:last-child,.compare-table td:last-child{width:1%}
.compare-table ul{max-width:52ch}

/* =========================================================================
   VIDEO-BAUSTEIN  [video …]
   Startet nie von allein: erst Standbild + Play-Knopf, der Player entsteht
   beim Klick (blog.js). Bei YouTube heisst das zugleich: vorher kein Kontakt
   zu Google. Das Pop-up folgt der Mediathek-Lightbox (heller Milchglas-Grund,
   weisse Karte, Schliessen-Quadrat oben rechts, Titel als Pille darunter).
   ========================================================================= */
.blog-video{margin:1.6em 0}
/* Darstellung wie bei Bildern: halbe Breite, Text fliesst daneben vorbei */
/* Feste Breite (nicht nur max-width): ein Video bringt – anders als ein Bild –
   keine Eigenbreite mit. Sobald der Player das Standbild ersetzt, wuerde der
   Float sonst auf null schrumpfen und das Video verschwinden. */
.blog-video--links{float:left;width:46%;margin:.4em 1.4em .3em 0}
.blog-video--rechts{float:right;width:46%;margin:.4em 0 .3em 1.4em}
@media(max-width:640px){.blog-video--links,.blog-video--rechts{float:none;width:100%;margin:1.6em 0}}
.blog-video figcaption{font-size:13.5px;color:var(--muted);margin-top:7px;line-height:1.5}

.video-wrap{position:relative;display:block}
.video-poster{display:block;width:100%;padding:0;border:0;cursor:pointer;position:relative;
  aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#241c22;line-height:0}
.video-poster img{width:100%;height:100%;object-fit:cover;display:block}
.video-poster::after{content:"";position:absolute;inset:0;
  background:radial-gradient(70% 62% at 50% 45%,rgba(0,0,0,0) 45%,rgba(0,0,0,.42) 100%)}
.video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;
  width:72px;height:72px;border-radius:50%;background:rgba(255,255,255,.95);color:#18181B;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 30px rgba(0,0,0,.32);transition:transform .18s ease}
.video-play svg{margin-left:4px}
.video-poster:hover .video-play{transform:translate(-50%,-50%) scale(1.06)}
.video-poster:focus-visible{outline:2px solid var(--link);outline-offset:3px}

/* nach dem Klick: Player an Ort und Stelle */
.video-inline{position:relative;width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#241c22}
.video-inline iframe,.video-inline video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}

/* Pop-up */
.video-lb{position:fixed;inset:0;z-index:1200;display:none;place-items:center;
  padding:clamp(1rem,3.5vw,2.5rem);background:rgba(233,232,238,.72);
  -webkit-backdrop-filter:blur(18px) saturate(1.05);backdrop-filter:blur(18px) saturate(1.05)}
.video-lb.is-open{display:grid}
.video-lb-in{width:min(100%,1180px);display:flex;flex-direction:column;align-items:center;gap:1.1rem}
.video-lb-card{width:100%;background:#fff;border-radius:14px;padding:10px;
  box-shadow:0 18px 60px -18px rgba(20,15,17,.45)}
.video-lb-frame{position:relative;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#241c22}
.video-lb-frame iframe,.video-lb-frame video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.video-lb-bar{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:center}
.video-lb-ki{background:var(--accent);color:#fff;border-radius:999px;padding:.5rem 1rem;
  font-size:13.5px;font-weight:600;box-shadow:0 6px 20px -8px rgba(20,15,17,.35)}
.video-wrap.is-playing .ki-badge{top:10px;bottom:auto}
.video-lb-cap{background:#fff;color:var(--heading);border-radius:999px;padding:.55rem 1.15rem;
  font-size:14.5px;font-weight:500;box-shadow:0 6px 20px -8px rgba(20,15,17,.35)}
.video-lb-x{position:fixed;top:20px;right:20px;z-index:1210;width:52px;height:52px;border:0;cursor:pointer;
  background:#fff;color:var(--heading);border-radius:14px;font-size:26px;line-height:1;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 22px -8px rgba(20,15,17,.4);transition:transform .16s ease}
.video-lb-x:hover{transform:scale(1.05)}

@media (prefers-reduced-motion:reduce){.video-play,.video-lb-x{transition:none}}


/* Bausteine duerfen NIE neben einem umflossenen Bild/Video stehen – sonst
   wird die Produkt-Box in die Restbreite gequetscht und bricht auseinander.
   clear:both stellt sie sauber darunter. */
.product-box,.compare-table-scroll,.blog-note,.blog-faq{clear:both}

/* =====================================================================
   Magazin-Bento (Startseite, «Neueste Beitraege»): unterschiedlich grosse
   Farbkarten im 5er-Muster. Platz 1 = grosse Karte mit Beschreibung,
   Platz 2 = hohe dunkle Karte ueber zwei Reihen, Rest kompakt.
   Farbwelt bt-p0..bt-p4 haengt an der Haupt-Themenwelt (siehe
   render_bento_card in lib/public_views.php); die ganze Karte ist der Link.
   ===================================================================== */
.bento-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;grid-auto-rows:minmax(215px,auto);gap:16px;margin-bottom:40px}
.bento-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;
  border-radius:var(--radius);padding:22px 22px 20px;overflow:hidden;text-decoration:none;
  box-shadow:0 2px 10px rgba(20,20,25,.05);transition:transform .18s ease,box-shadow .18s ease}
.bento-card:hover{text-decoration:none;transform:translateY(-3px);box-shadow:var(--shadow)}
.bento-card:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion: reduce){
  .bento-card{transition:none}
  .bento-card:hover{transform:none}
}
.bt-eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.bt-title{font-family:var(--font-head);font-weight:600;font-size:clamp(19px,2vw,24px);
  line-height:1.2;margin:0;max-width:76%;color:#18181B;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bt-a{display:grid;grid-template-columns:1.2fr .9fr;grid-template-rows:auto auto auto 1fr;column-gap:18px;align-items:start}
.bt-a .bt-title{font-size:clamp(22px,2.4vw,28px);max-width:100%}
.bt-a .bt-desc{max-width:100%}
.bt-a .bt-img{position:static;grid-column:2;grid-row:1 / 5;width:100%;max-width:none;height:100%;aspect-ratio:auto;align-self:stretch}
.bt-a .bt-cta{grid-column:1;grid-row:4;align-self:end;justify-self:start}
.bt-desc{font-size:14.5px;line-height:1.5;color:rgba(24,24,27,.72);margin:0;max-width:62%;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bt-cta{margin-top:auto;background:#fff;color:var(--accent-strong);font-size:13px;font-weight:700;
  border-radius:999px;padding:7px 16px;box-shadow:0 1px 4px rgba(20,20,25,.12)}
.bento-card:hover .bt-cta{background:var(--accent);color:#fff}
.bt-img{position:absolute;right:14px;bottom:14px;width:42%;max-width:190px;aspect-ratio:4/3;
  object-fit:cover;border-radius:12px;box-shadow:0 6px 18px rgba(20,20,25,.18)}
/* Farbwelten: Pastell-Verlaeufe wie die Magazin-Vorlage, Text bleibt dunkel lesbar */
.bt-p0{background:linear-gradient(135deg,#cdeae1,#a7d8c8)}  .bt-p0 .bt-eyebrow{color:#1f5f4c}
.bt-p1{background:linear-gradient(135deg,#f8d3cc,#f2b4aa)}  .bt-p1 .bt-eyebrow{color:#8f3a2e}
.bt-p2{background:linear-gradient(135deg,#cfe1f4,#a9c6e8)}  .bt-p2 .bt-eyebrow{color:#28517c}
.bt-p3{background:linear-gradient(135deg,#f7d3e3,#efb2cf)}  .bt-p3 .bt-eyebrow{color:#982b62}
.bt-p4{background:linear-gradient(135deg,#ecdfc9,#dcc49f)}  .bt-p4 .bt-eyebrow{color:#775425}
/* Hohe Karte (Platz 2 im Muster): dunkel, weisser Titel, Bild fuellt die Mitte */
.bt-b{grid-row:span 2;background:linear-gradient(160deg,#26262e,#3f3f4c)}
.bt-b .bt-eyebrow{color:#f9a8d4}
.bt-b .bt-title{color:#fff;max-width:100%}
.bt-b .bt-img{position:static;width:100%;max-width:none;aspect-ratio:auto;flex:1;min-height:0;margin:6px 0 12px}
.bt-b .bt-cta{margin-top:0}
@media (max-width:900px){
  .bento-grid{grid-template-columns:1fr 1fr;grid-auto-rows:195px}
}
@media (max-width:600px){
  .bento-grid{grid-template-columns:1fr;grid-auto-rows:auto}
  .bento-card{min-height:175px}
  .bt-b{grid-row:auto;min-height:280px}
  .bt-title,.bt-desc{max-width:100%}
  .bt-img{width:38%}
  /* grosse Karte auf dem Handy stapeln: Text oben, Bild darunter */
  .bt-a{display:flex;flex-direction:column}
  .bt-a .bt-img{position:static;width:100%;max-width:none;height:150px;aspect-ratio:auto;margin:4px 0 12px}
  .bt-a .bt-cta{margin-top:auto;align-self:flex-start}
}
