@import url("https://fonts.googleapis.com/css2?family=Lexend+Giga:wght@500;700&family=Lexend:wght@300..700&display=swap");

/* ==========================================================================
   Felten & Klages — „In Bögen gesprochen“
   Ein Silbenbogen steht nur unter einer echten Silbe oder Sprechportion.
   Überschriften sprechen langsam (Lexend Giga), Text spricht normal (Lexend).
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Palette */
  --luft: #FAF8FD;
  --flieder: #E9E1F6;
  --aubergine: #2A1740;
  --mohn: #B93A1B;
  --veilchen: #6A48B8;
  --rauch: #5B4E6E;

  /* abgeleitet */
  --linie: #CFC2E6;
  --flieder-tief: #DDD2F0;
  --mohn-hell: #F0855F;
  --veilchen-hell: #B7A0EC;
  --erfolg: #2F6B3A;
  --weiss: #FFFFFF;

  /* Rollen (werden von Flächen umgesetzt) */
  --grund: var(--luft);
  --text: var(--aubergine);
  --text-leise: var(--rauch);
  --link: var(--veilchen);
  --fokus: var(--mohn);
  --bogen-a: var(--mohn);
  --bogen-b: var(--veilchen);

  /* Schrift */
  --schrift-stimme: "Lexend Giga", "Lexend", "Verdana", "Segoe UI", sans-serif;
  --schrift-text: "Lexend", "Verdana", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --fs-ruf: clamp(2.1rem, 0.55rem + 7.3vw, 6.4rem);
  --fs-nummer: clamp(2rem, 0.9rem + 6vw, 5.6rem);
  --fs-1: clamp(2rem, 1.2rem + 3.6vw, 3.9rem);
  --fs-2: clamp(1.55rem, 1.15rem + 1.7vw, 2.45rem);
  --fs-3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-wort: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  --fs-lead: clamp(1.15rem, 1.05rem + 0.5vw, 1.375rem);
  --fs-text: 1.0625rem;
  --fs-klein: 0.9375rem;

  --mass-text: 62ch;
  --mass-lead: 44ch;
  --mass-titel: 22ch;

  /* Raum */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-abschnitt: clamp(2.75rem, 1.6rem + 4vw, 5.5rem);

  --rand: clamp(1.25rem, 4vw, 3.5rem);
  --breite: 78rem;

  /* Formen: gerade Ecke für alles, U-Form nur für Knöpfe und Hinweis */
  --r-ecke: 0.3rem;
  --r-u: 0.4rem 0.4rem 1.6rem 1.6rem / 0.4rem 0.4rem 1.15rem 1.15rem;
  --bogen-staerke: max(2px, 0.075em);

  --dauer: 180ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--s-6);
}

body,
h1, h2, h3, h4,
p, figure, blockquote,
dl, dd, ul, ol {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
}

address {
  font-style: normal;
}

/* --- Grundtypografie ---------------------------------------------------- */
body {
  background: var(--luft);
  color: var(--aubergine);
  font-family: var(--schrift-text);
  font-size: var(--fs-text);
  font-weight: 350;
  line-height: 1.7;
  font-kerning: normal;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--schrift-stimme);
  font-weight: 700;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-1);
  line-height: 1.18;
  max-width: var(--mass-titel);
}

h2 {
  font-size: var(--fs-2);
  line-height: 1.22;
  max-width: var(--mass-titel);
}

h3 {
  font-size: var(--fs-3);
  font-weight: 500;
  line-height: 1.3;
}

p,
li,
dd {
  max-width: var(--mass-text);
}

strong {
  font-weight: 600;
}

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-thickness var(--dauer), color var(--dauer);
}

a:hover {
  color: var(--text);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
  border-radius: 0.15rem;
}

::selection {
  background: var(--aubergine);
  color: var(--flieder);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  font-weight: 400;
  max-width: var(--mass-lead);
}

.leise {
  color: var(--text-leise);
  font-size: var(--fs-klein);
}

/* --- Barrierefreiheit --------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 50;
  top: var(--s-3);
  left: var(--s-3);
  padding: var(--s-3) var(--s-5);
  background: var(--aubergine);
  color: var(--luft);
  font-weight: 500;
  border-radius: var(--r-ecke);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--luft);
}

/* --- Flächen ------------------------------------------------------------ */
[data-flaeche="flieder"] {
  background: var(--flieder);
}

