/* =============================================================================
   Your Energy Center — zentrales Stylesheet
   Aufbau:  1 Tokens · 2 Reset · 3 Basis · 4 Layout · 5 Komponenten · 6 Seiten
   Prinzip: mobile-first, alle Farben/Abstände als Variablen in :root
   ========================================================================== */

/* 1 — Tokens ------------------------------------------------------------- */
:root {
  /* Marke: tiefes Grün (Energie/Effizienz) + Nachtblau (Vertrauen) + warmes Amber (Sonne) */
  --c-green-900: #05271a;
  --c-green-800: #0a4a33;
  --c-green-700: #0f7a5a;
  --c-green-600: #12946c;
  --c-green-300: #7ed0b0;
  --c-green-100: #e3f4ec;

  --c-blue-900: #0a2035;
  --c-blue-700: #14476e;
  --c-blue-100: #e6eef5;

  /* amber-600 ist Textfarbe (Tags, Badges, Button-Hover mit weisser Schrift):
     dunkel genug fuer 4,5:1 auf amber-100 UND fuer weissen Text darauf. */
  --c-amber-600: #995c05;
  --c-amber-500: #f0a202;
  --c-amber-100: #fdf1d8;

  --c-red-600: #b3261e;
  --c-red-100: #fbe9e7;

  /* Neutrale */
  --c-ink:     #0d1a16;
  --c-body:    #465852;
  /* muted traegt kleine Hinweistexte — 5,4:1 auf Weiss (WCAG AA braucht 4,5:1) */
  --c-muted:   #5d6e68;
  --c-line:    #dde6e2;
  --c-line-soft: #eef3f1;
  --c-surface: #f5f9f7;
  --c-white:   #ffffff;

  /* Semantisch */
  --c-primary:      var(--c-green-700);
  --c-primary-dark: var(--c-green-800);
  --c-accent:       var(--c-amber-500);
  --c-focus:        var(--c-blue-700);

  /* Typografie: System-Font-Stack — kein Webfont, kein Ladezeit-Aufschlag */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Roboto",
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;

  /* Modulare Skala (1.25) mit clamp() für flüssige Größen */
  --fs-xs:  0.8125rem;
  --fs-sm:  0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:  clamp(1.125rem, 0.6vw + 1rem, 1.25rem);
  --fs-lg:  clamp(1.375rem, 1vw + 1.1rem, 1.625rem);
  --fs-xl:  clamp(1.75rem, 2vw + 1.2rem, 2.25rem);
  --fs-2xl: clamp(2.125rem, 3.5vw + 1.2rem, 3.25rem);

  --lh-tight: 1.18;
  --lh-snug:  1.35;
  --lh-base:  1.65;

  /* Abstände (4px-Raster) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Radius, Schatten, Rahmen */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-full: 999px;

  --sh-sm: 0 1px 2px rgba(5, 39, 26, 0.06), 0 1px 3px rgba(5, 39, 26, 0.04);
  --sh-md: 0 4px 12px rgba(5, 39, 26, 0.07), 0 2px 4px rgba(5, 39, 26, 0.04);
  --sh-lg: 0 12px 32px rgba(5, 39, 26, 0.10), 0 4px 8px rgba(5, 39, 26, 0.04);

  /* Layout */
  --wrap: 1140px;
  --wrap-narrow: 760px;

  --t-fast: 120ms ease;
  --t-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anker landen nicht unter dem klebrigen Header */
  scroll-padding-top: 5rem;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
  padding: 0;
}

ul[class], ol[class] { list-style: none; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

table { border-collapse: collapse; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 3 — Basis -------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--c-ink);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { text-wrap: pretty; }

a { color: var(--c-green-800); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--c-green-600); }

strong { color: var(--c-ink); font-weight: 650; }

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

::selection { background: var(--c-green-300); color: var(--c-green-900); }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s-4);
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--c-green-800);
  color: var(--c-white);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--c-white); }

/* 4 — Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-4);
}
@media (min-width: 48em) { .wrap { padding-inline: var(--s-5); } }

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--s-7); }
@media (min-width: 48em) { .section { padding-block: var(--s-8); } }

.section--surface { background: var(--c-surface); }
.section--tight { padding-block: var(--s-6); }

.section__head { max-width: 44rem; margin-bottom: var(--s-6); }
.section__head p { margin-top: var(--s-3); font-size: var(--fs-md); }

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 40em) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40em) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-green-700);
}

/* 5 — Komponenten -------------------------------------------------------- */

