/*
Theme Name: Software Vergleichen
Theme URI: https://cms.eviere.de/
Author: Redaktion software-vergleichen.de
Description: Maßgeschneidertes Editorial-Magazin-Theme für software-vergleichen.de. Eckiges Layout, schwarze Offset-Schatten, Manrope (selbst-gehostet), redaktionelle Komponenten für den Classic Editor.
Version: 1.0.11
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: software-vergleichen
*/

/* ============================================================
   FONTS — Manrope (Variable, selbst-gehostet, DSGVO-freundlich)
   ============================================================ */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:        #ffffff;
  --surface:   #efece6;
  --surface-2: #dfdbd1;
  --ink:       #000000;
  --ink-2:     #2a2a2a;
  --ink-3:     #6b6b6b;
  --gray:      #9aa0a8;
  --line:      #dad6cd;
  --line-2:    #b8b3a8;
  --slate:     #5a6e84;
  --slate-2:   #3e4d62;
  --taupe:     #8a7d6e;
  --taupe-2:   #6e6357;
  --accent:    #b5654b;
  --accent-2:  #8e4e39;
  --pro:       #15803d;
  --wrap:      1240px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--ink-2);
  letter-spacing: -0.005em; -webkit-font-smoothing: antialiased;
  line-height: 1.55; font-size: 15.5px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font-family: inherit; }
h1, h2, h3, h4 { letter-spacing: -0.025em; color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 1000; }

/* ============================================================
   NAV (slate-2, sticky) — site chrome auf allen Seiten
   ============================================================ */
.nav { background: var(--slate-2); border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 100; }
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 90px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: baseline; gap: 0; font-weight: 800; font-size: 28px; letter-spacing: -0.025em; }
.logo .a { color: #fff; }
.logo .b { color: rgba(255,255,255,0.55); font-weight: 800; }
.logo .tld { color: rgba(255,255,255,0.4); font-weight: 500; font-size: 18px; }
.nav-search { flex: 1; max-width: 420px; position: relative; }
.nav-search input { width: 100%; height: 44px; padding: 0 44px 0 16px; border: 1px solid rgba(255,255,255,0.4); background: transparent; font-size: 14.5px; color: #fff; outline: none; font-weight: 500; }
.nav-search input:focus { background: rgba(0,0,0,0.18); border-color: #fff; }
.nav-search input::placeholder { color: rgba(255,255,255,0.55); }
.nav-search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; display: inline-flex; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; list-style: none; }
.nav-links a { font-weight: 600; font-size: 15.5px; color: rgba(255,255,255,0.78); }
.nav-links a:hover { color: var(--accent); }

/* SUB-NAV — Top-Kategorien Quick-Links */
.subnav { background: var(--surface); border-bottom: 1px solid var(--ink); }
.subnav .wrap { display: flex; gap: 24px; flex-wrap: wrap; padding: 13px 32px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; align-items: center; list-style: none; }
.subnav a { color: var(--ink-2); transition: color .12s; display: inline-flex; align-items: center; gap: 6px; }
.subnav a:hover { color: var(--accent); }
.subnav .hot { background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 800; padding: 2px 6px; letter-spacing: 0.12em; }
.subnav .all { margin-left: auto; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.subnav .all:hover { color: var(--accent); }
.subnav a.active, .subnav .current-menu-item > a, .subnav .current-cat > a { color: var(--accent); }

/* BREADCRUMB */
.crumbs { background: var(--bg); border-bottom: 1px solid var(--line); }
.crumbs .wrap { display: flex; align-items: center; gap: 10px; padding: 14px 32px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--gray); flex-wrap: wrap; }
.crumbs a { color: var(--gray); transition: color .12s; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--line-2); }
.crumbs .here { color: var(--ink); }

/* ============================================================
   HOME — HERO (Magazin-Cover, neuster Beitrag)
   ============================================================ */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-l { display: flex; flex-direction: column; gap: 22px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); flex-wrap: wrap; }