[data-flaeche="aubergine"] {
  --text: var(--flieder);
  --text-leise: var(--flieder-tief);
  --link: var(--flieder);
  --fokus: var(--mohn-hell);
  --bogen-a: var(--mohn-hell);
  --bogen-b: var(--veilchen-hell);
  background: var(--aubergine);
  color: var(--flieder);
}

/* --- Layout ------------------------------------------------------------- */
.innen {
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
}

/* Der einzige Ort für Abstände zwischen Sektionen */
main > section {
  padding-block: var(--abschnitt-oben, var(--s-abschnitt)) var(--abschnitt-unten, var(--s-abschnitt));
}

.abschnitt__kopf {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
}

.fluss > * + * {
  margin-top: var(--fluss, 1em);
}

/* --- Silbenbögen -------------------------------------------------------- */
.silbe {
  position: relative;
}

.silbe::after {
  content: "";
  position: absolute;
  left: 0.07em;
  right: 0.07em;
  bottom: -0.2em;
  height: 0.24em;
  border: var(--bogen-staerke) solid var(--bogen-a);
  border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  pointer-events: none;
}

.silbe:nth-of-type(even)::after {
  border-color: var(--bogen-b);
}

/* --- Wortmarke ---------------------------------------------------------- */
.wortmarke {
  display: inline-block;
  padding-block: var(--s-2) var(--s-3);
  color: var(--aubergine);
  font-family: var(--schrift-stimme);
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.wortmarke:hover {
  color: var(--aubergine);
}

.wortmarke .silbe::after {
  --bogen-staerke: 2px;
  bottom: -0.28em;
}

/* --- Kopf und Navigation ------------------------------------------------ */
.kopf {
  position: relative;
  z-index: 20;
  background: var(--flieder);
}

.kopf__innen {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "marke anruf menue"
    "nav   nav   nav";
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding-block: var(--s-4);
}

.kopf .wortmarke {
  grid-area: marke;
  justify-self: start;
}

.kopf .anruf {
  grid-area: anruf;
}

.nav-toggle {
  grid-area: menue;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  padding: var(--s-2) var(--s-3);
  background: transparent;
  border: 2px solid var(--aubergine);
  border-radius: var(--r-u);
  color: var(--aubergine);
  font-weight: 500;
  cursor: pointer;
}

.nav-toggle__bild {
  position: relative;
  width: 1.1rem;
  height: 0.9rem;
}

.nav-toggle__bild::before,
.nav-toggle__bild::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.1rem;
  height: 0.4rem;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transition: transform var(--dauer), border-radius var(--dauer), height var(--dauer), top var(--dauer);
}

.nav-toggle__bild::before {
  top: 0;
}

.nav-toggle__bild::after {
  top: 0.45rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bild::before,
.nav-toggle[aria-expanded="true"] .nav-toggle__bild::after {
  top: 0.35rem;
  height: 0;
  border-radius: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bild::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bild::after {
  transform: rotate(-45deg);
}

#site-nav {
  grid-area: nav;
  display: none;
}

#site-nav[data-open="true"] {
  display: block;
  padding-block: var(--s-3) var(--s-4);
}

.nav__liste {
  display: grid;
}

.nav__liste a {
  display: block;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--linie);
  color: var(--aubergine);
  font-family: var(--schrift-stimme);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
}

.nav__liste a:hover {
  color: var(--veilchen);
}

.nav__liste a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--mohn);
  text-underline-offset: 0.35em;
}

/* --- Anruf, Knöpfe ------------------------------------------------------ */
.anruf {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  color: var(--aubergine);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.anruf svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.kopf .anruf {
  padding: var(--s-2) var(--s-3);
}

.kopf .anruf__nummer {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem 1.1rem;
  background: var(--aubergine);
  border: 2px solid var(--aubergine);
  border-radius: var(--r-u);
  color: var(--luft);
  font-family: var(--schrift-text);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dauer), border-color var(--dauer), color var(--dauer);
}

