/* Erzeugt aus autopoiese/vorlagen/tokens.json mit vorlagen/werkzeug/tokens.mjs. Nicht von Hand ändern. */
:root {
  color-scheme: light only;
  --grund: #FBFAF7;
  --flaeche: #EFE8DA;
  --text: #23271F;
  --zweittext: #5F625A;
  --marke: #3F5B3A;
  --marke-tief: #2F472B;
  --akzent: #A4552A;
  --feldrahmen: #868073;
  --auf-marke: #FBFAF7;
  --akzent-auf-marke: #E3B48F;
  --erfolg: #006C70;
  --erfolg-flaeche: #E0F5F6;
  --hinweis: #3B5993;
  --hinweis-flaeche: #E8F1FF;
  --warnung: #816512;
  --warnung-flaeche: #F6F0E0;
  --fehler: #A62B4F;
  --fehler-flaeche: #FEEAED;
  --schrift-titel: Literata, Georgia, serif;
  --schrift-text: Figtree, Helvetica, Arial, sans-serif;
  --stufe-anzeige: clamp(2.5rem, 1.7749rem + 3.0939vw, 4.25rem);
  --zeile-anzeige: 1.05;
  --sperrung-anzeige: -0.02em;
  --stufe-titel: clamp(1.75rem, 1.4392rem + 1.326vw, 2.5rem);
  --zeile-titel: 1.15;
  --sperrung-titel: -0.015em;
  --stufe-untertitel: 1.375rem;
  --zeile-untertitel: 1.3;
  --stufe-einleitung: clamp(1.1875rem, 1.1098rem + 0.3315vw, 1.375rem);
  --zeile-einleitung: 1.5;
  --stufe-text: 1.0625rem;
  --zeile-text: 1.65;
  --stufe-klein: 0.9375rem;
  --zeile-klein: 1.5;
  --abstand-1: 0.25rem;
  --abstand-2: 0.5rem;
  --abstand-3: 0.75rem;
  --abstand-4: 1rem;
  --abstand-5: 1.5rem;
  --abstand-6: 2rem;
  --abstand-7: 3rem;
  --abstand-8: 4rem;
  --abstand-9: 6rem;
  --abstand-10: 8rem;
  --abstand-abschnitt: clamp(4rem, 2.7569rem + 5.3039vw, 7rem);
  --abstand-rand: clamp(1.25rem, 0.9392rem + 1.326vw, 2rem);
  --radius-knopf: 999px;
  --radius-flaeche: 1.5rem;
  --radius-meldung: 0.875rem;
  --radius-feld: 0.625rem;
  --breite-inhalt: 72rem;
  --breite-text: 40rem;
  --fokus-breite: 0.1875rem;
  --fokus-abstand: 0.1875rem;
  --knopf-hoehe: 3rem;
}

/* Website Autopoiese. Liest nur Rollen aus den Bausteinen (tokens.css steht davor), keine Farbwerte.
   Gestaltung „Eine Leiste“ (Owner 21.11.2026: „bau gerne mal auf, auf dieses eine Leiste“, Fläche „Autopoiese Website
   Richtungen“): ein Raster für alle Teile, links eine durchgehende Leiste aus Sand mit den Titeln, rechts der Inhalt. Der Punkt
   aus Lehm, der im Zeichen den Kreis schließt, schließt auch jeden großen Titel (Owner: „ich will die Identität da auch drinnen
   haben“). Leitbild MARKE §0: freundlich, erdig, luftig, simpel. Keine dünnen Linien, keine Schatten, kein Glas, keine Kästen
   um Inhalte. Nur hell (Owner 20.11.2026). */