/* 5.1 Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 2.875rem;           /* Touch-Ziel ≥ 44px */
  padding: var(--s-3) var(--s-5);
  border: 2px solid transparent;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
  box-shadow: var(--sh-sm);
}
.btn--primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: var(--c-white); }

.btn--accent {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-green-900);
  box-shadow: var(--sh-sm);
}
.btn--accent:hover { background: var(--c-amber-600); border-color: var(--c-amber-600); color: var(--c-white); }

.btn--ghost {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-ink);
}
.btn--ghost:hover { border-color: var(--c-green-700); color: var(--c-green-800); background: var(--c-green-100); }

.btn--lg { min-height: 3.25rem; padding: var(--s-4) var(--s-6); font-size: var(--fs-base); }
.btn--sm { min-height: 2.25rem; padding: var(--s-2) var(--s-4); font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* 5.2 Header + Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--c-line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--c-green-800);
  text-decoration: none;
  flex-shrink: 0;
}

/* Bild-Logo im Seitenkopf (logo.png, 1014x152 — Anzeigehoehe hier steuern) */
.logo__img {
  display: block;
  height: 2.1rem;
  width: auto;
}
@media (min-width: 48em) { .logo__img { height: 2.5rem; } }
.logo__mark { color: var(--c-green-700); }
.logo__text {
  font-size: var(--fs-base);
  line-height: 1.1;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}
.logo__text strong { display: block; font-weight: 750; color: var(--c-green-800); }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after  { position: absolute; top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

.mainnav {
  display: none;
  position: absolute;
  inset: 4rem 0 auto;
  padding: var(--s-4);
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--sh-lg);
}
.mainnav.is-open { display: block; }

.mainnav__list { display: flex; flex-direction: column; gap: var(--s-1); }

.mainnav__link {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  width: 100%;
  padding: var(--s-3);
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-ink);
  text-align: left;
  text-decoration: none;
}
.mainnav__link:hover { background: var(--c-green-100); color: var(--c-green-800); }
.mainnav__link[aria-current="page"] { color: var(--c-green-700); }

.subnav { display: none; padding-left: var(--s-4); }
.has-sub.is-open .subnav { display: block; }
.subnav a {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--c-body);
  text-decoration: none;
}
.subnav a:hover { background: var(--c-green-100); color: var(--c-green-800); }
.subnav a[aria-current="page"] { color: var(--c-green-700); font-weight: 600; }

.mainnav__sub-toggle svg { transition: transform var(--t-fast); }
.has-sub.is-open .mainnav__sub-toggle svg { transform: rotate(180deg); }

@media (min-width: 62em) {
  .nav-toggle { display: none; }
  .mainnav {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .mainnav__list { flex-direction: row; align-items: center; gap: var(--s-1); }
  .mainnav__item { position: relative; }
  .mainnav__link { width: auto; padding: var(--s-2) var(--s-3); font-size: var(--fs-sm); white-space: nowrap; }

  .subnav {
    display: block;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 15rem;
    padding: var(--s-2);
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  }
  .has-sub:hover .subnav,
  .has-sub:focus-within .subnav,
  .has-sub.is-open .subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* 5.3 Breadcrumbs */
.breadcrumbs {
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--c-line-soft);
  background: var(--c-surface);
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.breadcrumbs__list li { display: flex; align-items: center; gap: var(--s-2); }
.breadcrumbs__list li + li::before {
  content: "›";
  color: var(--c-line);
}
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-green-700); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--c-ink); font-weight: 600; }

/* 5.4 Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-7) var(--s-8);
  background:
    radial-gradient(90rem 40rem at 75% -10%, rgba(240, 162, 2, 0.10), transparent 55%),
    radial-gradient(70rem 40rem at 8% 0%, rgba(18, 148, 108, 0.13), transparent 60%),
    linear-gradient(180deg, var(--c-white) 0%, var(--c-surface) 100%);
}
@media (min-width: 62em) { .hero { padding-block: var(--s-8) var(--s-9); } }

.hero__grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 62em) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-8); } }

.hero__title { margin-bottom: var(--s-4); }
.hero__title em {
  font-style: normal;
  color: var(--c-green-700);
  /* Handgezeichnete Unterstreichung statt Vollflächen-Highlight */
  background: linear-gradient(transparent 68%, var(--c-amber-100) 68%);
}

