/* ============================================================
   MWE — Design System
   Geteilte Basis für alle Seiten des Projekts.
   Diese Datei enthält: Tokens, Reset, Typografie, Layout-Utilities,
   geteilte Komponenten (Buttons, Header, Footer).
   Seitenspezifische Styles kommen in die jeweilige style.css.
   ============================================================ */

@import './fonts.css';


/* ============================================================
   CSS-VARIABLEN — Design-Tokens (einzige Quelle der Wahrheit)
   ============================================================ */

:root {
  /* Markenfarben */
  --green-light:    #88B177;
  --green-standard: #699756;
  --green-dark:     #50703F;
  --beige-light:    #EBE7DF;
  --beige-standard: #C8BDA7;
  --beige-dark:     #B3A485;
  --gray-light:     #F5F5F5;
  --gray-standard:  #C1C0BD;
  --gray-dark:      #77746F;
  --anthracite:     #1E211D;
  --white:          #ffffff;

  /* Bereichs-Akzente (nur für Landingpages + dezente Hinweise auf Dachseite) */
  --blue-pale:          #EAF0F4;
  --blue-light:         #7A9BB7;
  --blue-standard:      #547B96;
  --blue-dark:          #3E5B6F;
  --terracotta-light:   #BD846B;
  --terracotta-standard:#A26449;
  --terracotta-dark:    #784A36;
  --ocker-light:        #B3956B;
  --ocker-standard:     #92764B;
  --ocker-dark:         #685436;

  /* Typografie */
  --font-headline: 'Onest', Georgia, serif;
  --font-body:     'Source Sans 3', system-ui, sans-serif;

  /* Abstände */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3.5rem;
  --space-xl:  6rem;

  /* Layout */
  --container-max:    1260px;
  --container-narrow: 760px;
  --header-height:    82px;
  --border-radius:    6px;
}


/* ============================================================
   RESET & BASIS
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}


/* ============================================================
   TYPOGRAFIE
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  line-height: 1.2;
  color: var(--anthracite);
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--anthracite);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.section {
  padding: var(--space-xl) 0;
}

.section--beige      { background: var(--gray-light); }
.section--gray       { background: var(--gray-light); }
.section--dark       { background: var(--anthracite); color: var(--white); }
.section--green-dark { background: var(--green-dark); color: var(--white); }
.section--terracotta-dark { background: var(--terracotta-dark); color: var(--white); }
.section--contact    { background: var(--white); }
.section--blue        { background: var(--blue-pale); }


/* ============================================================
   SECTION-LABEL
   ============================================================ */

.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-standard);
  margin-bottom: 0.75rem;
}


/* ============================================================
   BRUSH-UNTERSTRICH — Manufaktur Signature-Element
   Handgemacht wirkende Pinselstrich-Unterstreichung in Grün.
   Verwendung: Klasse .brush-underline auf display:block-Elementen
   (Headline-Zeilen, Zitat-Schlüsselsätze, Abschnittsüberschriften).
   SVG: geschlossener Bezier-Pfad, variiert von ~2 px (Enden)
   bis ~7 px (Mitte) — kein gerader Strich, keine gleichmäßige Linie.
   ============================================================ */

.brush-underline {
  background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 230 20'%3E%3Cpath d='M2 12 C10 9.5,28 8,48 9 C62 10,78 7,100 8.5 C118 10,138 7.5,162 9 C180 10,200 8,220 9.5 C225 10,228 10.5,229 11 L229 12.5 C222 14,208 15,185 14.5 C160 14,135 15.5,108 14.5 C82 13.5,60 15,38 14 C22 13.5,10 13.5,2 13.5 Z' fill='%23699756'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 18px;
  padding-bottom: 6px;
}


/* ============================================================
   ENTWURF-MARKIERUNG
   ============================================================ */

.draft-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: #7a5c00;
  background: #fff4cc;
  border-left: 3px solid #e6b800;
  padding: 0.3rem 0.75rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-top: var(--space-md);
}

.draft-badge::before {
  content: '✎';
  font-size: 0.9rem;
}

.draft-placeholder {
  color: var(--anthracite);
  font-style: italic;
  border: 2px dashed var(--gray-standard);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-sm);
}


/* ============================================================
   BILD-PLATZHALTER
   ============================================================ */

.img-placeholder {
  background: var(--gray-light);
  border: 2px dashed var(--gray-standard);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--anthracite);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  padding: var(--space-md);
}

.img-placeholder--person {
  min-height: 480px;
  width: 100%;
}

