/* ==========================================================================
   Conny Jäger – Evolutionspädagogik® und Lernberatung
   Gedeckte, warme Palette · gut lesbare Typografie · Mobile first
   ========================================================================== */

/* ---------- Schriften (lokal, keine externen Anbieter) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-soft-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-soft-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-normal.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-italic.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  --cream-50:  #fcf9f6;
  --cream-100: #f7f1eb;
  --cream-200: #efe6dd;

  --rose-100: #f2e3e1;
  --rose-200: #e8cfcc;
  --rose-300: #d6aeab;
  --rose-500: #b77d82;
  --rose-700: #8a4f5c;
  --rose-800: #723f4b;

  --plum-700: #4f3a47;
  --plum-800: #43313c;
  --plum-900: #3a3035;
  --muted:    #6b5a62;

  --sage-100: #e1e8de;
  --sage-300: #b9c7b5;
  --sage-500: #8fa08d;
  --sage-700: #56705c;

  --sand-100: #f0e4d5;
  --sand-300: #dcc6aa;

  --text:     var(--plum-900);
  --heading:  var(--plum-700);
  --accent:   var(--rose-700);
  --bg:       var(--cream-100);
  --surface:  #fffdfb;
  --line:     #e6d9d2;

  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;

  --fs-base: 1.125rem;                                    /* 18px */
  --fs-small: 0.95rem;
  --fs-lead: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem);
  --fs-h1: clamp(2.1rem, 1.55rem + 2.4vw, 3.5rem);
  --fs-h2: clamp(1.65rem, 1.35rem + 1.3vw, 2.4rem);
  --fs-h3: clamp(1.3rem, 1.2rem + 0.5vw, 1.55rem);

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 32px;
  --shadow: 0 1px 2px rgb(79 58 71 / 0.05), 0 12px 32px -12px rgb(79 58 71 / 0.18);

  --space-section: clamp(3rem, 2rem + 4vw, 6rem);
  --container: 72rem;
  --container-narrow: 46rem;
  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);

  --header-h: 0px;
}

@media (min-width: 1024px) {
  :root { --fs-base: 1.1875rem; }                         /* 19px */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main { flex: 1 0 auto; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-weight: 460;
  color: var(--heading);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color .2s ease;
}
a:hover { color: var(--rose-800); text-decoration-thickness: 2px; }

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

strong, b { font-weight: 700; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--plum-700);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--radius-s);
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.container--form   { max-width: calc(56rem + 2 * var(--gutter)); }

.block { padding-block: calc(var(--space-section) / 2); }
.page-blocks > .block:first-child { padding-top: var(--space-section); }
.page-blocks > .block:last-child  { padding-bottom: var(--space-section); }

.section-title { font-size: var(--fs-h2); }