.hero__lead {
  font-size: var(--fs-md);
  max-width: 34rem;
  margin-bottom: var(--s-5);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-5); }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.hero__points li { display: flex; align-items: center; gap: var(--s-2); }
.hero__points li::before {
  content: "";
  width: 1.1rem; height: 1.1rem;
  flex-shrink: 0;
  border-radius: var(--r-full);
  background: var(--c-green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230f7a5a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/0.8rem no-repeat;
}

/* Hero-Panel: Kurzeinstieg in die Tools */
.hero__panel {
  padding: var(--s-5);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}
.hero__panel h2 { font-size: var(--fs-md); margin-bottom: var(--s-4); }

.tool-list { display: grid; gap: var(--s-2); }
.tool-list__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  color: var(--c-ink);
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.tool-list__item:hover {
  border-color: var(--c-green-300);
  background: var(--c-green-100);
  transform: translateX(2px);
  color: var(--c-green-900);
}
.tool-list__icon {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--c-green-100);
  color: var(--c-green-700);
}
.tool-list__text { flex: 1; min-width: 0; }
.tool-list__text strong { display: block; font-size: var(--fs-sm); }
.tool-list__text span { font-size: var(--fs-xs); color: var(--c-muted); }
.tool-list__arrow { color: var(--c-muted); flex-shrink: 0; }

/* 5.5 Antwort-Absatz (GEO: direkt zitierfähig, steht unter dem h1) */
.answer {
  max-width: 50rem;
  margin-block: var(--s-4) var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-left: 4px solid var(--c-green-700);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--c-green-100);
  font-size: var(--fs-md);
  color: var(--c-green-900);
}
.answer strong { color: var(--c-green-900); }

/* 5.6 Karten */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  height: 100%;
  padding: var(--s-5);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.card:hover { border-color: var(--c-green-300); box-shadow: var(--sh-md); transform: translateY(-2px); }

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.card__title { font-size: var(--fs-md); }
.card__title a {
  color: var(--c-ink);
  text-decoration: none;
}
/* Ganze Karte klickbar, ohne Link-Verschachtelung */
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__title a:hover { color: var(--c-green-700); }
.card__text { font-size: var(--fs-sm); flex: 1; }
.card__more {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-green-700);
}
.card__more::after { content: " →"; transition: margin var(--t-fast); }
.card:hover .card__more::after { margin-left: 4px; }

.tag {
  display: inline-block;
  padding: 0.15rem var(--s-2);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 650;
  text-decoration: none;
  background: var(--c-surface);
  color: var(--c-body);
  position: relative;
  z-index: 1;
}
.tag--solar        { background: var(--c-amber-100); color: var(--c-amber-600); }
.tag--waermepumpe  { background: var(--c-green-100); color: var(--c-green-800); }
.tag--foerderung   { background: var(--c-blue-100);  color: var(--c-blue-700); }
.tag--strom-sparen { background: #ede9fe;            color: #5b21b6; }

/* 5.7 Feature-/Vertrauens-Kacheln */
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: var(--r-md);
  background: var(--c-green-100);
  color: var(--c-green-700);
}
.feature h3 { font-size: var(--fs-md); }
.feature p { font-size: var(--fs-sm); }

/* 5.8 CTA-Box */
.cta {
  display: grid;
  gap: var(--s-5);
  margin-block: var(--s-6);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-green-300);
  background: linear-gradient(135deg, var(--c-green-100) 0%, var(--c-white) 70%);
}
@media (min-width: 48em) {
  .cta { grid-template-columns: 1.4fr 1fr; align-items: center; padding: var(--s-6); }
}
.cta--accent {
  border-color: var(--c-amber-500);
  background: linear-gradient(135deg, var(--c-amber-100) 0%, var(--c-white) 70%);
}
.cta__title { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.cta__text { font-size: var(--fs-sm); }
.cta__bullets { margin-top: var(--s-3); display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.cta__bullets li { display: flex; gap: var(--s-2); align-items: flex-start; }
.cta__bullets li::before { content: "✓"; color: var(--c-green-700); font-weight: 700; }
.cta__action { display: grid; gap: var(--s-3); justify-items: stretch; }
.cta__note { font-size: var(--fs-xs); color: var(--c-muted); text-align: center; }
.cta__action .btn { width: 100%; }

/* 5.9 Affiliate-Hinweis */
.affiliate-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--c-muted);
}
.affiliate-notice__badge {
  flex-shrink: 0;
  padding: 0.05rem var(--s-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-body);
}
.affiliate-notice--box {
  padding: var(--s-4);
  margin-block: var(--s-4);
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
}

