/* ==========================================================================
   Mittelstandskompass - Design nach Design.mds/a-wareDESIGN.md ("A-WARE")
   Monochrom + ein einziger warmer Goldakzent. Keine Schatten, keine Verlaeufe.
   ========================================================================== */

/* --- Fonts lokal (keine Google-Fonts-CDN-Einbindung) ---------------------- */
@font-face {
  font-family: "Practice";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Practice";
  src: url("/assets/fonts/inter-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Plantin";
  src: url("/assets/fonts/playfair-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plantin";
  src: url("/assets/fonts/playfair-latin-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --color-midnight-ink: #000000;
  --color-alabaster-white: #ffffff;
  --color-greige-canvas: #f7f5ee;
  --color-stone-whisper: #ece9df;
  --color-subtle-ash: #888783;   /* nur dekorativ / grosse Typo */
  --color-ash-text: #5f5e5b;     /* lesbare Sekundaerschrift, 6.6:1 auf Weiss */
  --color-hairline: rgba(0, 0, 0, 0.12);
  --color-harvest-gold: #a77a41; /* einziger Chroma-Akzent, 4.6:1 auf Weiss */

  --font-practice: "Practice", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-plantin: "Plantin", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --wrap-narrow: 760px;

  --radius-cards: 12px;
  --radius-badges: 6px;
  --radius-inputs: 8px;
  --radius-buttons: 32px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }   /* Drawer darf nie horizontal scrollen */
body {
  margin: 0;
  background: var(--color-alabaster-white);
  color: var(--color-midnight-ink);
  font-family: var(--font-practice);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--wrap-narrow); }
.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;
}
:focus-visible { outline: 2px solid var(--color-harvest-gold); outline-offset: 3px; }

/* --- Typografie ----------------------------------------------------------- */
.display {
  font-family: var(--font-plantin);
  font-weight: 400;
  font-size: clamp(38px, 6.6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.h-lg {
  font-family: var(--font-plantin);
  font-weight: 400;
  font-size: clamp(29px, 3.8vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.h-md {
  font-family: var(--font-practice);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ash-text);
  margin: 0 0 16px;
  display: block;
}
.label--gold { color: var(--color-harvest-gold); }
.lead { font-size: 20px; line-height: 1.5; color: var(--color-ash-text); }
.muted { color: var(--color-ash-text); }
.rule { height: 1px; background: var(--color-hairline); border: 0; margin: 0; }

/* --- Header + Navigation -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-alabaster-white);
  border-bottom: 1px solid var(--color-hairline);
  /* bewusst KEIN backdrop-filter: erzeugt sonst einen Containing Block
     und der Drawer schrumpft auf Headerhoehe */
}
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand .mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-plantin); font-size: 21px; letter-spacing: -0.02em; }
.brand-sub {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-ash-text); margin-top: 3px;
}
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 13px; text-decoration: none;
  font-size: 15px; letter-spacing: 0.01em; border: 1px solid transparent;
  white-space: nowrap;   /* sonst brechen "Energie & Industrie" und
                            "Steuern & Finanzen" im Header zweizeilig um */
}
.menu a:hover { border-color: var(--color-hairline); }
.menu a.active { border-color: var(--color-midnight-ink); }

.nav-toggle { display: none; }
.burger { display: none; }
.drawer-backdrop { display: none; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; font-size: 16px;
  padding: 14px 32px; border-radius: var(--radius-buttons);
  border: 1px solid var(--color-midnight-ink);
  background: var(--color-alabaster-white); color: var(--color-midnight-ink);
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: var(--color-midnight-ink); color: var(--color-alabaster-white); }
.btn--solid { background: var(--color-midnight-ink); color: var(--color-alabaster-white); }
.btn--solid:hover { background: var(--color-alabaster-white); color: var(--color-midnight-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* --- Sektionen ------------------------------------------------------------ */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--greige { background: var(--color-greige-canvas); }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--color-hairline); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; }
.hero-facts { list-style: none; margin: 0; padding: 0; }
.hero-facts li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--color-hairline);
  font-size: 15px; margin: 0;
}
.hero-facts li:first-child { border-top: 1px solid var(--color-hairline); }
.hero-facts .val { font-family: var(--font-plantin); font-size: 21px; letter-spacing: -0.02em; }

/* --- Karten --------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-greige-canvas);
  border-radius: var(--radius-cards);
  padding: 40px;
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: background .18s ease;
}
.card--roomy { padding: 56px; }
.card:hover { background: var(--color-stone-whisper); }
.card .h-md { margin-bottom: 10px; }
.card p { color: var(--color-ash-text); font-size: 16px; margin-bottom: 20px; }
.card .more {
  margin-top: auto; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600; color: var(--color-harvest-gold);
}
.card--plain { background: transparent; border: 1px solid var(--color-hairline); }
.card--plain:hover { background: var(--color-greige-canvas); }

/* --- Beitragsliste -------------------------------------------------------- */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-hairline); }
.post-list li { margin: 0; }
.post-list a {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 28px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--color-hairline); text-decoration: none;
}
.post-list a:hover { background: var(--color-greige-canvas); }
.post-list .cat {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-harvest-gold); font-weight: 600;
}
.post-list .ttl { font-size: 20px; letter-spacing: -0.01em; }
.post-list .dt { font-size: 13px; color: var(--color-ash-text); white-space: nowrap; }

