/* Terminbuchung – gemeinsame Grundlage für Buchungsseite und Verwaltung.
   Mobil zuerst. Schriften selbst gehostet (SIL OFL, siehe fonts/OFL-Poppins.txt).
   Markenfarben kommen aus /stil/marke-<slug>.css und überschreiben die :root-Werte. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-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: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-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+0304, U+0308, U+0329, 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: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --marke: #0f69ad;
  --akzent: #c8394a;
  --dunkel: #10283a;
  --text: #1f2a33;
  --leise: #56626d;      /* 6,3:1 auf Weiß */
  --linie: #cfd9e2;
  --flaeche: #f3f6f9;
  --grund: #ffffff;
  --ok: #17663f;
  --warn: #8a4b00;
  --fehler: #b42318;
  --radius: 10px;
  --f: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-titel: var(--f);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--flaeche); overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
a { color: var(--marke); text-underline-offset: .15em; }
a:hover { color: var(--dunkel); }
:focus-visible { outline: 3px solid var(--dunkel); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-titel); color: var(--dunkel); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--flaeche); padding: .05em .3em; border-radius: 4px; }
.umbruch { word-break: break-all; }

.springen { position: absolute; left: -9999px; top: 0; background: var(--dunkel); color: #fff; padding: .6rem 1rem; z-index: 10; }
.springen:focus { left: 1rem; top: 1rem; }
.nur-vorleser { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopf & Fuß (öffentlich) ---------- */
.kopf { background: var(--grund); border-bottom: 4px solid var(--marke); }
.kopf-innen { max-width: 44rem; margin: 0 auto; padding: .85rem 1rem; }
.wortmarke { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--dunkel); }
.wortmarke .zeichen { width: 2.1rem; height: 2.1rem; }
.wortmarke .logo-voll { height: 2.4rem; width: auto; }
.wortmarke span { display: flex; flex-direction: column; line-height: 1.1; }
.wortmarke b { font-family: var(--f-titel); font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.wortmarke small { font-size: .78rem; color: var(--leise); }
.haupt { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.haupt:focus { outline: none; }
.fuss { border-top: 1px solid var(--linie); background: var(--grund); }
.fuss-innen { max-width: 44rem; margin: 0 auto; padding: 1.2rem 1rem .4rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .92rem; }
.fuss-innen a { color: var(--leise); }
.fuss-zeile { max-width: 44rem; margin: 0 auto; padding: 0 1rem 1.2rem; font-size: .82rem; color: var(--leise); }

.einleitung { font-size: 1.05rem; }
.zurueck { margin-bottom: .6rem; font-size: .95rem; }
.hinweis { background: var(--grund); border-left: 4px solid var(--akzent); padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.leise { color: var(--leise); }

/* ---------- Karten (Übersicht) ---------- */
.markenblock { margin: 2rem 0; }
.markenblock h2 { display: flex; align-items: center; gap: .6rem; }
.markenblock h2 .zeichen { width: 1.8rem; height: 1.8rem; }
.markenblock h2 .logo-klein { height: 2rem; width: auto; }
.karten { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.karte { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem; background: var(--grund); border: 1px solid var(--linie); border-left: 5px solid var(--marke); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.karte:hover { border-color: var(--marke); box-shadow: 0 2px 10px rgba(16, 40, 58, .08); color: var(--text); }
.karte strong { font-size: 1.1rem; color: var(--dunkel); }
.karte .eckdaten { font-size: .9rem; color: var(--leise); }
.karte .text { font-size: .95rem; }
.marke-stackwerk .karte, .markenblock .karte { border-left-color: var(--marke); }

/* ---------- Terminart ---------- */
.eckdaten-gross { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.eckdaten-gross span { background: var(--grund); border: 1px solid var(--linie); border-radius: 999px; padding: .15rem .75rem; font-size: .92rem; }
.eckdaten-gross .betont { border-color: var(--akzent); color: var(--dunkel); font-weight: 600; }
.schritt { background: var(--grund); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1rem 1.2rem; margin: 1.2rem 0; }
.schritt h2 { display: flex; align-items: center; gap: .55rem; }
.nr { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--marke); color: #fff; font-size: .95rem; font-family: var(--f); font-weight: 600; flex: none; }

.monat-kopf { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.monat-kopf h3 { margin: 0; font-size: 1.1rem; }
.monat-nav { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 2px solid var(--marke); border-radius: 50%; font-size: 1.5rem; line-height: 1; text-decoration: none; color: var(--marke); }
.monat-nav:hover { background: var(--marke); color: #fff; }
.monat-nav.aus { border-color: var(--linie); color: #8c969f; }
.kalender { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.kalender th { font-size: .8rem; font-weight: 600; color: var(--leise); padding: .2rem 0; }
.kalender abbr { text-decoration: none; }
.kalender td { padding: 0; text-align: center; }
.tag { display: grid; place-items: center; height: 2.75rem; border-radius: 8px; color: #6b7680; font-size: .95rem; }
a.tag { text-decoration: none; }
.tag.frei { background: color-mix(in srgb, var(--marke) 11%, white); color: var(--dunkel); font-weight: 700; border: 2px solid transparent; }
.tag.frei:hover { border-color: var(--marke); }
.tag.heute { box-shadow: inset 0 -3px 0 var(--akzent); }
.tag.gewaehlt, .tag.gewaehlt:hover { background: var(--marke); color: #fff; }

.gewaehlt-tag { font-weight: 600; }
.zeiten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: .5rem; }
.zeit { display: grid; place-items: center; min-height: 2.9rem; border: 2px solid var(--marke); border-radius: 8px; text-decoration: none; color: var(--dunkel); font-weight: 600; }
.zeit:hover { background: color-mix(in srgb, var(--marke) 11%, white); color: var(--dunkel); }
.zeit.gewaehlt { background: var(--marke); color: #fff; }

.auswahl-box { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; background: color-mix(in srgb, var(--marke) 8%, white); border-radius: 8px; padding: .7rem .9rem; }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 1rem; }
.feld { display: flex; flex-direction: column; gap: .3rem; }
.feld > label { font-weight: 600; color: var(--dunkel); }
.pflicht, .optional { font-weight: 400; color: var(--leise); font-size: .88em; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url], input[type=number], input[type=date], input[type=time], select, textarea {
  font: inherit; color: var(--text); background: #fff; border: 1.5px solid #8794a0; border-radius: 8px; padding: .65rem .75rem; width: 100%; min-height: 2.9rem;
}
input[type=color] { width: 4.5rem; height: 2.9rem; padding: .2rem; border: 1.5px solid #8794a0; border-radius: 8px; background: #fff; }
textarea { resize: vertical; min-height: 6rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--marke) 55%, white); outline-offset: 1px; border-color: var(--marke); }
.hilfe { font-size: .88rem; color: var(--leise); margin: 0; }
.feld-fehler input, .feld-fehler textarea, .feld-fehler select { border-color: var(--fehler); }
.fehlertext { color: var(--fehler); font-size: .9rem; font-weight: 600; margin: 0; }
.haken { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.haken input { width: 1.35rem; height: 1.35rem; margin-top: .15rem; flex: none; accent-color: var(--marke); }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Knöpfe: gefüllt = Aktion, umrandet = Navigation */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; min-height: 2.9rem; padding: .55rem 1.2rem; border-radius: 8px; border: 2px solid var(--marke); background: var(--marke); color: #fff; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--dunkel); border-color: var(--dunkel); color: #fff; }
.knopf-umriss { background: transparent; color: var(--marke); }
.knopf-umriss:hover { background: color-mix(in srgb, var(--marke) 10%, white); color: var(--dunkel); border-color: var(--marke); }
.knopf-warnung { background: var(--fehler); border-color: var(--fehler); }
.knopf-warnung:hover { background: #7a1810; border-color: #7a1810; }
.knopf-gross { width: 100%; font-size: 1.05rem; min-height: 3.2rem; }
.knopf-klein { min-height: 2.4rem; padding: .3rem .85rem; font-size: .92rem; }
.knopfleiste { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0; }
.knopfleiste form { margin: 0; }

.meldung { border-radius: 8px; padding: .8rem 1rem; margin: 0 0 1rem; border-left: 5px solid; background: #fff; }
.meldung.ok { border-color: var(--ok); background: #eaf6ef; }
.meldung.fehler { border-color: var(--fehler); background: #fdeceb; }
.meldung.warnung { border-color: var(--warn); background: #fff4e5; }
.meldung.info { border-color: var(--marke); background: color-mix(in srgb, var(--marke) 8%, white); }

.eckliste { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1.2rem; background: var(--grund); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; }
.eckliste dt { color: var(--leise); }
.eckliste dd { margin: 0; font-weight: 600; }
.eckliste .durch { text-decoration: line-through; }
.abschnitt { margin-top: 1.5rem; }
.text-seite { background: var(--grund); border-radius: var(--radius); padding: 1.2rem 1rem; }
.text-seite h2 { margin-top: 1.4em; }

@media (min-width: 40rem) {
  .haupt { padding-top: 2.2rem; }
  .schritt { padding: 1.4rem 1.5rem 1.5rem; }
  .knopf-gross { width: auto; }
  .tag { height: 3rem; }
}

/* Marke Stackwerk: dunkler Kopf wie auf stackwerk.app */
.marke-stackwerk .kopf { background: #12161a; border-bottom-color: var(--akzent); }
.marke-stackwerk .wortmarke, .marke-stackwerk .wortmarke b { color: #fff; }
.marke-stackwerk .wortmarke small { color: #b7c0c7; }
.marke-stackwerk .wortmarke .zeichen { background: #fff; padding: .2rem; border-radius: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .knopf, .zeit, .tag, .karte { transition: background-color .12s, border-color .12s, box-shadow .12s; }
}