/* 5.10 ProductBox */
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  overflow: hidden;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.product:hover { box-shadow: var(--sh-md); border-color: var(--c-green-300); }
.product__badge {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  z-index: 1;
  padding: 0.1rem var(--s-2);
  border-radius: var(--r-full);
  background: var(--c-accent);
  color: var(--c-green-900);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.product__media { background: var(--c-surface); }
.product__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product__body { padding: var(--s-4); flex: 1; }
.product__title { font-size: var(--fs-md); }
.product__subtitle { margin-top: var(--s-1); font-size: var(--fs-sm); color: var(--c-muted); }
.product__specs { margin-top: var(--s-4); display: grid; gap: var(--s-1); font-size: var(--fs-sm); }
.product__spec { display: flex; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-1); border-bottom: 1px dashed var(--c-line-soft); }
.product__spec dt { color: var(--c-muted); }
.product__spec dd { font-weight: 600; color: var(--c-ink); text-align: right; }
.product__footer {
  padding: var(--s-4);
  border-top: 1px solid var(--c-line-soft);
  background: var(--c-surface);
  display: grid;
  gap: var(--s-3);
}
.product__price { font-size: var(--fs-md); font-weight: 700; color: var(--c-ink); }
.product__price-note { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--c-muted); }
.product__footer .btn { width: 100%; }

/* 5.11 Vergleichstabelle */
.table-scroll {
  margin-block: var(--s-5);
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  -webkit-overflow-scrolling: touch;
}
.ctable { width: 100%; min-width: 36rem; font-size: var(--fs-sm); }
.ctable__caption {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-line-soft);
}
.ctable th, .ctable td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: middle; }
.ctable thead th {
  background: var(--c-green-100);
  color: var(--c-green-900);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ctable tbody tr + tr th, .ctable tbody tr + tr td { border-top: 1px solid var(--c-line-soft); }
.ctable tbody th { font-weight: 650; color: var(--c-ink); }
.ctable tbody tr:hover { background: var(--c-surface); }

/* 5.12 Disclaimer */
.disclaimer {
  display: flex;
  gap: var(--s-3);
  margin-block: var(--s-5);
  padding: var(--s-4);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-blue-700);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--c-blue-100);
  font-size: var(--fs-sm);
  color: var(--c-blue-900);
}
.disclaimer__icon { flex-shrink: 0; color: var(--c-blue-700); margin-top: 2px; }
.disclaimer strong { color: var(--c-blue-900); }

/* 5.13 FAQ */
.faq { padding-block: var(--s-7); background: var(--c-surface); }
.faq__heading { margin-bottom: var(--s-5); }
.faq__list { display: grid; gap: var(--s-4); }
.faq__item {
  padding: var(--s-5);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.faq__question { font-size: var(--fs-md); margin-bottom: var(--s-2); scroll-margin-top: 5rem; }
.faq__answer { font-size: var(--fs-sm); }
.faq__answer p + p { margin-top: var(--s-3); }
.faq__answer ul { margin-top: var(--s-2); padding-left: var(--s-5); list-style: disc; }

/* 5.14 Inhaltsverzeichnis */
.toc {
  margin-block: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
}
.toc__title { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.07em; color: var(--c-muted); margin-bottom: var(--s-3); }
.toc__list { display: grid; gap: var(--s-2); counter-reset: toc; }
.toc__list li { counter-increment: toc; display: flex; gap: var(--s-2); font-size: var(--fs-sm); }
.toc__list li::before { content: counter(toc) "."; color: var(--c-green-700); font-weight: 700; }
.toc__list a { color: var(--c-body); text-decoration: none; }
.toc__list a:hover { color: var(--c-green-700); text-decoration: underline; }

/* 5.15 Wizard (mehrschrittige Checks) */
.wizard {
  margin-block: var(--s-6);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--sh-md);
  overflow: hidden;
}

