/* ==========================================================================
   Lennart Hübner Beratung & Coaching
   style.css

   Inhalt
   0. Schriften (lokal eingebunden, DSGVO-freundlich – kein Google-Server)
   1. Design-Tokens: Farbschema „local" (Standard) und „markenkit"
   2. Basis & Typografie
   3. Layout-Helfer (Container, Sektionen)
   4. Buttons & Links
   5. Header & Navigation
   6. Hero & Angebots-Kacheln
   7. Über mich
   8. Blog
   9. Kontakt & Formular
   10. Footer
   11. Platzhalter für Bilder & Icons
   12. Responsive Anpassungen
   13. Barrierefreiheit (reduzierte Bewegung)
   ========================================================================== */


/* ---------- 0. Schriften ----------------------------------------------- */
/* Dateien liegen im Ordner /fonts. Lizenz: SIL Open Font License 1.1 */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;          /* variable Schrift: alle Stärken in einer Datei */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/bebas-neue-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ---------- 1. Design-Tokens ------------------------------------------- */
/*
   Alle Farben und Schriften laufen über diese Variablen.
   Wer das Design ändern will, muss nur hier ran.
*/

/* Schema A: Local-Entwurf (Elementor-Kit + Astra-Palette) */
:root,
[data-theme="local"] {
  --color-primary:       #2C5E66;  /* Petrol – Elementor „Primär"        */
  --color-primary-dark:  #152D31;  /* Astra-Palette, dunkles Petrol       */
  --color-accent:        #D6A84F;  /* Gold – Elementor „Akzentfarbe"      */
  --color-on-accent:     #152D31;  /* Text auf Gold (Kontrast > 7:1)      */
  --color-surface:       #F9F9F7;  /* „weiß1" – Seitenhintergrund         */
  --color-surface-alt:   #E5D9C6;  /* Sand – Elementor „Sekundäre"        */
  --color-card:          #FFFFFF;  /* „weiß2"                             */
  --color-hero:          #F9F9F7;
  --color-text:          #333333;  /* Fließtext                           */
  --color-muted:         #5E6B6D;  /* Nebentexte (dunkler als #7A7A7A,
                                       damit der Kontrast reicht)         */
  --color-line:          #DDD6CA;
  --color-placeholder:   #9FBABF;  /* Astra-Palette, Salbeiblau           */

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body:    "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-tracking: 0.02em;
  --display-weight: 400;
  --display-scale: 1.15;           /* Bebas läuft schmal → etwas größer   */
}

/* Schema B: Marken-Kit v2 – Web-Linie („Bildschirm kühl") */
[data-theme="markenkit"] {
  --color-primary:       #385C64;  /* Petrol Deep                         */
  --color-primary-dark:  #243E44;
  --color-accent:        #385C64;  /* CTA bleibt Petrol, kein Gold        */
  --color-on-accent:     #F8F8F4;
  --color-surface:       #F8F8F4;  /* Cream                               */
  --color-surface-alt:   #E6ECED;  /* helle Sage-Blau-Fläche              */
  --color-card:          #FFFFFF;
  --color-hero:          #A4B8BC;  /* Sage-Blau für Hero-Flächen          */
  --color-text:          #26383C;
  --color-muted:         #4F6468;
  --color-line:          #D3DDDF;
  --color-placeholder:   #6F8A90;

  /* Marken-Kit: Montserrat für alle Textebenen, Bebas nur für Reels */
  --font-display: "Montserrat", system-ui, sans-serif;
  --display-tracking: -0.01em;
  --display-weight: 700;
  --display-scale: 0.88;         /* Montserrat läuft breiter als Bebas */
}

/* Werte, die in beiden Schemata gleich sind */
:root {
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  --container:   1160px;
  --gutter:      clamp(16px, 4vw, 32px);
  --section-y:   clamp(64px, 9vw, 120px);
  --header-h:    96px;
}