.img-placeholder--logo {
  width: 160px;
  height: 72px;
  font-size: 0.78rem;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1.4rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--green-standard);
  color: var(--white);
  border-color: var(--green-standard);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--green-standard);
  border-color: var(--green-standard);
}

.btn-outline:hover {
  background: var(--green-standard);
  color: var(--white);
}

.btn-outline--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--green-standard);
  border-color: var(--green-standard);
}

.btn-secondary:hover {
  background: var(--green-standard);
  color: var(--white);
}

.btn-outline--light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

.btn-large {
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta-note {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--anthracite);
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; text-align: center; }
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header .container {
  max-width: 1360px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  height: var(--header-height);
  display: flex;
  align-items: center;
  /* Firefox-Fix: ohne eigene Compositor-Ebene "kriecht" der sticky
     Header bei scroll-behavior:smooth während des Scrollens sichtbar
     nach oben (Chrome ist davon nicht betroffen). */
  transform: translateZ(0);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
}

.logo-fallback {
  height: 44px;
  padding: 0 var(--space-sm);
  background: var(--gray-light);
  border: 2px dashed var(--gray-standard);
  border-radius: var(--border-radius);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--anthracite);
  white-space: nowrap;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-self: flex-end;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--anthracite);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--green-standard);
}

.main-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Leistungen-Dropdown (bewusst minimal) */
.has-dropdown {
  position: relative;
}

.has-dropdown > a .ph-caret-down {
  font-size: 0.8em;
  vertical-align: 1px;
}

.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  padding: 0.5rem 0;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

/* Bereichsfarbe je Eintrag beim Hover — funktioniert unabhängig davon, ob der
   Link relativ von der Dachseite (business/) oder einer Unterseite
   (../business/) aus verlinkt, dank Suffix-Selektor */
.dropdown-menu a[href$="business/"]:hover  { color: var(--blue-standard); }
.dropdown-menu a[href$="soziales/"]:hover  { color: var(--ocker-standard); }
.dropdown-menu a[href$="privat/"]:hover    { color: var(--terracotta-standard); }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--anthracite);
  border-radius: 2px;
  transition: all 0.3s;
}


/* ============================================================
   BEREICHS-SUBNAV — wiederverwendbares CI-Pattern
   Bereichsfarbe wird lokal je Seite via --bfarbe / --bfarbe-dark gesetzt.
   ============================================================ */

.bereich-subnav {
  background: var(--white);
  padding: 0.35rem 0;
  position: sticky;
  top: 82px; /* direkt unter dem globalen Header (--header-height) */
  z-index: 190; /* unter .site-header (z-index 200) */
  transition: top 0.25s ease, box-shadow 0.25s ease;
}

.bereich-subnav-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 0.35rem;
  border-top: 2px solid var(--bfarbe, var(--green-standard));
  overflow-x: auto;
  overflow-y: hidden;
}

.bereich-subnav-list a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--anthracite);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.bereich-subnav-list a:hover,
.bereich-subnav-list a:focus-visible {
  color: var(--bfarbe, var(--green-standard));
  border-color: var(--bfarbe, var(--green-standard));
}

/* Zustand, wenn der Dach-Header ausgeblendet ist (per JS gesetzt) */
body.header-hidden .bereich-subnav {
  top: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .bereich-subnav { top: 0; } /* Mobil: Header ist ohnehin nicht permanent sichtbar genug, Subnav direkt oben */
  .bereich-subnav-list { gap: 1.1rem; }
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--anthracite);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-md);
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-sm);
  opacity: 0.85;
}

.footer-claim {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-nav-title,
.footer-contact-title {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: var(--space-sm);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--green-light);
}

.footer-contact address {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--green-light);
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  margin-left: auto;
  margin-bottom: 0;
}


/* ============================================================
   HERO — Layout-Grundlage (geteilt von Dachseite + Landingpages)
   ============================================================ */

.hero {
  padding: calc(3.5rem + 50px) 0 var(--space-xl);
  min-height: calc(78vh - var(--header-height));
  display: flex;
  align-items: center;
  background: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: 65fr 35fr;
  /* Bild fluchtet oben mit der Eyebrow (erste Zeile "top") statt vertikal
     zum Textblock zentriert zu sein. */
  grid-template-areas:
    "top   photo"
    "bot   photo";
  column-gap: var(--space-xl);
  row-gap: 0;
}

