/* ============================================================
   mieterhoehung.at – Ratgeber
   Dieselben Marken-Tokens wie die Startseite (deren Stil steht
   inline in index.html, weil die Seite ohne zweiten Abruf
   auskommen soll). Hier lohnt das eigene Blatt: elf Seiten
   teilen es sich.
   ============================================================ */
:root {
  --ink: #0c0c22;
  --navy: #1b1c40;
  --navy2: #16173a;
  --gold: #b99552;
  --gold-l: #cbab6b;
  --gold-d: #93753a;
  --paper: #fafaf9;
  --paper2: #f2f0eb;
  --card: #ffffff;
  --line: #e3e1da;
  --hair: rgba(185, 149, 82, .35);
  --text: #2b2b3d;
  --muted: #63636e;
}
@font-face {
  font-family: "Inter";
  src: url("../inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--paper); color: var(--text); line-height: 1.7; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.wrap-n { width: min(760px, 100% - 48px); margin-inline: auto; }
.sec { padding: clamp(56px, 7vw, 100px) 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-d); }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--gold); }
.h2 { font-size: clamp(28px, 3.8vw, 46px); font-weight: 800; letter-spacing: -.025em; line-height: 1.06; color: var(--navy); margin: 14px 0 0; }
.h2 em { font-style: normal; color: var(--gold-d); }
.rule { display: block; width: 56px; height: 1px; background: var(--gold); margin: 24px 0 0; }
.lead { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.7; color: var(--muted); max-width: 64ch; margin-top: 22px; }
.sechead { max-width: 820px; }

/* Kopf */
.head { background: var(--ink); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.head .mark { color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -.01em; line-height: 1.2; }
.head .mark a { color: #fff; text-decoration: none; }
.head .mark span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-l); margin-top: 3px; }
.head nav { display: flex; gap: 26px; align-items: center; }
.head nav a { color: rgba(255,255,255,.82); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.head nav a:hover { color: #fff; }
.head nav a.pill { border: 1px solid rgba(255,255,255,.45); padding: 11px 20px; border-radius: 999px; color: #fff; white-space: nowrap; }
.head nav a.pill:hover { background: #fff; color: var(--navy); }

/* Übersicht */
.kopfsec { padding-bottom: clamp(32px, 4vw, 56px); }
.kopfsec h1 { margin: 14px 0 0; }
.karten { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 44px; }
.karten.drei { grid-template-columns: repeat(3, 1fr); }
a.karte { background: var(--card); padding: 30px 28px 26px; display: flex; flex-direction: column; text-decoration: none; transition: background .25s; }
a.karte:hover { background: #fff; }
a.karte .nr { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); margin: 0; }
a.karte h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin: 12px 0 10px; line-height: 1.25; }
a.karte p { font-size: 15px; color: var(--muted); line-height: 1.65; margin: 0; }
a.karte .mehr { margin-top: auto; padding-top: 22px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); display: inline-flex; gap: 8px; }
a.karte .mehr i { font-style: normal; transition: transform .25s; }
a.karte:hover .mehr { color: var(--gold-d); }
a.karte:hover .mehr i { transform: translateX(4px); }

/* Beitrag */
.beitrag { padding: clamp(44px, 6vw, 76px) 0 clamp(32px, 4vw, 56px); }
.beitrag h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--navy); margin: 14px 0 0; }
.beitrag .teaser { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: var(--muted); margin-top: 22px; }
.beitrag .meta { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

.inhalt { margin-top: 34px; padding: 22px 26px 24px; background: var(--paper2); }
.inhalt ol { margin: 12px 0 0; padding-left: 20px; }
.inhalt li { font-size: 15px; line-height: 1.8; }
.inhalt a { color: var(--navy); text-decoration: none; }
.inhalt a:hover { color: var(--gold-d); text-decoration: underline; }

.text { margin-top: 40px; }
.text h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.025em; color: var(--navy); margin: 48px 0 14px; line-height: 1.2; scroll-margin-top: 24px; }
.text h3 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; color: var(--navy); margin: 32px 0 10px; scroll-margin-top: 24px; }
.text p { margin-bottom: 16px; }
.text ul, .text ol { margin: 0 0 18px; padding-left: 22px; }
.text li { margin-bottom: 9px; }
.text a { color: var(--gold-d); }
.text code { background: var(--paper2); padding: 1px 6px; border-radius: 3px; font-size: .92em; }
.text strong { color: var(--navy); }

.kasten { margin: 30px 0; padding: 24px 26px; background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--gold); }
.kasten h3 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-d); }
.kasten p:last-child { margin-bottom: 0; }
.kasten.achtung { border-left-color: #a2442e; background: #f8ece7; }
.kasten.achtung h3 { color: #a2442e; }
.kasten.tipp { background: var(--paper2); }

.tab-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 26px 0; }
table.rw { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: 15px; font-variant-numeric: tabular-nums; }
table.rw th, table.rw td { padding: 13px 18px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.rw th:first-child, table.rw td:first-child { text-align: left; white-space: normal; }
table.rw thead th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--paper2); }
table.rw td { color: var(--navy); font-weight: 600; }
table.rw tbody tr:last-child td { border-bottom: 0; }
table.rw tbody tr.hier td { background: rgba(185, 149, 82, .08); color: var(--gold-d); }

/* Band zum Rechner */
.band-cta { background: var(--ink); color: #fff; position: relative; overflow: hidden; margin-top: clamp(48px, 6vw, 80px); }
.band-cta::before { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -340px; border-radius: 50%; background: radial-gradient(circle, rgba(185,149,82,.16), transparent 62%); pointer-events: none; }
.band-cta .wrap { position: relative; z-index: 1; padding: clamp(40px, 5vw, 64px) 0; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band-cta .eyebrow { color: var(--gold-l); }
.band-cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.025em; color: #fff; margin: 12px 0 10px; }
.band-cta p { color: rgba(255,255,255,.7); font-size: 15.5px; max-width: 54ch; margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: .25s; border: 0; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: var(--gold-l); }

.weiter { padding: clamp(40px, 5vw, 64px) 0 0; }
.weiter .karten { margin-top: 24px; }

/* Fuß */
.fuss { background: var(--navy2); color: rgba(255,255,255,.62); padding: 56px 0 44px; font-size: 13.5px; line-height: 1.75; margin-top: clamp(48px, 6vw, 80px); }
.fuss img { height: 42px; width: auto; margin-bottom: 24px; }
.fuss a { color: rgba(255,255,255,.82); }
.fuss .zeilen { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.fuss strong { color: #fff; font-weight: 600; }
.fuss .klein { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(255,255,255,.48); }

@media (max-width: 1020px) {
  .karten.drei { grid-template-columns: repeat(2, 1fr); }
  .fuss .zeilen { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap, .wrap-n { width: calc(100% - 32px); }
  .head .wrap { height: 72px; }
  .head nav a:not(.pill) { display: none; }
  .karten.drei { grid-template-columns: 1fr; }
  .band-cta .wrap { flex-direction: column; align-items: flex-start; }
  table.rw th, table.rw td { padding: 11px 13px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .head, .band-cta, .weiter, .fuss, .no-print { display: none !important; }
  body { background: #fff; }
}
