/* =========================================================
   Lisa Knoll — globale Styles
   Sage · Cream · Warm Brown — naturverbunden, ruhig, behutsam
   ========================================================= */

:root {
  /* Palette — White Background + Blue Buttons + Green Accents */
  --bg:             #FFFFFF;
  --bg-warm:        #FAFAFA;
  --paper:          #FFFFFF;
  --paper-light:    #F3F7F2;       /* dezenter Card-Tint, per Theme überschreibbar */
  /* Blau für Buttons / Interaktion (Token-Name "sage" historisch) */
  --sage:           #649BCC;
  --sage-hover:     #4F87BE;
  --sage-soft:      #A8B89E;       /* Grün für Sektion-Bg + Akzente */
  --sage-tint:      #C8D3BB;       /* helles Grün-Tint */
  /* Fallback-Werte — werden per body[data-theme] überschrieben */
  --accent:           #A8B89E;
  --accent-deep:      #6B8A7C;
  --accent-darker:    #45685B;
  --accent-cta:       #4A6242;
  --accent-cta-hover: #364A30;
  --ink:            #3D2F22;
  --ink-soft:       #5E4C3C;
  --ink-muted:      #8E7B69;
  --border:         #E5E5E5;
  --border-soft:    #EFEFEF;
  --white:          #FFFFFF;

  /* Schatten */
  --shadow-sm:      0 4px 16px rgba(61, 47, 34, 0.05);
  --shadow-md:      0 10px 28px rgba(61, 47, 34, 0.07);

  /* Typografie */
  --font-serif:     "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radien */
  --r-pill:  9999px;
  --r-card:  1.25rem;
  --r-icon:  9999px;
  --r-input: 0.75rem;

  /* Layout */
  --max-page:      100%;
  --max-content:   100%;
  --max-narrow:    100%;
  --page-pad:      clamp(1.25rem, 4vw, 5rem); /* fluider Seitenabstand statt fester Maximalbreite */
  --section-py:    5rem;
  --section-py-sm: 3.5rem;
  --header-h:      5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 4vw + 1rem, 4rem); }
h2 { font-size: clamp(2.25rem, 2vw + 1rem, 3rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 0.4vw + 1rem, 1.5rem); line-height: 1.2; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sage) 50%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn--primary {
  background: var(--accent-cta);
  color: var(--white);
}
.btn--primary:hover { background: var(--accent-cta-hover); }

.btn--outline {
  background: transparent;
  color: var(--accent-cta);
  border-color: rgba(74, 98, 66, 0.3);
}
.btn--outline:hover {
  background: rgba(74, 98, 66, 0.06);
  border-color: var(--accent-cta);
  color: var(--accent-cta-hover);
}

.btn--ghost-on-sage {
  background: var(--white);
  color: var(--ink);
}
.btn--ghost-on-sage:hover { background: var(--paper); }

.btn--block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header__inner {
  max-width: var(--max-page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--page-pad);
  gap: 1.5rem;
  min-height: var(--header-h);
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
}
.brand-mark {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--accent);
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.125rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  white-space: nowrap;
}