@font-face {
  font-family: "Literata";
  src: url("/schriften/literata-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/schriften/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--abstand-5); }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: var(--stufe-text);
  line-height: var(--zeile-text);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0; font-family: var(--schrift-titel); font-weight: 600; color: var(--marke); text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
h1 { font-size: var(--stufe-anzeige); line-height: var(--zeile-anzeige); letter-spacing: var(--sperrung-anzeige); }
h2 { font-size: var(--stufe-titel); line-height: var(--zeile-titel); letter-spacing: var(--sperrung-titel); }
h3 { font-size: var(--stufe-untertitel); line-height: var(--zeile-untertitel); }
p { margin: 0; text-wrap: pretty; }
p, li, dd { hyphens: auto; hyphenate-limit-chars: 12 5 5; }

a { color: var(--marke); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { color: var(--marke-tief); }
:focus-visible { outline: var(--fokus-breite) solid var(--akzent); outline-offset: var(--fokus-abstand); border-radius: 4px; }

.nur-vorlesen { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprung {
  position: absolute; left: var(--abstand-rand); top: var(--abstand-3); z-index: 10;
  padding: var(--abstand-3) var(--abstand-5); border-radius: var(--radius-knopf);
  background: var(--marke); color: var(--auf-marke); font-weight: 600; text-decoration: none; transform: translateY(-300%);
}
.sprung:focus-visible { transform: none; color: var(--auf-marke); }

.rahmen { width: 100%; max-width: var(--breite-inhalt); margin-inline: auto; padding-inline: var(--abstand-rand); }
.abschnitt-oben { padding-top: var(--abstand-6); }
main { flex: 1; padding-bottom: var(--abstand-teil); }

.einleitung { font-size: var(--stufe-einleitung); line-height: var(--zeile-einleitung); max-width: 36rem; }
.klein { font-size: var(--stufe-klein); line-height: var(--zeile-klein); color: var(--zweittext); }
.platzhalter { color: var(--zweittext); font-style: italic; }

/* --- Wortmarke (wie auf der Fläche, Fassung 1) -------------------------------------------------------------------- */
.wortmarke {
  display: inline-flex; align-items: baseline;
  font-family: var(--schrift-titel); font-weight: 600; letter-spacing: -0.02em; line-height: 1;
  color: var(--marke); font-size: clamp(1.5625rem, 1.4rem + 0.6vw, 1.875rem);
}
.wortmarke-o { width: 0.52em; height: 0.52em; margin: 0 0.02em -0.012em 0.03em; flex: none; }
.o-ring { fill: var(--marke); }
.o-punkt { fill: var(--akzent); }
.marke { display: inline-flex; text-decoration: none; padding-block: var(--abstand-2); border-radius: 6px; }

/* --- Knöpfe ------------------------------------------------------------------------------------------------------ */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; max-width: 100%;
  min-height: var(--knopf-hoehe); padding: var(--abstand-3) var(--abstand-6);
  border: 2px solid transparent; border-radius: var(--radius-knopf); background: var(--marke); color: var(--auf-marke);
  font: 600 var(--stufe-text)/1.2 var(--schrift-text); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.15s ease;
}
.knopf:hover { background: var(--marke-tief); color: var(--auf-marke); }
.knopf:disabled { cursor: not-allowed; opacity: 0.55; background: var(--marke); }
.knopf-klein { min-height: 2.75rem; padding: var(--abstand-2) var(--abstand-5); font-size: 0.9375rem; }
.zweitweg {
  display: inline-flex; align-items: center; min-height: var(--knopf-hoehe); padding-inline: var(--abstand-1);
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.nur-breit { display: none; }
@media (min-width: 40rem) { .nur-breit { display: inline; } .nur-schmal { display: none; } }

/* --- Kopf: Wortmarke, Sprungziele, ein Knopf. Am Handy nur Wortmarke und Knopf, die Seite ist kurz. ---------------- */
.kopf-innen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--abstand-3) var(--abstand-5); padding-block: var(--abstand-4); }
.kopf .marke { margin-right: auto; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--abstand-5); }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.nav a:hover { color: var(--marke); text-decoration: underline; text-decoration-color: var(--akzent); }
@media (min-width: 60rem) { .nav { display: block; } }

/* --- Ein Raster für alle Teile, eine Leiste aus Sand -------------------------------------------------------------- */
/* Links ein Drittel für Titel und was dazugehört, rechts zwei Drittel Inhalt. Dieselbe Teilung auf Start, Impressum,
   Datenschutz und im Fuß, so dass alles an denselben Kanten steht. Breit liegt das linke Drittel bis zum Seitenrand auf Sand:
   die Leiste läuft von oben bis unten durch und verbindet die Teile. Am Handy steht jeder Titel auf einem eigenen Band in Sand. */
:root { --abstand-teil: clamp(2.75rem, 1.75rem + 3vw, 4.25rem); }
.gitter, .zeile { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--abstand-5) var(--abstand-8); }
@media (min-width: 56rem) {
  .gitter, .zeile { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  body {
    /* rechte Kante der Leiste: Mitte zwischen den Spalten, gerechnet aus Inhaltsbreite, Rand und Abstand */
    --leiste: calc(max(0px, 50% - var(--breite-inhalt) / 2) + var(--abstand-rand)
      + (min(100%, var(--breite-inhalt)) - 2 * var(--abstand-rand) - var(--abstand-8)) / 3 + var(--abstand-8) / 2);
    background: linear-gradient(to right, var(--flaeche) 0 var(--leiste), var(--grund) var(--leiste));
  }
}

.teil { padding-block: var(--abstand-teil); }
.teil:last-child { padding-bottom: 0; }
.teil-kopf { display: flex; flex-direction: column; gap: var(--abstand-4); min-width: 0; }
.teil-kopf h2 { max-width: 16ch; margin-bottom: var(--abstand-2); }
.teil-kopf p { max-width: 30rem; }
.teil-inhalt { min-width: 0; }
/* Breit bleibt der Titel beim Lesen neben seinem Teil stehen, beim Formular auch Hinweis und Pflichtangaben */
@media (min-width: 56rem) { .teil-kopf { position: sticky; top: var(--abstand-6); align-self: start; } }
@media not all and (min-width: 56rem) {
  .teil:not(.teil-held) { padding-top: 0; }
  .teil:not(.teil-held) .teil-kopf {
    margin-inline: calc(-1 * var(--abstand-rand)); padding: var(--abstand-7) var(--abstand-rand) var(--abstand-6);
    background: var(--flaeche); margin-bottom: var(--abstand-3);
  }
}

/* Der Schlusspunkt großer Titel in Lehm, wie der Punkt im Zeichen */
.punkt { color: var(--akzent); }

/* --- Start ------------------------------------------------------------------------------------------------------- */
/* Titel über beide Spalten, darunter links die drei Worte, rechts Text und Knopf */
.teil-held { padding-top: clamp(2rem, 1rem + 4vw, 4.5rem); }
.held { row-gap: var(--abstand-6); }
.held h1 { grid-column: 1 / -1; }
.held-text { display: flex; flex-direction: column; gap: var(--abstand-5); }
.held .einleitung { max-width: 38rem; hyphens: manual; }
.werte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--abstand-2); font-weight: 500; color: var(--zweittext); }
.handlung { display: flex; flex-wrap: wrap; align-items: center; gap: var(--abstand-3) var(--abstand-6); }
@media (min-width: 56rem) {
  .held-text { grid-column: 2; grid-row: 2; }
  .held .werte { grid-column: 1; grid-row: 2; padding-top: 0.35rem; }
}