/* ---------- Buttons ---------- */
.button {
  --btn-bg: var(--rose-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 3.25rem;
  padding: .8rem 1.6rem;
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1.0625rem/1.2 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.button:hover {
  --btn-bg: var(--rose-800);
  color: var(--btn-fg);
  text-decoration: none;
}
.button:hover .button__icon { transform: translateX(3px); }
.button__icon { width: 1.15em; height: 1.15em; transition: transform .2s ease; }

.button--outline {
  background: transparent;
  color: var(--rose-700);
}
.button--outline:hover { background: var(--rose-700); color: #fff; }

.button--light {
  --btn-bg: var(--cream-50);
  --btn-fg: var(--plum-700);
}
.button--light:hover { --btn-bg: #fff; --btn-fg: var(--rose-800); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(247 241 235 / 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgb(79 58 71 / .5);
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .9rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--heading);
  min-width: 0;
}
.logo:hover { color: var(--heading); text-decoration: none; }
.logo__mark { width: 3rem; height: 3rem; flex: none; }
.logo__image { height: 3.25rem; width: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo__name {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-size: 1.45rem;
  font-style: italic;            /* das kursive J sitzt harmonischer */
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: .12em;         /* Platz für die Unterlänge von J und g */
}
.logo__tagline {
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__contact {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .4rem;
  border-radius: 999px;
  background: var(--rose-100);
  color: var(--rose-800);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .2s ease;
}
.contact-chip:hover { background: var(--rose-200); color: var(--rose-800); text-decoration: none; }
.contact-chip .icon { width: 1.2rem; height: 1.2rem; }
.contact-chip__label { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  margin-left: .25rem;
  padding: .4rem .95rem .4rem .8rem;
  border: 2px solid var(--plum-700);
  border-radius: 999px;
  background: transparent;
  color: var(--plum-700);
  font: 700 1rem/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 1.1rem; height: .8rem; }
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span    { top: calc(50% - 1px); }
.nav-toggle__bars::after  { top: calc(100% - 2px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: calc(50% - 1px); transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span    { opacity: 0; }

/* Mobil: aufklappbares Menü */
.main-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream-100);
}
.main-nav.is-open { display: block; }
.main-nav__list {
  list-style: none;
  margin: 0;
  padding: .5rem 0 1.25rem;
}
.main-nav__link {
  display: block;
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-size: 1.35rem;
  text-decoration: none;
}
.main-nav__link:hover { color: var(--rose-700); text-decoration: none; }
.main-nav__link.is-active { color: var(--rose-700); }
.main-nav__link.is-active::before {
  content: "";
  display: inline-block;
  width: .5rem; height: .5rem;
  margin-right: .6rem;
  border-radius: 50%;
  background: var(--rose-500);
  vertical-align: middle;
}
.no-js .main-nav { display: block; }

@media (max-width: 420px) {
  .logo__mark { width: 2.5rem; height: 2.5rem; }
  .logo__name { font-size: 1.2rem; }
  .logo__tagline { display: none; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: .4rem .8rem; }
}

@media (min-width: 1100px) {
  .contact-chip { padding: .45rem 1rem .45rem .8rem; }
  .contact-chip__label { display: inline; white-space: nowrap; }
}

@media (min-width: 960px) {
  .site-header__top { padding-block: 1.1rem .4rem; }
  .logo__mark { width: 3.5rem; height: 3.5rem; }
  .logo__name { font-size: 1.65rem; }
  .logo__tagline { font-size: .85rem; }
  .contact-chip { background: transparent; padding-inline: .7rem; }
  .contact-chip:hover { background: var(--rose-100); }
  .nav-toggle { display: none; }

  .main-nav,
  .main-nav.is-open { display: block; border-top: 0; background: transparent; }
  .main-nav__list {
    display: flex;
    justify-content: flex-end;
    gap: .25rem;
    padding: 0 0 .6rem;
  }
  .main-nav__link {
    position: relative;
    padding: .55rem 1rem;
    border-bottom: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--plum-700);
    border-radius: 999px;
  }
  .main-nav__link:hover { background: var(--rose-100); color: var(--rose-800); }
  .main-nav__link.is-active::before { display: none; }
  .main-nav__link.is-active { color: var(--rose-800); }
  .main-nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 1rem; right: 1rem; bottom: .2rem;
    height: 3px;
    border-radius: 3px;
    background: var(--rose-500);
  }
}

/* ---------- Hero / Bild-Slider ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--rose-100);
  color: #fff;
  isolation: isolate;
}
.hero__track {
  position: relative;
  display: grid;
}
.hero__slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(26rem, 68vh, 44rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s ease, visibility 0s;
}
.hero--sub .hero__slide { min-height: clamp(15rem, 40vh, 26rem); }

.hero__image,
.hero__slide > .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__slide:not(.hero__slide--noimage):not(.hero__slide--notext)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgb(58 48 53 / .62) 0%, rgb(58 48 53 / .18) 55%, rgb(58 48 53 / 0) 80%);
}
@media (min-width: 760px) {
  .hero__slide:not(.hero__slide--noimage):not(.hero__slide--notext)::before {
    background: linear-gradient(90deg, rgb(58 48 53 / .64) 0%, rgb(58 48 53 / .32) 45%, rgb(58 48 53 / 0) 75%);
  }
  .hero__slide { align-items: center; }
}

/* Slide ohne Bild: ruhige Farbfläche */
.hero__slide--noimage {
  background:
    radial-gradient(circle at 85% 20%, var(--rose-200) 0 18%, transparent 18.2%),
    radial-gradient(circle at 95% 85%, var(--sage-100) 0 22%, transparent 22.2%),
    var(--rose-100);
  color: var(--plum-700);
}
.hero__slide--noimage .hero__text { color: var(--plum-700); text-shadow: none; }

.hero__content {
  padding-block: 3rem 4.5rem;
}
.hero--sub .hero__content { padding-block: 2.5rem 3.5rem; }
.hero__box { max-width: 36rem; }
.hero__text {
  margin: 0 0 1.5rem;
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-style: italic;
  font-weight: 420;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem);
  line-height: 1.14;
  color: #fff;
  text-shadow: 0 2px 24px rgb(58 48 53 / .35);
  text-wrap: balance;
}
.hero--sub .hero__text { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); }
.hero__text:last-child { margin-bottom: 0; }

