/* Messe-Kiosk — Design „Editorial" (Adamina/Roboto, Bronze/Gold, kantig).
   Schriften lokal eingebunden waere schoener; fuer die Messe reicht der
   System-Fallback, damit der Kiosk auch ohne Netz sofort steht. */

:root{
  --bronze:#8E7556; --sand:#C0AB91; --gold:#ACA26E;
  --ink:#3D332B; --muted:#8B8178;
  --line:#E8E3DC; --line-soft:#F1EDE7; --paper:#F4F2EF;
  --l1:#141110; --l2:#26201A;
  --ok:#2E6B4F; --err:#9C1A1A; --warn:#8A5A1A;
  --serif: Adamina, Georgia, 'Times New Roman', serif;
  --sans: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}

html,body{height:100%}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--sans); font-size:17px; line-height:1.55;
  /* Auswahl aus: am Kiosk soll niemand Text markieren und kopieren. */
  -webkit-user-select:none; user-select:none;
  overscroll-behavior:none;
}

/* ---------------- Zustandsleiste ---------------- */
.leiste{
  position:fixed; top:0; left:0; right:0; z-index:50;
  display:flex; justify-content:space-between; align-items:center;
  padding:calc(env(safe-area-inset-top,0px) + 7px) 16px 7px;
  font-size:13px; background:#FDF3F2; color:#7a2f28;
}
.leiste.gut{background:#F1F6F2; color:#2c5236}
.leiste-zahl{font-family:'Roboto Mono',ui-monospace,monospace; font-weight:500}

/* ---------------- Buehne / Screens ---------------- */
#buehne{min-height:100%; display:flex}
.screen{
  display:none; width:100%; min-height:100vh; min-height:100dvh;
  padding:calc(env(safe-area-inset-top,0px) + 34px) 22px
          calc(env(safe-area-inset-bottom,0px) + 26px);
  position:relative;
}
.screen.aktiv{display:flex; flex-direction:column; justify-content:center}
.inhalt{width:100%; max-width:520px; margin:0 auto}
.inhalt.mitte{text-align:center}

/* ---------------- Typografie ---------------- */
.kicker{
  font-size:11px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--gold); font-weight:500; margin:0 0 8px;
}
h1{font-family:var(--serif); font-weight:400; font-size:32px; line-height:1.2; margin:0 0 12px}
h2{font-family:var(--serif); font-weight:400; font-size:27px; line-height:1.22; margin:0 0 12px}
.lead{color:var(--muted); font-size:16px; margin:0 0 18px}
.lead.klein{font-size:15px}
.legal{font-size:12px; line-height:1.5; color:var(--muted); margin-top:22px; text-align:left}
.rueckgabe{margin-top:22px; font-size:15px; color:var(--muted)}

/* ---------------- Kacheln ---------------- */
.kachel{background:#fff; border-top:2px solid var(--gold); padding:18px 16px; margin:20px 0}
.kachel-wert{font-family:var(--serif); font-size:26px; color:var(--bronze); line-height:1.15}
.kachel-zusatz{
  font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--muted); margin-top:6px;
}

.nummer-kachel{background:#fff; border-top:2px solid var(--gold); padding:22px 14px; margin:22px 0}
.nummer{
  font-family:'Roboto Mono',ui-monospace,monospace; font-size:27px;
  letter-spacing:.02em; color:var(--l1); word-spacing:.18em;
}
.nummer-netz{font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-top:8px}

.haken-gross{font-size:42px; line-height:1; color:var(--ok); margin-bottom:10px}

/* ---------------- Felder ---------------- */
.feld{display:block; margin:0 0 18px}
.label{
  display:block; font-size:12px; letter-spacing:.11em; text-transform:uppercase;
  color:var(--muted); margin-bottom:6px; font-weight:500;
}
.label em{color:var(--bronze); font-style:normal}
/* body hat user-select:none; das vererbt in die Felder und verhindert auf
   iOS-Safari das Setzen des Cursors. Eingaben muessen ausgenommen werden. */
input,textarea{-webkit-user-select:text; user-select:text}

input[type=text],input[type=tel],input[type=password]{
  width:100%; border:1px solid var(--line); background:#fff; color:var(--ink);
  /* 17px: unter 16px zoomt iOS beim Fokus hinein. */
  font-family:var(--sans); font-size:17px; padding:13px 14px; border-radius:0;
  -webkit-appearance:none; appearance:none;
}
input:focus{
  outline:none; border-color:var(--bronze);
  box-shadow:0 0 0 3px rgba(142,117,86,.14);
}
input::placeholder{color:#b8b0a6}
.hinweis{display:block; font-size:12.5px; color:var(--muted); margin-top:5px}
.hinweis.warn{color:var(--warn)}
.hinweis.err{color:var(--err)}

.pin-feld{text-align:center; letter-spacing:.5em; font-size:26px; max-width:220px; margin:0 auto 14px; display:block}

/* ---------------- Auswahlknoepfe ---------------- */
.wahl{display:flex; flex-direction:column; gap:7px}
.wahl.reihe{flex-direction:row; flex-wrap:wrap}
.wahl-knopf{
  border:1px solid var(--line); background:#fff; color:var(--ink);
  font-family:var(--sans); font-size:16px; padding:13px 15px; text-align:left;
  border-radius:0; cursor:pointer; transition:background .12s, border-color .12s;
}
.wahl-knopf.klein{flex:1; text-align:center; padding:12px 10px; font-size:15px}
.wahl-knopf[aria-pressed="true"]{background:var(--l1); color:#fff; border-color:var(--l1)}

/* ---------------- Haken ---------------- */
.haken{
  display:flex; gap:11px; align-items:flex-start;
  font-size:14px; line-height:1.45; margin:0 0 13px; text-align:left; cursor:pointer;
}
.haken input{
  flex:0 0 auto; width:23px; height:23px; margin:1px 0 0;
  accent-color:var(--l1); border-radius:0;
}
.haken em{color:var(--muted); font-style:italic}

/* ---------------- Knoepfe ---------------- */
.btn{
  display:block; width:100%; border:1px solid var(--bronze); background:var(--bronze);
  color:#fff; font-family:var(--sans); font-size:14px; font-weight:500;
  letter-spacing:.1em; text-transform:uppercase; padding:16px; margin-top:12px;
  border-radius:0; cursor:pointer; transition:background .12s, transform .08s;
}
.btn:active{transform:translateY(1px)}
.btn.gross{font-size:15px; padding:18px}
.btn-dunkel{background:var(--l1); border-color:var(--l1)}
.btn-leise{background:transparent; color:var(--muted); border-color:var(--line); font-size:13px; padding:13px}
.btn[disabled]{opacity:.5; pointer-events:none}

.fehler{color:var(--err); font-size:14px; margin:4px 0 0; text-align:left}

/* Bewusst unauffaellig — der Besucher soll ihn nicht bemerken. */
.pin-knopf{
  position:absolute; right:14px; bottom:calc(env(safe-area-inset-bottom,0px) + 12px);
  width:44px; height:44px; border:none; background:transparent;
  color:#d6cec4; font-size:22px; line-height:1; cursor:pointer;
}

@media (min-height:900px){
  h1{font-size:38px} h2{font-size:31px}
  body{font-size:18px}
  .nummer{font-size:31px}
}
@media (prefers-reduced-motion:reduce){ *{transition:none !important} }