/* ---------- 2. Basis & Typografie -------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);   /* Anker nicht unter dem Header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-surface);
  transition: background-color .3s, color .3s;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.1;
  color: var(--color-primary-dark);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1  { font-size: calc(clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem) * var(--display-scale)); }
h2  { font-size: calc(clamp(1.9rem, 1.4rem + 2vw, 2.8rem) * var(--display-scale)); }
h3,
.h3 { font-size: calc(clamp(1.3rem, 1.15rem + .5vw, 1.55rem) * var(--display-scale)); }

p { margin: 0 0 1em; }

a { color: var(--color-primary); }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .75rem;
}

.lead {
  font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem);
  max-width: 34em;
}


/* ---------- 3. Layout-Helfer ------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/*
   Farbfolge der Abschnitte – gilt für die Startseite und alle Unterseiten:
     1. Sage          → .hero (Startseite) bzw. .section.section-tint
     2. Helles Blau   → .section.section-alt
     3. Cream         → .section
     4. Sage          → .section.section-tint
   Bei mehr Abschnitten die Folge 2 → 3 → 4 wiederholen.
*/
.section      { padding-block: var(--section-y); }
.section-alt  { background: var(--color-surface-alt); }
/* Kontakt: gleiche Fläche wie der Hero (Sage-Blau), dunkle Schrift */
.section-tint { background: var(--color-hero); color: var(--color-text); }
.section-tint h2 { color: var(--color-primary-dark); }
.section-tint a:not(.btn) { color: var(--color-primary-dark); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-intro { color: var(--color-muted); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--color-primary-dark); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ---------- 4. Buttons & Links ----------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost {
  border-color: currentColor;
  color: var(--color-primary);
  background: transparent;
}
.btn-ghost:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.btn-small { padding: .6em 1.2em; font-size: .9rem; background: var(--color-primary); color: #fff; }
.btn-block { width: 100%; }

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}
.text-link::after { content: " →"; }


/* ---------- 5. Header & Navigation ------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 70px;          /* querformatiges Header-Logo, ca. 235 px breit */
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav ul a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.main-nav ul a:hover { color: var(--color-primary); border-color: var(--color-accent); }

/* Burger-Button, standardmäßig versteckt */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute; left: 10px;
  width: 24px; height: 2px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle-bar         { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after  { top:  7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }


/* ---------- 6. Hero & Angebots-Kacheln --------------------------------- */

.hero {
  background: var(--color-hero);
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: var(--section-y);
  transition: background-color .3s;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 14px;
  font-size: .9rem;
  color: var(--color-muted);
}

.hero-media { margin: 0; }

/* Echte Fotos: gleiche Proportionen wie die früheren Platzhalter */
.photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}
.photo-portrait  { aspect-ratio: 4 / 5; object-position: 50% 25%; }
.photo-landscape { aspect-ratio: 4 / 3; object-position: 75% 50%; }   /* Lennart steht rechts im Bild */

/* Auf der Sage-Fläche (Marken-Kit) braucht der Nebentext mehr Kontrast */
[data-theme="markenkit"] .hero-note { color: var(--color-text); }

.offer-grid {
  list-style: none;
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* vier gleich breite Kacheln in einer Reihe */
  gap: 24px;
}

.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.offer { padding: 32px 28px; }
.offer h2 { margin-top: 18px; }

/* Baum aus dem Logo als Icon der Angebots-Kacheln */
/* Kachel-Inhalt zentriert */
.offer { text-align: center; padding: 28px 22px; }
.offer h2 {
  font-size: 1.2rem;
  text-wrap: pretty;
  min-height: 2.4em;               /* gleiche Höhe, auch wenn eine Überschrift umbricht */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
}
.offer { display: flex; flex-direction: column; align-items: center; }
.offer p { font-size: .95rem; flex: 1; }
.offer .text-link { margin-top: 16px; }
.offer p  { color: var(--color-muted); margin: 0; }


/* ---------- 7. Über mich ----------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-media { margin: 0; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 10px;
}
.checklist li {
  position: relative;
  padding-left: 32px;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .45em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  /* runder Aufzählungspunkt, reines CSS – kein Icon-Font nötig */
  -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%);
          mask: radial-gradient(circle, #000 60%, transparent 61%);
}