/* weiche Welle am unteren Rand */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(18px, 3vw, 42px);
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V34C240 6 480 0 720 18s480 40 720 14v28Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V34C240 6 480 0 720 18s480 40 720 14v28Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  z-index: 2;
  pointer-events: none;
}

.hero__controls {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(1.6rem, 3vw, 2.6rem);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  pointer-events: none;
}
.hero__dots { display: flex; gap: .15rem; pointer-events: auto; }
.hero__dot {
  position: relative;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hero__dot::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: .7rem; height: .7rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgb(255 255 255 / .55);
  box-shadow: 0 0 0 1px rgb(58 48 53 / .15);
  transition: width .3s ease, background-color .3s ease;
}
.hero__dot.is-active::before { width: 1.9rem; background: #fff; }
.hero__pause {
  width: 2.75rem; height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .22);
  cursor: pointer;
  pointer-events: auto;
  display: grid;
  place-items: center;
}
.hero__pause:hover { background: rgb(255 255 255 / .38); }
.hero__pause-icon {
  width: .7rem; height: .8rem;
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
}
.hero__pause.is-paused .hero__pause-icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: .45rem 0 .45rem .75rem;
  border-color: transparent transparent transparent #fff;
  margin-left: .2rem;
}

/* ---------- Platzhalter-Bild ---------- */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 12rem;
  background:
    radial-gradient(circle at 20% 25%, rgb(255 255 255 / .5) 0 14%, transparent 14.5%),
    radial-gradient(circle at 80% 80%, var(--sage-100) 0 24%, transparent 24.5%),
    linear-gradient(135deg, var(--rose-100), var(--sand-100));
  color: var(--rose-700);
}
.placeholder__icon { width: 2.6rem; height: 2.6rem; opacity: .7; }
.placeholder__label { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

/* ---------- Einleitung ---------- */
.block--intro { text-align: left; }
.intro__title { margin-bottom: .35em; }
.intro__subtitle {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-style: italic;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--rose-700);
  margin-bottom: 1.6rem;
}
.intro__subtitle::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: 1.4rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rose-300), var(--sage-300));
}

/* ---------- Fließtext ---------- */
.prose { max-width: 42rem; }
.prose > * + * { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 0; }
.prose ul { list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .55rem;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: .62em;
  width: .6rem; height: .6rem;
  border-radius: 60% 0 60% 0;        /* kleines Blatt */
  background: var(--rose-500);
  transform: rotate(-8deg);
}
.prose ol { padding-left: 1.4rem; }
.prose ol li { margin-bottom: .5rem; padding-left: .3rem; }
.prose li p { margin: 0; }
.prose h3 { margin-top: 1.6em; }