/* Schritte: Ziffern in Lehm, zwei mal zwei */
.schritte { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; gap: var(--abstand-7); }
.schritte li { counter-increment: schritt; display: flex; flex-direction: column; gap: var(--abstand-2); }
.schritte li::before {
  content: counter(schritt); font-family: var(--schrift-titel); font-weight: 600; font-size: 2.5rem; line-height: 1;
  color: var(--akzent); margin-bottom: var(--abstand-2);
}
@media (min-width: 40rem) { .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Leistungen: je Zeile Titel und Satz */
.leistungen { display: grid; gap: var(--abstand-6); }
.leistung { display: grid; gap: var(--abstand-2); }
@media (min-width: 40rem) { .leistung { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: var(--abstand-6); align-items: baseline; } }

/* Ein Satz, der trägt: Für Praxen und der Name unter Über mich */
.aussage {
  font-family: var(--schrift-titel); font-weight: 400; font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem); line-height: 1.55;
  color: var(--text); hyphens: manual;
}

/* Über mich: Foto und Text nebeneinander, oben bündig, ohne Lücke daneben */
.ueber { display: grid; gap: var(--abstand-6); align-items: start; }
.portraet { display: block; width: 100%; max-width: 22rem; height: auto; border-radius: var(--radius-flaeche); background: var(--text); }
.ueber .fliess { gap: var(--abstand-5); }
@media (min-width: 40rem) { .ueber { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); } }