/* ---------- 8. Blog ---------------------------------------------------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.post:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgb(0 0 0 / .1); }

.post-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-body .text-link { margin-top: auto; align-self: flex-start; }
.post-meta { font-size: .82rem; color: var(--color-muted); margin-bottom: .5em; }


/* Blog-Karten: Titelfläche statt Foto */
.post-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 20px;
  background: var(--color-primary);
  color: #F8F8F4;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
}
.post-title { color: inherit; text-decoration: none; }
.blog-more { margin: 40px 0 0; text-align: center; }

/* Buchempfehlungen */
.book-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.book { padding: 28px 26px; border-left: 4px solid var(--color-primary); }
.book h3 { margin: 4px 0 2px; }
.book-author { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary); }
.book-sub { margin: 0 0 12px; font-style: italic; color: var(--color-muted); }
.book-meta { margin: 12px 0 0; font-size: .85rem; color: var(--color-muted); }
.post-title:hover { color: var(--color-primary); }

/* Blog-Artikel */
.article-body { font-size: 1.05rem; }
.article-body h2 { font-size: 1.4rem; margin-top: 2em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .5em; }


/* ---------- 9. Kontakt & Formular -------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.contact-list li { display: flex; align-items: center; gap: 12px; }

/* Kontakt-Icons: gleicher Stil wie die Social-Media-Buttons */
.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgb(255 255 255 / .5);
  color: var(--color-primary-dark);
}
.contact-icon svg { width: 20px; height: 20px; fill: currentColor; }

.contact-list small { font-size: .85rem; opacity: .8; }

/* Google-Karte (Zwei-Klick-Lösung) */
.map {
  margin-top: clamp(40px, 6vw, 72px);
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-card);
  box-shadow: var(--shadow);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: var(--color-card);
}
.map-title { font-weight: 700; font-size: 1.1rem; color: var(--color-primary-dark); margin-bottom: .4em; }
.map-text  { max-width: 440px; font-size: .9rem; color: var(--color-muted); }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

.calendly-note {
  margin-top: 12px;
  font-size: .88rem;
}

.form-title { margin-bottom: .25em; }
.form-intro { margin: 0; font-size: .92rem; color: var(--color-muted); }

/* Social-Media-Links (Kontakt + Footer) */
.social-title {
  margin: 32px 0 12px;
  font-weight: 600;
  font-size: .92rem;
}
.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-links a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;           /* ausreichend große Klickfläche */
  border-radius: 50%;
  background: rgb(255 255 255 / .5);
  color: var(--color-primary-dark);
  transition: background-color .2s, color .2s, transform .15s;
}
.social-links a:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.social-links svg { width: 20px; height: 20px; fill: currentColor; }

.contact-form {
  padding: clamp(24px, 4vw, 40px);
  color: var(--color-text);
  display: grid;
  gap: 18px;
}
.contact-form a { color: var(--color-primary); }

.field { display: grid; gap: 6px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #FBEAEA;
  color: #8A1F1F;
  font-size: .9rem;
}
.field label { font-weight: 600; font-size: .92rem; }
.optional { font-weight: 400; color: var(--color-muted); }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}
.field-check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--color-primary); }
.field-check label { font-weight: 400; font-size: .85rem; line-height: 1.5; }


/* ---------- Unterseite: Über mich (Lebenslauf & Ansatz) --------------- */

.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.approach-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.approach { padding: 28px 26px; }
.approach p { margin: 0; color: var(--color-muted); }

