/* sylvia-ahlers.de, Auffrischung 2026
   Inhalte unverändert, neu sind Typografie, Buttons, Navigation und Karten.
   Grün #7ab317 ist ihre Markenfarbe, für Text und Buttons wird das dunklere
   #4a7a0b verwendet (Kontrast 4,9:1 auf dem Hintergrund, WCAG AA). */

:root {
  --gruen: #7ab317;
  --gruen-tief: #4a7a0b;
  --gruen-dunkel: #2f4f07;
  --gruen-hell: #eef5e2;
  --tinte: #1d2127;
  --text: #2b2f36;
  --grau: #555b64;
  --linie: #e4e7de;
  --bg: #fafaf7;
  --weiss: #fff;
  --pill: 999px;
  --rad: 20px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --breite: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--gruen-tief);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--gruen-dunkel);
}

:focus-visible {
  outline: 3px solid var(--gruen);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(var(--breite), 100% - 40px);
  margin-inline: auto;
}

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

.sprung {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--tinte);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--pill);
}

.sprung:focus {
  top: 12px;
}

/* ------------------------------------------------------------ Kontaktleiste */
.leiste {
  background: var(--gruen-tief);
  color: #fff;
  font-size: 14px;
}

.leiste-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
  padding: 8px 0;
}

.leiste a {
  color: #fff;
  text-decoration: none;
}

.leiste a:hover {
  text-decoration: underline;
  color: #fff;
}

/* ------------------------------------------------------------ Navigation */
.kopf {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin-top: 14px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--pill);
  padding: 8px 10px 8px 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(30, 45, 10, 0.06);
  position: relative;
}

.marke {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--tinte);
  line-height: 1.2;
  flex-shrink: 0;
}

.marke:hover {
  color: var(--tinte);
}

.marke-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 23px;
}

.marke-sub {
  font-size: 12px;
  color: var(--grau);
}

.menue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.menue > li {
  position: relative;
  display: flex;
  align-items: center;
}

.menue > li > a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--pill);
  color: var(--tinte);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}

.menue > li > a:hover,
.menue > li > a[aria-current] {
  background: var(--gruen-hell);
  color: var(--tinte);
}

.sub-auf {
  width: 22px;
  height: 22px;
  margin-left: -10px;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  position: relative;
}

.sub-auf::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--grau);
  border-bottom: 1.6px solid var(--grau);
  transform: translateY(-2px) rotate(45deg);
}

.sub {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 270px;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(30, 45, 10, 0.1);
  display: none;
}

.sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.sub-breit {
  min-width: 560px;
  columns: 2;
  column-gap: 8px;
}

.hat-sub:hover > .sub,
.hat-sub:focus-within > .sub,
.hat-sub.offen > .sub {
  display: block;
}

.sub li {
  break-inside: avoid;
}

.sub a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--tinte);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
}

.sub a:hover,
.sub a[aria-current] {
  background: var(--gruen-hell);
}

.hat-kind > ul {
  list-style: none;
  margin: 0 0 4px 12px;
  padding: 0 0 0 10px;
  border-left: 2px solid var(--gruen-hell);
}

.hat-kind > ul a {
  font-size: 14px;
  color: var(--grau);
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--linie);
  background: var(--weiss);
  cursor: pointer;
  position: relative;
}

.burger-strich,
.burger-strich::before,
.burger-strich::after {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  background: var(--tinte);
  border-radius: 2px;
  content: "";
  transition: transform 0.25s;
}

.burger-strich {
  top: 21px;
}

.burger-strich::before {
  left: 0;
  top: -6px;
}

.burger-strich::after {
  left: 0;
  top: 6px;
}

.burger[aria-expanded="true"] .burger-strich {
  background: transparent;
}

.burger[aria-expanded="true"] .burger-strich::before {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger-strich::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ------------------------------------------------------------ Typografie */
h1,
h2,
h3,
h4,
h5 {
  color: var(--tinte);
  text-wrap: balance;
}

h1 {
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0.35em 0 0.3em;
}

h2 {
  font-weight: 500;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 0.55em;
}

h3 {
  font-weight: 600;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 1.5em 0 0.45em;
}

h4,
h5 {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  margin: 1.3em 0 0.35em;
}

h1 em,
h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gruen-tief);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.eng {
  margin: 0;
}

strong {
  font-weight: 600;
  color: var(--tinte);
}

ul,
ol {
  padding-left: 1.3em;
}

li {
  margin: 0.25em 0;
}

li::marker {
  color: var(--gruen-tief);
}

blockquote {
  margin: 1.4em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--gruen);
  background: var(--weiss);
  border-radius: 0 16px 16px 0;
}

/* ------------------------------------------------------------ Badge + Buttons */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 15px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--grau);
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--pill);
}