.hero-text-top    { grid-area: top;   align-self: start; }
.hero-image       { grid-area: photo; align-self: start; }
.hero-text-bottom { grid-area: bot;   align-self: start; }

.portrait-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--border-radius);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-standard);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.headline-accent {
  display: inline;
  color: var(--anthracite);
}

/* Auf dunklem Grund erbt headline-accent die umgebende Farbe */
.section--dark .headline-accent,
.section--green-dark .headline-accent,
.section--terracotta-dark .headline-accent { color: inherit; }

.hero-subline {
  font-size: 1.1rem;
  color: var(--anthracite);
  margin-bottom: 1.4rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

/* Checkliste im Hero: grüner Kreis 22×22px, weißes Häkchen */
.hero-targets { margin-bottom: 2.1rem; }

.hero-targets li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-targets li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--green-standard);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 3px;
  line-height: 1;
}


/* ============================================================
   MANUFAKTUR-HEADLINE — Geteilte Abschnitts-Headline
   ============================================================ */

.manufaktur-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  max-width: 820px;
  margin: 0 auto var(--space-md);
  text-align: center;
}


/* ============================================================
   MCARD — Grüne Kompetenz-Karte
   ============================================================ */

.mcard {
  background: var(--green-standard);
  color: var(--white);
  border-radius: var(--border-radius);
  padding: var(--space-md) 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mcard--accent { background: var(--green-dark); }

.mcard-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mcard-icon {
  font-size: 2.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: calc(0.5rem + 10px);
}

.mcard h3 { color: var(--white); font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0; }
.mcard p  { color: var(--white); font-size: 1rem; margin: 0; line-height: 1.6; }


/* ============================================================
   TRUST-KARTEN — Vertrauensargumente (grau, Zeilenlayout)
   ============================================================ */

.trust-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.trust-card {
  background: var(--gray-light);
  border: none;
  border-radius: var(--border-radius);
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}

.trust-card-icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--green-standard);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  width: 5rem;
  height: 5rem;
}

.trust-card-body { display: flex; flex-direction: column; }

.trust-card h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--green-dark);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.trust-card p { font-size: 1rem; color: var(--anthracite); line-height: 1.6; margin: 0; }


/* ============================================================
   SCHRITTE — 3-Spalten-Karten mit großer transparenter Zahl
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.step {
  background: var(--green-standard);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  color: var(--white);
}

.step-number {
  font-family: var(--font-headline);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
  margin-bottom: calc(2.5rem - 10px);
}

.step h3 { color: var(--white); font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
.step p  { color: var(--white); font-size: 1rem; line-height: 1.65; margin: 0; }


/* ============================================================
   ZITAT-BLOCK — Blockzitat für dunkle Sektionen
   ============================================================ */

.section--dark .container,
.section--green-dark .container,
.section--terracotta-dark .container { text-align: center; }

.quote-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.quote-block p {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.quote-attribution {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
}


/* ============================================================
   ÜBER-MICH-LAYOUT
   ============================================================ */

.about-inner {
  display: grid;
  grid-template-columns: 11fr 9fr;
  grid-template-areas:
    "top    photo"
    "bottom photo";
  column-gap: var(--space-xl);
  row-gap: 0;
  align-items: start;
}

.about-text-top    { grid-area: top; }
.about-image       { grid-area: photo; }
.about-text-bottom { grid-area: bottom; }

.about-divider {
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--green-standard);
  border: none;
  margin: var(--space-md) 0;
}

.about-text-bottom p { font-size: 1.05rem; line-height: 1.75; }


/* ============================================================
   ANGEBOTS-KARTEN (`.offer-card`) — weiß, Icon-Kreis, klickbar
   ============================================================ */

.offer-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.offer-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
}

.offer-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
}

.offer-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(105, 151, 86, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--green-standard);
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.offer-card-num {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-standard);
  margin: 0;
}

.offer-card h3 {
  font-family: var(--font-headline);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0;
}

.offer-card p { font-size: 1rem; color: var(--anthracite); line-height: 1.6; margin: 0; }


/* ============================================================
   KONTAKT-LAYOUT
   ============================================================ */

.contact-box {
  background: var(--gray-light);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--space-md);
}

.contact-form { background: transparent; padding: 0; }


/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px) — geteilte Regeln
   ============================================================ */

@media (max-width: 1024px) {
  /* Hero */
  .hero-inner { column-gap: var(--space-lg); }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}


