/* dokofon.de – Gestaltung der ganzen Seite. Farben, Schrift und Abstände stehen als Variablen auf :root. */

@font-face { font-family: Figtree; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-400-normal.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: Figtree; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/figtree-latin-500-normal.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: Figtree; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/figtree-latin-700-normal.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: Figtree; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/figtree-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/figtree-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Farben */
  --papier: #f6f1e7;
  --flaeche: #ece5d6;
  --linie: #dbd2bf;
  --tinte: #1d1b18;
  --leise: #5d574c;
  --kobalt: #1f49d8;
  --kobalt-tief: #1739ad;
  --kobalt-hell: #5a7cf0;
  --hauch: #dfe6fb;
  --auf-tinte: #f6f1e7;
  --auf-tinte-leise: #cdc5b4;
  --feld: #fffdf8;
  --feld-rand: #8f8571;
  --fehler: #b3261e;

  /* Schrift */
  --schrift: Figtree, "Segoe UI", system-ui, sans-serif;
  --text: 1.125rem;
  --h1: clamp(1.6rem, 0.55rem + 5.2vw, 3.625rem);
  --h2: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem);
  --h3: 1.375rem;

  /* Maße. Diese Werte lassen sich im Feinschliff verschieben. */
  --breite: 72.5rem;
  --rand: clamp(1rem, 4vw, 3rem);
  --abschnitt: clamp(4rem, 2rem + 7vw, 7.5rem);
  --einstieg-oben: clamp(3rem, 1.5rem + 5vw, 5.25rem);
  --einstieg-unten: clamp(3rem, 2rem + 3vw, 4.5rem);
  --kopf-hoehe: 4.5rem;
  --eng: 1; /* staucht den Einstieg auf niedrigen Bildschirmen, siehe unten */
  --leiste: 0rem; /* Höhe der Sprungmarken-Leiste unter der Kopfzeile, nur auf kleineren Bildschirmen */
  --radius: 0.375rem;
  --radius-flaeche: 0.75rem;
}

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

html { scroll-padding-top: calc(var(--kopf-hoehe) + var(--leiste) + 1rem); scrollbar-color: var(--feld-rand) var(--papier); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body { font-family: var(--schrift); font-size: var(--text); line-height: 1.6; color: var(--tinte); background: var(--papier); caret-color: var(--kobalt); }

::selection { background: var(--hauch); color: var(--tinte); }

h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: var(--h1); letter-spacing: -0.028em; line-height: 1.06; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.25; letter-spacing: -0.012em; }
p, li { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--kobalt); text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; }
a:hover { color: var(--kobalt-tief); }
:focus-visible { outline: 3px solid var(--kobalt); outline-offset: 3px; border-radius: 2px; }

.innen { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.abschnitt { padding-top: var(--abschnitt); padding-bottom: var(--abschnitt); }
.auf-flaeche { background: var(--flaeche); }
.lesebreite { max-width: 40em; }
.nw { white-space: nowrap; }

.sprung { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--tinte); color: var(--auf-tinte); padding: 0.6rem 1rem; border-radius: var(--radius); }
.sprung:focus, .sprung:hover { top: 0.75rem; color: var(--auf-tinte); }

/* Buttons */
.knopf { display: inline-block; font: inherit; font-weight: 700; line-height: 1.2; color: #fff; background: var(--kobalt); border: 0; border-radius: var(--radius); padding: 0.95rem 1.6rem; text-decoration: none; cursor: pointer; transition: background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1); }
.knopf:hover { background: var(--kobalt-tief); color: #fff; }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { background: var(--leise); cursor: progress; }
.knopf.klein { padding: 0.62rem 1.1rem; font-size: 0.97rem; white-space: nowrap; }
.knopf.gross { padding: 1.05rem 1.8rem; font-size: 1.2rem; }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 10; background: var(--papier); border-bottom: 1px solid var(--linie); }
.kopf.mit-leiste { margin-bottom: var(--leiste); }
.kopf .innen { height: var(--kopf-hoehe); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--tinte); text-decoration: none; font-weight: 700; font-size: 1.6rem; letter-spacing: -0.015em; line-height: 1; }
.logo:hover { color: var(--tinte); }
.logo svg { width: 2.4rem; height: 2.4rem; flex: none; }
.kopf nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.kopf nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2rem); font-size: 1rem; }
.kopf nav ul a { color: var(--tinte); text-decoration: none; padding-top: 0.4rem; padding-bottom: 0.4rem; border-bottom: 2px solid transparent; transition: border-color 0.18s; }
.kopf nav ul a:hover { border-bottom-color: var(--kobalt); }