/* ---------- Inhaltsblock ---------- */
.block--content + .block--content { padding-top: 0; }

/* ---------- Farbblock ---------- */
.colorblock__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 1.25rem + 3.5vw, 4rem);
  border-radius: var(--radius-l);
  background: var(--cb-bg);
}
.colorblock__inner::after {
  content: "";
  position: absolute;
  right: -5rem; top: -5rem;
  width: 16rem; height: 16rem;
  border-radius: 50%;
  background: var(--cb-deco);
  opacity: .55;
  pointer-events: none;
}
.colorblock--rose { --cb-bg: var(--rose-100); --cb-deco: var(--rose-200); --cb-dot: var(--rose-700); }
.colorblock--sage { --cb-bg: var(--sage-100); --cb-deco: var(--sage-300); --cb-dot: var(--sage-700); }
.colorblock--sand { --cb-bg: var(--sand-100); --cb-deco: var(--sand-300); --cb-dot: var(--rose-700); }

.colorblock__title { position: relative; z-index: 1; }
.colorblock__text {
  position: relative;
  z-index: 1;
  max-width: none;
}
.colorblock__text ul li::before { background: var(--cb-dot); }
.colorblock__text li { break-inside: avoid; }

@media (min-width: 760px) {
  .colorblock__text { columns: 2; column-gap: 3.5rem; }
  .colorblock__text > ul, .colorblock__text > ol { margin-top: 0; }
}

/* ---------- Text-Bild-Block mit Tabs ---------- */
.tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .35rem;
  margin-bottom: 2.25rem;
  border-radius: 999px;
  background: var(--cream-200);
}
.tabs__tab {
  min-height: 2.9rem;
  padding: .55rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--plum-700);
  font: 700 1.0625rem/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.tabs__tab:hover { background: rgb(255 255 255 / .6); }
.tabs__tab[aria-selected="true"] {
  background: var(--rose-700);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgb(114 63 75 / .7);
}

.textimage__panel {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.textimage__panel[hidden] { display: none; }
.textimage__panel:focus-visible { outline-offset: 8px; }
.textimage__text .prose { max-width: 38rem; }
.textimage__media { margin: 0; }
.textimage__image,
.textimage__media .placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .textimage__panel { grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 5vw, 5rem); }
  .textimage--img-left .textimage__media { order: -1; }
  .textimage--img-left .textimage__panel { grid-template-columns: .9fr 1.1fr; }
  /* Bogenform – ruhig und weich */
  .textimage__image,
  .textimage__media .placeholder {
    aspect-ratio: 4 / 5;
    max-height: 34rem;
    border-radius: 999px 999px var(--radius-l) var(--radius-l);
  }
}

/* ---------- Akkordeon (FAQ) ---------- */
.accordion { display: grid; gap: .9rem; }
.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.accordion__item[open] { border-color: var(--rose-200); box-shadow: var(--shadow); }
.accordion__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-size: var(--fs-h3);
  font-weight: 460;
  line-height: 1.3;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-m);
}
.accordion__question::-webkit-details-marker { display: none; }
.accordion__question:hover { color: var(--rose-700); }
.accordion__icon {
  flex: none;
  width: 2.2rem; height: 2.2rem;
  padding: .45rem;
  border-radius: 50%;
  background: var(--rose-100);
  color: var(--rose-700);
  transition: transform .25s ease;
}
.accordion__item[open] .accordion__icon { transform: rotate(180deg); }
.accordion__answer { padding: 0 1.4rem 1.4rem; max-width: none; }

/* ---------- Abschluss-Button ---------- */
.cta { text-align: center; }
.cta__text {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-style: italic;
  font-size: var(--fs-lead);
  color: var(--heading);
  margin-bottom: 1.25rem;
}
.block--cta { padding-block: calc(var(--space-section) / 2) var(--space-section); }

