/* Mobil zuerst: Zielgruppe sind Handwerker/Betriebsinhaber am Handy
   (Bauauftrag A5, Mobile-Politur) -- groessere Grundschrift, groessere
   Tippziele (min. 44px, siehe .btn/input/th-Regeln unten), keine
   Seitwaerts-Scrollerei bei 375px (siehe .table-scroll). */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0; background: #f6f4f0; color: #2a2420; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.55; font-size: 17px; }
header.page { background: #2a2420; color: #fff; padding: 1.1rem 1rem; }
header.page .header-row { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
header.page h1 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
header.page nav a { color: #f6f4f0; text-decoration: underline; font-size: .95rem; padding: .4rem .2rem; display: inline-block; }
main { max-width: 760px; margin: 0 auto; padding: 1rem; }
.card { background: #fff; border-radius: 12px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card h2 { margin-top: 0; font-size: 1.15rem; }
.card h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.card ul, .card ol { padding-left: 1.3rem; }
.card li { margin-bottom: .35rem; }
.badge { display: inline-block; padding: .3rem .7rem; border-radius: 999px; font-size: .9rem; background: #eee; }
.badge.is-open { background: #dcf5df; color: #1e6b3c; }
.badge.is-closed { background: #fde2e2; color: #a3241c; }
.row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
/* Tabellen (Preise/Oeffnungszeiten/Tarife) duerfen bei 375px NIE die Seite
   seitwaerts aufreissen -- der Scroll-Balken bleibt lokal auf die Tabelle
   begrenzt, siehe artifact/Portal-Vorgabe "keine Seitwaerts-Scrollerei". */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.25rem; padding: 0 .25rem; }
table { width: 100%; border-collapse: collapse; }
table th, table td { text-align: left; padding: .55rem .35rem; border-bottom: 1px solid #eee; font-size: 1rem; }
input[type=text], input[type=date], input[type=email], textarea {
  padding: .55rem .6rem; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem;
  min-height: 44px; font-family: inherit; background: #fff; color: inherit;
}
textarea { min-height: 110px; width: 100%; resize: vertical; }
input[type=checkbox] { width: 22px; height: 22px; }
label.day { display: flex; align-items: center; gap: .5rem; font-weight: 600; padding: .2rem 0; }
.spans { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; white-space: nowrap; }
/* Zeit-/Preisfelder duerfen schmal bleiben (kurzer Inhalt), aber nie unter
   eine bequem tippbare Breite fallen. */
.spans input[type=text] { width: 4.6rem; }
/* Groesste Tippziele zuerst (Bauauftrag: min. 44px, klare Knopf-Hierarchie):
   primaere Aktion voll breit auf Mobil, Sekundaeraktionen daneben/darunter. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1.1rem; border-radius: 10px; border: none; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary { background: #a63c14; color: #fff; }
.btn-secondary { background: #eee; color: #2a2420; }
.btn-ok { background: #1e6b3c; color: #fff; }
.btn-no { background: #a3241c; color: #fff; }
.btn-block { display: flex; width: 100%; }
.muted { color: #776f68; font-size: .95rem; }
.error-box { background: #fde2e2; color: #7a1c14; border-radius: 8px; padding: .85rem 1rem; margin-bottom: 1rem; }
.ok-box { background: #dcf5df; color: #1e6b3c; border-radius: 8px; padding: .85rem 1rem; margin-bottom: 1rem; }
.proposal { border-top: 1px solid #eee; padding: .85rem 0; }
.proposal:first-child { border-top: none; }
.proposal .row .btn { flex: 1 1 auto; }
form.inline { display: inline; }
/* Fund Plan 19 P2 (2026-08-25): #948b83 auf #f6f4f0 bei .85rem (~14.4px)
   ergab nur 3,04:1 -- unter WCAG AA (4,5:1 fuer Fliesstext). #6b5e4f auf
   #f6f4f0 liegt klar ueber 4,5:1; Schriftgroesse zusaetzlich auf >=15px
   angehoben (siehe Bauauftrag "Kunden-Freigabe nach Zahlung" Punkt 9). */
footer.page { text-align: center; color: #6b5e4f; font-size: .95rem; padding: 2rem 1rem; }
footer.page a { color: #6b5e4f; }
/* Kunden-Freigabe nach Zahlung: Zeitstempel in Tabellenziffern-Anmutung
   (Design-Contract §2 "Preise, Zeitstempel und Statuszeilen laufen in
   Tabellenziffern/Monospace-Anmutung"). */
.freigabe-stempel strong { font-variant-numeric: tabular-nums; }
/* Preis-/Ankuendigungsfelder (home.html.jinja): waren frueher inline
   style="..."-Attribute -- unter der strengen CSP (default-src 'self',
   siehe SECURITY_HEADERS in server.py) wirkungslos, siehe Fix 21.08. */
/* Zugaenge-Seite (Abschnitt 11 in docs/PORTAL.md): der Telegram-Einladungslink
   ist eine lange URL ohne Leerzeichen -- ohne erzwungenen Umbruch reisst er die
   Karte bei 375px seitwaerts auf (dieselbe Regel wie .table-scroll oben:
   niemals horizontales Scrollen der Seite). */
.linkbox { overflow-wrap: anywhere; word-break: break-word; }
.field-price { width: 5rem; }
.field-full { width: 100%; }
@media (min-width: 480px) {
  .spans input[type=text] { width: 5rem; }
}