/* Impressum, Datenschutz: dieselbe Teilung, Titel in der Leiste */
.rahmen.zeile { padding-top: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.zeile h2 { font-size: var(--stufe-untertitel); line-height: var(--zeile-untertitel); letter-spacing: 0; }
.fliess { display: flex; flex-direction: column; gap: var(--abstand-4); max-width: var(--breite-text); }
@media (min-width: 56rem) { .zeile { align-items: baseline; } }

/* Kopf der Unterseiten wie der Held: der große Titel darf über die Kante der Leiste gehen, Fließtext und Knopf stehen rechts
   (Owner 21.11.2026: „formatfehler“, der Satz unter „Datenschutz“ lief über die Kante) */
.seitenkopf { padding-top: clamp(2rem, 1.25rem + 4vw, 5rem); row-gap: var(--abstand-4); }
.seitenkopf h1 { grid-column: 1 / -1; font-size: clamp(2.25rem, 1.65rem + 2.6vw, 3.5rem); }
.abschnitt-oben > .knopf { justify-self: start; }
@media (min-width: 56rem) { .seitenkopf .einleitung, .abschnitt-oben > * { grid-column: 2; } }

/* --- Formular: drei Gruppen, Kästchen in Spalten, Felder auf gleicher Höhe --------------------------------------- */
/* Owner 21.11.2026: „so viele Knöpfe und so viele verschobene Felder … muss mal Struktur bekommen“. Jede Gruppe hat einen
   kleinen Titel, zwischen den Gruppen mehr Luft als in ihnen. Hinweise stehen unter dem Feld, damit Felder nebeneinander auf
   einer Linie beginnen. Auswahl als echte Kästchen in Moos, in Spalten statt als Reihe runder Knöpfe. */
.formular { display: flex; flex-direction: column; gap: var(--abstand-8); }
.gruppe { display: flex; flex-direction: column; gap: var(--abstand-6); }
.gruppe-titel { font-size: var(--stufe-untertitel); line-height: var(--zeile-untertitel); }
.meldung { display: flex; gap: var(--abstand-3); align-items: flex-start; padding: var(--abstand-4) var(--abstand-5); border-radius: var(--radius-meldung); }
.meldung-hinweis { background: var(--hinweis-flaeche); color: var(--text); }
.meldung-zeichen { flex: none; width: 1.375rem; height: 1.375rem; margin-top: 0.1rem; fill: none; stroke: var(--hinweis); stroke-width: 2.2; stroke-linecap: round; }
.feld { display: flex; flex-direction: column; gap: var(--abstand-2); min-width: 0; }
.feld label, .feldgruppe legend { font-weight: 600; font-size: 1.0625rem; color: var(--text); }
.hilfe { font-size: var(--stufe-klein); line-height: var(--zeile-klein); color: var(--zweittext); }
.feld input, .feld textarea {
  width: 100%; min-height: var(--knopf-hoehe); padding: var(--abstand-3) var(--abstand-4);
  border: 2px solid var(--feldrahmen); border-radius: var(--radius-feld); background: var(--grund); color: var(--text);
  font: 400 1rem/1.5 var(--schrift-text);
}
.feld textarea { resize: vertical; min-height: 7.5rem; }
.feld input[type="file"] { padding: var(--abstand-1) var(--abstand-2); font-size: var(--stufe-klein); display: flex; align-items: center; }
.feld input[type="file"]::file-selector-button {
  margin-right: var(--abstand-3); min-height: 2.25rem; padding: 0 var(--abstand-4); border: 0; border-radius: var(--radius-knopf);
  background: var(--flaeche); color: var(--text); font: 600 0.9375rem/1 var(--schrift-text); cursor: pointer;
}
.feld input:focus-visible, .feld textarea:focus-visible { outline-offset: 2px; }
.feld input:user-invalid, .feld textarea:user-invalid { border-color: var(--fehler); }
.feld-paar { display: grid; gap: var(--abstand-6); align-items: start; }
@media (min-width: 44rem) { .feld-paar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.feldgruppe { margin: 0; padding: 0; border: 0; min-width: 0; }
.feldgruppe legend { padding: 0; margin-bottom: var(--abstand-3); }
/* Kästchen in denselben zwei Spalten wie die Felder darunter; ist es zu schmal, etwa am Handy oder bei großer Schrift,
   untereinander */
.wahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--abstand-1) var(--abstand-6); }
.wahl { display: flex; align-items: center; gap: var(--abstand-3); min-height: 2.75rem; cursor: pointer; color: var(--text); }
.wahl input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--marke); cursor: pointer; }
.wahl span { min-width: 0; }
.wahl:hover span { color: var(--marke); }