.hero-eyebrow .chip { background: var(--slate-2); color: #fff; padding: 6px 12px; font-weight: 700; }
.hero-l h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); }
.hero-l h1 a { color: inherit; }
.hero-lead { font-size: 19px; color: var(--ink-3); line-height: 1.5; max-width: 50ch; }
.hero-meta { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--gray); flex-wrap: wrap; }
.hero-meta b { color: var(--ink); font-weight: 700; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 14px 22px; font-size: 14.5px; font-weight: 700; align-self: flex-start; transition: background .15s; margin-top: 4px; }
.hero-cta:hover { background: var(--accent); }
.hero-r { position: relative; }
.hero-img { aspect-ratio: 4/3; background-size: cover; background-position: center; border: 1px solid var(--ink); box-shadow: 14px 14px 0 var(--ink); background-color: var(--slate-2); }
.hero-img-cat { position: absolute; top: 22px; left: -12px; background: var(--accent); color: #fff; padding: 9px 16px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

/* AUCH LESENSWERT — Taupe-Block */
.also { background: var(--taupe); color: rgba(255,255,255,0.9); padding: 64px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.also-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 36px; flex-wrap: wrap; }
.also-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.also-title { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -0.025em; line-height: 1; }
.also-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.also-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); transition: background .15s, transform .2s; }
.also-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.also-cat { display: inline-block; align-self: flex-start; padding: 5px 10px; border: 1px solid rgba(255,255,255,0.45); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.also-card h3 { font-size: 18px; font-weight: 700; line-height: 1.25; color: #fff; letter-spacing: -0.02em; }
.also-meta { font-size: 13px; color: rgba(255,255,255,0.65); font-weight: 500; margin-top: auto; padding-top: 8px; }
.also-meta b { color: #fff; font-weight: 700; }

/* SECTION wrapper */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { text-align: center; align-items: center; margin-bottom: 48px; }
.section-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); }
.section-sub { font-size: 18px; color: var(--ink-3); max-width: 56ch; margin: 14px auto 0; line-height: 1.5; }

/* KATEGORIEN-GRID */
.catgrid { display: grid; grid-template-columns: repeat(8, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.cat { padding: 30px 14px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transition: background .15s, color .15s; background: var(--slate-2); color: #fff; }
.cat:hover { background: var(--bg); }
.cat:hover .cat-icon, .cat:hover .cat-label { color: var(--slate-2); }
.cat:hover .cat-icon { transform: translateY(-2px); }
.cat-icon { color: #fff; transition: color .15s, transform .2s; line-height: 0; }
.cat-label { font-size: 16px; font-weight: 700; color: #fff; transition: color .15s; line-height: 1.2; }

/* MAGAZIN — Feed */
.magazin { background: var(--surface); }
.article-feature { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--ink); background: var(--bg); margin-bottom: 40px; box-shadow: 8px 8px 0 var(--ink); }
.article-feature .ph { aspect-ratio: 4/3; background-size: cover; background-position: center; border-right: 1px solid var(--ink); position: relative; background-color: var(--slate-2); }
.article-feature-cat { position: absolute; top: 18px; left: 18px; background: var(--ink); color: #fff; padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.article-feature-body { padding: 38px 44px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.article-feature-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-2); }
.article-feature h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); }
.article-feature p { font-size: 17px; color: var(--ink-3); line-height: 1.55; }
.article-feature-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.byline { font-size: 14px; color: var(--gray); }
.byline b { color: var(--ink); font-weight: 700; }
.read-link { font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; color: var(--ink); }
.read-link:hover { color: var(--slate-2); border-color: var(--slate-2); }

.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.article-card { display: flex; flex-direction: column; gap: 14px; transition: transform .2s; }
.article-card:hover { transform: translateY(-3px); }
.article-ph { aspect-ratio: 4/3; background-size: cover; background-position: center; border: 1px solid var(--ink); position: relative; box-shadow: 4px 4px 0 var(--ink); transition: box-shadow .2s; background-color: var(--slate-2); }
.article-card:hover .article-ph { box-shadow: 6px 6px 0 var(--ink); }
.article-cat { position: absolute; top: 12px; left: 12px; background: var(--bg); color: var(--ink); padding: 5px 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--ink); }
.article-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-2); }
.article-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; color: var(--ink); }
.article-card .article-meta { font-size: 13.5px; color: var(--gray); font-weight: 500; }
.article-card .article-meta b { color: var(--ink); font-weight: 700; }