/* ============================================================
   RESPONSIVE — MOBIL (≤ 768px) — geteilte Regeln
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --space-xl: 3.5rem;
    --space-lg: 2rem;
  }

  /* Header / Navigation */
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    padding: var(--space-md);
    z-index: 199;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .main-nav a {
    font-size: 1.05rem;
    padding: 0.5rem 0;
    display: block;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .site-header .header-cta {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: var(--space-lg) 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "photo"
      "bot";
    gap: var(--space-md);
  }

  /* Schritte */
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Trust-Karten */
  .trust-cards { grid-template-columns: 1fr; }

  /* Über mich */
  .about-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "photo"
      "bottom";
  }

  /* Kontakt */
  .contact-inner { grid-template-columns: 1fr; }

  /* Angebots-Karten */
  .offer-cards { grid-template-columns: 1fr; }
  .offer-card[style*="grid-column"] {
    grid-column: 1 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* Bild-Platzhalter verkleinern */
  .img-placeholder--person {
    min-height: 260px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .footer-copyright {
    margin-left: 0;
  }
}

/* ============================================================
   Szenario-Intro (#situation)
   Copy ist vorläufig, wird im nächsten Schritt verfeinert.
   ============================================================ */
.scenario-intro { margin-bottom: var(--space-lg); }

.scenario-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: var(--space-md);
  margin: 0 auto;
}

/* Flip-Card: Box ist auf die Rückseite (Liste) dimensioniert — beide Seiten
   liegen per CSS-Grid-Overlap übereinander, die Zeile sizt sich automatisch
   auf die höhere der beiden. Vorderseite (Titel) dreht sich bei Hover/Klick
   weg und gibt die Rückseite (Liste) frei. */
.scenario-card {
  perspective: 2200px;
}
.scenario-card-inner {
  position: relative;
  display: grid;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  transform-style: preserve-3d;
}
/* Hover-Flip nur auf Geräten mit echter Maus — auf Touch verlässt sich der
   Flip ausschließlich auf den Klick/Tap (.is-flipped, JS), sonst "klebt"
   der :hover-Zustand nach dem ersten Tap (iOS-Sticky-Hover-Problem). */
@media (hover: hover) and (pointer: fine) {
  .scenario-card:hover .scenario-card-inner {
    transform: rotateY(180deg);
  }
}
.scenario-card.is-flipped .scenario-card-inner {
  transform: rotateY(180deg);
}
.scenario-card-face {
  position: relative;
  grid-area: 1 / 1;
  backface-visibility: hidden;
  background: var(--white);
  border: 1px solid var(--gray-standard);
  border-left: none;
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 7px);
  overflow: hidden;
}
.scenario-card-front {
  display: flex;
  align-items: center;
  width: 100%;
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.scenario-card-front:focus-visible {
  outline: 2px solid var(--green-standard);
  outline-offset: 2px;
}
.scenario-card-back {
  transform: rotateY(180deg);
}
.scenario-card-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 100%;
  overflow: hidden;
  line-height: 0;
}
.scenario-card-bar img {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 7px;
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%) rotate(90deg);
}
.scenario-card h3 {
  font-family: var(--font-headline);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--anthracite);
  margin: 0;
  text-align: left;
}
.scenario-card p { font-size: 1rem; line-height: 1.6; color: var(--anthracite); margin: 0; }

.scenario-card .scenario-card-subtitle {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-standard);
  margin: 0 0 0.85rem;
}

.scenario-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.scenario-card-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--anthracite);
}
.scenario-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-standard);
}

.scenario-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--anthracite);
}

.scenario-conclusion {
  text-align: center;
  max-width: 640px;
  margin: var(--space-lg) auto 0;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--anthracite);
}

.klarheit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin: var(--space-lg) 0;
}

.klarheit-themen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.klarheit-themen li {
  position: relative;
  z-index: 0;
  overflow: hidden;
  border: 1px solid var(--green-standard);
  border-radius: 6px;
  padding: 1.625rem 1.875rem;
  text-align: center;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
  color: var(--white);
}
.klarheit-themen li:nth-child(1)::after { background-position: left top; }
.klarheit-themen li:nth-child(2)::after { background-position: center; }
.klarheit-themen li:nth-child(3)::after { background-position: right bottom; }
.klarheit-themen li::after {
  content: "";
  position: absolute;
  inset: -12px;
  background-image:
    linear-gradient(color-mix(in srgb, var(--blue-standard) 60%, transparent), color-mix(in srgb, var(--blue-standard) 60%, transparent)),
    linear-gradient(var(--blue-standard), var(--blue-standard)),
    url('../assets/grafiken/graphik-gruen-blau.png');
  background-size: auto, auto, cover;
  background-repeat: no-repeat;
  background-blend-mode: normal, color, normal;
  filter: blur(6px);
  z-index: -1;
}

