/* ============================================================
   topgraz.at - Stylesheet
   Designsystem von topwien.at übernommen, Akzent Steiermark-Grün
   statt Wien-Rot (gleiche Kontraststufe: 5,4:1 gegen Weiß).
   ============================================================ */

:root {
  --color-brand: #1f7a3a;
  --color-brand-dark: #155c2b;
  --color-text: #171717;
  --color-muted: #666666;
  --color-soft: #faf8f5;
  --color-soft-brand: #eef7f0;
  --color-border: #e8e3df;
  --color-white: #ffffff;

  --font-heading: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --header-h: 120px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(23, 23, 23, 0.04);
  --shadow: 0 6px 20px rgba(23, 23, 23, 0.06);
  --shadow-md: 0 12px 32px rgba(23, 23, 23, 0.10);

  --gap: 20px;
  --section-gap: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.12;
  margin: 0 0 0.4em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

/* Nie im Wort trennen (globale Regel 7.11) */
html, body, h1, h2, h3, h4, h5, h6, p, li, td, th, a, span {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
/* Überschriften: "manual" statt "none". Beides trennt nie automatisch, aber nur
   "manual" beachtet die gezielt gesetzten &shy; aus TG_TRENNSTELLEN - mit "none"
   ignoriert der Browser sie laut CSS-Spezifikation, und lange Komposita wie
   "Pensionsversicherungsanstalt" laufen am Handy über den Rand. */
h1, h2, h3, h4, .card-title, .related-title {
  hyphens: manual;
}

/* ---------- Hilfsklassen ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin: 0 0 0.5em;
}

.link-arrow {
  color: var(--color-brand);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.link-arrow:hover { color: var(--color-brand-dark); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--color-brand); color: #fff; padding: 10px 16px;
}
.skiplink:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 22px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--color-brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-brand-dark); box-shadow: var(--shadow); }
.btn-ghost {
  background: #fff; color: var(--color-text);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--color-brand); color: var(--color-brand); }

:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Kopfzeile
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.logo { display: inline-flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-word {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-text);
}
.logo-accent { color: var(--color-brand); }
.logo-sub { font-size: 0.69rem; color: var(--color-text); margin-top: 2px; white-space: nowrap; }

.header-search {
  flex: 1;
  max-width: 420px;
  margin-left: auto;
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-soft);
  padding: 0 6px 0 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.header-search:focus-within { border-color: var(--color-brand); background: #fff; }
.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 0;
  color: var(--color-text);
}
.header-search input:focus { outline: none; }
.header-search button {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  display: inline-flex;
  padding: 6px;
  border-radius: 50%;
}
.header-search button:hover { color: var(--color-brand); }

.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--color-text);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { background: var(--color-soft); color: var(--color-brand); }
.burger { display: none; }

.nav-row { border-top: 1px solid var(--color-border); }
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 46px;
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a { color: var(--color-text); white-space: nowrap; transition: color 0.15s ease; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--color-brand); }

.mobile-menu { border-top: 1px solid var(--color-border); background: #fff; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 10px 18px 18px; }
.mobile-menu a {
  padding: 13px 6px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
  font-size: 1.02rem;
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu form { display: flex; margin: 6px 0 10px; }
.mobile-menu input {
  flex: 1; min-width: 0; font: inherit; padding: 11px 14px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.mobile-menu form button {
  border: 0; background: var(--color-brand); color: #fff; padding: 0 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; display: inline-flex; align-items: center;
}

/* ============================================================
   Footer und mobile Leiste
   ============================================================ */
.site-footer {
  background: #171717;
  color: #cfcccc;
  margin-top: var(--section-gap);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 44px 40px;
}
.footer-logo { font-family: var(--font-body); font-weight: 800; font-size: 1.4rem; color: #fff; }
.footer-logo span { color: #6fcf8a; }
.footer-brand p { margin: 12px 0 18px; font-size: 0.9rem; color: #a3a0a0; max-width: 260px; }
.footer-col h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 0.9rem; color: #b7b4b4; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 18px; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #8f8c8c; text-align: center; }

.bottom-nav { display: none; }

/* ============================================================
   Seitengerüst mit Seitenleiste
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  padding-top: 34px;
}
.page-main { min-width: 0; }
.page-sidebar { min-width: 0; }
.page-section { margin-bottom: 52px; scroll-margin-top: calc(var(--header-h) + 16px); }
.page-section > h2 { margin-bottom: 22px; }

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 22px;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.breadcrumb a:hover { color: var(--color-brand); }
.breadcrumb li[aria-current] { color: var(--color-text); }

/* ---------- Guide-Kopf ---------- */
.guide-intro {
  font-size: 1.2rem;
  color: #3d3d3d;
  line-height: 1.5;
  max-width: 760px;
  margin: 0 0 24px;
}
.guide-intro a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; }
.guide-hero-media {
  margin: 0 0 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: var(--color-soft);
}
.guide-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 26px; margin: 0 0 8px; padding-bottom: 8px; }
.guide-meta div { display: flex; align-items: center; gap: 8px; }
.guide-meta dt { margin: 0; color: var(--color-brand); display: inline-flex; }
.guide-meta dd { margin: 0; font-size: 0.92rem; color: var(--color-muted); }

.guide-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 40px; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

/* ---------- Ranking-Karte ---------- */
.ranking-card {
  display: grid;
  grid-template-columns: 46px 1fr 190px;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: box-shadow 0.18s ease;
}
.ranking-card:hover { box-shadow: var(--shadow); }
.ranking-rank-solo {
  align-self: start;
  width: 46px;
  height: 46px;
  background: var(--color-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: var(--radius);
}
.ranking-name { margin: 0 0 6px; font-size: 1.3rem; }
.ranking-desc { margin: 0 0 12px; color: #4a4a4a; font-size: 0.94rem; line-height: 1.5; }
.ranking-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.ranking-facts li { display: flex; align-items: center; gap: 7px; font-size: 0.88rem; color: var(--color-muted); }
.ranking-facts svg { color: var(--color-brand); flex-shrink: 0; }
.ranking-facts strong { color: var(--color-text); font-weight: 600; margin-right: 4px; }
.ranking-price { color: var(--color-text); font-weight: 600; letter-spacing: 1px; }
.ranking-phone { color: var(--color-muted); }
.ranking-phone:hover { color: var(--color-brand); }
.ranking-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.ranking-cta { width: 100%; }
.ranking-sub { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.ranking-fav {
  background: transparent;
  border: 0;
  color: var(--color-muted);
  display: inline-flex;
  padding: 4px;
  transition: color 0.15s ease;
}
.ranking-fav:hover, .ranking-fav.is-fav { color: var(--color-brand); }
.ranking-fav.is-fav svg { fill: currentColor; }

/* ---------- Vergleichstabelle ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.comparison-table th,
.comparison-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--color-border); }
.comparison-table thead th {
  background: var(--color-soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { border-bottom: 0; }
/* Bewusst kein display:flex auf der Zelle: Dann ist sie keine Tabellenzelle mehr,
   wächst bei zweizeiligen Nachbarzellen nicht mit, und die Trennlinien versetzen sich. */
.comparison-table tbody th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}
.comparison-table td { vertical-align: middle; }
.comparison-table tbody tr:hover { background: var(--color-soft); }
.rank-dot {
  display: inline-grid;
  vertical-align: middle;
  margin-right: 10px;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--color-soft-brand);
  color: var(--color-brand);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cmp-price { letter-spacing: 1px; font-weight: 600; white-space: nowrap; }
.cmp-na { letter-spacing: normal; font-weight: 400; color: var(--color-muted); }
.cmp-text { font-weight: 500; }

/* ---------- Karte ---------- */
.map-wrap {
  /* Eigener Stapelkontext: Leaflet setzt seine Ebenen auf z-index 400-700
     und würde sonst beim Scrollen über die klebende Kopfzeile (z-index 100) laufen. */
  position: relative;
  z-index: 0;
  isolation: isolate;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.guide-map { height: 440px; background: var(--color-soft); }
.map-marker span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.map-note { font-size: 0.82rem; color: var(--color-muted); margin: 10px 2px 0; }

/* ---------- Empfehlungen nach Anlass ---------- */
.occasion-text { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.occasion-entry h3 { font-size: 1.2rem; margin: 0 0 6px; }
.occasion-entry p { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.occasion-entry a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--color-muted); display: inline-flex; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--color-brand); }
.faq-answer { padding: 0 18px 18px; color: var(--color-muted); font-size: 0.95rem; line-height: 1.55; }
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Passend dazu ---------- */
.related-guides { margin: 0 0 40px; }
.related-guides > h2 { margin-bottom: 18px; }
.related-guides ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.related-guides a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.related-guides a:hover { box-shadow: var(--shadow); border-color: var(--color-brand); }
.related-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-brand);
}
.related-title { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 700; line-height: 1.3; }

/* ---------- Seitenleiste ---------- */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.sidebar-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 14px;
}
.toc { border-left: 2px solid var(--color-border); padding-left: 16px; }
.toc ul, .cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toc a, .cat-list a { font-size: 0.92rem; color: var(--color-text); }
.toc a:hover, .cat-list a:hover { color: var(--color-brand); }
.sidebar-box {
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* ============================================================
   Karten-Raster (Startseite, Kategorien, Suche)
   ============================================================ */
.section { padding-block: var(--section-gap); }
.section-soft { background: var(--color-soft); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--color-muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { aspect-ratio: 16 / 10; background: var(--color-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-brand);
}
.card-title { font-family: var(--font-heading); font-size: 1.12rem; font-weight: 700; line-height: 1.28; margin: 0; }
.card-text { font-size: 0.9rem; color: var(--color-muted); line-height: 1.5; margin: 0; }

/* Kategorie-Kacheln */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
  gap: 14px;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 22px 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.cat-tile svg { color: var(--color-brand); }
.cat-tile:hover { border-color: var(--color-brand); color: var(--color-brand); box-shadow: var(--shadow); }
.cat-tile small { font-weight: 500; font-size: 0.78rem; color: var(--color-muted); }

/* Kompakte Textliste (Service-Seiten) */
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
}
.link-list li { border-bottom: 1px solid var(--color-border); }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  font-weight: 500;
}
.link-list a:hover { color: var(--color-brand); }
.link-list svg { color: var(--color-muted); flex-shrink: 0; }

/* Startseiten-Kopf */
.home-hero { padding-block: 56px 40px; }
.home-hero h1 { max-width: 880px; }
.home-hero .lead { font-size: 1.22rem; color: #3d3d3d; max-width: 680px; margin: 0 0 28px; }
.home-search {
  display: flex;
  max-width: 620px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 6px 6px 6px 22px;
}
.home-search input {
  flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.02rem; padding: 10px 0; background: transparent;
}
.home-search input:focus { outline: none; }
.home-search button {
  border: 0; border-radius: 999px; background: var(--color-brand); color: #fff;
  padding: 0 22px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.home-search button:hover { background: var(--color-brand-dark); }

/* Blättern */
.pagination { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }

/* ============================================================
   Fließtext (Service-Seiten, Ratgeber, Rechtliches)
   ============================================================ */
.article-title { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; }
.article-meta { font-size: 0.9rem; color: var(--color-muted); margin: 0 0 24px; }
.article-hero {
  margin: 0 0 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1200 / 470;
  background: var(--color-soft);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.prose { font-size: 1.05rem; line-height: 1.72; max-width: 780px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 1.8em 0 0.6em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { font-size: 1.25rem; margin: 1.5em 0 0.5em; }
.prose h4 { font-size: 1.08rem; margin: 1.3em 0 0.4em; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--color-brand-dark); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--color-brand); }
.prose strong { font-weight: 650; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: 0.85rem; color: var(--color-muted); margin-top: 8px; }
.prose blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--color-brand);
  background: var(--color-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose hr { border: 0; border-top: 1px solid var(--color-border); margin: 2em 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0 0 1.4em;
  display: block;
  overflow-x: auto;
}
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.prose thead th {
  background: var(--color-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.prose .wp-block-table { margin: 0 0 1.4em; overflow-x: auto; }

/* Altbestand aus WordPress: feste Breiten in Inline-Styles und Attributen */
.prose iframe { max-width: 100%; }
.prose figure,
.prose .wp-caption,
.prose [style*="width"] { max-width: 100% !important; }
.prose img { height: auto; }
/* URLs und E-Mail-Adressen als Linktext dürfen umbrechen, wenn sie sonst
   über den Rand liefen. Normale Wörter passen und brechen dadurch nicht. */
.prose a { overflow-wrap: anywhere; }
.prose .topgraz-li-lead { display: inline; }

/* FAQ-Akkordeon aus dem Altbestand */
.prose .topgraz-faq { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1.4em; }
.prose .topgraz-faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.prose .topgraz-faq__q { cursor: pointer; padding: 16px 18px; font-weight: 600; }
.prose .topgraz-faq__a { padding: 0 18px 16px; color: var(--color-muted); }

/* ============================================================
   Responsiv
   ============================================================ */
@media (max-width: 1199px) {
  .main-nav { gap: 12px; }
}
@media (max-width: 1099px) {
  .main-nav { font-size: 0.875rem; }
}

@media (max-width: 1023px) {
  :root { --header-h: 67px; }
  .nav-row { display: none; }
  .header-search { display: none; }
  .header-actions { margin-left: auto; }
  .burger { display: inline-flex; }
  .header-inner { height: 66px; }

  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { display: none; }

  .ranking-card {
    grid-template-columns: 46px 1fr;
    grid-template-areas: 'media content' 'media actions';
    align-items: start;
  }
  .ranking-rank-solo { grid-area: media; }
  .ranking-content { grid-area: content; }
  .ranking-actions { grid-area: actions; flex-direction: row; align-items: center; margin-top: 6px; }
  .ranking-cta { width: auto; }
  .ranking-sub { margin-left: auto; }

  .card-grid, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --section-gap: 44px; }
  body { font-size: 16px; padding-bottom: 64px; }
  .container { padding-inline: 18px; }

  .logo-word { font-size: 1.6rem; }
  .logo-sub { font-size: 0.62rem; }

  .page-layout { padding-top: 20px; }
  .page-section { margin-bottom: 40px; }
  .guide-intro { font-size: 1.05rem; }
  .guide-hero-media { aspect-ratio: 16 / 10; }
  .guide-meta { gap: 8px 18px; }
  .guide-meta dd { font-size: 0.82rem; }
  .guide-tags { margin: 20px 0 32px; }

  .ranking-card {
    grid-template-columns: 40px 1fr;
    grid-template-areas: 'media content' 'actions actions';
    gap: 14px;
    padding: 12px;
  }
  .ranking-rank-solo { width: 40px; height: 40px; font-size: 1.05rem; }
  .ranking-name { font-size: 1.12rem; }
  .ranking-desc { font-size: 0.88rem; margin-bottom: 10px; }
  .ranking-actions { margin-top: 4px; }
  .ranking-cta { flex: 1; }

  .guide-map { height: 340px; }
  .related-guides ul { grid-template-columns: 1fr; }

  .card-grid, .card-grid--4 { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-list { grid-template-columns: 1fr; }

  .home-hero { padding-block: 32px 26px; }
  .home-hero .lead { font-size: 1.05rem; }
  .home-search button span { display: none; }
  .home-search button { padding: 0 16px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }

  .prose { font-size: 1rem; }
  .site-footer { margin-bottom: 64px; }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(var(--n, 5), 1fr);
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 0 8px;
    font-size: 0.66rem;
    color: var(--color-muted);
  }
  .bottom-nav-item.active { color: var(--color-brand); }
}
