/*
Theme Name: Mara Barrenscheen - by lenkmedia.de
Theme URI: https://mara-barrenscheen.de
Author: lenkmedia.de
Author URI: https://www.lenkmedia.de
Description: Massgeschneidertes Theme fuer mara-barrenscheen.de - ruhig, editorial, mit warmem Akzent.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: mara-barrenscheen
*/

/* ==========================================================================
   1. Tokens
   Breakpoints: 1100 (Tablet quer) / 900 (Tablet hoch) / 640 (Handy)
   ========================================================================== */

:root {
  /* Farben */
  --accent: #8a5a3e;
  --accent-soft: #e0b18c;
  --accent-dark: #6d452f;
  --accent-light: #9b6b4e; /* leicht aufgehellter Akzent, noch AA auf Weiss */
  --ink: #1e1b17;
  --muted: #5c564e;
  --muted-2: #8d867c;
  --muted-3: #a39c90;
  --line: #ebe7e0;
  --line-2: #d9d3c8;
  --sand: #f7f5f1;
  --sand-2: #ebe7df;
  --numeral: #c5b6a5;

  /* Hero */
  --hero-overlay: linear-gradient(90deg, rgba(18,16,10,0.78) 0%, rgba(18,16,10,0.62) 34%, rgba(18,16,10,0.2) 58%, rgba(18,16,10,0) 74%);
  --hero-ink: #ffffff;
  --hero-sub: rgba(255,255,255,0.88);
  --hero-meta: rgba(255,255,255,0.7);
  --hero-btn-bg: #ffffff;
  --hero-btn-fg: #1e1b17;
  --hero-eyebrow: #e0b18c;

  /* Raster */
  --wrap: 1400px;
  --wrap-narrow: 1256px;
  --pad-x: 72px;
  --gap-col: 90px;
  --gap-card: 40px;

  /* Vertikaler Rhythmus */
  --sec-y: 150px;
  --sec-y-lg: 160px;
  --sec-y-cta: 170px;
  --hero-y-top: 90px;
  --hero-y-bottom: 140px;
  --sec-y-sm: 110px;

  /* Typografie - Deckel entspricht exakt dem bisherigen Desktop-Wert bei 1440px */
  --fs-hero: min(86px, max(38px, 6vw));
  --fs-h1: min(66px, max(34px, 4.6vw));
  --fs-h2: min(56px, max(30px, 3.9vw));
  --fs-h2-sm: min(54px, max(29px, 3.76vw));
  --fs-h2-cta: min(80px, max(44px, 5.6vw));
  --fs-quote: min(52px, max(28px, 3.62vw));
  --fs-h3: min(23px, max(20px, 1.6vw));
  --fs-lead: min(21px, max(18px, 1.5vw));
  --fs-body: min(20px, max(17px, 1.4vw));
  --fs-body-sm: min(18px, max(16px, 1.25vw));
  --fs-eyebrow: 15px;
}

@media (max-width: 1100px) {
  :root {
    --pad-x: 48px;
    --gap-col: 56px;
    --gap-card: 32px;
    --sec-y: 110px;
    --sec-y-lg: 116px;
    --sec-y-cta: 120px;
    --hero-y-top: 64px;
    --hero-y-bottom: 96px;
    --sec-y-sm: 80px;
  }
}

@media (max-width: 900px) {
  :root {
    --pad-x: 36px;
    --gap-col: 44px;
    --gap-card: 28px;
    --sec-y: 88px;
    --sec-y-lg: 92px;
    --sec-y-cta: 96px;
    --hero-y-top: 48px;
    --hero-y-bottom: 72px;
    --sec-y-sm: 64px;
  }
}

@media (max-width: 640px) {
  :root {
    --pad-x: 20px;
    --gap-col: 32px;
    --gap-card: 24px;
    --sec-y: 64px;
    --sec-y-lg: 68px;
    --sec-y-cta: 72px;
    --hero-y-top: 36px;
    --hero-y-bottom: 56px;
    --sec-y-sm: 48px;
    --fs-eyebrow: 13px;
  }
}

/* ==========================================================================
   2. Basis
   ========================================================================== */

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

html, body { margin: 0; padding: 0; background: #ffffff; }

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

body {
  font-family: 'Karla', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  /* Bewusst KEIN overflow-x hier: sowohl hidden als auch clip erzeugen einen
     Kontext, der position:fixed-Kindern die Viewport-Verankerung nimmt. Das
     Menue-Overlay sass dadurch bei gescrollter Seite an der falschen Stelle.
     Ueberhang wird stattdessen an der Quelle vermieden (siehe Breakpoints). */
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; }

::selection { background: #ece2d6; }

input::placeholder, textarea::placeholder { color: var(--muted-3); }

.mb-shell { background: #ffffff; }

.mb-anim-in { animation: fadeUp 0.9s ease both; }
.mb-anim-in--late { animation: fadeUp 1.1s ease 0.15s both; }

@keyframes heroIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

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

/* ==========================================================================
   3. Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  /* Ausblenden beim Runterscrollen laeuft ueber top, NICHT ueber transform:
     jeder Transform (auch translateY(0)) macht den Header zum Containing Block
     fuer position:fixed - das Menue-Overlay haengt dann an der Kopfzeile
     statt am Viewport. */
  transition: top 0.35s ease;
  padding: 22px var(--pad-x);
}

.site-header .nav-inner {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  white-space: nowrap;
}

.site-header .main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 17px;
  font-weight: 500;
}

.site-header .nav-link { color: var(--muted); }
.site-header .nav-link:hover { color: var(--ink); }
.site-header .nav-link.active { color: var(--ink); font-weight: 700; }

/* Textlink statt Flaeche: zwei Linien uebereinander.
   ::before liegt ruhend im hellen Ton, ::after wischt beim Ueberfahren
   von links in der kraeftigen Akzentfarbe darueber. */
.site-header .nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  color: var(--accent); /* #8a5a3e */
  font-weight: 700;
  padding: 13px 2px 15px;
  border-radius: 0;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.12s ease;
}