.wizard__head {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-line-soft);
  background: var(--c-surface);
}
.wizard__progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--c-muted);
}
.wizard__bar {
  height: 6px;
  border-radius: var(--r-full);
  background: var(--c-line);
  overflow: hidden;
}
.wizard__bar-fill {
  height: 100%;
  width: 0;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--c-green-700), var(--c-green-600));
  transition: width var(--t-base);
}

.wizard__body { padding: var(--s-5); }
@media (min-width: 48em) { .wizard__body { padding: var(--s-6); } }

.step { display: none; }
.step.is-active { display: block; animation: step-in 220ms ease both; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.step__legend {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
  margin-bottom: var(--s-2);
}
.step__hint { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: var(--s-5); }

.wizard__foot {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--c-line-soft);
  background: var(--c-surface);
}
.wizard__foot .btn--back { visibility: hidden; }
.wizard__foot .btn--back.is-visible { visibility: visible; }

/* Optionskarten (Radio) */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.options { display: grid; gap: var(--s-3); }
@media (min-width: 34em) { .options--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48em) { .options--3 { grid-template-columns: repeat(3, 1fr); } }

.option { position: relative; display: block; }
.option input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.option__box {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  min-height: 3.5rem;
  height: 100%;
  padding: var(--s-4);
  border: 2px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.option:hover .option__box { border-color: var(--c-green-300); }
.option input:checked + .option__box {
  border-color: var(--c-green-700);
  background: var(--c-green-100);
  box-shadow: 0 0 0 1px var(--c-green-700) inset;
}
.option input:focus-visible + .option__box { outline: 3px solid var(--c-focus); outline-offset: 2px; }

.option__box::before {
  content: "";
  flex-shrink: 0;
  width: 1.25rem; height: 1.25rem;
  margin-top: 0.15rem;
  border: 2px solid var(--c-line);
  border-radius: var(--r-full);
  background: var(--c-white);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.option input:checked + .option__box::before {
  border-color: var(--c-green-700);
  background: var(--c-green-700);
  box-shadow: inset 0 0 0 3px var(--c-white);
}
.option__text { min-width: 0; }
.option__text strong { display: block; font-size: var(--fs-sm); color: var(--c-ink); line-height: var(--lh-snug); }
.option__text span { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--c-muted); }

/* Eingabefelder */
.field { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.field__label { font-size: var(--fs-sm); font-weight: 650; color: var(--c-ink); }
.field__hint { font-size: var(--fs-xs); color: var(--c-muted); }

.input-group { display: flex; align-items: stretch; }
.input,
.select {
  width: 100%;
  min-height: 3rem;
  padding: var(--s-3) var(--s-4);
  border: 2px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  font-size: var(--fs-base);
  color: var(--c-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .select:focus {
  outline: 0;
  border-color: var(--c-green-700);
  box-shadow: 0 0 0 3px rgba(15, 122, 90, 0.16);
}
.input-group .input { border-radius: var(--r-md) 0 0 var(--r-md); border-right: 0; }
.input-group__suffix {
  display: grid;
  place-items: center;
  padding-inline: var(--s-4);
  border: 2px solid var(--c-line);
  border-left: 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--c-surface);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-muted);
  white-space: nowrap;
}
.input[aria-invalid="true"] { border-color: var(--c-red-600); }
.field__error { font-size: var(--fs-xs); font-weight: 600; color: var(--c-red-600); }
.field__error:empty { display: none; }

/* Slider */
.range { width: 100%; accent-color: var(--c-green-700); height: 2.5rem; }
.range-value { font-size: var(--fs-md); font-weight: 700; color: var(--c-green-800); font-variant-numeric: tabular-nums; }

/* 5.16 Ergebnis */
.result { display: none; }
.result.is-visible { display: block; animation: step-in 260ms ease both; }

.result__verdict {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}
.result__verdict--good    { background: var(--c-green-100); border: 1px solid var(--c-green-300); }
.result__verdict--ok      { background: var(--c-amber-100); border: 1px solid var(--c-amber-500); }
.result__verdict--careful { background: var(--c-red-100);   border: 1px solid var(--c-red-600); }

.result__score {
  display: grid;
  place-items: center;
  width: 4rem; height: 4rem;
  flex-shrink: 0;
  border-radius: var(--r-full);
  background: var(--c-white);
  font-size: var(--fs-lg);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--c-green-800);
  box-shadow: var(--sh-sm);
}
.result__verdict-text h3 { font-size: var(--fs-md); margin-bottom: var(--s-1); }
.result__verdict-text p { font-size: var(--fs-sm); }

.stats { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
@media (min-width: 34em) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .stats--3 { grid-template-columns: repeat(3, 1fr); } }

.stat {
  padding: var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
}
.stat__label { font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-muted); }
.stat__value {
  margin-top: var(--s-1);
  font-size: var(--fs-lg);
  font-weight: 750;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat__note { margin-top: var(--s-1); font-size: var(--fs-xs); color: var(--c-muted); }

.result__block {
  padding: var(--s-5);
  margin-bottom: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.result__block h3 { font-size: var(--fs-md); margin-bottom: var(--s-3); }
.result__block ul { display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.result__block li { display: flex; gap: var(--s-2); }
.result__block li::before { content: "•"; color: var(--c-green-700); font-weight: 700; }

.result__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Balken für Förder-/Kostenaufteilung */
.bars { display: grid; gap: var(--s-3); }
.bar__head { display: flex; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: var(--s-1); }
.bar__head span:last-child { font-weight: 700; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.bar__track { height: 10px; border-radius: var(--r-full); background: var(--c-line-soft); overflow: hidden; }
.bar__fill { height: 100%; border-radius: var(--r-full); background: var(--c-green-600); transition: width var(--t-base); }
.bar__fill--accent { background: var(--c-amber-500); }
.bar__fill--blue { background: var(--c-blue-700); }

/* Noscript-Hinweis */
.noscript {
  padding: var(--s-4);
  margin-block: var(--s-4);
  border: 1px solid var(--c-amber-500);
  border-radius: var(--r-md);
  background: var(--c-amber-100);
  font-size: var(--fs-sm);
  color: var(--c-green-900);
}

/* 5.16b Lead-Formular ("Weitere Infos") */
.leadform {
  padding: var(--s-5);
  border: 1px solid var(--c-green-300);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--c-green-100) 0%, var(--c-white) 55%);
}
@media (min-width: 48em) { .leadform { padding: var(--s-6); } }

.leadform__title { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.leadform__text { font-size: var(--fs-sm); max-width: 38rem; }
.leadform__intro { margin-bottom: var(--s-5); }

.leadform__grid { display: grid; gap: var(--s-2) var(--s-4); }
@media (min-width: 40em) { .leadform__grid { grid-template-columns: repeat(2, 1fr); } }

.leadform__required { color: var(--c-red-600); font-weight: 700; }
.leadform__optional { font-weight: 400; color: var(--c-muted); font-size: var(--fs-xs); }

.leadform__consent {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  margin-block: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--c-body);
  cursor: pointer;
}
.leadform__consent input {
  flex-shrink: 0;
  width: 1.15rem; height: 1.15rem;
  margin-top: 2px;
  accent-color: var(--c-green-700);
}

.leadform__actions { display: grid; gap: var(--s-3); justify-items: start; }
.leadform__note { font-size: var(--fs-xs); color: var(--c-muted); }

/* 5.16c Cookie-Banner */
.cookiebar {
  position: fixed;
  right: var(--s-4);
  bottom: var(--s-4);
  left: var(--s-4);
  z-index: 90;
  max-width: 26rem;
  margin-inline: auto;
  padding: var(--s-5);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}
@media (min-width: 40em) { .cookiebar { left: auto; margin-inline: 0; } }

.cookiebar__close {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--c-muted);
}
.cookiebar__close:hover { background: var(--c-surface); color: var(--c-ink); }

.cookiebar__title { font-size: var(--fs-md); margin-bottom: var(--s-2); padding-right: var(--s-6); }
.cookiebar__text { font-size: var(--fs-xs); margin-bottom: var(--s-4); }
.cookiebar__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cookiebar__actions .btn { flex: 1 1 auto; }

/* 5.16d Modal (Formular-Overlay nach Check-Abschluss) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--s-4);
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 39, 26, 0.55);
  backdrop-filter: blur(2px);
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 34rem;
  max-height: min(90vh, 90dvh);
  overflow-y: auto;
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--sh-lg);
  animation: step-in 220ms ease both;
}
.modal__close {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--c-muted);
}
.modal__close:hover { color: var(--c-ink); border-color: var(--c-green-300); }

/* Im Modal traegt die Karte den Rahmen — das Formular selbst wird randlos */
.modal__body .leadform { border: 0; border-radius: var(--r-lg); }

body.has-modal { overflow: hidden; }

/* Button, der wie ein Link aussieht (Footer: Cookie-Einstellungen) */
.linklike {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.site-footer .linklike { color: #a7bdb4; text-decoration: none; }
.site-footer .linklike:hover { color: var(--c-white); text-decoration: underline; }

/* 5.17 Prosa (Magazin, statische Seiten) */
.prose { max-width: 42rem; font-size: var(--fs-md); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 {
  margin-top: var(--s-7);
  font-size: var(--fs-lg);
  scroll-margin-top: 5rem;
}
/* Editierbare Abschnitts-Bloecke beginnen mit ihrer h2 — ohne Extra-Abstand */
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-5); font-size: var(--fs-md); }
.prose ul, .prose ol { padding-left: var(--s-5); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--c-green-700); }
.prose a { color: var(--c-green-800); }
.prose blockquote {
  padding: var(--s-4) var(--s-5);
  border-left: 4px solid var(--c-green-300);
  background: var(--c-surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
}
.prose table { width: 100%; font-size: var(--fs-sm); }
.prose th, .prose td { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--c-line-soft); text-align: left; }
.prose code {
  padding: 0.1em 0.35em;
  border-radius: var(--r-sm);
  background: var(--c-surface);
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin-block: var(--s-6); }

/* 5.18 Artikel-Kopf */
.article-head { padding-block: var(--s-6) var(--s-5); }
.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.article-head h1 { margin-bottom: var(--s-4); }
.article-head__lead { font-size: var(--fs-md); max-width: 42rem; color: var(--c-body); }

/* 5.19 Footer */
.site-footer {
  margin-top: var(--s-8);
  padding-block: var(--s-7) var(--s-5);
  background: var(--c-green-900);
  color: #a7bdb4;
  font-size: var(--fs-sm);
}
.site-footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 40em) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-7); } }