/* ---------- Hinweis ---------- */
.block--note { padding-top: 0; }
.colorblock + .block--note,
.block--color + .block--note { margin-top: calc(var(--space-section) / -4); }
.note {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--muted);
  padding-left: 1rem;
  border-left: 3px solid var(--rose-200);
}

/* ---------- Kacheln (Startseite) ---------- */
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (min-width: 760px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tile:hover,
.tile:focus-within { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(79 58 71 / .06), 0 22px 44px -16px rgb(79 58 71 / .3); }
.tile__media { margin: 0; overflow: hidden; }
.tile__image,
.tile__media .placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .6s ease;
}
.tile:hover .tile__image { transform: scale(1.04); }
.tile__body {
  position: relative;
  padding: 1.5rem 4.5rem 1.75rem 1.75rem;
}
.tile__title { font-size: var(--fs-h3); margin-bottom: .4rem; }
.tile__link { color: inherit; text-decoration: none; }
.tile__link:hover { color: var(--rose-700); text-decoration: none; }
/* ganze Kachel klickbar */
.tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-l); }
.tile__link:focus-visible { outline: none; }
.tile__link:focus-visible::after { outline: 3px solid var(--rose-500); outline-offset: -3px; }
.tile__teaser { color: var(--muted); margin: 0; }
.tile__more {
  position: absolute;
  right: 1.5rem;
  bottom: 1.6rem;
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--rose-100);
  color: var(--rose-700);
  transition: background-color .2s ease, color .2s ease;
}
.tile:hover .tile__more { background: var(--rose-700); color: #fff; }

/* ---------- Leistungsblöcke (Startseite) ---------- */
.features { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
.feature {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  border-radius: var(--radius-l);
  background: var(--rose-100);
}
.feature:nth-child(2n) { background: var(--sage-100); }
.feature::before {
  content: "";
  position: absolute;
  right: -3.5rem; bottom: -3.5rem;
  width: 12rem; height: 12rem;
  border-radius: 60% 0 60% 0;
  background: rgb(255 255 255 / .45);
  transform: rotate(-12deg);
  pointer-events: none;
}
.feature__title { font-size: var(--fs-h2); position: relative; }
.feature__text { position: relative; flex: 1; margin-bottom: 1.75rem; }
.feature .button { position: relative; }
.feature:nth-child(2n) .button--outline { color: var(--sage-700); border-color: var(--sage-700); }
.feature:nth-child(2n) .button--outline:hover { background: var(--sage-700); color: #fff; }

/* ---------- Kontakt ---------- */
.block--contact { padding-top: 0; }
.contact {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1.15fr; align-items: stretch; }
}
.contact__card {
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border-radius: var(--radius-l);
  background: var(--rose-100);
}
.contact__address {
  display: flex;
  flex-direction: column;
  font-style: normal;
  margin-bottom: 1.5rem;
}
.contact__name {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--heading);
  font-style: italic;
}
.contact__business { color: var(--rose-700); margin-bottom: .6rem; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.contact__list li {
  display: grid;
  grid-template-columns: auto 5.5rem 1fr;
  align-items: center;
  gap: .75rem;
}
.contact__list .icon { color: var(--rose-700); }
.contact__key { color: var(--muted); font-size: var(--fs-small); }
.contact__list a { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .contact__list li { grid-template-columns: auto 1fr; }
  .contact__key { display: none; }
}

.contact__map {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 16rem;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.contact__map-image,
.contact__map .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.contact__map:hover .contact__map-image { transform: scale(1.03); }
.contact__map-label {
  position: absolute;
  left: 1rem; bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--rose-800);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.contact__map:hover .contact__map-label { background: var(--rose-700); color: #fff; }

/* ---------- Formular ---------- */
.form-card {
  padding: clamp(1.75rem, 1rem + 3.5vw, 3.5rem);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form__intro { color: var(--muted); }
.form__grid {
  display: grid;
  gap: 1.35rem 1.5rem;
  margin-top: 1.75rem;
}
@media (min-width: 700px) {
  .form__grid { grid-template-columns: repeat(2, 1fr); }
  .form__field--wide { grid-column: 1 / -1; }
}
.form__field label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--plum-700);
}
.form__req { color: var(--rose-700); }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form select,
.form textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  border: 1.5px solid #d9c9c1;
  border-radius: var(--radius-s);
  background: var(--cream-50);
  color: var(--text);
  font: 400 1.0625rem/1.5 var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form textarea { min-height: 10rem; resize: vertical; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--rose-300); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--rose-700);
  background: #fff;
  box-shadow: 0 0 0 4px rgb(183 125 130 / .25);
}
.select { position: relative; }
.select select { padding-right: 3rem; cursor: pointer; }
.select__icon {
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--rose-700);
  pointer-events: none;
}