.site-nav__list {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9375rem;
}
.site-nav__link {
  color: var(--accent-deep);
  position: relative;
  padding-bottom: 0.3rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.site-nav__link:hover { color: var(--accent-darker); }
.site-nav__link[aria-current="page"] {
  color: var(--accent-darker);
  font-weight: 600;
  border-bottom-color: var(--accent-darker);
}

.site-header__cta { display: inline-flex; align-items: center; gap: 0.75rem; }

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--ink);
  border-radius: var(--r-pill);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:focus-visible {
  outline: none;
  background: var(--paper-light);
}
.nav-toggle__bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0.75rem;
    right: 0.75rem;
    background: var(--bg-warm);
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: 0 12px 28px rgba(45, 42, 36, 0.08);
    transform: translateY(-8px) scaleY(0.96);
    transform-origin: top center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      transform .35s cubic-bezier(0.2, 0.9, 0.3, 1.1),
      opacity .28s ease,
      visibility .35s ease;
  }
  .site-nav[data-open="true"] {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    align-items: stretch;
  }
  .site-nav__list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border-soft); }
  .site-nav__list li:last-child { border-bottom: 0; }
  .site-header__cta .btn--primary {
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
  }
}
/* Header-CTA dezent als Outline-Button in Olive-Grün (anderer Grünton als Nav) */
@media (max-width: 600px) {
  .site-header__inner { padding: 0.875rem 1rem; gap: 0.75rem; }
  .brand-name { font-size: 1.75rem; }
  .brand-mark { width: 2.25rem; height: 2.25rem; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.5rem; }
  .brand-mark { width: 2rem; height: 2rem; }
}

/* Im aufgeklappten Mobile-Menü: letzten Eintrag "Kontakt" als Button stylen */
@media (max-width: 1023px) {
  .site-nav__list li:last-child {
    padding-top: 1rem;
    border-bottom: 0;
  }
  .site-nav__list li:last-child .site-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--r-pill);
    background: var(--accent-cta);
    color: var(--white);
    font-weight: 500;
    border-bottom: 0;
    align-self: flex-start;
  }
  .site-nav__list li:last-child .site-nav__link:hover {
    background: var(--accent-cta-hover);
    color: var(--white);
  }
  .site-nav__list li:last-child .site-nav__link[aria-current="page"] {
    background: var(--accent-cta-hover);
    color: var(--white);
    border-bottom: 0;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--bg);
}
.hero__inner {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 2.5rem var(--page-pad) 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}
.hero__copy { position: relative; z-index: 1; }
.hero__eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}
.hero__title {
  max-width: 32rem;
  font-size: clamp(2.5rem, 3.5vw + 1rem, 3.875rem);
  line-height: 1.05;
  margin: 0 0 1.75rem;
}
.hero__subtitle {
  max-width: 28rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1.25rem;
  background: var(--sage-tint);
}
.hero__overlay {
  position: absolute;
  left: -22%;
  top: 50%;
  transform: translateY(-50%);
  height: 112%;
  width: auto;
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: multiply;
}

@media (max-width: 900px) {
  .hero__overlay { display: none; }
}

@media (max-width: 1023px) {
  .hero__inner { grid-template-columns: 1fr; padding: 2rem var(--page-pad) 3.5rem; gap: 2rem; }
}

/* =========================================================
   Wave-Divider (SVG-Curves zwischen Sektionen)
   - SVG-Path füllt das TOP mit Farbe der vorigen Sektion
   - Wave-Element bekommt Hintergrundfarbe der NÄCHSTEN Sektion
   - 80 px Desktop, 50 px Mobile
   ========================================================= */
.wave {
  display: block;
  width: 100%;
  height: 80px;
  margin: -1px 0;
  pointer-events: none;
  user-select: none;
}
.wave--to-sage  { background-color: var(--accent); }   /* nächste Sektion = themed Akzent */
.wave--to-cream { background-color: var(--bg); }       /* nächste Sektion = weiß */

@media (max-width: 768px) {
  .wave { height: 50px; }
}

/* =========================================================
   Sektionen
   ========================================================= */
.section {
  padding: var(--section-py) var(--page-pad);
}
.section--bg-paper { background: var(--paper); }
.section--bg-sage  { background: var(--accent); color: var(--ink); position: relative; overflow: hidden; }
.section--bg-cream { background: var(--bg); position: relative; overflow: hidden; }

/* Themed Icons (inline SVG) — Kreis-Fill folgt dem aktiven Theme */
.icon-themed { width: 100%; height: 100%; display: block; }
.icon-themed .icon-bg { fill: var(--accent); }