/* Unterstrich liegt nur unter dem Wort, nicht unter dem Icon */
.site-header .nav-cta__label { position: relative; display: inline-block; }
/* Im Ruhezustand keine Linie. Beim Ueberfahren wischt sie von links ein,
   immer in der aktuellen Textfarbe (currentColor). */
.site-header .nav-cta__label::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), height 0.15s ease;
}

.site-header .nav-cta__icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  display: block;
  transition: transform 0.25s ease;
}

.site-header .nav-cta:hover,
.site-header .nav-cta:active { color: var(--accent-light); }
.site-header .nav-cta:hover .nav-cta__label::after,
.site-header .nav-cta:focus-visible .nav-cta__label::after { transform: scaleX(1); }
.site-header .nav-cta:hover .nav-cta__icon { transform: translateY(-1px); }

/* Druckzustand: Text senkt sich, Linie wird kraeftiger */
.site-header .nav-cta:active { transform: translateY(1px); }
.site-header .nav-cta:active .nav-cta__label::after { height: 3px; transform: scaleX(1); }
.site-header .nav-cta:active .nav-cta__icon { transform: none; }

.site-header .nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Schliessen-Knopf im Overlay */
.mb-nav-close {
  display: none;
  position: absolute;
  top: 16px;
  right: calc(var(--pad-x) - 10px);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 2;
}
.mb-nav-close span {
  position: absolute;
  left: 10px;
  top: 21px;
  width: 24px;
  height: 2px;
  background: var(--ink);
}
.mb-nav-close span:nth-child(1) { transform: rotate(45deg); }
.mb-nav-close span:nth-child(2) { transform: rotate(-45deg); }

/* Burger - nur unterhalb 900px sichtbar */
.mb-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}
.mb-burger span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.mb-burger span:nth-child(1) { top: 15px; }
.mb-burger span:nth-child(2) { top: 21px; }
.mb-burger span:nth-child(3) { top: 27px; }

@media (max-width: 1100px) {
  .site-header .main-nav { gap: 24px; font-size: 16px; }
  .site-header .nav-cta { padding: 12px 20px; }
  .site-header .brand { font-size: 24px; }
}

@media (max-width: 900px) {
  /* backdrop-filter macht den Header zum Containing Block fuer position:fixed.
     Das Menue-Overlay wuerde sich sonst an der Kopfzeile statt am Viewport
     ausrichten und waere nicht erreichbar. Darum hier deckend statt blurred. */
  .site-header {
    padding: 14px var(--pad-x);
    backdrop-filter: none;
    background: #ffffff;
  }
  .mb-burger { display: block; }

  .site-header .main-nav {
    position: fixed;
    inset: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 88px var(--pad-x) 40px;
    font-size: 26px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
    z-index: 60;
  }
  .mb-nav-open .site-header .main-nav { transform: translateX(0); }

  .site-header .main-nav .nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    font-weight: 500;
    padding: 12px 0;
    color: var(--ink);
  }
  .site-header .main-nav .nav-cta {
    margin-top: 28px;
    font-size: 19px;
    padding: 6px 2px 12px;
    align-self: flex-start;
  }
  .site-header .main-nav .nav-cta__icon { width: 20px; height: 20px; }
  /* Bewusst keine Scrollsperre: jede Variante (overflow:hidden auf <html>
     oder Body-Fixierung) setzt den Scrollstand zurueck oder laesst auf
     Mobilgeraeten die Adressleiste fahren, wodurch das Overlay sichtbar
     nachwaechst. Das Overlay deckt den Viewport blickdicht ab, und
     overscroll-behavior verhindert das Durchscrollen auf die Seite. */
  .site-header .main-nav { overscroll-behavior: contain; }

  /* Der Burger verschwindet beim Oeffnen, sonst laege er genau ueber dem
     Schliessen-Knopf des Overlays. */
  .mb-nav-open .mb-burger { display: none; }
  /* Der Schliessen-Knopf sitzt im Overlay selbst, nicht in der Kopfzeile.
     Deshalb ist es egal, wo der Header beim Oeffnen gerade steht. */
  .mb-nav-close { display: block; }
}

/* ==========================================================================
   4. Layout-Primitive
   ========================================================================== */

/* Band = Sektion ueber die volle Breite mit vertikalem Rhythmus */
.mb-band { padding: var(--sec-y) var(--pad-x); }
.mb-band--lg { padding: var(--sec-y-lg) var(--pad-x); }
.mb-band--sand { background: var(--sand); }
.mb-band--line-top { border-top: 1px solid var(--line); }
.mb-band--line-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mb-band--flush { padding-left: 0; padding-right: 0; }

/* Wrap = zentrierter Inhaltscontainer */
.mb-wrap { max-width: var(--wrap-narrow); margin: 0 auto; }
.mb-wrap--wide { max-width: var(--wrap); margin: 0 auto; }