.has-error input, .has-error select, .has-error textarea { border-color: #a83c4a; background: #fff7f7; }
.form__error {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  margin: .45rem 0 0;
  color: #9b2f3e;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.4;
}
.form__error .icon { width: 1.1rem; height: 1.1rem; margin-top: .1rem; }

.check { display: flex; align-items: flex-start; gap: .85rem; }
.check input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 1.6rem; height: 1.6rem;
  margin: .15rem 0 0;
  border: 2px solid var(--rose-500);
  border-radius: 6px;
  background: var(--cream-50);
  cursor: pointer;
  display: grid;
  place-content: center;
}
.check input::after {
  content: "";
  width: .45rem; height: .85rem;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
}
.check input:checked { background: var(--rose-700); border-color: var(--rose-700); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 3px solid var(--rose-500); outline-offset: 2px; }
.form .check label { font-weight: 400; font-size: 1rem; line-height: 1.55; margin: 0; color: var(--text); cursor: pointer; }
.has-error .check input { border-color: #a83c4a; }

.form__hp {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}
.form__hint { margin: 0; font-size: var(--fs-small); color: var(--muted); }

.form__success,
.form__alert {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-m);
}
.form__success { background: var(--sage-100); color: #2f4535; font-size: var(--fs-lead); }
.form__success .icon { width: 2rem; height: 2rem; padding: .35rem; border-radius: 50%; background: var(--sage-700); color: #fff; }
.form__alert { background: #f8e4e4; color: #7d2633; font-weight: 600; }
.form__alert .icon { width: 1.5rem; height: 1.5rem; margin-top: .1rem; }
.form__success:focus, .form__alert:focus { outline: none; }

/* ---------- Rechtstexte ---------- */
.page-blocks--legal .block--content { padding-block: .75rem; }
.page-blocks--legal .block--content .section-title { font-size: var(--fs-h3); margin-bottom: .5em; }
.page-blocks--legal .prose { font-size: 1.0625rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 2rem;
  padding: 3.5rem 0 2.5rem;
  background: var(--plum-700);
  color: var(--cream-100);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: calc(-1 * clamp(18px, 3vw, 42px) + 1px);
  height: clamp(18px, 3vw, 42px);
  background: var(--plum-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V26c240 26 480 34 720 16S1200 0 1440 22v38Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V26c240 26 480 34 720 16S1200 0 1440 22v38Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem 3rem;
}
.site-footer__address {
  display: flex;
  flex-direction: column;
  font-style: normal;
  line-height: 1.6;
}
.site-footer__name {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: .2rem;
  font-style: italic;
}
.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
}
.site-footer a { color: var(--cream-100); }
.site-footer a:hover { color: #fff; }
.site-footer a[aria-current="page"] { color: var(--rose-200); }
.site-footer :focus-visible { outline-color: var(--rose-200); }

/* ---------- Druck ---------- */
@media print {
  .site-header, .hero__controls, .nav-toggle, .site-footer::before, .hero::after { display: none !important; }
  body { background: #fff; }
  .hero__slide { min-height: 0; }
}