.punkt {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gruen);
  box-shadow: 0 0 0 4px rgba(122, 179, 23, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 22px;
  border: 0;
  border-radius: var(--pill);
  background: var(--gruen-tief);
  color: #fff;
  font: 400 16px/1.3 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: rgba(255, 255, 255, 0.14) 0 0 0 3px inset;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: rgba(255, 255, 255, 0.14) 0 0 0 3px inset, rgba(74, 122, 11, 0.35) 0 8px 24px;
}

.btn:not(:has(.btn-pfeil)) {
  padding: 15px 24px;
}

.btn-pfeil {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--gruen-tief);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.btn:hover .btn-pfeil {
  transform: translateX(2px);
}

.btn-hell {
  background: var(--weiss);
  color: var(--tinte);
  box-shadow: inset 0 0 0 1px var(--linie);
}

.btn-hell .btn-pfeil {
  background: var(--gruen-hell);
}

.btn-hell:hover {
  color: var(--tinte);
  box-shadow: inset 0 0 0 1px var(--linie), rgba(30, 45, 10, 0.1) 0 8px 24px;
}

.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.mehr {
  margin-top: 1.4em;
}

/* ------------------------------------------------------------ Startseiten-Kopf */
.hero {
  padding: 52px 0 36px;
}

.hero-raster {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-sub {
  font-size: 19px;
  color: var(--grau);
  max-width: 34em;
}

.hero-bild {
  margin: 0;
  position: relative;
}

.hero-bild::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 32px;
  background: var(--gruen-hell);
  z-index: -1;
}

.hero-bild img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: 68% 25%;
  border-radius: 32px;
}

/* ------------------------------------------------------------ Unterseiten-Kopf */
.unterkopf {
  padding: 60px 0 10px;
}

.unterkopf .wrap {
  max-width: 860px;
}

.unterkopf h1 {
  font-size: clamp(36px, 4.8vw, 60px);
}

/* ------------------------------------------------------------ Inhaltsblöcke */
.blk {
  padding: 40px 0;
}

.spalten {
  display: grid;
  gap: 32px;
}

.spalten.einzeln {
  max-width: 860px;
  margin-inline: auto;
}

.spalten.n2 {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.spalten.n3 {
  grid-template-columns: repeat(3, 1fr);
}

.spalte > :first-child,
.karte-text > :first-child,
.akk-inhalt > :first-child {
  margin-top: 0;
}

.spalte > :last-child,
.karte-text > :last-child {
  margin-bottom: 0;
}

.spalte img {
  border-radius: 16px;
}

.bildspalte {
  margin: 0;
  height: 100%;
}

.bildspalte img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: var(--rad);
}

.karte {
  display: flex;
  flex-direction: column;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--rad);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.karte:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(30, 45, 10, 0.08);
}

.spalte .karte-bild {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.karte-text {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.karte-text .mehr {
  margin-top: auto;
  padding-top: 18px;
}

.karte-text h4,
.karte-text h3 {
  margin-top: 0;
}

/* Akkordeon (Eskalationsstufen nach Glasl) */
.akk {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 16px;
  margin: 10px 0;
}

.akk summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 56px 16px 22px;
  font-weight: 600;
  color: var(--tinte);
  position: relative;
}

.akk summary::-webkit-details-marker {
  display: none;
}

.akk summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gruen-hell);
  color: var(--gruen-tief);
  font-weight: 500;
  transition: transform 0.25s;
}

.akk[open] summary::after {
  transform: rotate(45deg);
}

.akk-inhalt {
  padding: 0 22px 20px;
}

/* ------------------------------------------------------------ Kontaktformular */
.formular {
  margin-top: 8px;
}

.formular label {
  display: block;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--tinte);
}

.formular input:not([type="checkbox"]),
.formular textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 16px;
  font: 400 16px/1.5 var(--sans);
  color: var(--text);
  background: var(--weiss);
  border: 1px solid #c9cec1;
  border-radius: 14px;
}

.formular input:focus,
.formular textarea:focus {
  outline: 3px solid rgba(122, 179, 23, 0.35);
  border-color: var(--gruen-tief);
}

