/* Grundlagen für alle Seiten. Keine externen Schriften: es werden die Schriften des Geräts genutzt. */
:root {
  --farbe: #7a4a2a;
  --auf-farbe: #ffffff;
  --farbe-text: #7a4a2a;
  --farbe-hell: #f2ede9;
  --farbe-mittel: #d7c9bf;
  --grund: #f7f5f2;
  --flaeche: #ffffff;
  --text: #1d1d1f;
  --text-leise: #55555c;
  --linie: #dcd8d2;
  --fehler: #b3261e;
  --fehler-hell: #fdecea;
  --ok: #1e6b3a;
  --ok-hell: #e6f4ea;
  --radius: 18px;
  --schatten: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --titel-schrift: var(--schrift);
  color-scheme: light;
}
html[data-branche="cafe"], html[data-branche="restaurant"] { --titel-schrift: Georgia, "Times New Roman", serif; }
html[data-branche="barbershop"] { --titel-schrift: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--grund);
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; }
a { color: var(--farbe-text); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--titel-schrift); line-height: 1.2; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--farbe-text); outline-offset: 3px; border-radius: 6px; }

.nur-vorleser {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.symbol { width: 1.5em; height: 1.5em; flex: none; }

/* Knöpfe: mindestens 48 px hoch, damit man sie gut trifft */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .75rem 1.25rem;
  font: inherit; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none;
  color: var(--auf-farbe); background: var(--farbe);
  border: 2px solid var(--farbe); border-radius: 14px;
  cursor: pointer; touch-action: manipulation;
  transition: transform .08s ease, filter .15s ease;
}
.knopf:hover { filter: brightness(1.08); }
.knopf:active { transform: scale(.98); }
.knopf[disabled] { opacity: .5; cursor: not-allowed; }
.knopf.zweit { color: var(--farbe-text); background: var(--flaeche); border-color: var(--farbe-mittel); }
.knopf.leise { color: var(--text); background: transparent; border-color: var(--linie); font-weight: 600; }
.knopf.breit { width: 100%; }
.knopf .klein { display: block; font-size: .8125rem; font-weight: 500; opacity: .9; }

.seite { max-width: 34rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
.seite.breit { max-width: 64rem; }

.kasten {
  background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 1.25rem; margin-bottom: 1rem;
}

.meldung {
  border-radius: 12px; padding: .75rem 1rem; margin: 0 0 1rem; font-weight: 500;
  background: var(--farbe-hell); color: var(--text); border: 1px solid var(--farbe-mittel);
}
.meldung.fehler { background: var(--fehler-hell); border-color: #f2b8b5; color: #5c1410; }
.meldung.ok { background: var(--ok-hell); border-color: #a8d5b5; color: #0f3d20; }

.fusszeile { text-align: center; color: var(--text-leise); font-size: .875rem; margin-top: 2rem; }
.fusszeile a { color: inherit; }

/* Formulare */
.feld { margin-bottom: 1.25rem; }
.feld > label, .feld > legend, .feld .titel { display: block; font-weight: 650; margin-bottom: .375rem; }
.feld .hilfe { display: block; color: var(--text-leise); font-size: .9375rem; margin-top: .25rem; }
.feld .fehlertext { display: block; color: var(--fehler); font-weight: 600; font-size: .9375rem; margin-top: .375rem; }
fieldset.feld { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
input[type="text"], input[type="number"], input[type="url"], input[type="password"], input[type="tel"] {
  width: 100%; min-height: 52px; padding: .625rem .875rem;
  font: inherit; color: var(--text); background: #fff;
  border: 2px solid var(--linie); border-radius: 12px;
}
input:focus { border-color: var(--farbe-text); outline: none; box-shadow: 0 0 0 3px var(--farbe-mittel); }
input[aria-invalid="true"] { border-color: var(--fehler); }
input[type="color"] { width: 72px; height: 52px; padding: 4px; border: 2px solid var(--linie); border-radius: 12px; background: #fff; cursor: pointer; }

.wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
@media (min-width: 40rem) { .wahl.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wahl label {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .375rem;
  min-height: 84px; padding: .75rem .5rem; text-align: center; font-weight: 600;
  background: #fff; border: 2px solid var(--linie); border-radius: 14px; cursor: pointer;
}
.wahl input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wahl label:has(input:checked) { border-color: var(--farbe-text); background: var(--farbe-hell); box-shadow: inset 0 0 0 1px var(--farbe-text); }
.wahl label:has(input:focus-visible) { outline: 3px solid var(--farbe-text); outline-offset: 2px; }
.wahl .symbol { width: 32px; height: 32px; color: var(--farbe-text); }
.wahl.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wahl.zwei label { min-height: 56px; flex-direction: row; }

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

.sprachwahl { text-align: center; font-size: .875rem; margin: 1.5rem 0 0; color: var(--text-leise); }
.sprachwahl a { color: inherit; padding: 2px 4px; }
.sprachwahl strong { color: var(--text); padding: 2px 4px; }