@media (prefers-reduced-motion: no-preference) {
  .logo .balken rect { transform-box: fill-box; transform-origin: center; animation: ausschlag 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s 1 both; }
  .logo .balken rect:nth-child(2) { animation-delay: 0.32s; }
  .logo .balken rect:nth-child(3) { animation-delay: 0.39s; }
  .logo .balken rect:nth-child(4) { animation-delay: 0.46s; }
  .logo .balken rect:nth-child(5) { animation-delay: 0.53s; }
}
@keyframes ausschlag { 0% { transform: scaleY(1); } 30% { transform: scaleY(0.45); } 60% { transform: scaleY(1.28); } 100% { transform: scaleY(1); } }

/* Einstieg */
.einstieg { padding-top: calc(var(--einstieg-oben) * var(--eng)); padding-bottom: calc(var(--einstieg-unten) * var(--eng)); text-align: center; }
.einstieg h1 { max-width: 17em; margin-inline: auto; }
.einstieg .vorspann { max-width: 40em; margin: 1.4rem auto 0; font-size: 1.1875rem; }
.handeln { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; justify-content: center; align-items: center; }
.handeln .zweit { font-weight: 700; }
.einstieg .zusage { margin-top: 0.85rem; font-size: 1rem; color: var(--leise); }
.einstieg .zielgruppe { margin-top: 0.35rem; font-size: 1rem; color: var(--leise); }

/* So funktioniert's: drei Schritte als Strecke */
.schritte-kopf { text-align: center; }
.schritte { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: schritt; }
.schritte li { position: relative; background: var(--flaeche); border-radius: var(--radius-flaeche); padding: 1.6rem 1.75rem 1.9rem; counter-increment: schritt; }
.schritte li::before { content: counter(schritt); display: block; font-size: 2.75rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--kobalt); font-variant-numeric: tabular-nums; }
.schritte li::after { content: ""; position: absolute; top: calc(1.6rem + 1.375rem); left: 4.1rem; right: -1.5rem; height: 2px; background: var(--linie); }
.schritte li:last-child::after { right: 1.75rem; }
.schritte h3 { margin-top: 1.1rem; }
.schritte p { margin-top: 0.5rem; color: var(--leise); }
#so-funktionierts { padding-bottom: var(--abschnitt); }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 62.0625rem) {
    .schritte li { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
  }
}