.feld-reihe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.formular .haken {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.haken input {
  margin-top: 6px;
  width: 18px;
  height: 18px;
  accent-color: var(--gruen-tief);
}

.koeder {
  position: absolute !important;
  left: -9999px;
}

.formular-status {
  margin-top: 14px;
  font-weight: 500;
}

.formular-status.fehler {
  color: #a3261a;
}

.klein {
  font-size: 15px;
  color: var(--grau);
}

/* ------------------------------------------------------------ Abschluss-Kasten */
.cta {
  padding: 48px 0 88px;
}

.cta-box {
  text-align: center;
  color: #fff;
  background: radial-gradient(120% 140% at 15% 0%, #5a8f12 0%, var(--gruen-tief) 45%, var(--gruen-dunkel) 100%);
  border-radius: 32px;
  padding: 60px clamp(24px, 6vw, 80px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cta-box h2 {
  color: #fff;
  margin-top: 22px;
}

.cta-box h2 em {
  color: #d6ee9f;
}

.cta-box p {
  max-width: 36em;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.88);
}

.cta-box .badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.cta-box .knopfreihe {
  justify-content: center;
}

.cta-box .btn {
  background: #fff;
  color: var(--gruen-tief);
  box-shadow: none;
}

.cta-box .btn .btn-pfeil {
  background: var(--gruen-tief);
  color: #fff;
}

.cta-box .btn-hell {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.cta-box .btn:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ------------------------------------------------------------ Fußzeile */
.fuss {
  background: var(--weiss);
  border-top: 1px solid var(--linie);
  padding: 60px 0 24px;
  overflow: hidden;
}

.fuss-raster {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.fuss h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grau);
  margin: 0 0 12px;
}

.fuss ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fuss a {
  color: var(--tinte);
  text-decoration: none;
}

.fuss a:hover {
  color: var(--gruen-tief);
  text-decoration: underline;
}

.fuss-marke {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--tinte);
  margin: 0 0 8px;
}

.fuss-riesig {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 14vw, 200px);
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  color: rgba(74, 122, 11, 0.07);
  margin: 48px 0 8px;
  user-select: none;
}

.fuss-klein {
  font-size: 14px;
  color: var(--grau);
  margin-top: 0;
}

/* ------------------------------------------------------------ Einblenden */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.sichtbar {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------ Mobil */
@media (max-width: 1080px) {
  .burger {
    display: block;
  }

  .nav {
    border-radius: 28px;
    padding: 8px 8px 8px 22px;
  }

  .menue {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(30, 45, 10, 0.12);
  }

  .menue.offen {
    display: flex;
  }

  .menue > li {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .menue > li > a {
    flex: 1;
    padding: 12px 14px;
  }

  .sub-auf {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .hat-sub.offen > .sub-auf::before {
    transform: translateY(2px) rotate(-135deg);
  }

  .sub,
  .sub-breit {
    position: static;
    width: 100%;
    min-width: 0;
    columns: 1;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 14px;
  }

  .hat-sub:hover > .sub,
  .hat-sub:focus-within > .sub {
    display: none;
  }

  .hat-sub.offen > .sub {
    display: block;
  }

  .hero-raster,
  .spalten.n2,
  .spalten.n3,
  .fuss-raster {
    grid-template-columns: 1fr;
  }

  .hero-raster {
    gap: 40px;
  }

  .hero-bild {
    max-width: 520px;
  }

  .spalten.n2 {
    gap: 32px;
  }

  .bildspalte img {
    min-height: 240px;
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .leiste-in span,
  .leiste-in a:last-child {
    display: none;
  }

  .marke-sub {
    display: none;
  }

  .feld-reihe {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-bild::before {
    inset: 12px -8px -12px 12px;
  }

  .blk {
    padding: 28px 0;
  }

  .cta-box {
    padding: 44px 22px;
    border-radius: 26px;
  }

  .knopfreihe .btn {
    width: 100%;
    justify-content: space-between;
  }

  .knopfreihe .btn:not(:has(.btn-pfeil)) {
    justify-content: center;
  }
}

/* ------------------------------------------------------------ Ergänzungen */
.spalten.n2 {
  align-items: start;
}

.spalten.n2:has(.bildspalte) {
  align-items: center;
}

/* Eskalationsstufen nach Glasl als Treppe */
.phasenmodell {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: start;
  gap: 8px;
  height: 300px;
  padding: 24px;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--rad);
}

.stufe {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 10px 4px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.stufe1, .stufe2, .stufe3 { background: var(--gruen-hell); color: var(--gruen-tief); }
.stufe4, .stufe5, .stufe6 { background: #fbefcf; color: #6b4f00; }
.stufe7, .stufe8, .stufe9 { background: #f8dcd5; color: #8a2a17; }
.stufe1 { height: 100%; }
.stufe2 { height: 91%; }
.stufe3 { height: 82%; }
.stufe4 { height: 73%; }
.stufe5 { height: 64%; }
.stufe6 { height: 55%; }
.stufe7 { height: 46%; }
.stufe8 { height: 37%; }
.stufe9 { height: 28%; }

@media (max-width: 640px) {
  .phasenmodell {
    gap: 4px;
    padding: 12px;
    height: 220px;
  }

  .stufe {
    font-size: 11px;
    padding: 6px 2px;
  }
}
