/*
  Beispielseite «Nagelatelier Muster» (erfundener Betrieb) für webbach
  Eigenes Aussehen: ruhig und gepflegt, Porzellan und Puder mit Kirschrot,
  aufgebaut wie eine Farbkarte (nummerierte Abschnitte, Musternägel, Etikett am Foto).
  Paket Start mit Kontaktformular. Das Formular sendet nichts: Die Felder haben kein
  name-Attribut, das Absenden springt nur auf #gesendet (Bestätigung per :target).
  Gleiche Regeln wie die Hauptseite: mobile zuerst, Farben über Variablen,
  keine Inline-Stile, keine Skripte, nur Schriften vom eigenen Server.
  Kontrast: werkzeuge/kontrast_beispiele.py
*/

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../schriften/fraunces-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../schriften/inter-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../schriften/inter-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Farben ---------- */

:root {
  --kirsche: #8A2338;
  --champagner: #C2A06B;

  --bg: #FAF6F2;
  --bg-alt: #F3E7E2;
  --karte: #FFFFFF;
  --text: #2A201D;
  --text-leise: #685651;
  --linie: #E6D6D0;
  --akzent: var(--kirsche);
  --fokus: #2A201D;

  --knopf: var(--kirsche);
  --knopf-text: #FFFFFF;
  --knopf-hover: #6C1A2B;

  /* Dauer-Schildchen in der Preisliste */
  --dauer-bg: #F6ECE8;
  --dauer-text: #5E4C47;

  /* Formular */
  --feld-bg: #FFFFFF;
  --feld-rand: #8F7B75;
  --gesendet-rand: var(--akzent);

  /* immer dunkel: Fusszeile */
  --dunkel: #2A1C1B;
  --dunkel-text: #F8EEEA;
  --dunkel-leise: #DCC9C3;
  --dunkel-fokus: #F2B3BE;

  /* Zeichnung im Abschnitt «Über mich» */
  --z-strich: #8C746C;
  --z-fenster: #EEF1F0;
  --z-tuch: #FFFFFF;
  --z-licht: #FBEBD2;
  --z-blatt: #7F9A82;

  /* Musternägel: Rand und Glanz */
  --lack-rand: rgb(42 32 29 / 0.12);
  --lack-glanz: rgb(255 255 255 / 0.5);

  /* Leiste unten auf dem Handy */
  --aktion-bg: var(--karte);
  --aktion-text: var(--akzent);
  --aktion-rand: var(--akzent);
  --aktion-linie: var(--linie);
  --aktion-fokus: var(--fokus);

  /* Hinweisband von webbach */
  --band: #14232B;
  --band-text: #FAF6EE;
  --band-link: #F2B49F;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15100F;
    --bg-alt: #1F1816;
    --karte: #281F1D;
    --text: #F6EEEA;
    --text-leise: #CDBCB6;
    --linie: #3D312E;
    --akzent: #F0A9B6;
    --fokus: #F2B3BE;

    --knopf: #F0A9B6;
    --knopf-text: #15100F;
    --knopf-hover: #F6C6CF;

    --dauer-bg: #352A27;
    --dauer-text: #E2D3CE;

    --feld-bg: #1F1816;
    --feld-rand: #9C8780;

    --dunkel: #0D0909;

    --z-strich: #B9A39B;
    --z-fenster: #232B2C;
    --z-tuch: #E9E2DE;
    --z-licht: #4A3B29;
    --z-blatt: #7F9A82;

    --lack-rand: rgb(255 255 255 / 0.16);
    --lack-glanz: rgb(255 255 255 / 0.35);
  }
}

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  /* Lange Wörter (z. B. «mehrwertsteuerpflichtig») bei grosser Schrift umbrechen,
     statt über den Rand zu laufen (Audit 15.11.2026, W-005). Bewusst ohne hyphens: auto */
  overflow-wrap: break-word;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 1.45rem + 2vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0;
}

a {
  color: var(--akzent);
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
  border-radius: 4px;
}

svg {
  display: block;
}

.huelle {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

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

.sprung {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--knopf);
  color: var(--knopf-text);
  font-weight: 600;
}

.sprung:focus {
  top: 1rem;
}

/* ---------- Hinweisband (gehört zu webbach, nicht zum Atelier) ---------- */

.hinweis {
  background: var(--band);
  color: var(--band-text);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.hinweis__zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-block: 0.65rem;
}

.hinweis__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.hinweis a {
  color: var(--band-link);
  font-weight: 600;
}

.hinweis a:focus-visible {
  outline-color: var(--band-link);
}

/* ---------- Kopf ---------- */