/* Sektion, die zugleich Wrap ist (Shape A der Templates) */
.mb-sec {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--sec-y) var(--pad-x);
}
.mb-sec--lg { padding-top: var(--sec-y-lg); padding-bottom: var(--sec-y-lg); }
.mb-sec--hero { padding: var(--hero-y-top) var(--pad-x) var(--hero-y-bottom); }
.mb-sec--hero-120 { padding-bottom: calc(var(--hero-y-bottom) - 20px); }
.mb-sec--kontakt { padding: var(--hero-y-top) var(--pad-x) var(--sec-y); }
.mb-sec--posts { display: flex; flex-direction: column; padding-top: var(--sec-y-sm); }
.mb-sec--narrow { max-width: var(--wrap-narrow); }

/* Randlinien als eigenstaendige Hilfsklassen */
.mb-line-top { border-top: 1px solid var(--line); }
.mb-line-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mb-center { text-align: center; }

/* Textspalte in einem randbuendigen Split-Band (Wo und wie) */
.mb-splitband__text {
  padding: 84px 88px 84px var(--pad-x);
  justify-content: center;
}
@media (max-width: 1100px) { .mb-splitband__text { padding: 72px 56px 72px var(--pad-x); } }
@media (max-width: 900px)  { .mb-splitband__text { padding: var(--sec-y) var(--pad-x); } }

/* Zwei-Spalten-Split */
.mb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-col);
}
.mb-split--center { align-items: center; }
.mb-split--start { align-items: start; }
.mb-split--stretch { align-items: stretch; }

.mb-split--11-09 { grid-template-columns: 1.1fr 0.9fr; }
.mb-split--09-11 { grid-template-columns: 0.9fr 1.1fr; }
.mb-split--085-115 { grid-template-columns: 0.85fr 1.15fr; }
.mb-split--115-085 { grid-template-columns: 1.15fr 0.85fr; }
.mb-split--105-095 { grid-template-columns: 1.05fr 0.95fr; }

/* Ueberschrift optisch rechts, Fliesstext links.
   Die Ueberschrift bleibt im Markup vorne (Vorlesereihenfolge, Mobil),
   getauscht wird nur die Platzierung im Raster. */
.mb-split--head-right { grid-template-columns: 1.1fr 0.9fr; }
.mb-split--head-right > :first-child  { grid-column: 2; grid-row: 1; }
.mb-split--head-right > :nth-child(2) { grid-column: 1; grid-row: 1; }

/* Unter 900px klappen alle Splits auf eine Spalte */
@media (max-width: 900px) {
  .mb-split,
  .mb-split--11-09,
  .mb-split--09-11,
  .mb-split--085-115,
  .mb-split--115-085,
  .mb-split--105-095,
  .mb-split--head-right {
    grid-template-columns: 1fr;
  }
  .mb-split--head-right > :first-child,
  .mb-split--head-right > :nth-child(2) { grid-column: 1; grid-row: auto; }
  /* Bild im Hero unter den Text */
  .mb-split--media-first > .mb-img,
  .mb-split--media-first > .mb-figure { order: 2; }
}

/* Kartenraster */
.mb-cards { display: grid; gap: var(--gap-card); }
.mb-cards--4 { grid-template-columns: repeat(4, 1fr); }
.mb-cards--3 { grid-template-columns: repeat(3, 1fr); }
.mb-cards--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1100px) {
  .mb-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .mb-cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mb-cards--4,
  .mb-cards--3,
  .mb-cards--2 { grid-template-columns: 1fr; }
}

/* Vertikale Stapel */
.mb-stack { display: flex; flex-direction: column; }
.mb-stack--12 { gap: 12px; }
.mb-stack--14 { gap: 14px; }
.mb-stack--16 { gap: 16px; }
.mb-stack--18 { gap: 18px; }
.mb-stack--22 { gap: 22px; }
.mb-stack--24 { gap: 24px; }
.mb-stack--26 { gap: 26px; }
.mb-stack--28 { gap: 28px; }
.mb-stack--30 { gap: 30px; }
.mb-stack--32 { gap: 32px; }
.mb-mt-8 { margin-top: 8px; }

/* ==========================================================================
   5. Typografie
   ========================================================================== */

.mb-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.mb-rule {
  width: 36px;
  height: 2px;
  background: currentColor;
  display: inline-block;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .mb-eyebrow { gap: 10px; letter-spacing: 0.18em; }
  .mb-rule { width: 24px; }
}

.mb-serif { font-family: 'Cormorant Garamond', serif; font-weight: 500; }

.mb-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 1.08;
  margin: 0;
  color: var(--hero-ink);
  max-width: 17ch;
  text-wrap: balance;
}

.mb-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.mb-h1--64 { font-size: min(64px, max(34px, 4.46vw)); }
.mb-h1--62 { font-size: min(62px, max(33px, 4.31vw)); }

.mb-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
.mb-h2--tight { line-height: 1.15; }
.mb-h2--sm { font-size: var(--fs-h2-sm); }
.mb-h2--cta { font-size: var(--fs-h2-cta); line-height: 1.05; color: #ffffff; }
.mb-h2--gap { margin-bottom: 80px; }
.mb-h2--34 { font-size: min(34px, max(26px, 2.37vw)); line-height: 1.2; }
.mb-h2--58 { font-size: min(58px, max(31px, 4.03vw)); }

@media (max-width: 900px) { .mb-h2--gap { margin-bottom: 48px; } }
@media (max-width: 640px) { .mb-h2--gap { margin-bottom: 32px; } }

.mb-h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
}
.mb-h3--21 { font-size: min(21px, max(19px, 1.46vw)); }
.mb-h3--20 { font-size: min(20px, max(18px, 1.39vw)); }

.mb-lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.mb-lead--52 { max-width: 52ch; }
.mb-lead--50 { max-width: 50ch; }
.mb-lead--42 { max-width: 42ch; }
.mb-lead--hero { color: var(--hero-sub); max-width: 42ch; }