/* Zeitstrahl: Datum links, Inhalt rechts, verbunden durch eine Linie */
.timeline {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-left: 2px solid var(--color-line);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 0 0 28px 28px;
}
.timeline li::before {
  content: "";
  position: absolute; left: -8px; top: .35em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-surface);
}
.timeline-date { font-weight: 600; color: var(--color-primary); font-size: .92rem; }
.timeline h3 { font-size: 1.1rem; margin-bottom: .25em; }
.timeline p  { margin: 0; color: var(--color-muted); }
.subhead { margin-top: 1.8em; }
.section-tint .timeline { border-color: rgb(255 255 255 / .5); }
.section-tint .timeline p { color: var(--color-text); }
.section-tint .timeline-date { color: var(--color-primary-dark); }
.section-tint .timeline li::before { border-color: var(--color-hero); }

.cta-inner { text-align: center; max-width: 640px; }
.cta-inner .hero-actions { justify-content: center; }

@media (max-width: 600px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}


/* ---------- Angebots-Unterseiten: Hauptthemen mit Beispielen --------- */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.topic { padding: clamp(24px, 3vw, 36px); }
.topic > p { color: var(--color-muted); }
.topic-label {
  margin: 20px 0 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary) !important;
}
.topic .checklist { margin: 12px 0 0; }
.topic-note { margin: 28px 0 0; max-width: 640px; }
@media (max-width: 820px) {
  .topic-grid { grid-template-columns: 1fr; }
}


/* ---------- Angebots-Unterseiten: Ablauf in Schritten ---------------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 60px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .2em; }
.steps p  { margin: 0; color: var(--color-muted); }
.frame-note { margin-top: 24px; font-size: .92rem; color: var(--color-muted); }

/* Preis-Karten */
.price-head { margin-top: 48px; font-size: 1.3rem; }
.price-grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.price { padding: 22px 20px; text-align: center; }
.price p { margin: 0; }
.price-label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary); }
.price-amount { font-size: 2rem; font-weight: 700; color: var(--color-primary-dark); margin: 6px 0 !important; }
.price-detail { font-size: .88rem; color: var(--color-muted); line-height: 1.5; }
.price-highlight { outline: 2px solid var(--color-primary); }
.price-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .price-grid { grid-template-columns: 1fr; }
}


/* ---------- Unterseiten: Impressum / Datenschutz ---------------------- */