/* INDEX */
.indexgrid { columns: 3; column-gap: 56px; }
.idx { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); transition: padding-left .2s, color .15s; break-inside: avoid; }
.idx:hover { padding-left: 8px; }
.idx:hover .idx-name { color: var(--accent); }
.idx-name { font-size: 17px; font-weight: 600; color: var(--ink); flex: 1; letter-spacing: -0.01em; transition: color .15s; }
.idx-name .hot, .idx-name .new { display: inline-block; color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: 0.14em; padding: 2px 6px; vertical-align: middle; margin-left: 6px; text-transform: uppercase; }
.idx-name .hot { background: var(--accent); }
.idx-name .new { background: var(--slate-2); }
.idx-cnt { font-size: 12px; font-weight: 700; color: var(--gray); }

/* VERSPRECHEN — Slate-2 */
.promises { background: var(--slate-2); color: #fff; }
.promises h2 { color: #fff; }
.promises .section-sub { color: rgba(255,255,255,0.78); }
.promises .section-eyebrow { color: var(--accent); }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.promise { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 2px solid var(--accent); }
.promise-no { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; }
.promise h3 { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.promise p { font-size: 15.5px; color: rgba(255,255,255,0.85); line-height: 1.55; }

/* ============================================================
   FOOTER — Taupe
   ============================================================ */
.footer { background: var(--taupe); color: rgba(255,255,255,0.9); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 18px; }
.footer a { display: block; font-size: 16px; color: rgba(255,255,255,0.92); padding: 4px 0; font-weight: 500; }
.footer a:hover { color: #fff; }
.footer p { font-size: 16px; color: rgba(255,255,255,0.88); line-height: 1.55; max-width: 380px; }
.footer .brand { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.025em; }
.footer .brand .b { color: rgba(255,255,255,0.55); font-weight: 800; }
.footer .brand .tld { color: rgba(255,255,255,0.4); font-size: 18px; font-weight: 500; margin-left: 4px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 12px; color: rgba(255,255,255,0.65); letter-spacing: 0.14em; text-transform: uppercase; flex-wrap: wrap; }

/* ============================================================
   ARTIKEL (single)
   ============================================================ */
.article-head { padding: 56px 0 8px; text-align: center; }
.article-meta-top { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 15px; font-weight: 500; color: var(--ink-3); margin-bottom: 22px; }
.meta-cat { background: var(--slate-2); color: #fff; padding: 7px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.article-head h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); max-width: 18ch; margin: 0 auto; text-wrap: balance; }
.article-deck { font-size: 20px; line-height: 1.45; color: var(--ink-3); max-width: 52ch; margin: 20px auto 0; text-wrap: pretty; }
.article-meta-row { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin: 28px auto 0; padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); max-width: 720px; font-size: 14.5px; color: var(--ink-2); }
.article-meta-row b { color: var(--ink); font-weight: 700; }
.article-meta-row .dot { width: 4px; height: 4px; background: var(--line-2); border-radius: 50% !important; }

.article-hero { max-width: 1100px; margin: 36px auto 0; padding: 0 32px; }
.article-hero-img { aspect-ratio: 16/8; background-size: cover; background-position: center; border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background-color: var(--slate-2); }
.article-hero-caption { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; text-align: center; max-width: 60ch; margin-left: auto; margin-right: auto; }

.article-body { padding: 64px 0 56px; }
.article-grid { display: grid; grid-template-columns: 1fr min(800px, 100%) 1fr; gap: 0 32px; }
.article-grid > * { grid-column: 2; min-width: 0; /* erlaubt Schrumpfen: ein breites Kind (z. B. nicht-umbrechender <pre>) sprengt sonst die Spalte über das Viewport hinaus und reißt den ganzen Fließtext mit */ }
.article-grid > .full, .article-grid > .alignfull { grid-column: 1 / -1; }
.article-grid > .wide, .article-grid > .alignwide { grid-column: 1 / -1; max-width: 1000px; margin-left: auto; margin-right: auto; }
/* Redaktionelle Komponenten brechen breiter aus als der 680px-Fließtext */
.article-grid > .sv-toc,
.article-grid > .infobox,
.article-grid > .article-author { grid-column: 1 / -1; max-width: 880px; margin-left: auto; margin-right: auto; }
.article-grid > .page-links { grid-column: 2; }

/* Fließtext-Typografie */
.article-content p, .article-content ul, .article-content ol, .article-content blockquote { font-size: 18px; line-height: 1.62; color: var(--ink); text-wrap: pretty; overflow-wrap: break-word; }
.article-content > p { margin-bottom: 1.1em; }
.article-content > p strong { font-weight: 700; }
.article-content a { color: var(--slate-2); border-bottom: 1px solid var(--line-2); transition: border-color .12s; }
.article-content a:hover { border-color: var(--slate-2); }
.article-content h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; color: var(--slate-2); letter-spacing: -0.025em; line-height: 1.12; margin: 56px 0 18px; text-wrap: balance; }
.article-content h3 { font-size: 24px; font-weight: 700; color: var(--ink); margin: 32px 0 12px; letter-spacing: -0.02em; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 1.1em; }
.article-content li { margin-bottom: 0.5em; }
.article-content li::marker { color: var(--accent); }
.article-content img { border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); margin: 12px 0; }
.article-content figure { margin: 32px 0; }
.article-content figcaption, .article-content .wp-caption-text { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; text-align: center; }
/* Pull-Quote — natives <blockquote> aus dem Classic Editor; Quelle als letzte Zeile bzw. <cite>. */
.article-content blockquote { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 22px 0; margin: 48px 0; text-align: center; }
.article-content blockquote p { font-weight: 500; font-size: clamp(22px, 3vw, 26px); line-height: 1.22; color: var(--ink); max-width: 30ch; margin: 0 auto 0.4em; text-wrap: balance; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content blockquote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--gray); }

/* Drop-Cap — NUR manuell per Format „Initial (Drop-Cap)" (.has-drop-cap), nur in Beiträgen.
   Kein automatisches Initial am ersten Absatz mehr. Statische Seiten nutzen .page-body .content,
   dort greift die Regel ohnehin nicht — also dort nie ein Initial. */
.article-content p.has-drop-cap::first-letter {
  font-weight: 800; color: var(--accent); font-size: 5.2em; line-height: 0.82; float: left; margin: 0.08em 0.12em -0.05em 0;
}

/* ── Inhaltsverzeichnis [toc] (Shortcode) ── */
.sv-toc { background: var(--slate); color: #fff; padding: 24px 26px; border: 1px solid var(--slate); box-shadow: 6px 6px 0 var(--ink); margin: 0 auto 40px; }
.sv-toc .lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.sv-toc ul { list-style: none; padding: 0; margin: 0; }
.sv-toc li { padding: 5px 0; display: flex; gap: 10px; align-items: baseline; }
.sv-toc li .n { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 700; width: 22px; flex-shrink: 0; }
.sv-toc li a { font-size: 15px; color: rgba(255,255,255,0.88); }
.sv-toc li a:hover { color: #fff; }

/* ── Native Classic-Editor-Stile (Formats ▾): .infobox, ul.pro, ul.con, pre ──
   Werden in functions.php als style_formats registriert; hier + im editor-style.css
   angesprochen. Pull-Quote = natives blockquote (oben), Methodik = natives pre. */
.article-content .infobox { background: var(--slate-2); color: rgba(255,255,255,0.9); padding: 24px 28px; border: 1px solid var(--slate-2); box-shadow: 6px 6px 0 var(--ink); margin: 36px auto; }
.article-content .infobox > *:first-child { margin-top: 0; }
.article-content .infobox > *:last-child { margin-bottom: 0; }
.article-content .infobox p, .article-content .infobox li { color: rgba(255,255,255,0.9); font-size: 15.5px; }
.article-content .infobox h2, .article-content .infobox h3, .article-content .infobox h4, .article-content .infobox strong { color: #fff; }
.article-content .infobox h3, .article-content .infobox h4 { margin: 0 0 10px; }
.article-content .infobox a { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }
.article-content .infobox ul { padding-left: 20px; margin: 8px 0 0; }
.article-content .infobox li::marker { color: var(--accent); }

/* Pro-/Contra-Liste (Format): je als eckige Karte mit Offset-Schatten + Label.
   Stehen einzeln, daher gestapelt. */
.article-content ul.pro, .article-content ul.con { list-style: none; padding: 20px 22px; margin: 28px 0; border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: var(--bg); }
.article-content ul.pro::before, .article-content ul.con::before { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
.article-content ul.pro::before { content: '▲ Stärken'; color: var(--pro); }
.article-content ul.con::before { content: '▼ Schwächen'; color: var(--accent); }
.article-content ul.pro li, .article-content ul.con li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.article-content ul.pro li::before, .article-content ul.con li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.article-content ul.pro li::before { content: '+'; color: var(--pro); }
.article-content ul.con li::before { content: '\2212'; color: var(--accent); }

.article-content pre { font-family: inherit; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; background: var(--surface); border-left: 3px solid var(--slate-2); padding: 20px 24px; margin: 36px 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ── Mobiler Überlauf-Schutz für Artikel-Inhalte ──
   Verhindert horizontalen Scroll auf Smartphone/Tablet: preformatierte
   Kästen, Code, Tabellen und Embeds dürfen nie breiter werden als die
   Inhaltsspalte. <pre> (Methodik-Kasten) bricht um statt zu überlaufen;
   greift auch, wenn der <pre> in einem .infobox-Format steckt. */
.article-content code, .article-content kbd, .article-content samp { overflow-wrap: anywhere; word-break: break-word; }
.article-content .infobox pre, .article-content pre.infobox { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; }
.article-content iframe, .article-content video, .article-content embed, .article-content object { max-width: 100%; }
/* Letzte Absicherung gegen horizontalen Überlauf auf Einzelbeiträgen — z. B.
   Social-Share-Buttons (Plugin-Markup), die die Seitenpolsterung ignorieren.
   Bewusst NUR auf .single: die Elementor-Startseite (full-width-Sektionen) und
   die sticky Nav/Subnav liegen außerhalb von #content bzw. sind nicht .single,
   bleiben also unberührt. clip (statt hidden) erzeugt keinen Scroll-Container
   und schneidet die theme-eigenen Offset-Schatten nicht ab (die sitzen in der
   18px-Polsterung). */
body.single #content { overflow-x: clip; }

/* Autoren-Bio */
.article-author { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; padding-top: 22px; margin: 56px auto 0; border-top: 2px solid var(--ink); }
.author-avatar { width: 72px; height: 72px; background: var(--surface); border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: var(--ink); overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-author h4 { font-size: 18px; font-weight: 800; color: var(--ink); }
.article-author .role { font-size: 13px; color: var(--slate-2); font-weight: 600; margin-top: 2px; }
.article-author p { font-size: 14px; color: var(--ink-3); margin-top: 8px; line-height: 1.55; max-width: 60ch; }

/* Verwandte Artikel */
.related { background: var(--surface); border-top: 2px solid var(--ink); padding: 64px 0; }
.related-head { text-align: center; margin-bottom: 40px; }
.related-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 14px; }
.related h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }

/* ============================================================
   ARCHIV / SUCHE / BLOG-INDEX
   ============================================================ */
.archive-head { padding: 56px 0 44px; border-bottom: 1px solid var(--ink); }
.archive-head h1 { font-size: clamp(40px, 5vw, 58px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); }
.archive-head .lead { font-size: 18px; color: var(--ink-3); line-height: 1.6; max-width: 60ch; margin-top: 18px; }
.archive-body { padding: 8px 0 72px; }

/* Post-Liste (gleichwertig, untereinander).
   WICHTIG: konsequent unter .posts scopen — die generische Klasse `post`
   (von post_class()) sitzt sonst auch auf <article class="single-article post">
   und würde den Einzelbeitrag zum 300px-Grid zusammenstauchen. */
.posts { display: flex; flex-direction: column; }
.posts .post { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); }
.posts .post:last-child { border-bottom: none; }
.post-ph { aspect-ratio: 16/10; background-size: cover; background-position: center; border: 1px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transition: box-shadow .2s; background-color: var(--slate-2); }
.posts .post:hover .post-ph { box-shadow: 7px 7px 0 var(--ink); }
.post-body { display: flex; flex-direction: column; gap: 12px; }
.posts .post h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.14; color: var(--ink); transition: color .15s; }
.posts .post:hover h3 { color: var(--slate-2); }
.post-excerpt { font-size: 16px; color: var(--ink-3); line-height: 1.55; max-width: 62ch; }
.post-meta { font-size: 13.5px; color: var(--gray); font-weight: 500; }
.post-meta b { color: var(--ink); font-weight: 700; }
.archive-empty { padding: 48px 0; font-size: 18px; color: var(--ink-3); }

/* Pagination (the_posts_pagination / paginate_links) */
.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 46px; height: 46px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 700; transition: all .12s; }
.pagination a.page-numbers:hover { background: var(--surface); }
.pagination .page-numbers.current { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--accent); }
.pagination .page-numbers.dots { min-width: 0; border: none; background: none; color: var(--gray); font-weight: 800; }
.pagination .page-numbers.prev, .pagination .page-numbers.next { font-size: 13px; letter-spacing: 0.04em; }

/* ============================================================
   STATISCHE SEITEN (page.php) — Seitenkopf + Content-Bereich
   Eyebrow = Post-Meta sv_eyebrow, Lead = Auszug. Content bewusst nur
   Basis-Tags: h2, h3, p, strong, em, a, ul, ol, li, blockquote, hr.
   ============================================================ */
.page-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.page-head .wrap { padding-top: 22px; padding-bottom: 0; }
.page-head .crumbs { background: none; border: 0; padding: 0; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); flex-wrap: wrap; }
.page-head .crumbs a { color: var(--ink-3); }
.page-head .crumbs a:hover { color: var(--accent); }
.page-head .crumbs .sep { color: var(--line-2); }
.page-head .crumbs .here { color: var(--ink); }
.page-head .eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-top: 26px; }
.page-head h1 { font-size: clamp(40px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.02; margin: 26px 0 18px; max-width: 18ch; }
.page-head .lead { font-size: 19px; color: var(--ink-3); line-height: 1.5; max-width: 56ch; padding-bottom: 40px; }

.page-body { padding: 56px 0 88px; }
.page-body .content { max-width: 720px; }
.page-body .content > * + * { margin-top: 22px; }
.page-body .content h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; color: var(--slate-2); line-height: 1.12; margin-top: 56px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.page-body .content h2:first-child { margin-top: 0; }
.page-body .content h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.25; margin-top: 36px; }
.page-body .content h2 + h3 { margin-top: 24px; }
.page-body .content p { font-size: 17.5px; line-height: 1.62; color: var(--ink); max-width: 65ch; }
.page-body .content strong, .page-body .content b { font-weight: 800; color: var(--ink); }
.page-body .content em, .page-body .content i { font-style: italic; }
.page-body .content a { color: var(--slate-2); font-weight: 600; border-bottom: 1px solid var(--line-2); transition: color .12s, border-color .12s; }
.page-body .content a:hover { color: var(--accent); border-color: var(--accent); }
.page-body .content ul, .page-body .content ol { padding-left: 24px; max-width: 65ch; }
.page-body .content li { font-size: 17.5px; line-height: 1.6; color: var(--ink); margin-top: 8px; }
.page-body .content li::marker { color: var(--slate-2); font-weight: 700; }
.page-body .content ul ul, .page-body .content ol ol, .page-body .content ul ol, .page-body .content ol ul { margin-top: 8px; }
.page-body .content blockquote { border-left: 3px solid var(--slate-2); padding: 4px 0 4px 24px; margin-top: 28px; color: var(--ink-2); font-size: 19px; line-height: 1.5; font-weight: 500; }
.page-body .content blockquote p { font-size: inherit; color: inherit; }
.page-body .content hr { border: none; border-top: 1px solid var(--line); margin: 44px 0; }
/* Mobile Variante (lt. Smartphone-Mockup): kompaktere Typografie/Abstände. */
@media (max-width: 720px) {
  .page-head .wrap { padding-top: 22px; }
  .page-head .crumbs { font-size: 10px; gap: 8px; }
  .page-head .eyebrow { font-size: 10.5px; margin-top: 22px; }
  .page-head h1 { font-size: 32px; line-height: 1.04; margin: 12px 0; }
  .page-head .lead { font-size: 15px; padding-bottom: 30px; }
  .page-body { padding: 30px 0 40px; }
  .page-body .content > * + * { margin-top: 16px; }
  .page-body .content h2 { font-size: 21px; margin-top: 38px; padding-bottom: 9px; }
  .page-body .content h3 { font-size: 17px; margin-top: 26px; }
  .page-body .content h2 + h3 { margin-top: 18px; }
  .page-body .content p, .page-body .content li { font-size: 15px; }
  .page-body .content blockquote { font-size: 16px; padding: 2px 0 2px 18px; margin-top: 22px; }
  .page-body .content a { word-break: break-word; }
  .page-body .content hr { margin: 32px 0; }
}