.mb-text {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.mb-text--sm { font-size: var(--fs-body-sm); line-height: 1.65; }
.mb-text--19 { font-size: min(19px, max(17px, 1.32vw)); line-height: 1.7; }
.mb-text--18 { font-size: var(--fs-body-sm); line-height: 1.7; }
.mb-text--65 { line-height: 1.65; }

.mb-prose {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--muted);
}
.mb-prose p { margin: 0; }
.mb-prose--22 { gap: 22px; }

.mb-strong { color: var(--ink); }
.mb-strong--light { color: #ffffff; }
.mb-strong--hero { color: var(--hero-ink); }
.mb-em { font-style: italic; }

.mb-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-quote);
  line-height: 1.3;
  color: var(--ink);
  max-width: 24ch;
  margin: 0 auto 18px;
  text-wrap: balance;
}

.mb-label {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.mb-caption {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}

.mb-numeral {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 21px;
  color: var(--accent);
}

.mb-step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--numeral);
  font-weight: 500;
  min-width: 34px;
}

/* ==========================================================================
   6. Buttons und Links
   ========================================================================== */

.mb-btn {
  display: inline-block;
  border: 0;
  border-radius: 4px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  padding: 17px 36px;
  font-size: 17px;
}
.mb-btn--light { background: #ffffff; color: var(--ink); }
.mb-btn--light:hover { background: var(--accent-soft); color: var(--ink); }
.mb-btn--dark { background: var(--ink); color: #ffffff; }
.mb-btn--dark:hover { background: var(--accent); color: #ffffff; }
.mb-btn--lg { padding: 18px 40px; font-size: 18px; }
.mb-btn--sm { padding: 15px 32px; }
.mb-btn--start { align-self: flex-start; }
.mb-btn--38 { padding-left: 38px; padding-right: 38px; }
.mb-btn--nowrap { white-space: nowrap; }

.mb-link-ul {
  align-self: flex-start;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
}
.mb-link-ul:hover { color: var(--accent); border-bottom-color: var(--accent); }
.mb-link-ul--sm { font-size: 16px; padding-bottom: 2px; white-space: nowrap; }

.mb-link-accent {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 2px;
}

@media (max-width: 640px) {
  /* Schriftzug verkleinern, sonst drueckt er den Burger aus dem Viewport */
  .site-header .brand { font-size: 18px; letter-spacing: 0.03em; }
  .site-header .nav-inner { gap: 12px; }

  .mb-btn { padding: 15px 26px; font-size: 16px; }
  .mb-btn--lg { padding: 16px 30px; font-size: 17px; }
  /* Volle Breite auf dem Handy, damit die Trefferflaeche stimmt */
  .mb-btn--block-sm { display: block; width: 100%; align-self: stretch; }
}

/* ==========================================================================
   7. Bilder
   ========================================================================== */

.mb-img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.mb-img--round { border-radius: 6px; }

.mb-img--h220 { height: 220px; }
.mb-img--h240 { height: 240px; }
.mb-img--h400 { height: 400px; }
.mb-img--h440 { height: 440px; }
.mb-img--h460 { height: 460px; }
.mb-img--h500 { height: 500px; }
.mb-img--h520 { height: 520px; }
.mb-img--h540 { height: 540px; align-self: center; }
.mb-img--h640 { height: 640px; }

@media (max-width: 1100px) {
  .mb-img--h220 { height: 190px; }
  .mb-img--h440 { height: 380px; }
  .mb-img--h400 { height: 340px; }
  .mb-img--h460 { height: 380px; }
  .mb-img--h500 { height: 400px; }
  .mb-img--h520 { height: 420px; }
  .mb-img--h540 { height: 440px; }
  .mb-img--h640 { height: 480px; }
}
@media (max-width: 900px) {
  .mb-img--h220 { height: 200px; }
  .mb-img--h440 { height: 340px; }
  .mb-img--h240 { height: 220px; }
  .mb-img--h400 { height: 300px; }
  .mb-img--h460 { height: 320px; }
  .mb-img--h500 { height: 340px; }
  .mb-img--h520 { height: 360px; }
  .mb-img--h540 { height: 360px; }
  .mb-img--h640 { height: 400px; }
}
@media (max-width: 640px) {
  .mb-img--h220 { height: 190px; }
  .mb-img--h440 { height: 260px; }
  .mb-img--h240 { height: 200px; }
  .mb-img--h400 { height: 240px; }
  .mb-img--h460 { height: 240px; }
  .mb-img--h500 { height: 250px; }
  .mb-img--h520 { height: 260px; }
  .mb-img--h540 { height: 260px; }
  .mb-img--h640 { height: 280px; }
}

.mb-img-frame { overflow: hidden; border-radius: 4px; }
.mb-img-frame .mb-img { transition: transform 0.6s ease; }

.mb-obj-18 { object-position: center 18%; }
.mb-obj-25 { object-position: center 25%; }
.mb-obj-40 { object-position: center 40%; }

/* ==========================================================================
   8. Hero (Startseite)
   ========================================================================== */

.mb-hero {
  position: relative;
  height: 86vh;
  min-height: 620px;
  overflow: hidden;
  background: #17120d;
}
.mb-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 22%;
  display: block;
  animation: heroIn 1.4s ease both;
}
.mb-hero__veil { position: absolute; inset: 0; background: var(--hero-overlay); }
.mb-hero__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  animation: fadeUp 1s ease 0.2s both;
}
.mb-hero__actions { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.mb-hero__meta { font-size: 15px; color: var(--hero-meta); font-weight: 500; }
.mb-hero__scroll {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  color: var(--hero-meta);
  font-size: 24px;
  animation: fadeUp 1s ease 0.8s both;
}

@media (max-width: 900px) {
  .mb-hero { height: auto; min-height: 0; padding: 120px 0 96px; }
  .mb-hero__inner { height: auto; gap: 24px; }
  .mb-hero__veil {
    background: linear-gradient(180deg, rgba(18,16,10,0.55) 0%, rgba(18,16,10,0.78) 45%, rgba(18,16,10,0.88) 100%);
  }
  .mb-hero-title { max-width: none; }
  .mb-lead--hero { max-width: none; }
  .mb-hero__scroll { display: none; }
}

@media (max-width: 640px) {
  .mb-hero { padding: 96px 0 72px; }
  .mb-hero__actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .mb-hero__meta { text-align: center; }
}

/* ==========================================================================
   9. CTA-Band "Sei so frei."
   ========================================================================== */

.mb-cta {
  position: relative;
  background: var(--ink);
  padding: var(--sec-y-cta) var(--pad-x);
  overflow: hidden;
}
.mb-cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.mb-cta__veil { position: absolute; inset: 0; background: rgba(16,14,11,0.78); }
.mb-cta__inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.mb-cta__text {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: #b3aca1;
  margin: 0;
  max-width: 56ch;
}

/* ==========================================================================
   10. Karten
   ========================================================================== */

.mb-card { display: flex; flex-direction: column; gap: 14px; }

.mb-card-format { display: flex; flex-direction: column; }
.mb-card-format__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 2px solid var(--ink);
  padding-top: 26px;
  margin-top: 22px;
}
/* Karten ohne Bild behalten das alte Aussehen */
.mb-card-format > .mb-numeral:first-child { margin-top: 0; }

.mb-quote-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mb-quote-card__stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.mb-quote-card__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: min(24px, max(20px, 1.67vw));
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
  margin: 0;
}
.mb-quote-card__who { font-size: 17px; font-weight: 700; color: var(--muted); }
.mb-quote-card__who span { font-weight: 400; }

