/* Saal am Ziegenmarkt – Vormerk-Seite. Heller Grund in den Farben des neuen Logos: Schwarz und Messing. */

@font-face { font-family: "Cormorant"; src: url("/assets/fonts/cormorant-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/assets/fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/assets/fonts/cormorant-italic-500.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --gruen: #1f3a33;
  --braun: #5a3328;
  --creme: #f3ebdf;
  --papier: #faf6ef;
  --gold: #e8cf9f;
  --messing: #8b6a3c;
  --linie: #e6dccd;
  --tinte: #2a2622;
  --grau: #6b645c;
  --fehler: #9b2a22;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--papier); color: var(--tinte); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--messing); outline-offset: 2px; }

/* Nur Logo und Formular, mittig */
.buehne { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: clamp(16px, 3vh, 40px) 20px clamp(12px, 2vh, 24px); display: flex; flex-direction: column; justify-content: center; }
.logo { margin: 0 auto clamp(16px, 3vh, 28px); line-height: 0; }
.logo img { width: 230px; height: auto; }

/* Formularkarte */
.karte { background: #fff; color: var(--tinte); border: 1px solid var(--linie); border-radius: 10px; padding: clamp(20px, 3vh, 32px) clamp(20px, 4vw, 32px); box-shadow: 0 18px 50px rgba(60, 40, 20, .08); }
.karte h2 { font: 600 34px/1.1 var(--serif); color: var(--tinte); margin: 0 0 8px; }
.einleitung { font-size: 15px; margin: 0 0 6px; }
.klein { font-size: 13px; color: var(--grau); margin: 0 0 14px; }
.reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feld { display: grid; gap: 4px; margin-bottom: 12px; }
.feld label { font-size: 13px; font-weight: 600; }
.optional { font-weight: 400; color: var(--grau); }
.feld input, .feld textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #c9bcaa; border-radius: 5px; background: #fff; font: 15px/1.4 var(--sans); color: var(--tinte); }
.feld textarea { min-height: 62px; resize: vertical; }
.feld input:focus, .feld textarea:focus { border-color: var(--messing); outline: 2px solid rgba(139, 106, 60, .2); }
.feld [aria-invalid="true"] { border-color: var(--fehler); }
.fehler { font-size: 12.5px; color: var(--fehler); }
/* Privat / geschäftlich als zwei Schalter; das Firmenfeld erscheint nur bei „Geschäftlich“ */
.wahl { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.wahl legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 4px; }
.wahl__knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wahl__knoepfe label { position: relative; cursor: pointer; }
.wahl__knoepfe input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl__knoepfe span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 12px; border: 1px solid #c9bcaa; border-radius: 5px; background: #fff; font-size: 15px; font-weight: 600; color: var(--tinte); transition: background .15s, border-color .15s, color .15s; }
.wahl__knoepfe label:hover span { border-color: var(--messing); }
.wahl__knoepfe input:checked + span { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.wahl__knoepfe input:focus-visible + span { outline: 3px solid var(--messing); outline-offset: 2px; }
.wahl--fehler .wahl__knoepfe span { border-color: var(--fehler); }
.feld--org { display: none; }
.karte:has(#f-als-geschaeftlich:checked) .feld--org { display: grid; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; margin: 4px 0 6px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--messing); flex: none; }
.check--fehler span { color: var(--fehler); }
.check a { color: var(--messing); }
.topf { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.meldung { background: #f6e1dd; color: var(--fehler); border-radius: 5px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 12px; padding: 12px 24px; border: 0; border-radius: 6px; background: var(--tinte); color: #fff; font: 600 16px var(--sans); letter-spacing: .02em; cursor: pointer; transition: background .15s; }
.knopf:hover { background: var(--messing); }
.danke { text-align: center; padding: 24px 8px; }
.danke h2 { font-size: 40px; }
.danke p { margin: 0 0 12px; }

.fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; width: 100%; padding: 12px 20px 18px; font-size: 13px; color: var(--grau); }
.fuss nav { display: flex; gap: 18px; }

/* Breite Bildschirme: Formular zweispaltig, damit alles ohne Scrollen passt */
@media (min-width: 900px) {
  .buehne { max-width: 900px; }
  .karte form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start; }
  .spalte .feld textarea { min-height: 84px; }
  .spalte:last-child .knopf { margin-top: 10px; }
}

/* Niedrige Bildschirme: etwas enger, damit auf dem Desktop nichts scrollt */
@media (max-height: 780px) {
  .buehne { padding-top: 14px; padding-bottom: 8px; }
  .logo { margin-bottom: 12px; }
  .logo img { width: 160px; }
  .karte { padding-top: 18px; padding-bottom: 18px; }
  .karte h2 { font-size: 28px; margin-bottom: 4px; }
  .einleitung { font-size: 14px; margin-bottom: 2px; }
  .klein { margin-bottom: 8px; }
  .feld { margin-bottom: 7px; gap: 2px; }
  .feld input { min-height: 38px; padding: 6px 10px; }
  .feld textarea { min-height: 46px; padding: 6px 10px; }
  .wahl { margin-bottom: 7px; }
  .wahl__knoepfe span { min-height: 36px; padding: 5px 10px; }
  .einleitung { margin-bottom: 0; }
  .check { margin: 2px 0; }
  .knopf { min-height: 44px; margin-top: 8px; }
  .fuss { padding: 6px 20px 10px; }
}
@media (max-height: 740px) {
  .logo img { width: 120px; }
  .logo { margin-bottom: 8px; }
}
@media (max-width: 520px) {
  .reihe { grid-template-columns: 1fr; gap: 0; }
  .logo img { width: 220px; }
}

/* Rechtstexte */
.text { flex: 1; max-width: 44em; margin: 0 auto; padding: 48px 24px 64px; }
.text h1 { font: 600 clamp(34px, 5vw, 48px)/1.1 var(--serif); margin: 0 0 16px; }
.text h2 { font: 600 26px/1.2 var(--serif); margin: 1.6em 0 .4em; color: var(--messing); }
.text p { color: var(--tinte); }
.text .zurueck { display: inline-block; margin-bottom: 24px; font-size: 14px; }