.site-footer .logo--footer { color: var(--c-white); }
.site-footer .logo__mark { color: var(--c-green-300); }
.site-footer .logo__text { color: var(--c-white); }
.site-footer .logo__text strong { color: var(--c-white); }

.site-footer__claim { margin-top: var(--s-4); max-width: 28rem; font-size: var(--fs-sm); }

.site-footer__title {
  margin-bottom: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-white);
}
.site-footer__nav ul { display: grid; gap: var(--s-2); }
.site-footer a { color: #a7bdb4; text-decoration: none; }
.site-footer a:hover { color: var(--c-white); text-decoration: underline; }

.site-footer__note {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-xs);
  line-height: 1.6;
  max-width: 60rem;
}
.site-footer__note--affiliate {
  margin-top: var(--s-4);
  padding-top: 0;
  border-top: 0;
}
.site-footer__note strong { color: var(--c-white); }
.site-footer__copy { margin-top: var(--s-4); font-size: var(--fs-xs); color: #7d968c; }

/* 6 — Seiten-Spezifisches ------------------------------------------------ */

/* 6.1 Tool-Landingpages */
.tool-hero {
  padding-block: var(--s-6) var(--s-5);
  background: linear-gradient(180deg, var(--c-surface), var(--c-white));
  border-bottom: 1px solid var(--c-line-soft);
}
.tool-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.tool-hero__meta li { display: flex; align-items: center; gap: var(--s-2); }

/* 6.2 Magazin */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.filter {
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  background: var(--c-white);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-body);
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.filter:hover { border-color: var(--c-green-300); background: var(--c-green-100); color: var(--c-green-800); }
.filter[aria-current="page"] {
  background: var(--c-green-800);
  border-color: var(--c-green-800);
  color: var(--c-white);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-7);
  font-size: var(--fs-sm);
}