@media (max-width: 900px) { .mb-quote-card { padding: 32px 30px; } }
@media (max-width: 640px) { .mb-quote-card { padding: 26px 22px; } }

.mb-panel {
  background: var(--sand);
  border-radius: 6px;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 640px) { .mb-panel { padding: 28px 24px; } }

/* Kopfzeile einer Sektion: Titel links, Beitext rechts */
.mb-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
}
.mb-sec-head__note {
  font-size: var(--fs-body-sm);
  color: var(--muted-2);
  margin: 0;
  max-width: 38ch;
  text-align: right;
}
@media (max-width: 900px) {
  .mb-sec-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 48px; }
  .mb-sec-head__note { text-align: left; max-width: none; }
}
@media (max-width: 640px) { .mb-sec-head { margin-bottom: 32px; } }

/* Nummerierte Schritte */
.mb-step { display: flex; gap: 22px; align-items: baseline; }
.mb-step__body { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 640px) {
  .mb-step { gap: 14px; }
  .mb-step-num { font-size: 22px; min-width: 26px; }
}

/* Aufzaehlung mit Gedankenstrich */
.mb-dashlist { display: flex; flex-direction: column; gap: 12px; font-size: min(19px, max(17px, 1.32vw)); color: var(--muted); }
.mb-dashlist__item { display: flex; align-items: baseline; gap: 12px; }
.mb-dashlist__dash { color: var(--accent); flex: 0 0 auto; }

/* ==========================================================================
   11. Blog-Liste
   ========================================================================== */

.mb-posts { display: flex; flex-direction: column; }

.mb-post {
  display: grid;
  grid-template-columns: 0.9fr 2fr auto;
  gap: 48px;
  align-items: baseline;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.mb-post:last-child { border-bottom: 0; }

.mb-post__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: min(30px, max(24px, 2.08vw));
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.mb-post__title a { color: var(--ink); }
.mb-post__title a:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .mb-post { grid-template-columns: 1fr 1.6fr auto; gap: 32px; }
}
@media (max-width: 900px) {
  .mb-post {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    padding: 32px 0;
  }
  .mb-post .mb-link-ul--sm { justify-self: start; }
}

/* ==========================================================================
   12. Kontaktformular
   ========================================================================== */

.mb-form { display: flex; flex-direction: column; gap: 18px; }
.mb-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.mb-input {
  font-family: 'Karla', sans-serif;
  font-size: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  width: 100%;
}
.mb-input:focus { border-color: var(--accent); }
textarea.mb-input { resize: vertical; }

@media (max-width: 640px) {
  .mb-form__row { grid-template-columns: 1fr; }
  .mb-input { font-size: 16px; padding: 14px 16px; }
}

.mb-social-row { display: flex; gap: 28px; font-size: 17px; margin-top: 4px; }

/* ==========================================================================
   13. Footer
   ========================================================================== */

.site-footer { background: var(--sand-2); padding: 56px var(--pad-x) 40px; }