/* Wave-Path-Fills themable — Klasse statt hardcoded fill="..." */
.wave .wave-fill-bg     { fill: var(--bg); }      /* weiß (typisch über Sage) */
.wave .wave-fill-accent { fill: var(--accent); }  /* Theme-Akzent */


.section__inner {
  max-width: var(--max-page);
  margin: 0 auto;
}
.section__head {
  text-align: center;
  margin-bottom: 2.75rem;
}
.section__title {
  font-size: clamp(2.25rem, 2.4vw + 1rem, 3rem);
  margin: 0 0 0.75rem;
}
.section__lead {
  max-width: var(--max-narrow);
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.section__flourish {
  display: inline-flex;
  margin: 0.25rem 0 1rem;
  color: var(--accent);
}
.section__flourish svg { width: 3rem; height: 0.75rem; }

@media (max-width: 1023px) {
  .section { padding: var(--section-py-sm) var(--page-pad); }
}

/* =========================================================
   Karten-Grids
   ========================================================= */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

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

/* =========================================================
   Offer-Card (Angebot: 3 Service-Karten)
   ========================================================= */
.offer-card {
  background: var(--paper-light);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.offer-card__icon {
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.offer-card__icon img,
.offer-card__icon svg { width: 100%; height: 100%; display: block; }
.offer-card__title {
  font-size: 1.375rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--ink);
}
.offer-card__body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.offer-card__list {
  width: 100%;
  text-align: left;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.offer-card__list li {
  display: flex;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink);
}
.offer-card__list li::before {
  content: "";
  display: block;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.angebot-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}
.angebot-note svg { width: 1.125rem; height: 1.125rem; color: var(--accent); }

/* =========================================================
   Angebot — ausführliche Service-Blöcke (vertikal gestapelt)
   ========================================================= */
.angebot-intro {
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.angebot-intro p + p { margin-top: 1rem; }

.service-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.service-detail {
  background: var(--paper-light);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
}
.service-detail__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.service-detail__icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-detail__icon img,
.service-detail__icon svg { width: 100%; height: 100%; display: block; }
.service-detail__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1vw + 1rem, 1.875rem);
  color: var(--ink);
  margin: 0;
}
.service-detail p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.service-detail p:last-of-type { margin-bottom: 0; }
.service-detail__intro { color: var(--ink); font-weight: 400; }

.service-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}
.service-bullets li {
  display: flex;
  gap: 0.625rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}
.service-bullets li::before {
  content: "";
  display: block;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* Topic + Beschreibung (Behandlung / Diagnostik) */
.service-topics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}
.service-topic__title {
  display: block;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.25rem;
}
.service-topic__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 600px) {
  .service-detail { padding: 1.5rem 1.25rem; }
  .service-detail__header { gap: 0.75rem; }
  .service-detail__icon { width: 2.5rem; height: 2.5rem; }
}

/* =========================================================
   Über-mich-Sektion (auf Sage-Bg)
   ========================================================= */
.about {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}
.about__photo {
  width: 260px;
  /* Seitenverhältnis des Fotos — Gesicht und Haare bleiben vollständig sichtbar */
  aspect-ratio: 577 / 800;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--paper-light);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.about__text p {
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1.5rem;
  color: var(--ink);
  max-width: 38rem;
}
/* Erfahrung + Aktuelle-Tätigkeiten Subsections */
.about__sections {
  max-width: var(--max-content);
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.about__subsection-title {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 0.6vw + 1rem, 1.625rem);
  color: var(--ink);
  margin: 0 0 0.875rem;
}
.about__subsection > p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1rem;
}
.about__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
}
.about__list li {
  display: flex;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}
.about__list li::before {
  content: "✓";
  color: var(--accent-deep);
  font-weight: 600;
  flex-shrink: 0;
  width: 1rem;
}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 1.75rem; }
  .about__photo { width: 200px; }
  .about__sections { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
}

/* =========================================================
   Organisatorisches-Karten
   ========================================================= */