/* Problem */
.problem .innen { display: grid; grid-template-columns: 5fr 6fr; gap: 1.25rem clamp(2rem, 5vw, 5rem); align-items: center; }
.problem .fragen { grid-row: 1 / 3; font-size: clamp(1.5rem, 1rem + 2vw, 2.375rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.022em; }
.problem .fragen span { display: block; }
.problem .fragen span + span { margin-top: 0.55em; }
.problem h2 { align-self: end; }
.problem .text { align-self: start; }
.problem .text p + p { margin-top: 1rem; }

/* Zweispaltige Abschnitte: Überschrift links, Inhalt rechts */
.zwei { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.zwei > .links { position: sticky; top: calc(var(--kopf-hoehe) + 2rem); }
.zwei > .links p { margin-top: 1rem; }

/* Einsatz */
.einsatz li { display: grid; grid-template-columns: 15rem 1fr; gap: 0.25rem 2rem; padding-top: 1.35rem; padding-bottom: 1.35rem; border-top: 1px solid var(--linie); }
.einsatz li:last-child { border-bottom: 1px solid var(--linie); }
.einsatz .hinweis { margin-top: 1.25rem; font-size: 1rem; color: var(--leise); }

/* Vorteile: der eine dunkle Abschnitt */
.dunkel { background: var(--tinte); color: var(--auf-tinte); }
.dunkel ::selection { background: var(--kobalt); color: #fff; }
.dunkel :focus-visible { outline-color: var(--kobalt-hell); }
.dunkel a { color: var(--kobalt-hell); }
.dunkel a:hover { color: var(--auf-tinte); }
.vorteile ul { margin-top: 2.25rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 5rem); }
.vorteile li { display: flex; align-items: center; gap: 1rem; padding-top: 1.15rem; padding-bottom: 1.15rem; border-top: 1px solid #3a3731; font-size: 1.375rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.012em; }
.vorteile li:last-child { border-bottom: 1px solid #3a3731; }
.vorteile li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.vorteile svg { flex: none; width: 1.5rem; height: 1.5rem; color: var(--kobalt-hell); }

/* Kann und kann nicht */
.grenzen .spalten { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grenzen .feld { border-radius: var(--radius-flaeche); padding: 2rem 2rem 2.2rem; background: var(--flaeche); }
.grenzen .feld.nicht { background: var(--hauch); }
.grenzen .einleitung { margin-top: 1rem; }
.grenzen ul { margin-top: 1.1rem; }
.grenzen li { display: flex; gap: 0.85rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.grenzen li svg { flex: none; width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; }

/* Für wen */
.fuer-wen ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.fuer-wen li { padding-top: 1.05rem; padding-bottom: 1.05rem; border-top: 1px solid #cfc5ae; font-size: 1.3125rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.012em; }
.fuer-wen li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fuer-wen .kurz { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #cfc5ae; font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.012em; }

/* Ablauf: Zeitleiste */
.ablauf ol { counter-reset: schritt; }
.ablauf li { position: relative; counter-increment: schritt; padding: 0 0 2.4rem 4.25rem; }
.ablauf li:last-child { padding-bottom: 0; }
.ablauf li::before { content: counter(schritt); position: absolute; left: 0; top: -0.2rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--kobalt); color: #fff; font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; display: grid; place-items: center; }
.ablauf li::after { content: ""; position: absolute; left: calc(1.3rem - 1px); top: 2.6rem; bottom: 0.2rem; width: 2px; background: var(--linie); }
.ablauf li:last-child::after { display: none; }
.ablauf li p { margin-top: 0.4rem; color: var(--leise); max-width: 34em; }

/* Fragen. Die Linie trennt sie vom Ablauf, beide liegen auf Papier. */
#fragen { border-top: 1px solid var(--linie); }
.fragen-liste details { border-top: 1px solid var(--linie); }
.fragen-liste details:last-child { border-bottom: 1px solid var(--linie); }
.fragen-liste summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.012em; }
.fragen-liste summary::-webkit-details-marker { display: none; }
.fragen-liste summary::after { content: ""; flex: none; width: 0.7rem; height: 0.7rem; margin-right: 0.3rem; border-right: 2px solid var(--kobalt); border-bottom: 2px solid var(--kobalt); transform: translateY(-0.2rem) rotate(45deg); transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.fragen-liste details[open] summary::after { transform: translateY(0.15rem) rotate(-135deg); }
.fragen-liste summary:hover { color: var(--kobalt); }
.fragen-liste details p { padding-bottom: 1.4rem; max-width: 38em; }

/* Kontakt und Formular */
.kontakt .links p { margin-top: 1rem; }
.formular { background: var(--papier); border-radius: var(--radius-flaeche); padding: clamp(1.25rem, 3vw, 2.25rem); }
.formular .reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.field label small { font-weight: 400; font-size: inherit; color: var(--leise); }
.field input, .field textarea { display: block; width: 100%; font: inherit; color: var(--tinte); background: var(--feld); border: 1px solid var(--feld-rand); border-radius: var(--radius); padding: 0.7rem 0.85rem; transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--tinte); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--kobalt); box-shadow: 0 0 0 3px var(--hauch), 0 0 0 4px var(--kobalt); }
.field .hilfe { margin-top: 0.35rem; font-size: 0.95rem; line-height: 1.4; color: var(--leise); }
.field-error { display: none; margin-top: 0.35rem; font-size: 0.95rem; font-weight: 500; color: var(--fehler); }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error textarea { border-color: var(--fehler); }
.hp { position: absolute; left: -9999px; }
.formular .datenschutz { font-size: 0.95rem; color: var(--leise); margin-bottom: 1.1rem; }
.form-status { margin-top: 1rem; font-size: 1rem; }
.form-status.is-error { color: var(--fehler); font-weight: 500; }
#form-wrap.is-sent form { display: none; }
#form-success h3 { font-size: 1.5rem; }
#form-success p { margin-top: 0.6rem; }
#form-success:focus { outline: none; }
.kontakt .weg { margin-top: 1.25rem; font-size: 1rem; }

/* Fußzeile */
.fuss { border-top: 1px solid var(--linie); padding-top: 2rem; padding-bottom: 2rem; font-size: 1rem; color: var(--leise); }
.fuss .innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.fuss a { color: var(--tinte); }
.fuss ul { display: flex; gap: 1.5rem; }

/* Rechtstexte */
.rechtstext { padding-top: var(--einstieg-oben); padding-bottom: var(--abschnitt); }
.rechtstext h1 { font-size: var(--h2); }
.rechtstext h2 { font-size: var(--h3); line-height: 1.25; letter-spacing: -0.012em; margin-top: 2.25rem; }
.rechtstext p, .rechtstext ul { margin-top: 0.75rem; max-width: 40em; }
.rechtstext ul { padding-left: 1.2em; list-style: disc; }
.rechtstext li + li { margin-top: 0.35rem; }

/* Kleinere Bildschirme */
@media (max-width: 62rem) {
  :root { --leiste: 2.75rem; }
  .kopf.mit-leiste nav ul { position: absolute; left: 0; right: 0; top: calc(100% + 1px); height: var(--leiste); align-items: center; gap: 1.75rem; padding-left: var(--rand); padding-right: var(--rand); background: var(--papier); border-bottom: 1px solid var(--linie); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .kopf.mit-leiste nav ul::-webkit-scrollbar { display: none; }
  .kopf.mit-leiste nav li { flex: none; }
  .zwei, .problem .innen { grid-template-columns: 1fr; gap: 1.75rem; }
  .zwei > .links { position: static; }
  .problem .fragen { grid-row: auto; }
  .problem h2 { order: -1; }
  /* Schritte untereinander, sonst werden die drei Spalten zu schmal zum Lesen */
  .schritte { grid-template-columns: 1fr; gap: 1rem; }
  .schritte li::after { display: none; }
  .schritte li { display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; padding: 1.3rem 1.25rem 1.4rem; }
  .schritte li::before { grid-row: 1 / 3; font-size: 2.25rem; }
  .schritte h3 { margin-top: 0.15rem; }
}
@media (max-width: 47rem) {
  :root { --text: 1.0625rem; --kopf-hoehe: 4rem; }
  .einstieg .vorspann { font-size: 1.0625rem; }
  .einstieg h1 .zs { white-space: nowrap; } /* drei Zeilen ohne einzelnes Wort am Ende */
  .einsatz li { grid-template-columns: 1fr; }
  .vorteile ul, .grenzen .spalten, .fuer-wen ul, .formular .reihe { grid-template-columns: 1fr; }
  .grenzen .feld { padding: 1.4rem 1.25rem 1.6rem; }
  .vorteile li { font-size: 1.1875rem; }
  .fuer-wen li, .fuer-wen .kurz { font-size: 1.1875rem; }
  .ablauf li { padding-left: 3.5rem; }
  .knopf.gross { font-size: 1.1rem; padding: 1rem 1.4rem; }
  .kopf .innen { gap: 0.75rem; }
  .logo { font-size: 1.3rem; gap: 0.5rem; }
  .logo svg { width: 1.9rem; height: 1.9rem; }
  .knopf.klein { font-size: 0.85rem; padding: 0.55rem 0.7rem; }
  .kopf.mit-leiste nav ul { gap: 1.15rem; font-size: 0.9375rem; }
}
@media (min-width: 62.0625rem) and (max-height: 52rem) {
  :root { --eng: 0.5; }
  .handeln { margin-top: 1.5rem; }
  .schritte { margin-top: 1.25rem; }
}
@media (max-width: 20.5rem) {
  .einstieg h1 .zs { white-space: normal; }
  .logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