.site-footer .footer-inner {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-size: 16px;
}
.site-footer .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer .footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.site-footer .footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer .footer-nav a,
.site-footer .footer-legal a { color: #6b655c; }
.site-footer .footer-nav a:hover,
.site-footer .footer-legal a:hover { color: var(--ink); }
.site-footer .footer-social {
  display: flex;
  justify-content: center;
  gap: 36px;
  border-top: 1px solid var(--line-2);
  padding-top: 28px;
}
.site-footer .footer-social a { color: #6b655c; font-weight: 600; }
.site-footer .footer-social a:hover { color: var(--ink); }
.site-footer .footer-legal {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 28px;
  flex-wrap: wrap;
}
.site-footer .footer-legal span { color: var(--muted-3); }

@media (max-width: 900px) {
  .site-footer .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .site-footer .footer-nav { gap: 18px 24px; }
}
@media (max-width: 640px) {
  .site-footer { padding: 40px var(--pad-x) 32px; }
  .site-footer .footer-social { gap: 24px; }
  .site-footer .footer-legal { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
}

/* ==========================================================================
   14. Beitragsseite (index.php)
   ========================================================================== */

.mb-single { max-width: var(--wrap-narrow); margin: 0 auto; padding: var(--hero-y-top) var(--pad-x); }
.mb-single__article { padding: 0 0 60px; }
.mb-single__body { font-size: min(19px, max(17px, 1.32vw)); line-height: 1.7; color: var(--muted); }
.mb-single__body img { height: auto; border-radius: 6px; }
.mb-link-inherit { color: inherit; }
.mb-link-inherit:hover { color: var(--accent); }

/* ==========================================================================
   15. Hover-Zustaende (Bestand, weiter genutzt)
   ========================================================================== */

.hv0:hover { background: var(--accent-soft) !important; color: var(--ink) !important; }
.hv1:hover { transform: scale(1.05) !important; }
.hv2:hover { color: var(--accent) !important; border-bottom: 2px solid var(--accent) !important; }
.hv3:hover { color: var(--accent) !important; }
.hv4:hover { background: var(--accent) !important; }
.hv5:hover { background: var(--accent) !important; color: #ffffff !important; }
.hv6:focus { border: 1px solid var(--accent) !important; }

/* Touch-Geraete: Hover-Transforms deaktivieren */
@media (hover: none) {
  .hv1:hover { transform: none !important; }
}

/* ==========================================================================
   16. Einzelner Blogbeitrag
   ========================================================================== */

/* Kopf: schmal und zentriert, funktioniert auch ohne Beitragsbild */
.mb-article-head {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--hero-y-top) var(--pad-x) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.mb-article-head .mb-eyebrow { justify-content: center; }
.mb-article-head__title { text-wrap: balance; }
.mb-article-head__lead { max-width: 60ch; }

.mb-article-figure {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 64px var(--pad-x) 0;
}
@media (max-width: 640px) { .mb-article-figure { padding-top: 36px; } }

/* Fliesstext */
.mb-article-band { padding: var(--sec-y-sm) var(--pad-x) var(--sec-y); }

.mb-article {
  max-width: 68ch;
  margin: 0 auto;
  font-size: min(19px, max(17px, 1.32vw));
  line-height: 1.8;
  color: var(--muted);
}
.mb-article > *:first-child { margin-top: 0; }
.mb-article > *:last-child { margin-bottom: 0; }

.mb-article p { margin: 0 0 1.5em; }

.mb-article h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: min(38px, max(27px, 2.64vw));
  line-height: 1.2;
  color: var(--ink);
  margin: 2.2em 0 0.6em;
  text-wrap: balance;
}
.mb-article h3 {
  font-size: min(22px, max(19px, 1.53vw));
  font-weight: 700;
  color: var(--ink);
  margin: 1.8em 0 0.5em;
}

.mb-article strong { color: var(--ink); font-weight: 700; }
.mb-article em, .mb-article i { font-style: italic; }

.mb-article a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
}
.mb-article a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }

.mb-article ul, .mb-article ol { margin: 0 0 1.5em; padding-left: 1.3em; }
.mb-article li { margin-bottom: 0.6em; }
.mb-article li::marker { color: var(--accent); }

.mb-article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.6em 0;
}

/* Bilder duerfen breiter sein als die Textspalte */
.mb-prose__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 2.2em 0;
}
.mb-article__wide { max-width: 900px; }
.mb-prose__figure { margin: 2.2em 0; }
.mb-prose__figure .mb-prose__img { margin: 0; }
.mb-prose__figure figcaption {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted-2);
  text-align: center;
}

.mb-prose__cta { margin: 2.2em 0; }

/* Fuss: zurueck zur Uebersicht plus Nachbarbeitraege */
.mb-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-card); }

/* Dezente Karten, heller als das sandfarbene Band darunter.
   Die ganze Karte ist der Link, nicht nur die Ueberschrift. */
.mb-postnav__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 34px;
  color: var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.mb-postnav__card:hover {
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: 0 10px 30px rgba(30, 27, 23, 0.07);
  transform: translateY(-2px);
}
/* Steht nur der naechste Beitrag zur Verfuegung, bleibt er trotzdem rechts */
.mb-postnav__card--next { grid-column: 2; text-align: right; align-items: flex-end; }

.mb-postnav__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}
.mb-postnav__arrow { color: var(--accent); font-size: 15px; line-height: 1; }

.mb-postnav__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: min(26px, max(20px, 1.81vw));
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.3s ease;
}
.mb-postnav__card:hover .mb-postnav__title { color: var(--accent); }

.mb-postnav__back { display: flex; justify-content: center; margin-top: 48px; }

@media (max-width: 900px) {
  .mb-postnav__card { padding: 26px 28px; }
}
@media (max-width: 640px) {
  .mb-postnav { grid-template-columns: 1fr; gap: 16px; }
  .mb-postnav__card { padding: 22px 24px; }
  .mb-postnav__card--next { grid-column: 1; text-align: left; align-items: flex-start; }
  .mb-postnav__back { margin-top: 32px; }
}