/* ============================================================
   MOBILE NAV — Off-Canvas-Drawer (lt. Smartphone-Vorlage)
   Markup in header.php, Toggle in assets/js/nav-drawer.js. Werte aus
   dem Mockup (.m-drawer …) auf Theme-Tokens portiert. Der Hamburger
   (.nav-toggle) erscheint erst unter dem Breakpoint, an dem .nav-links
   ausgeblendet werden (s. RESPONSIVE, ≤1024px). Backdrop/Drawer liegen
   per position:fixed über der sticky .nav (z-index 100).
   ============================================================ */
.nav-toggle { display: none; width: 38px; height: 38px; margin-left: auto; align-items: center; justify-content: center; padding: 0; color: #fff; background: transparent; border: 0; cursor: pointer; }
.nav-toggle svg { display: block; }
.nav-toggle:hover { color: var(--accent); }
body.nav-drawer-open { overflow: hidden; }

.nav-drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1090; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.nav-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.nav-drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(82%, 400px); background: var(--surface); z-index: 1100; transform: translateX(100%); visibility: hidden; transition: transform .3s cubic-bezier(.22,.61,.36,1), visibility .3s; display: flex; flex-direction: column; border-left: 1px solid var(--ink); }
.nav-drawer.open { transform: translateX(0); visibility: visible; }