.knopf:hover {
  background: var(--mohn);
  border-color: var(--mohn);
  color: var(--weiss);
  text-decoration: none;
}

.knopf svg {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.knopf--linie {
  background: transparent;
  color: var(--text);
  border-color: currentColor;
}

.knopf--linie:hover {
  background: transparent;
  border-color: var(--mohn);
  color: var(--text);
}

[data-flaeche="aubergine"] .knopf {
  background: var(--flieder);
  border-color: var(--flieder);
  color: var(--aubergine);
}

[data-flaeche="aubergine"] .knopf:hover {
  background: var(--mohn-hell);
  border-color: var(--mohn-hell);
  color: var(--aubergine);
}

.knopf:disabled,
.knopf[aria-disabled="true"] {
  background: var(--flieder-tief);
  border-color: var(--flieder-tief);
  color: var(--rauch);
  cursor: not-allowed;
}

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
}

/* --- Auftakt (Hero der Startseite) -------------------------------------- */
.auftakt {
  --abschnitt-oben: clamp(1.5rem, 0.5rem + 4vw, 4.5rem);
}

/* „in Langenhagen“ misst knapp 11 Geviert: So bleibt jedes Wort ganz,
   und die Bögen werden auf dem Telefon nicht über zwei Zeilen zerrissen. */
.ruf {
  max-width: none;
  font-size: min(var(--fs-ruf), calc((100vw - 2 * var(--rand)) / 11.4));
  line-height: 1.34;
  text-wrap: wrap;
}

.ruf .bogen__wort {
  display: inline;
}

.auftakt__unten {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-7);
}

.auftakt__text {
  display: grid;
  gap: var(--s-4);
}

.auftakt__adresse {
  color: var(--rauch);
}

.auftakt__handeln {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
}

/* --- Bereiche (vier Wörter) --------------------------------------------- */
.bereiche {
  display: grid;
  gap: var(--s-7) var(--s-6);
}

.bereich {
  display: grid;
  align-content: start;
  gap: var(--s-4);
}

.bereich__wort {
  font-size: var(--fs-wort);
  font-weight: 700;
  line-height: 1.5;
}

.bereiche__nachsatz {
  margin-top: var(--s-7);
  color: var(--rauch);
}

/* --- Rezept-Tabelle ----------------------------------------------------- */
.rezept {
  width: 100%;
  max-width: 64rem;
  text-align: left;
}

.rezept caption {
  caption-side: bottom;
  padding-top: var(--s-4);
  color: var(--rauch);
  font-size: var(--fs-klein);
  text-align: left;
}

.rezept thead th {
  padding: 0 var(--s-4) var(--s-3);
  color: var(--rauch);
  font-size: var(--fs-klein);
  font-weight: 500;
}

.rezept tbody th,
.rezept tbody td {
  padding: var(--s-4);
  vertical-align: top;
}

.rezept tbody th {
  width: 34%;
  background: var(--flieder);
  border-bottom: 3px solid var(--luft);
  font-weight: 500;
}

.rezept tbody td {
  border-bottom: 1px solid var(--linie);
}

.rezept tbody tr:first-child th {
  border-radius: var(--r-ecke) 0 0 0;
}

/* --- Hinweis: eine große Silbe ------------------------------------------ */
.hinweis {
  display: grid;
  gap: var(--s-4);
  max-width: 58rem;
  padding: var(--s-6) var(--s-5) var(--s-7);
  background: var(--flieder);
  border-bottom: 0.4rem solid var(--mohn);
  border-radius: var(--r-ecke) var(--r-ecke) 50% 50% / var(--r-ecke) var(--r-ecke) 3.5rem 3.5rem;
}

.hinweis > h2,
.hinweis > h3 {
  max-width: none;
}

/* --- Gegenüber (Zweispalter) -------------------------------------------- */
.gegenueber {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}

.gegenueber__wort {
  font-family: var(--schrift-stimme);
  font-size: var(--fs-2);
  font-weight: 700;
  line-height: 1.6;
}

/* --- Hakenliste --------------------------------------------------------- */
.haken {
  display: grid;
  gap: var(--s-4);
  max-width: 46rem;
}