.klarheit-graphic img {
  display: block;
  width: 100%;
  height: auto;
}

.leistungen-band {
  margin-top: var(--space-lg);
  line-height: 0;
  aspect-ratio: 140 / 1;
  overflow: hidden;
}
.leistungen-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leistungen-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  margin-top: 0;
  border-top: 1px solid var(--gray-standard);
  border-left: 1px solid var(--gray-standard);
}

.leistungen-card {
  position: absolute;
  border-right: 1px solid var(--gray-standard);
  border-bottom: 1px solid var(--gray-standard);
  overflow: hidden;
  cursor: pointer;
  transition: top 0.45s cubic-bezier(.4,0,.2,1), left 0.45s cubic-bezier(.4,0,.2,1),
              width 0.45s cubic-bezier(.4,0,.2,1), height 0.45s cubic-bezier(.4,0,.2,1),
              z-index 0s linear 0.45s;
  z-index: 1;
}

/* Hintergrundgrafik auf eigenem Layer (::after), damit sie weichgezeichnet werden
   kann, ohne den Text (.leistungen-card-inner) mit zu verwischen. Überstand via
   inset, damit der Blur-Rand nicht am Kartenrand ausfranst (wird vom card-eigenen
   overflow:hidden abgeschnitten). */
.leistungen-card::after {
  content: "";
  position: absolute;
  inset: -12px;
  background-image:
    linear-gradient(color-mix(in srgb, var(--blue-standard) 60%, transparent), color-mix(in srgb, var(--blue-standard) 60%, transparent)),
    linear-gradient(var(--blue-standard), var(--blue-standard)),
    url('../assets/grafiken/graphik-gruen-blau.png');
  background-size: auto, auto, 300% 200%;
  background-repeat: no-repeat;
  background-blend-mode: normal, color, normal;
  filter: blur(6px);
  z-index: 0;
}
.leistungen-card[data-index="0"] { top: 0%;   left: 0%;      width: 33.333%; height: 50%; }
.leistungen-card[data-index="1"] { top: 0%;   left: 33.333%; width: 33.333%; height: 50%; }
.leistungen-card[data-index="2"] { top: 0%;   left: 66.666%; width: 33.334%; height: 50%; }
.leistungen-card[data-index="3"] { top: 50%;  left: 0%;      width: 33.333%; height: 50%; }
.leistungen-card[data-index="4"] { top: 50%;  left: 33.333%; width: 33.333%; height: 50%; }
.leistungen-card[data-index="5"] { top: 50%;  left: 66.666%; width: 33.334%; height: 50%; }
.leistungen-card[data-index="0"]::after { background-position: 0% 0%; }
.leistungen-card[data-index="1"]::after { background-position: 50% 0%; }
.leistungen-card[data-index="2"]::after { background-position: 100% 0%; }
.leistungen-card[data-index="3"]::after { background-position: 0% 100%; }
.leistungen-card[data-index="4"]::after { background-position: 50% 100%; }
.leistungen-card[data-index="5"]::after { background-position: 100% 100%; }

/* Im Ruhezustand: Grafik unsichtbar (nur weiß), erst bei Hover/Expanded einblenden */
.leistungen-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  z-index: 1;
  transition: opacity 0.3s ease;
}
.leistungen-card:hover::before,
.leistungen-card.is-expanded::before {
  opacity: 0;
}
.leistungen-card:hover h3,
.leistungen-card.is-expanded h3 { color: var(--white); }
.leistungen-card:hover .leistungen-arrow { opacity: 1; }

.leistungen-card-inner {
  height: 100%;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.leistungen-card h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--anthracite);
  margin: 0;
  transition: color 0.3s ease;
}

.leistungen-title-hover { display: none; }
.leistungen-card:not(.is-expanded):hover .leistungen-title-base { display: none; }
.leistungen-card:not(.is-expanded):hover .leistungen-title-hover { display: inline; }
.leistungen-card.is-expanded .leistungen-title-base { display: none; }
.leistungen-card.is-expanded .leistungen-title-hover { display: inline; }

.leistungen-arrow {
  align-self: flex-start;
  margin-top: calc(0.5rem + 10px);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--white);
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.leistungen-arrow i {
  font-size: 0.9rem;
}
.leistungen-arrow:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue-standard);
}