.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--slate-2); color: #fff; border-bottom: 1px solid var(--ink); }
.nav-drawer-head .logo { font-size: 20px; }
.nav-drawer-head .logo .tld { font-size: 14px; }
.nav-drawer-close { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0; color: #fff; background: transparent; border: 0; cursor: pointer; }
.nav-drawer-close svg { display: block; }

.nav-drawer-search { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.nav-drawer-search-inner { position: relative; }
.nav-drawer-search input { width: 100%; height: 44px; padding: 0 44px 0 14px; border: 1px solid var(--ink); background: var(--bg); font-size: 14px; font-weight: 500; color: var(--ink); outline: none; }
.nav-drawer-search input:focus { border-color: var(--slate-2); }
.nav-drawer-search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: inline-flex; padding: 6px; color: var(--ink); background: none; border: 0; cursor: pointer; }

.nav-drawer-body { flex: 1; overflow: auto; padding: 18px 0 24px; }
.nav-drawer-sec { padding: 6px 18px 14px; }
.nav-drawer-sec h4 { font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.nav-drawer-sec ul { list-style: none; margin: 0; padding: 0; }
.nav-drawer-sec a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav-drawer-sec li:last-child a { border-bottom: 0; }
.nav-drawer-sec a:hover { color: var(--accent); }
.nav-drawer-sec .current-menu-item > a, .nav-drawer-sec .current-cat > a { color: var(--accent); }
.nav-drawer-sec .hot { background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 5px; margin-left: 8px; }
.nav-drawer-foot { padding: 18px; border-top: 1px solid var(--line); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-img { aspect-ratio: 4/3; }
  .also-grid { grid-template-columns: 1fr 1fr; }
  .catgrid { grid-template-columns: repeat(4, 1fr); }
  .articles, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .indexgrid { columns: 2; }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-feature { grid-template-columns: 1fr; }
  .article-feature .ph { border-right: none; border-bottom: 1px solid var(--ink); aspect-ratio: 16/9; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .subnav .wrap { font-size: 11.5px; gap: 16px; }
  .nav .wrap { gap: 16px; }
  .logo { font-size: 24px; }
  .logo .tld { font-size: 16px; }
  .posts .post { grid-template-columns: 240px 1fr; gap: 28px; }
  /* Artikel (single) — Tablet */
  .article-hero { padding: 0 24px; }
  .article-hero-img { aspect-ratio: 16/9; }
  .article-body { padding: 48px 0 48px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .catgrid { grid-template-columns: repeat(2, 1fr); }
  .articles, .footer-grid, .related-grid { grid-template-columns: 1fr; }
  .indexgrid, .promise-grid { columns: auto; grid-template-columns: 1fr; }
  .also-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 32px; }
  .nav-search { display: none; }
  .article-author { grid-template-columns: 1fr; }
  /* Subheader (.subnav) als horizontal scrollbarer Kategorie-Strip — analog
     zur Mobil-Vorlage (.m-subnav): eine Reihe, kein Umbruch, Scrollbar verborgen. */
  .subnav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav .wrap { flex-wrap: nowrap; width: max-content; min-width: 100%; max-width: none; margin: 0; padding: 12px 18px; gap: 18px; font-size: 11.5px; white-space: nowrap; }
  .subnav .all { margin-left: 0; padding-right: 4px; }
  .posts .post { grid-template-columns: 1fr; gap: 16px; }
  .post-ph { aspect-ratio: 16/9; }
  /* Artikel (single) — Mobil */
  .article-head { padding: 40px 0 4px; }
  .article-head h1 { font-size: clamp(30px, 8vw, 40px); }
  .article-deck { font-size: 18px; }
  .article-hero { padding: 0 18px; margin-top: 24px; }
  .article-hero-img { aspect-ratio: 4/3; box-shadow: 6px 6px 0 var(--ink); }
  .article-body { padding: 40px 0 44px; }
  .article-content p, .article-content ul, .article-content ol, .article-content blockquote { font-size: 17px; }
  .article-content h2 { margin-top: 40px; }
  .related { padding: 48px 0; }
  /* Lese-Grid auf Mobil zu einer Spalte kollabieren: unter ~800px ist die
     Mittelspalte ohnehin 100%. Block-Layout umgeht die Grid-Intrinsic-Sizing-
     Falle, bei der min(800px,100%) den Fließtext breiter als das Viewport
     umbrechen ließ. Kinder werden automatisch vollbreite Blöcke. */
  .article-grid { display: block; }
}

/* ============================================================
   ELEMENTOR-KOMPATIBILITÄT — Heading-Widgets neutralisieren
   Elementors globales Kit legt eigene Stile (Kit-Blau, zentrierte
   Ausrichtung) mit hoher Spezifität auf .elementor-heading-title und
   schlägt damit unser Theme-CSS. Statt Werte zu doppeln, lassen wir
   den Titel die Werte vom umschließenden Kontext ERBEN — so gewinnen
   sowohl Descendant-Regeln (.section h2) als auch die Wrapper-Klassen
   (.section-eyebrow / .section-sub / .also-title …):
     - color       → erbt: weiße/Akzent-Headings am Wrapper bleiben korrekt,
                     bare Section-Headings folgen der Heading-Farbe.
     - text-align  → erbt: zentriert in .section-head, links in .also-head.
     - font-family → erbt: Manrope vom <body>, nie Elementors Default-Font.
   Bewusst NICHT zurückgesetzt: font-size / font-weight / letter-spacing /
   line-height — die setzt das Theme (z. B. .section h2) gezielt; ein Reset
   würde die Größe/Schnitt brechen. Der body-Präfix hebt die Spezifität auf
   (0,2,1) > Kit (0,2,0), damit der Block unabhängig von der Ladereihenfolge
   gewinnt. Falls in der Live-Vorschau doch Größe/Gewicht vom Kit überschrieben
   werden, hier um die betroffene Eigenschaft (als inherit) erweitern.
   ============================================================ */
body .elementor-widget-heading .elementor-heading-title {
  color: inherit;
  text-align: inherit;
  font-family: inherit;
}

/* ============================================================
   REDAKTIONS-WUNSCH (2026-06) — blaue Sublabels im Magazin aus
   „Beliebte Vergleichsartikel" ausblenden. Betrifft die slate-2
   Eyebrows der Feature- und Karten-Beiträge (z. B. „Großer Test ·
   Magazin", „Datenschutz-Check"). Bewusst auf .magazin begrenzt,
   damit dieselben Eyebrows in Archiven/verwandten Artikeln erhalten
   bleiben. Soll es überall weg, .magazin-Präfix entfernen.
   ============================================================ */
.magazin .article-feature-eyebrow,
.magazin .article-eyebrow { display: none; }