.empty {
  padding: var(--s-7) var(--s-5);
  text-align: center;
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
  color: var(--c-muted);
}

/* 6.3 Admin */
.admin { min-height: 100vh; background: var(--c-surface); }
.admin__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--c-green-900);
  color: var(--c-white);
}
.admin__bar a { color: var(--c-green-300); }
.admin__bar strong { color: var(--c-white); }
.admin__main { padding-block: var(--s-6); }

.login {
  max-width: 24rem;
  margin: var(--s-9) auto;
  padding: var(--s-6);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.login h1 { font-size: var(--fs-lg); margin-bottom: var(--s-5); }

.alert {
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
}
.alert--error   { background: var(--c-red-100); color: var(--c-red-600); border: 1px solid var(--c-red-600); }
.alert--success { background: var(--c-green-100); color: var(--c-green-800); border: 1px solid var(--c-green-300); }

.admin-table { width: 100%; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; font-size: var(--fs-sm); }
.admin-table th, .admin-table td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--c-line-soft); }
.admin-table thead th { background: var(--c-surface); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); }
.admin-table tbody tr:hover { background: var(--c-surface); }

.badge { padding: 0.1rem var(--s-2); border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 650; }
.badge--published { background: var(--c-green-100); color: var(--c-green-800); }
.badge--draft { background: var(--c-amber-100); color: var(--c-amber-600); }