.kopf {
  border-bottom: 1px solid var(--linie);
  background: var(--bg);
}

.kopf__zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.6rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.logo svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.logo__ring {
  fill: none;
  stroke: var(--akzent);
  stroke-width: 1.5;
}

.logo__deckel {
  fill: var(--champagner);
}

.logo__flasche {
  fill: var(--akzent);
}

.logo__glanz {
  fill: none;
  stroke: var(--bg);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.logo__name {
  display: grid;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.05rem, 0.85rem + 1.2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.1;
}

.logo__ort {
  color: var(--text-leise);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.nav {
  order: 3;
  width: 100%;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--akzent);
  text-decoration: underline;
}

@media (min-width: 860px) {
  .nav {
    order: 0;
    width: auto;
  }

  .nav ul {
    gap: 2rem;
  }

  .nav a {
    font-size: 0.9375rem;
  }
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid var(--knopf);
  border-radius: 10px;
  background: var(--knopf);
  color: var(--knopf-text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.knopf:hover {
  border-color: var(--knopf-hover);
  background: var(--knopf-hover);
}

.knopf--klein {
  min-height: 44px;
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
}

.knopf--rand {
  background: transparent;
  color: var(--akzent);
}

.knopf--rand:hover {
  border-color: var(--akzent);
  background: var(--bg-alt);
}

/* ---------- Dachzeilen mit Nummer wie auf einer Farbkarte ---------- */

.dach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--akzent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dach__nr {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  height: 1.6rem;
  padding-inline: 0.4rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.dach + h1,
.dach + h2 {
  margin-top: 0.7rem;
}

.einleitung {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--text-leise);
}

.klein {
  margin-top: 0.9rem;
  color: var(--text-leise);
  font-size: 0.9375rem;
}

/* ---------- Kopfbild ---------- */

.held__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: 2.5rem 3.5rem;
}

.held h1 {
  font-size: clamp(2.6rem, 1.7rem + 4.4vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.held__zweit {
  display: block;
  color: var(--akzent);
}

.held__satz {
  max-width: 33rem;
  margin-top: 1.3rem;
  color: var(--text-leise);
  font-size: 1.125rem;
}

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.fakten {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  margin: 2.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--linie);
  list-style: none;
  font-size: 0.9375rem;
}

.fakten li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.fakten svg {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  fill: none;
  stroke: var(--akzent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Foto wie ein Farbmuster: weisse Karte mit Etikett */
.muster {
  position: relative;
  justify-self: center;
  width: min(100%, 26rem);
  margin: 0;
  padding: 0.75rem 0.75rem 0;
  border-radius: 18px;
  background: var(--karte);
  box-shadow: 0 1px 0 var(--linie), 0 24px 48px -28px rgb(42 32 29 / 0.45);
}

.muster__bild {
  overflow: hidden;
  aspect-ratio: 640 / 797;
  border-radius: 12px;
  background: var(--bg-alt);
}

.muster__bild img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.muster__etikett {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0.35rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.muster__titel {
  display: block;
  color: var(--text-leise);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 600px) {
  .muster::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1.5rem -1.25rem -1.25rem 1.5rem;
    border: 1px solid var(--champagner);
    border-radius: 18px;
  }

  .held {
    isolation: isolate;
  }
}

@media (min-width: 860px) {
  .held__raster {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 4.5rem;
    padding-block: 4rem 5.5rem;
  }

  .fakten {
    max-width: 33rem;
  }
}

/* ---------- Abschnitte ---------- */

.abschnitt {
  padding-block: 3.75rem;
}

.abschnitt--alt {
  background: var(--bg-alt);
}

@media (min-width: 860px) {
  .abschnitt {
    padding-block: 5.5rem;
  }
}

/* ---------- Behandlungen und Preise ---------- */

.karten {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.karten__seite {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-content: start;
}

@media (min-width: 900px) {
  .karten {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.karte {
  padding: 1.5rem 1.25rem 0.75rem;
  border-radius: 16px;
  background: var(--karte);
}

@media (min-width: 600px) {
  .karte {
    padding: 1.9rem 1.75rem 1rem;
  }
}

.karte h3 {
  padding-bottom: 0.7rem;
  border-bottom: 1.5px solid var(--akzent);
  font-size: 1.5rem;
}

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

.menue li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--linie);
}

.menue li:last-child {
  border-bottom: 0;
}

.menue--knapp li {
  padding-block: 0.75rem;
}

.menue__name {
  font-weight: 600;
}

.menue__preis {
  color: var(--akzent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menue__info {
  grid-column: 1 / -1;
  color: var(--text-leise);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.dauer {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--dauer-bg);
  color: var(--dauer-text);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.ab {
  color: var(--text-leise);
  font-size: 0.8125rem;
  font-weight: 400;
}

/* ---------- Farbkarte: Musternägel ---------- */

.farbkarte {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 860px) {
  .farbkarte {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem 4rem;
  }
}

.farbgruppe h3 {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--linie);
  font-size: 1.2rem;
}

/* Höchstens 4 Spalten; bei grosser Schrift weniger (Spalte mindestens 4rem), statt dass Namen überstehen */
.lacke {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(4rem, calc((100% - 2.25rem) / 4)), 1fr));
  gap: 1rem 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.lacke li {
  min-width: 0;
  overflow-wrap: anywhere;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: start;
  text-align: center;
}

.lack {
  position: relative;
  display: block;
  width: min(100%, 4.4rem);
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border: 1px solid var(--lack-rand);
  border-radius: 50% 50% 22% 22% / 40% 40% 14% 14%;
  background: var(--lack);
}

/* Glanzstreifen */
.lack::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 22%, var(--lack-glanz) 30%, transparent 40%);
}

.lack--klein {
  flex: none;
  width: 1.9rem;
}

.lack__name {
  margin-top: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.lack__nr {
  color: var(--text-leise);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.lack__marke {
  display: block;
  margin-top: 0.3rem;
  color: var(--akzent);
  font-size: 0.75rem;
  font-weight: 600;
}

.lack--monat .lack {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
}

.lack--porzellan { --lack: #F3E5DD; }
.lack--rose-nude { --lack: #D9ADA2; }
.lack--mandel { --lack: #C99A88; }
.lack--altrosa { --lack: #C08389; }
.lack--rot { --lack: #B71E2C; }
.lack--kirsche { --lack: #8A2338; }
.lack--bordeaux { --lack: #5A1523; }
.lack--beere { --lack: #7A2A58; }
.lack--terrakotta { --lack: #B0573F; }
.lack--salbei { --lack: #8FA08A; }
.lack--nachtblau { --lack: #1E2943; }
.lack--espresso { --lack: #3A2622; }

.lack--french {
  --lack: #F4D9D2;
  background: radial-gradient(ellipse 92% 72% at 50% 100%, #F2D3CB 98%, #FFFDFA 100%);
}

.lack--babyboomer {
  --lack: #F4D9D2;
  background: linear-gradient(to top, #EFCFC6 15%, #FFFCF9 85%);
}

.lack--linie {
  --lack: #E8CDC1;
  background:
    linear-gradient(118deg, transparent 54%, #C2A06B 54.5%, #C2A06B 57.5%, transparent 58%),
    #E8CDC1;
}

.lack--perlmutt {
  --lack: #EFE3E8;
  background: linear-gradient(140deg, #F6E9EC 10%, #E3DCEF 45%, #F4EADC 80%);
}

/* ---------- Über mich ---------- */

.atelier {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .atelier {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 4.5rem;
  }
}

.atelier__bild {
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--karte);
}

.atelier__bild svg {
  width: 100%;
  height: auto;
}

.z-linie,
.z-fenster,
.z-tuch,
.z-deckel,
.z-lampe,
.z-topf {
  stroke: var(--z-strich);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.z-linie { fill: none; }
.z-linie--dick { stroke-width: 4; }
.z-linie--fein { stroke-width: 1.5; stroke-dasharray: 4 6; }
.z-fenster { fill: var(--z-fenster); }
.z-tuch { fill: var(--z-tuch); }
.z-deckel { fill: var(--champagner); stroke-width: 1.5; }
.z-lack-1 { fill: var(--kirsche); }
.z-lack-2 { fill: #D9ADA2; }
.z-lack-3 { fill: #F3E5DD; stroke: var(--z-strich); stroke-width: 1.5; }
.z-lampe { fill: var(--karte); }
.z-licht { fill: var(--z-licht); opacity: 0.75; }
.z-topf { fill: var(--champagner); stroke-width: 2; }
.z-blatt { fill: var(--z-blatt); }

.atelier__satz {
  max-width: 36rem;
  margin-top: 1.2rem;
  color: var(--text-leise);
  font-size: 1.0625rem;
}

.atelier__titel {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.haken {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

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

.haken li::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0.1rem;
  width: 1rem;
  height: 0.55rem;
  border-bottom: 2px solid var(--akzent);
  border-left: 2px solid var(--akzent);
  transform: rotate(-45deg);
}

.unterschrift {
  margin-top: 1.75rem;
  color: var(--akzent);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transform: rotate(-3deg);
  transform-origin: left;
}

/* ---------- Fragen ---------- */

.fragen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 860px) {
  .fragen {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }
}

.fragen__liste {
  border-top: 1px solid var(--linie);
}

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

.fragen__liste summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.85rem 2.75rem 0.85rem 0;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

/* Plus, das zum Minus wird */
.fragen__liste summary::before,
.fragen__liste summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.6rem;
  width: 1rem;
  height: 2px;
  background: var(--akzent);
}

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

.fragen__liste details[open] summary::after {
  transform: none;
}

.fragen__liste summary:hover {
  color: var(--akzent);
}

.fragen__liste details p {
  max-width: 38rem;
  padding: 0 2.75rem 1.1rem 0;
  color: var(--text-leise);
}

/* ---------- Termin: Formular und Angaben ---------- */

.termin {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: 2.25rem;
}

@media (min-width: 900px) {
  .termin {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
    gap: 3.5rem;
  }
}

.formular,
.gesendet {
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  background: var(--karte);
}

@media (min-width: 600px) {
  .formular,
  .gesendet {
    padding: 2rem 1.9rem;
  }
}

.formular {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1rem;
}

.feld {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  flex: 1 1 100%;
  min-width: 0;
}

@media (min-width: 520px) {
  .feld--halb {
    flex: 1 1 calc(50% - 0.5rem);
  }
}

.feld label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.feld__frei {
  color: var(--text-leise);
  font-weight: 400;
}

.feld input,
.feld select,
.feld textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--feld-rand);
  border-radius: 10px;
  background: var(--feld-bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.feld textarea {
  resize: vertical;
}

.feld input:focus-visible,
.feld select:focus-visible,
.feld textarea:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}

.formular__fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  flex: 1 1 100%;
  margin-top: 0.4rem;
}

.formular__hinweis {
  color: var(--text-leise);
  font-size: 0.875rem;
}

/* Bestätigung: erscheint nach dem Absenden (Adresse endet auf #gesendet) */
.gesendet {
  display: none;
  border: 2px solid var(--gesendet-rand);
}

.gesendet:target {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  scroll-margin-top: 1.5rem;
}

.gesendet:target + .formular {
  display: none;
}

.gesendet__titel {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.gesendet__klein {
  color: var(--text-leise);
  font-size: 0.9375rem;
}

.gesendet .knopf {
  margin-top: 0.4rem;
}

.termin__info h3 {
  font-size: 1.4rem;
}

.termin__abstand {
  margin-top: 2.25rem;
}

.zeiten {
  width: 100%;
  margin-top: 0.8rem;
  border-collapse: collapse;
}

.zeiten th,
.zeiten td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  vertical-align: top;
}

.zeiten th {
  padding-right: 1rem;
  font-weight: 400;
}

.zeiten td {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* Bei grosser Schrift dürfen Zeiten und Nummer umbrechen, statt die Seite zu verbreitern */
@media (max-width: 30em) {
  .zeiten th,
  .zeiten td {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.termin__nummer a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--akzent);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.2rem);
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
}

.termin__nummer a:hover {
  text-decoration: underline;
}

.adresse {
  margin-top: 0.8rem;
  font-size: 1.0625rem;
  font-style: normal;
  font-weight: 600;
}

/* ---------- Fuss ---------- */

.fuss {
  padding-block: 2.5rem 3rem;
  background: var(--dunkel);
  color: var(--dunkel-leise);
  font-size: 0.9375rem;
}

.fuss p + p {
  margin-top: 0.5rem;
}

.fuss__name {
  color: var(--dunkel-text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

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

.fuss a:focus-visible {
  outline-color: var(--dunkel-fokus);
}

.fuss__klein {
  max-width: 46rem;
  font-size: 0.875rem;
}

.fuss .fuss__beispiel {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(248 238 234 / 0.14);
}

/* ---------- Schnellzugriff auf dem Handy (feste Leiste unten) ---------- */

.aktionen {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--aktion-linie);
  background: var(--aktion-bg);
  box-shadow: 0 -10px 24px -14px rgb(0 0 0 / 0.35);
}

.aktionen a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.5rem 0.6rem;
  border: 2px solid var(--aktion-rand);
  border-radius: 10px;
  color: var(--aktion-text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.aktionen .aktionen__haupt {
  border-color: var(--knopf);
  background: var(--knopf);
  color: var(--knopf-text);
}

.aktionen svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.aktionen a:focus-visible {
  outline: 3px solid var(--aktion-fokus);
  outline-offset: 2px;
}

/* Platz, damit die Leiste das Ende der Fusszeile nicht verdeckt */
@media (max-width: 759px) {
  .fuss {
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 760px) {
  .aktionen {
    display: none;
  }
}