/* ==========================================================================
   17. Blaettern in der Beitragsliste
   ========================================================================== */

.mb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 72px;
  flex-wrap: wrap;
}
.mb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.mb-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.mb-pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}
.mb-pagination .page-numbers.dots { border: 0; min-width: 24px; }

@media (max-width: 640px) {
  .mb-pagination { margin-top: 44px; gap: 8px; }
  .mb-pagination .page-numbers { min-width: 40px; height: 40px; font-size: 15px; }
}

/* Datum in der Beitragsliste */
.mb-post__meta {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
  margin: 0 0 10px;
}


/* ==========================================================================
   18. Haeufige Fragen
   ========================================================================== */

/* Bild bleibt beim Scrollen durch die Fragen stehen */
.mb-faq-media { position: sticky; top: 116px; }

.mb-faq { border-top: 1px solid var(--line); }

.mb-faq__item { border-bottom: 1px solid var(--line); }

.mb-faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: min(26px, max(21px, 1.81vw));
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.25s ease;
}
.mb-faq__q::-webkit-details-marker { display: none; }
.mb-faq__q::marker { content: ''; }
.mb-faq__q:hover { color: var(--accent); }
.mb-faq__q:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Plus, das sich beim Oeffnen zum Minus dreht */
.mb-faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 7px;
}
.mb-faq__icon::before,
.mb-faq__icon::after {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 2px;
  background: var(--accent);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.mb-faq__icon::after { transform: rotate(90deg); }
.mb-faq__item[open] .mb-faq__icon::after { transform: rotate(0deg); }

.mb-faq__a {
  padding: 0 44px 24px 0;
  font-size: min(19px, max(17px, 1.32vw));
  line-height: 1.75;
  color: var(--muted);
}
.mb-faq__a p { margin: 0 0 1em; }
.mb-faq__a p:last-child { margin-bottom: 0; }
.mb-faq__a strong { color: var(--ink); }

@media (max-width: 900px) {
  .mb-faq-media { position: static; }
}
@media (max-width: 640px) {
  .mb-faq__q { gap: 16px; padding: 18px 0; }
  .mb-faq__a { padding-right: 0; padding-bottom: 20px; }
}


/* ==========================================================================
   19. Kontaktformular
   ========================================================================== */

/* Honigtopf: fuer Menschen unsichtbar, aber nicht display:none -
   manche Bots ueberspringen ausgeblendete Felder gezielt. */
.mb-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Beschriftungen sind fuer Screenreader da; sichtbar sind die Platzhalter */
.mb-field-label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mb-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: min(16px, max(15px, 1.11vw));
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}
.mb-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.mb-consent a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.mb-consent a:hover { border-bottom-color: var(--accent); }

.mb-notice {
  padding: 18px 22px;
  border-radius: 6px;
  border-left: 3px solid;
  font-size: min(18px, max(16px, 1.25vw));
  line-height: 1.6;
}
.mb-notice--ok {
  background: #f1f6f1;
  border-left-color: #4a7c52;
  color: #2f4f35;
}
.mb-notice--fehler {
  background: #fbf1ee;
  border-left-color: var(--accent);
  color: #7a3f2c;
}
.mb-notice strong { font-weight: 700; }
.mb-notice:focus { outline: none; }

.mb-input:invalid:not(:placeholder-shown) { border-color: #c47b63; }

/* ==========================================================================
   20. Rechtstexte (Impressum, Datenschutz)
   ========================================================================== */

.mb-legal-band { padding-top: var(--sec-y-sm); padding-bottom: var(--sec-y); }

.mb-legal__body {
  max-width: 74ch;
  font-size: min(18px, max(16px, 1.25vw));
  line-height: 1.8;
  color: var(--muted);
}

.mb-legal__body > *:first-child { margin-top: 0; }
.mb-legal__body > *:last-child { margin-bottom: 0; }

.mb-legal__body p { margin: 0 0 1.4em; }

/* Nummerierte Hauptabschnitte deutlich absetzen */
.mb-legal__body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: min(34px, max(26px, 2.36vw));
  line-height: 1.25;
  color: var(--ink);
  margin: 2.6em 0 0.7em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.mb-legal__body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.mb-legal__body h3 {
  font-size: min(19px, max(17px, 1.32vw));
  font-weight: 700;
  color: var(--ink);
  margin: 1.9em 0 0.5em;
}

.mb-legal__body strong { color: var(--ink); font-weight: 700; }

.mb-legal__body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  /* Lange URLs duerfen umbrechen, sonst sprengen sie die Spalte */
  word-break: break-word;
}
.mb-legal__body a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }

.mb-legal__body ul,
.mb-legal__body ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.mb-legal__body li { margin-bottom: 0.5em; }
.mb-legal__body li::marker { color: var(--accent); }

.mb-legal__body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

.mb-legal__stand {
  margin: 56px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}

@media (max-width: 640px) {
  .mb-legal__body h2 { margin-top: 2em; padding-top: 1em; }
  .mb-legal__stand { margin-top: 40px; }
}

/* ==========================================================================
   21. Siegel im Fussbereich
   ========================================================================== */