.leistungen-subline {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--white);
  margin: 0.6rem 0 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.leistungen-card:hover .leistungen-subline {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}
.leistungen-card.is-expanded .leistungen-subline { display: none; }

.leistungen-short {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--white);
  margin: 0.85rem 0 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.leistungen-card:hover .leistungen-short {
  max-height: 100px;
  opacity: 1;
  transform: translateY(0);
}
.leistungen-long { display: none; }

.leistungen-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: var(--anthracite);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* Expanded state */
.leistungen-card.is-expanded {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 10;
}
.leistungen-card.is-expanded .leistungen-card-inner { justify-content: center; }
.leistungen-card.is-expanded h3 { color: var(--white); font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.leistungen-card.is-expanded .leistungen-short { display: none; }
.leistungen-card.is-expanded .leistungen-long {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 640px;
  margin-top: 1rem;
}
.leistungen-card.is-expanded .leistungen-arrow { display: none; }
.leistungen-card.is-expanded .leistungen-close { display: flex; }

.leistungen-expanded-content {
  display: none;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: var(--space-md);
  width: 100%;
  margin-top: var(--space-md);
}
.leistungen-card.is-expanded .leistungen-expanded-content {
  display: grid;
}

.leistungen-expanded-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  height: 100%;
}
.leistungen-expanded-themen {
  flex: 0 0 auto;
}
.leistungen-expanded-cta {
  display: none;
  margin-top: auto;
}
.leistungen-card.is-expanded .leistungen-expanded-cta {
  display: block;
}
.leistungen-expanded-cta .btn {
  display: block;
  width: 100%;
  text-align: center;
}

.leistungen-expanded-text,
.leistungen-expanded-themen {
  background: var(--white);
  border: 1px solid var(--green-standard);
  border-radius: 6px;
  padding: var(--space-md);
}

.leistungen-expanded-text p {
  color: var(--anthracite);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}
.leistungen-expanded-text p:last-child { margin-bottom: 0; }

.leistungen-themen-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--anthracite);
  margin: 0 0 0.85rem;
}
.leistungen-expanded-themen ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.leistungen-expanded-themen li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--anthracite);
}
.leistungen-expanded-themen li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

@media (max-width: 768px) {
  .leistungen-expanded-content {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: var(--space-md);
  }
}

.leistungen-stage.has-expanded .leistungen-card:not(.is-expanded) {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Mobil: kein Hover verfügbar, daher kein verstecktes Raster mit Hover-Reveal.
   Stattdessen gestapelte Karten im normalen Textfluss, die direkt im
   "Hover-Look" starten (Hintergrund, Überschrift, Kurztext, Mini-Button immer
   sichtbar). Klick lässt die Karte in-flow wachsen (Seite scrollt normal
   weiter), statt eine feste Stage-Fläche zu füllen — dadurch gibt es beliebig
   viel Platz für den vollständigen Text, nichts wird abgeschnitten. Andere
   Karten bleiben sichtbar/antippbar, ein Wechsel ist daher direkt möglich
   (anders als am Desktop, wo die expandierte Karte alles überdeckt). */
@media (max-width: 768px) {
  .leistungen-stage {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: none;
  }
  .leistungen-card[data-index] {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    border: 1px solid var(--gray-standard);
    border-radius: 0;
    margin-top: -1px;
  }
  .leistungen-card[data-index]:first-child {
    margin-top: 0;
  }
  .leistungen-card::before {
    display: none;
  }
  .leistungen-card-inner {
    height: auto;
    justify-content: flex-start;
  }
  .leistungen-card h3 {
    color: var(--white);
  }
  .leistungen-arrow,
  .leistungen-short {
    opacity: 1;
    max-height: none;
    transform: none;
  }
  .leistungen-stage.has-expanded .leistungen-card:not(.is-expanded) {
    opacity: 1;
    pointer-events: auto;
  }
  .leistungen-card.is-expanded {
    height: auto !important;
  }
  .leistungen-card.is-expanded .leistungen-card-inner {
    justify-content: flex-start;
  }
}

.klarheit-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--anthracite);
}

@media (max-width: 900px) {
  .klarheit-grid { grid-template-columns: 1fr; }
  .klarheit-graphic { width: 100%; margin: var(--space-md) 0 0; }
}

@media (max-width: 768px) {
  .scenario-cards { grid-template-columns: 1fr; }
  .scenario-divider { padding: 0.25rem 0; }
}