.haken li {
  position: relative;
  padding-left: 2.6rem;
}

.haken li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--aubergine);
  border-radius: 0.2rem;
}

.haken li::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.1em;
  width: 0.55rem;
  height: 1.05rem;
  border: solid var(--mohn);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}

.haken strong {
  display: block;
}

/* --- Nummer und Kontakt ------------------------------------------------- */
.nummer {
  display: inline-block;
  padding-bottom: 0.3em;
  color: var(--text);
  font-family: var(--schrift-stimme);
  font-size: var(--fs-nummer);
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.nummer:hover {
  color: var(--text);
}

.nummer:hover .silbe::after {
  --bogen-staerke: max(3px, 0.1em);
}

.kontakt {
  display: grid;
  gap: var(--s-1);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.kontakt__name {
  font-weight: 600;
}

.kontakt a {
  color: var(--link);
}

.schluss {
  display: grid;
  gap: var(--s-6);
}

.schluss__fakten {
  display: grid;
  gap: var(--s-5);
}

/* --- Fließtext (Unterseiten) -------------------------------------------- */
.prose {
  max-width: var(--mass-text);
}

.prose > * + * {
  margin-top: 1em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 2.2em;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.6em;
}

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

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--veilchen);
  font-weight: 700;
}

/* --- Kacheln ------------------------------------------------------------ */
.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--s-7) var(--s-6);
}

.kachel {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 0.25rem solid var(--aubergine);
}

.kachel:nth-child(even) {
  border-top-color: var(--veilchen);
}

/* --- Ablauf (nur echte Reihenfolgen) ------------------------------------ */
.ablauf {
  counter-reset: schritt;
  display: grid;
  max-width: 50rem;
}

.ablauf > li {
  counter-increment: schritt;
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: var(--s-2) var(--s-4);
  padding-bottom: var(--s-6);
}

.ablauf > li::before {
  content: counter(schritt);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--flieder);
  border-radius: var(--r-ecke) var(--r-ecke) 50% 50% / var(--r-ecke) var(--r-ecke) 1.2rem 1.2rem;
  color: var(--mohn);
  font-family: var(--schrift-stimme);
  font-size: 1.35rem;
  font-weight: 700;
}

.ablauf > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.625rem;
  top: 3.6rem;
  bottom: 0.4rem;
  border-left: 2px solid var(--linie);
}

.ablauf h3 {
  align-self: center;
}

/* --- FAQ ---------------------------------------------------------------- */
.faq {
  max-width: 52rem;
  border-top: 1px solid var(--linie);
}

.faq__eintrag {
  border-bottom: 1px solid var(--linie);
}

.faq__eintrag summary {
  position: relative;
  padding: var(--s-5) 3rem var(--s-5) 0;
  font-family: var(--schrift-stimme);
  font-size: var(--fs-3);
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

.faq__eintrag summary::before,
.faq__eintrag summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 1.1rem;
  border-top: 3px solid var(--mohn);
  transition: transform var(--dauer);
}

.faq__eintrag summary::after {
  transform: rotate(90deg);
}

.faq__eintrag[open] summary::after {
  transform: rotate(0deg);
}

.faq__antwort {
  padding-bottom: var(--s-5);
}