.condition-card {
  background: var(--paper-light);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  padding: 1.75rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.condition-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.condition-card__icon img,
.condition-card__icon svg { width: 100%; height: 100%; display: block; }
.condition-card__title {
  font-size: 1.1875rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.condition-card__body {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* =========================================================
   Kontakt-CTA (auf Sage)
   ========================================================= */
.kontakt-cta {
  text-align: center;
  padding: 4rem var(--page-pad) 3.5rem;
}
.kontakt-cta h2 {
  margin: 0 0 0.875rem;
  color: var(--ink);
}
.kontakt-cta p {
  font-size: 1rem;
  color: var(--ink);
  margin: 0 auto 1.75rem;
  max-width: 36rem;
}

/* =========================================================
   Kontakt-Seite (Formular)
   ========================================================= */
.contact {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.contact__info > h2 { margin: 0 0 1rem; }
.contact__info > p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 0 0 1.75rem;
}
.contact__info dl { margin: 0; }
.contact__info dt {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 1.125rem 0 0.25rem;
  font-weight: 500;
}
.contact__info dt:first-of-type { margin-top: 0; }
.contact__info dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink);
}
.contact__info dd a { color: var(--sage-hover); }
.contact__info dd a:hover { color: var(--ink); }

.contact__form-wrapper {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact__form-wrapper { padding: 1.25rem; }
}
@media (max-width: 600px) {
  /* Auf Mobile: Sektionen + Form-Wrapper enger packen, damit das Formular
     die Viewport-Breite besser ausnutzt */
  .section { padding-left: 1rem; padding-right: 1rem; }
  .contact__form-wrapper { padding: 1.125rem 1rem; border-radius: 1rem; }
  .form-field input,
  .form-field textarea { padding: 0.7rem 0.75rem; }
}

/* =========================================================
   Formular
   ========================================================= */
.form-field { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.125rem; }
.form-field label { color: var(--ink); font-size: 0.9375rem; font-weight: 500; }
.form-field input, .form-field textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-muted); }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 22%, transparent);
}
.form-field textarea { resize: vertical; min-height: 7rem; }
.form-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.form-field--checkbox input { width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; }
.form-field--checkbox label a { color: var(--sage-hover); text-decoration: underline; }
.form-field__error { color: #B0463A; font-size: 0.8125rem; margin: 0; min-height: 1em; }
.form-success { color: var(--sage-hover); margin-top: 0.875rem; font-size: 0.9375rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 1.75rem var(--page-pad);
  background: var(--bg);
}
.site-footer__inner {
  max-width: var(--max-page);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.site-footer__legal { display: flex; gap: 1.5rem; }
.site-footer__legal a:hover { color: var(--sage-hover); }

/* =========================================================
   Legal-Seiten
   ========================================================= */
.legal { margin: 0 auto; }
.legal h1 { margin: 0 0 2rem; }
.legal h2 { font-size: 1.375rem; margin: 2.25rem 0 0.875rem; }
.legal p, .legal li { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 1em; }
.legal a { color: var(--sage-hover); text-decoration: underline; }

/* =========================================================
   Animationen
   ========================================================= */
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-scale {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

.hero__copy > * { animation: fade-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__copy > *:nth-child(1) { animation-delay: 60ms; }
.hero__copy > *:nth-child(2) { animation-delay: 160ms; }
.hero__copy > *:nth-child(3) { animation-delay: 260ms; }
.hero__copy > *:nth-child(4) { animation-delay: 360ms; }
.hero__visual { animation: fade-scale 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms both; }

/* Reveal-on-Scroll (Scroll-Timeline) wurde entfernt:
   die animation-timeline: view() Variante ließ Inhalte unsichtbar,
   bis sie ins Viewport gescrollt wurden — bei Page-Load oder bei
   Full-Page-Tools (Playwright, Lighthouse) wirken Sektionen leer.
   Inhalte werden jetzt sofort gerendert, nur Hero hat dezente
   Lade-Animation. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__copy > *, .hero__visual { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Color-Themes (temporär — Testen verschiedener Paletten)
   ========================================================= */
body[data-theme="green"] {
  --accent:           #A8B89E;
  --accent-deep:      #6B8A7C;
  --accent-darker:    #45685B;
  --accent-cta:       #4A6242;
  --accent-cta-hover: #364A30;
  --paper-light:      #F3F7F2;
}
body[data-theme="blue-classic"] {
  --accent:           #B5D0E5;
  --accent-deep:      #5A7A95;
  --accent-darker:    #3C5E7D;
  --accent-cta:       #649BCC;
  --accent-cta-hover: #4F87BA;
  --paper-light:      #F0F5FA;
}
body[data-theme="blue-deep"] {
  --accent:           #B0C8DE;
  --accent-deep:      #45688A;
  --accent-darker:    #2D4767;
  --accent-cta:       #2D5278;
  --accent-cta-hover: #1F3F5F;
  --paper-light:      #EEF2F7;
}
body[data-theme="blue-steel"] {
  --accent:           #C5D8E5;
  --accent-deep:      #5E7E94;
  --accent-darker:    #3F5E73;
  --accent-cta:       #4F7D9C;
  --accent-cta-hover: #3D6585;
  --paper-light:      #F1F5F8;
}

/* =========================================================
   Color-Switcher Widget (temporär, rechts oben)
   ========================================================= */
.color-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 24px rgba(45, 42, 36, 0.10);
  cursor: grab;
  touch-action: none; /* nötig, damit Pointer-Drag auch auf Touch-Geräten greift */
  user-select: none;
  -webkit-user-select: none;
}
.color-switcher--dragging {
  cursor: grabbing;
  box-shadow: 0 12px 32px rgba(45, 42, 36, 0.18);
}
.color-switcher__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-right: 0.125rem;
  display: none;
}
.color-switcher button {
  width: 1.625rem;
  height: 1.625rem;
  padding: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.color-switcher button:hover { transform: scale(1.08); }
.color-switcher button[aria-pressed="true"] {
  border-color: var(--ink);
  border-width: 2px;
  box-shadow: 0 0 0 2px var(--bg);
}
.color-switcher button:focus-visible {
  outline: 2px solid var(--ink-soft);
  outline-offset: 2px;
}

/* Custom-Color-Picker: native input[type=color] mit eigenem Ring */
.color-switcher__picker-wrap {
  position: relative;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 0.125rem;
  /* Regenbogen-Ring um den Picker, signalisiert "beliebige Farbe" */
  background: conic-gradient(
    from 0deg,
    #F87171, #FBBF24, #84CC16, #34D399,
    #06B6D4, #60A5FA, #A78BFA, #F472B6, #F87171
  );
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
}
.color-switcher__picker-wrap:hover { transform: scale(1.08); }
.color-switcher__picker-wrap[data-active="true"] {
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--bg);
}
.color-switcher__picker {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  cursor: pointer;
  overflow: hidden;
}
.color-switcher__picker::-webkit-color-swatch-wrapper { padding: 0; }
.color-switcher__picker::-webkit-color-swatch { border: none; border-radius: 50%; }
.color-switcher__picker::-moz-color-swatch { border: none; border-radius: 50%; }
.color-switcher__picker:focus-visible {
  outline: none;
}
.color-switcher__picker-wrap:has(.color-switcher__picker:focus-visible) {
  outline: 2px solid var(--ink-soft);
  outline-offset: 2px;
}
@media (min-width: 768px) {
  .color-switcher { padding: 0.5rem 0.875rem 0.5rem 1rem; }
  .color-switcher__label { display: inline; }
}
@media (max-width: 480px) {
  .color-switcher { top: auto; bottom: 1rem; right: 0.75rem; }
}