/* --- Artikel -------------------------------------------------------------- */
.article-head { padding: 72px 0 8px; }
.breadcrumb { font-size: 13px; color: var(--color-ash-text); margin-bottom: 24px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.meta { font-size: 13px; color: var(--color-ash-text); letter-spacing: 0.02em; }

.prose { font-size: 18px; line-height: 1.7; }
/* Erstes Element ohne Eigenabstand, sonst stapeln sich Sektions-Padding und
   Element-Margin zu einem sichtbaren Loch unter dem Artikelkopf. */
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-family: var(--font-plantin); font-weight: 400;
  font-size: 30px; line-height: 1.2; letter-spacing: -0.025em;
  margin: 56px 0 18px;
}
.prose h3 {
  font-family: var(--font-practice); font-weight: 600;
  font-size: 21px; margin: 40px 0 12px; letter-spacing: -0.01em;
}
.prose a { color: var(--color-harvest-gold); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose blockquote {
  margin: 40px 0; padding: 32px 36px;
  background: var(--color-greige-canvas); border-radius: var(--radius-cards);
  font-family: var(--font-plantin); font-size: 22px; line-height: 1.4;
  letter-spacing: -0.02em;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 32px 0; }   /* Prose-Tabellen mobile */
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 460px; }
.prose th, .prose td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--color-hairline); }
.prose th { font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

.callout {
  margin: 40px 0; padding: 28px 32px;
  border: 1px solid var(--color-hairline); border-left: 3px solid var(--color-harvest-gold);
  border-radius: var(--radius-badges);
  background: var(--color-alabaster-white);
}
.callout p:last-child { margin-bottom: 0; }
.callout .label { margin-bottom: 8px; }

.faq { border-top: 1px solid var(--color-hairline); margin: 48px 0 0; }
.faq details { border-bottom: 1px solid var(--color-hairline); }
.faq summary {
  cursor: pointer; padding: 22px 0; font-size: 18px; font-weight: 600;
  list-style: none; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-weight: 400; color: var(--color-harvest-gold); }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-body { padding: 0 0 22px; color: var(--color-ash-text); }
.faq .faq-body p:last-child { margin-bottom: 0; }

.related { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--color-hairline); }

/* --- Formular ------------------------------------------------------------- */
.form { display: grid; gap: 20px; max-width: 620px; }
.form label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 8px; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--color-midnight-ink);
  background: transparent; border: 1px solid var(--color-hairline);
  border-radius: var(--radius-inputs); padding: 20px 24px;
}
.form input:focus, .form textarea:focus { border-color: var(--color-harvest-gold); outline: none; }
.form textarea { min-height: 170px; resize: vertical; }
.form .consent { font-size: 14px; color: var(--color-ash-text); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--color-stone-whisper); padding: 72px 0 32px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; margin: 0 0 18px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { font-size: 15px; text-decoration: none; color: var(--color-ash-text); }
.foot-grid a:hover { color: var(--color-midnight-ink); }
.foot-about p { font-size: 15px; color: var(--color-ash-text); max-width: 42ch; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 13px; color: var(--color-ash-text);
}
.foot-bottom a { text-decoration: none; }
.foot-bottom a:hover { text-decoration: underline; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .card, .card--roomy { padding: 32px; }
  .post-list a { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .post-list .dt { order: 3; }

  /* Mobiles Menue: Drawer von rechts */
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 9px; cursor: pointer;
    border: 1px solid var(--color-hairline); border-radius: var(--radius-badges);
    background: var(--color-alabaster-white); z-index: 120;
  }
  .burger span { display: block; height: 1.5px; background: var(--color-midnight-ink); }
  .menu {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(84vw, 340px);
    background: var(--color-alabaster-white);
    border-left: 1px solid var(--color-hairline);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 96px 24px 40px;
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 110; overflow-y: auto;
  }
  .menu a {
    padding: 16px 4px; font-size: 18px;
    border: 0; border-bottom: 1px solid var(--color-hairline);
  }
  .menu a:hover, .menu a.active { border-color: var(--color-hairline); color: var(--color-harvest-gold); }
  .nav-toggle:checked ~ .menu { transform: translateX(0); }
  .nav-toggle:checked ~ .drawer-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.34); z-index: 100;
  }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .prose { font-size: 17px; }
  .card, .card--roomy { padding: 26px; }
  .prose blockquote { padding: 24px 22px; font-size: 19px; }
  .brand-sub { display: none; }
}

@media print {
  .site-header, .site-footer, .btn-row { display: none; }
}