/* --- Formular ----------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--s-5);
  max-width: 40rem;
}

.form__field {
  display: grid;
  gap: var(--s-2);
}

.form__field label,
.form__legende {
  font-weight: 500;
}

.form__hilfe {
  color: var(--rauch);
  font-size: var(--fs-klein);
}

.form__input {
  width: 100%;
  min-height: 3rem;
  padding: var(--s-3) var(--s-4);
  background: var(--flieder);
  border: 0;
  border-bottom: 2px solid var(--aubergine);
  border-radius: var(--r-ecke) var(--r-ecke) 0 0;
  color: var(--aubergine);
  font-size: 1.0625rem;
  line-height: 1.5;
  transition: background-color var(--dauer), border-color var(--dauer);
}

textarea.form__input {
  min-height: 9rem;
  resize: vertical;
}

select.form__input {
  appearance: none;
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--aubergine) 50%),
    linear-gradient(135deg, var(--aubergine) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 55%, calc(100% - 0.95rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

[data-flaeche="flieder"] .form__input {
  background-color: var(--luft);
}

.form__input:hover {
  background-color: var(--flieder-tief);
}

.form__input:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
  background-color: var(--weiss);
}

.form__input[aria-invalid="true"] {
  border-bottom-color: var(--mohn);
  box-shadow: inset 0 -2px 0 var(--mohn);
}

.form__error {
  min-height: 0;
  color: var(--mohn);
  font-size: var(--fs-klein);
  font-weight: 500;
}

.form__error:empty {
  display: none;
}

.form__check {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: var(--s-3);
  align-items: start;
}

.form__check label {
  font-weight: 400;
}

.form__check input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.15em 0 0;
  accent-color: var(--aubergine);
}

.form__status {
  font-weight: 500;
}

.form__status:empty {
  display: none;
}

.form__status[data-state] {
  padding: var(--s-4) var(--s-5);
  border-left: 0.35rem solid currentColor;
  background: var(--flieder);
}

.form__status[data-state="pending"] {
  color: var(--rauch);
}

.form__status[data-state="success"] {
  color: var(--erfolg);
}

.form__status[data-state="error"] {
  color: var(--mohn);
}

/* --- Karte (iframe) ----------------------------------------------------- */
.karte {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--flieder);
  border-radius: var(--r-ecke);
}

.karte iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Seitenkopf (Unterseiten) ------------------------------------------- */
.seitenkopf {
  --abschnitt-oben: clamp(1.5rem, 0.5rem + 3vw, 3.5rem);
}

.seitenkopf .innen {
  display: grid;
  gap: var(--s-5);
}

/* --- Rechtstexte -------------------------------------------------------- */
.recht {
  max-width: 68ch;
}

.recht h2 {
  margin-top: 2em;
  font-size: var(--fs-3);
}

.recht > * + * {
  margin-top: 0.9em;
}

.recht__luecke {
  padding: 0.05em 0.35em;
  background: var(--flieder);
  border: 1px dashed var(--mohn);
  border-radius: var(--r-ecke);
  color: var(--mohn);
  font-weight: 500;
}

/* --- Fuß ---------------------------------------------------------------- */
.fuss {
  padding-block: var(--s-7) var(--s-6);
  border-top: 1px solid var(--linie);
  font-size: var(--fs-klein);
}

.fuss__raster {
  display: grid;
  align-items: start;
  gap: var(--s-6);
}

.fuss__marke {
  display: grid;
  align-content: start;
  gap: var(--s-2);
  justify-items: start;
}

.fuss__liste {
  display: grid;
  align-content: start;
  gap: var(--s-2);
}

.fuss a {
  color: var(--aubergine);
}

.fuss__klein {
  margin-top: var(--s-6);
  color: var(--rauch);
}

/* --- Styleguide --------------------------------------------------------- */
.stufe-1 {
  max-width: var(--mass-titel);
  font-family: var(--schrift-stimme);
  font-size: var(--fs-1);
  font-weight: 700;
  line-height: 1.18;
  overflow-wrap: break-word;
  hyphens: auto;
}

.muster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--s-5);
}

.farbfeld {
  display: grid;
  gap: var(--s-2);
  font-size: var(--fs-klein);
}

.farbfeld::before {
  content: "";
  height: 5.5rem;
  background: var(--farbe);
  border: 1px solid var(--linie);
  border-radius: var(--r-ecke) var(--r-ecke) 50% 50% / var(--r-ecke) var(--r-ecke) 1.6rem 1.6rem;
}

.skala {
  display: grid;
  gap: var(--s-6);
}

.skala__zeile {
  display: grid;
  gap: var(--s-2);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--linie);
}

.skala__zeile > :first-child {
  max-width: none;
}