.editor { display: grid; gap: var(--s-4); }
.editor textarea { min-height: 28rem; font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.6; resize: vertical; }
.editor__row { display: grid; gap: var(--s-4); }
@media (min-width: 48em) { .editor__row--2 { grid-template-columns: repeat(2, 1fr); } }
.editor__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* 6.4 Admin: WYSIWYG-Editor */
.wys {
  border: 2px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  overflow: hidden;
}
.wys:focus-within { border-color: var(--c-green-700); }

.wys__bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  padding: var(--s-2);
  border-bottom: 1px solid var(--c-line-soft);
  background: var(--c-surface);
}
.wys__btn {
  min-height: 2rem;
  padding: 0 var(--s-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-white);
  font-size: var(--fs-xs);
  color: var(--c-ink);
}
.wys__btn:hover { border-color: var(--c-green-300); background: var(--c-green-100); }
.wys__btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.wys__btn--code { margin-left: auto; font-family: var(--font-mono); }
.wys__btn--code.is-active { background: var(--c-green-800); border-color: var(--c-green-800); color: var(--c-white); }
.wys__sep { width: 1px; align-self: stretch; background: var(--c-line); margin-inline: var(--s-1); }

.wys__area {
  min-height: 14rem;
  max-height: 60vh;
  overflow-y: auto;
  padding: var(--s-4);
  outline: none;
  font-size: var(--fs-sm);
}
.wys__area:empty::before { content: "Hier tippen …"; color: var(--c-muted); }

/* HTML-Ansicht: Textarea sitzt im selben Rahmen wie die visuelle Ansicht.
   WICHTIG: display nur setzen, wenn NICHT hidden — ein pauschales
   display:block wuerde das [hidden]-Attribut aushebeln und die Textarea
   dauerhaft unter dem Editor anzeigen. */
.wys .wys__source { width: 100%; border: 0; border-radius: 0; }
.wys .wys__source[hidden] { display: none; }
.wys .wys__source:not([hidden]) { display: block; min-height: 14rem; }
.wys .wys__source:focus { box-shadow: none; }

/* 6.5 Admin: Medienverwaltung */
.media-upload {
  padding: var(--s-4);
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: var(--s-4);
}
.media-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  overflow: hidden;
}
.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--c-surface);
}
.media-card__meta {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-3);
  font-size: var(--fs-xs);
}
.media-card__name {
  font-weight: 650;
  color: var(--c-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-card__info { color: var(--c-muted); }
.media-card__actions { display: flex; gap: var(--s-2); margin-top: var(--s-2); flex-wrap: wrap; }

/* 6.6 Admin: Medien-Picker im Editor */
.modal__card--wide { max-width: 56rem; }
.modal--media .modal__body { padding: var(--s-5); }

.media-grid--picker {
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  max-height: 55vh;
  overflow-y: auto;
  gap: var(--s-3);
}
.media-pick {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 2px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  overflow: hidden;
  text-align: left;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.media-pick:hover { border-color: var(--c-green-700); box-shadow: var(--sh-md); }
.media-pick img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--c-surface);
}
.media-pick__name {
  padding: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--c-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Druck */
@media print {
  .site-header, .site-footer, .breadcrumbs, .cta, .wizard__foot, .nav-toggle { display: none !important; }
  body { color: #000; }
  .wrap { max-width: none; }
}