.site-footer .footer-ident {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.site-footer .footer-siegel {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Dezent: leicht zurueckgenommen, beim Ueberfahren voll da */
.mb-siegel {
  display: inline-block;
  line-height: 0;
  opacity: 0.62;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.mb-siegel img {
  width: 72px;
  height: 72px;
  display: block;
}
a.mb-siegel:hover,
a.mb-siegel:focus-visible {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-1px);
}
a.mb-siegel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 50%;
}

@media (max-width: 900px) {
  .site-footer .footer-ident { gap: 14px; }
  .mb-siegel img { width: 64px; height: 64px; }
}


/* Bewertungssiegel neben dem Lizenzsiegel */
.mb-google {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(255,255,255,0.5);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
a.mb-google:hover,
a.mb-google:focus-visible {
  border-color: var(--accent-soft);
  background: #ffffff;
  color: var(--ink);
  transform: translateY(-1px);
}
a.mb-google:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mb-google__note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.mb-google__rechts { display: flex; flex-direction: column; gap: 3px; }
.mb-google__sterne { color: var(--accent); font-size: 13px; letter-spacing: 2px; line-height: 1; }
.mb-google__text {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .site-footer .footer-siegel { gap: 12px; }
  .mb-google { padding: 8px 13px; gap: 9px; }
  .mb-google__note { font-size: 23px; }
  .mb-google__text { font-size: 11px; }
}


/* Gestaltungshinweis im Fussbereich */
.site-footer .mb-credit-trenner { color: var(--line-2); margin: 0 4px; }
.site-footer .mb-credit { color: var(--muted-3); }
.site-footer .mb-credit:hover { color: var(--accent); }


/* Groessere Fassung des Siegels, etwa im Kopf der Referenzen-Seite */
.mb-google--gross { align-self: flex-start; padding: 14px 22px; gap: 14px; }
.mb-google--gross .mb-google__note { font-size: 34px; }
.mb-google--gross .mb-google__sterne { font-size: 15px; }
.mb-google--gross .mb-google__text { font-size: 13px; }

@media (max-width: 640px) {
  .mb-google--gross { padding: 11px 17px; gap: 11px; }
  .mb-google--gross .mb-google__note { font-size: 28px; }
  .mb-google--gross .mb-google__text { font-size: 12px; }
}


/* ------------------------------------------------- Suche, 404, Wegweiser */

.mb-suche {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}
.mb-suche .mb-input { flex: 1 1 260px; min-width: 0; }
.mb-suche .mb-btn { flex: 0 0 auto; }

.mb-wege {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
}

@media (max-width: 640px) {
  .mb-suche .mb-btn { width: 100%; }
  .mb-wege { gap: 12px 22px; }
}


/* ------------------------------------------------- Einwilligung (Cookies) */

.mb-consent {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 1000;
  display: flex;
  justify-content: center;
}
.mb-consent[hidden] { display: none; }
/* Eigene display-Werte schlagen sonst das hidden-Attribut der Browser. */
.mb-consent [hidden] { display: none !important; }
/* Bei offenem Mobilmenue zurueckstellen - das Banner liegt sonst
   ueber der Navigation und blockiert sie. */
.mb-nav-open .mb-consent { display: none !important; }

.mb-consent__box {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(30, 27, 23, .16);
  padding: 26px 28px 22px;
}

.mb-consent__titel {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--ink);
}
.mb-consent__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
}

.mb-consent__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 20px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--line);
}
.mb-consent__wahl {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.mb-consent__wahl--fest { cursor: default; opacity: .72; }
.mb-consent__wahl input {
  margin: 3px 0 0;
  width: 17px; height: 17px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.mb-consent__wahl strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.mb-consent__wahl em {
  display: block;
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-2);
  margin-top: 2px;
}

.mb-consent__aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
/* Zustimmen und Ablehnen bewusst gleich gross und gleich deutlich -
   eine optisch schwaechere Ablehnung waere nicht zulaessig. Die weisse
   Standardvariante ist hier unbrauchbar, weil die Karte selbst weiss ist:
   das Ablehnen bekommt deshalb eine Kontur in derselben Staerke. */
.mb-consent__aktionen .mb-btn {
  flex: 1 1 45%;
  min-width: 150px;
  text-align: center;
}
.mb-consent__aktionen .mb-btn--light {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding-top: 13px;
  padding-bottom: 13px;
}
.mb-consent__aktionen .mb-btn--light:hover {
  background: var(--ink);
  color: #fff;
}
.mb-consent__aktionen [data-consent-speichern] { flex: 1 1 100%; }
.mb-consent__mehr {
  flex: 1 1 100%;
  text-align: center;
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mb-consent__mehr:hover { color: var(--ink); }

.mb-consent__links {
  display: flex;
  gap: 20px;
  margin: 16px 0 0;
  font-size: 12.5px;
}
.mb-consent__links a { color: var(--muted-2); text-decoration: none; }
.mb-consent__links a:hover { color: var(--ink); text-decoration: underline; }

/* Widerruf im Fussbereich - sieht aus wie die Nachbarlinks */
.mb-consent-oeffnen {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #6b655c;
  cursor: pointer;
}
.mb-consent-oeffnen:hover { color: var(--ink); }

@media (max-width: 640px) {
  .mb-consent { left: 12px; right: 12px; bottom: 12px; }
  .mb-consent__box { padding: 22px 20px 18px; }
  .mb-consent__titel { font-size: 23px; }
  .mb-consent__aktionen .mb-btn { flex: 1 1 100%; }
  .mb-consent__mehr { width: 100%; }
}


/* ------------------------------------------------- Schritte (Danke-Seite) */

.mb-schritte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  counter-reset: none;
}
.mb-schritt {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.mb-schritt__nr {
  flex: 0 0 auto;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  line-height: 1;
  color: var(--accent-soft);
  padding-top: 2px;
  min-width: 34px;
}
.mb-schritt__titel {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}

@media (max-width: 640px) {
  .mb-schritt { gap: 16px; }
  .mb-schritt__nr { font-size: 22px; min-width: 28px; }
}