/* --- Breakpoints -------------------------------------------------------- */
@media (min-width: 30rem) {
  .kopf .anruf__nummer {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .rezept tbody th {
    width: 36%;
  }
}

@media (max-width: 47.99rem) {
  .rezept thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .rezept tbody,
  .rezept tr,
  .rezept tbody th,
  .rezept tbody td {
    display: block;
    width: 100%;
  }

  /* Als Stapel gesetzt, bleibt die Legende trotzdem unter den Zeilen */
  .rezept {
    display: flex;
    flex-direction: column;
  }

  .rezept caption {
    order: 1;
    display: block;
  }

  .rezept tbody tr {
    margin-bottom: var(--s-4);
  }

  .rezept tbody th {
    padding-block: var(--s-3);
    border-bottom: 0;
    border-radius: var(--r-ecke) var(--r-ecke) 0 0;
  }

  .rezept tbody td {
    padding-inline: 0;
  }
}

@media (min-width: 48rem) {
  .bereiche {
    grid-template-columns: repeat(2, 1fr);
  }

  .auftakt__unten {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .auftakt__handeln {
    justify-items: end;
  }

  .hinweis {
    padding: var(--s-7) var(--s-7) var(--s-8);
  }

  .schluss__fakten {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }

  .fuss__raster {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .karte {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 62rem) {
  .kopf__innen {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "marke nav anruf";
    gap: var(--s-6);
    padding-block: var(--s-5);
  }

  .nav-toggle {
    display: none;
  }

  #site-nav,
  #site-nav[data-open] {
    display: block;
    padding: 0;
    justify-self: end;
  }

  .nav__liste {
    display: flex;
    gap: var(--s-6);
  }

  .nav__liste a {
    padding: var(--s-2) 0;
    border-top: 0;
    font-family: var(--schrift-text);
    font-size: 1.0625rem;
  }

  .kopf .anruf {
    padding: 0.55rem 1.1rem 0.75rem;
    border: 2px solid var(--aubergine);
    border-radius: var(--r-u);
    transition: background-color var(--dauer), color var(--dauer);
  }

  .kopf .anruf:hover {
    background: var(--aubergine);
    color: var(--luft);
  }

  .bereiche {
    grid-template-columns: repeat(4, 1fr);
  }

  .gegenueber {
    grid-template-columns: 5fr 7fr;
    gap: var(--s-8);
  }

  .gegenueber__wort {
    font-size: var(--fs-1);
    position: sticky;
    top: var(--s-6);
  }

  .schluss {
    gap: var(--s-7);
  }
}

@media (min-width: 90rem) {
  :root {
    --breite: 84rem;
  }

  .bereiche {
    gap: var(--s-7) var(--s-8);
  }
}

/* --- Bewegung: der eine Moment ------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .auftakt .silbe::after {
    animation: bogen-ziehen 420ms cubic-bezier(0.3, 0.7, 0.3, 1) both;
    animation-delay: calc(350ms + var(--i, 0) * 160ms);
  }

  @keyframes bogen-ziehen {
    from {
      clip-path: inset(0 100% 0 0);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .kopf,
  .nav-toggle,
  .skip-link {
    display: none;
  }

  [data-flaeche] {
    background: none;
    color: #000;
  }
}

/* === leistungen: bereichsfolge === */
/* Mehrere Gegenüber in einer Sektion: Linie und Luft zwischen den Bereichen */
.gegenueber + .gegenueber {
  margin-top: var(--s-7);
  padding-top: var(--s-7);
  border-top: 1px solid var(--linie);
}

@media (min-width: 62rem) {
  .gegenueber + .gegenueber {
    margin-top: var(--s-8);
  }
}

/* === kontakt: einwilligung === */
/* Das Kästchen trägt .form__input, damit das Haus-Skript es prüft,
   behält aber die Form des Kästchens. */
.form__check .form__input {
  width: 1.5rem;
  min-height: 0;
  height: 1.5rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.form__check .form__error {
  grid-column: 2;
}

/* === kontakt: karte-einwilligung === */
/* Grund im srcdoc der Karte: erst nach Klick lädt Google Maps */
.karte__einwilligung {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--s-4);
  min-height: 100vh;
  padding: var(--s-5);
  background: var(--flieder);
}

.karte__einwilligung p {
  max-width: 34ch;
}

/* === leistungen: verordner-titel === */
/* „Sprachtherapie“ trennt an der Wortfuge (&shy;), nicht mitten in der Silbe */
[data-8c-design="leistungen-verordner"] h2 {
  hyphens: manual;
  -webkit-hyphens: manual;
}