.legal-inner { max-width: 760px; }
.legal h1 { font-size: calc(clamp(2rem, 1.5rem + 2vw, 2.8rem) * var(--display-scale)); }
.legal h2 {
  font-size: 1.15rem;
  margin-top: 2em;
  letter-spacing: 0;
}
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .3em; }
.legal-date { margin-top: 2.5em; font-size: .9rem; color: var(--color-muted); }
.legal-back { margin-top: 3em; }
.legal-h3 { font-size: 1rem; margin-top: 1.6em; letter-spacing: 0; }
.legal-form { padding: 20px 24px; border: 1.5px dashed var(--color-line); border-radius: var(--radius-sm); margin: 12px 0 0; }
.legal-form p { margin: 0 0 .6em; overflow-wrap: anywhere; }
/* Entwurfs-Hinweis – nach rechtlicher Prüfung aus agb.html entfernen */
.draft-note { margin-bottom: 32px; padding: 14px 18px; border-radius: var(--radius-sm); background: #FFF4D6; color: #6B4E00; font-size: .92rem; }


/* ---------- 10. Footer ------------------------------------------------- */

.site-footer {
  background: var(--color-primary-dark);
  color: rgb(255 255 255 / .7);
  border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 28px;
}
.footer-inner p { margin: 0; }
.footer-logo { height: 52px; width: auto; }
.site-footer .social-links a {
  width: 38px; height: 38px;
  background: rgb(255 255 255 / .1);
  color: #F8F8F4;
}
.site-footer .social-links a:hover { background: rgb(255 255 255 / .22); }
.site-footer .social-links svg { width: 18px; height: 18px; }
.footer-links { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.footer-links a { color: inherit; }
.footer-links a:hover { color: #fff; }


/* ---------- 11. Platzhalter für Bilder & Icons ------------------------- */
/*
   Zum Ersetzen einfach das <div class="placeholder …"> durch ein
   <img src="img/dein-bild.jpg" alt="…"> tauschen. Die Klassen
   .placeholder-* geben das Seitenverhältnis vor – für echte Bilder
   kannst du dieselbe aspect-ratio + object-fit: cover nutzen.
*/

.placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  width: 100%;
  border-radius: var(--radius);
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: .04em;
  background:
    repeating-linear-gradient(135deg,
      rgb(255 255 255 / .08) 0 12px,
      transparent 12px 24px),
    var(--color-placeholder);
}
.placeholder small { font-weight: 400; opacity: .85; }

.placeholder-portrait  { aspect-ratio: 4 / 5; }
.placeholder-landscape { aspect-ratio: 4 / 3; }
.placeholder-thumb     { aspect-ratio: 16 / 9; border-radius: 0; }

.icon-placeholder {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  font-size: 1.3rem;
  line-height: 1;
}
.icon-placeholder.small {
  width: 36px; height: 36px;
  font-size: 1rem;
  border-radius: 50%;
  background: rgb(255 255 255 / .45);
  color: var(--color-primary-dark);
}


/* ---------- 12. Responsive Anpassungen --------------------------------- */

/* Tablet */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-media { max-width: 420px; }
  .about-media { order: 2; }

}

/* Kacheln: 2 × 2 auf Tablet, untereinander auf dem Handy */
@media (max-width: 1100px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .offer-grid { grid-template-columns: 1fr; }
}

/* Mobil: Navigation wird zum Klappmenü */
@media (max-width: 820px) {
  :root { --header-h: 80px; }

  .nav-toggle { display: block; }
  .brand-logo { height: 52px; }

  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 12px 24px rgb(0 0 0 / .08);

    /* eingeklappt */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-line);
  }
  .main-nav .btn-small { padding: .9em; font-size: 1rem; }

  .hero-actions .btn { flex: 1 1 100%; }
}


/* ---------- 13. Barrierefreiheit --------------------------------------- */

/* Kontaktbereich Startseite: Zwischenüberschriften für die zwei Zielgruppen */
.contact-sub {
  margin: 28px 0 8px;
  font-size: 1.1rem;
}
.contact-text h2 + .contact-sub { margin-top: 12px; }

/* Download-Hinweis im Abschlussbereich */
.download-note {
  margin-top: 22px;
  font-size: .95rem;
}
.download-note a { font-weight: 600; }

/* Blog-Karten auf dem Handy: Themen-Fläche als schmales Band statt 16:9-Block */
@media (max-width: 600px) {
  .post-cover {
    aspect-ratio: auto;
    padding: 14px 18px;
    font-size: 1.05rem;
  }
}

/* Kontakt: zwei Zielgruppen-Kästen */
.contact-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 0;
  margin: 24px 0;
}
.contact-choice {
  padding: 28px 26px;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
}
.contact-choice .contact-sub { margin-top: 0; }
.contact-choice p { margin-top: 0; }
.contact-choice-actions { display: flex; flex-wrap: wrap; gap: 12px; align-self: end; padding-top: 8px; }
.contact-info > .contact-sub:first-child { margin-top: 0; }

/* Kontakt unten: links Erreichbarkeit + Karte, rechts Formular (Spalten wie oben) */
.contact-grid {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.contact-info { display: flex; flex-direction: column; }
.contact-info .contact-sub { margin-top: 0; }
.contact-info .contact-list { margin-top: 28px; }
.contact-info .social-title { margin: 28px 0 12px; }
.contact-map { margin-top: 0; height: auto; flex: 1 1 auto; min-height: 220px; }
.contact-form .form-title { font-size: 1.1rem; }
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-map { flex: none; min-height: 280px; }
}
@media (max-width: 760px) {
  .contact-choices { grid-template-columns: 1fr; row-gap: 20px; }
  .contact-choice { grid-row: auto; grid-template-rows: auto; }
  .contact-choice-actions .btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