/* Honigtopf gegen Spam: für Menschen unsichtbar, für Programme ein Feld, das leer bleiben muss */
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fehltext { display: none; align-items: center; gap: var(--abstand-2); font-size: var(--stufe-klein); font-weight: 500; color: var(--fehler); }
.fehl-zeichen { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: var(--fehler); stroke-width: 2.2; stroke-linecap: round; }
.feld:has(:user-invalid) .fehltext { display: flex; }
/* Knopf und ein kurzer Satz zum Datenschutz in einer Zeile, am Handy untereinander */
.formular-ende { display: flex; flex-wrap: wrap; align-items: center; gap: var(--abstand-4) var(--abstand-6); }
.formular-ende .klein { flex: 1 1 16rem; }
@media (forced-colors: active) {
  /* Wortmarke: der Ring des o in Textfarbe, sonst liest man „aut poiese“ (Nr. 9) */
  .o-ring { fill: currentColor; }
}

/* --- Fuß in Sand ----------------------------------------------------------------------------------------------------- */
.fuss { background: var(--flaeche); }
.fuss-innen { display: grid; gap: var(--abstand-6); padding-block: var(--abstand-8) var(--abstand-7); }
.fuss-marke { display: flex; flex-direction: column; gap: var(--abstand-2); }
.fuss-marke .wortmarke { font-size: 1.5rem; }
.fuss-marke .marke { align-self: flex-start; }
/* Spalten nach Platz statt fest 2 und 3: bei 200 % Systemschrift passt „Datenschutz“ sonst nicht (Prüfer 21.11.2026, Nr. 1) */
.fuss-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12ch), 1fr)); column-gap: var(--abstand-5); }
.fuss-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); text-decoration: none; }
.fuss-nav a:hover { color: var(--marke); text-decoration: underline; }
.fuss-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--akzent); }
.fuss-entwurf { grid-column: 1 / -1; }
@media (min-width: 56rem) { .fuss-innen { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--abstand-8); } }

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