/* Passer · Ergänzungen für echte Formularelemente und Seiten-Rahmen.
   Die Leinwand zeigt Felder und Knöpfe als Attrappen (x-feld, a.sp-btn); hier bekommen echte
   input, button und Formulare dasselbe Aussehen. Farben nur über die Tokens. */
html,body{min-height:100%}
body.x-board{margin:0}
.sp-page{min-height:100vh;display:flex;flex-direction:column}
/* Kopf und Inhalt behalten ihre volle Breite (max-width + margin:auto der Bausteine) */
.sp-page>header,.sp-page>main{width:100%}
.sp-page>main{flex:1 0 auto}
.sp-fuss a{text-decoration:none}
.sp-fuss a:hover{text-decoration:underline}

.x-form{display:flex;flex-direction:column;gap:var(--space-5)}
.x-form .sp-feld+.sp-feld{margin-top:0}
.sp-feld input[type=text],.sp-feld input[type=password],.sp-feld input[type=date],.sp-feld input[type=url],
.sp-feld input[type=email],.sp-feld input[type=number],.sp-feld textarea,.sp-feld select{
  width:100%;min-height:48px;padding:0 12px;border:0;border-radius:var(--radius-sm);
  background:var(--flaeche-blau);box-shadow:inset 0 -2px 0 color-mix(in srgb,var(--tinte) 45%,transparent);
  color:var(--tinte);font:inherit;font-size:16px;line-height:24px;appearance:none;-webkit-appearance:none}
.sp-feld textarea{padding:12px;min-height:96px;resize:vertical}
.sp-feld input:focus-visible,.sp-feld textarea:focus-visible,.sp-feld select:focus-visible{outline:3px solid var(--fokus);outline-offset:2px}
.sp-feld--fehler input,.sp-feld--fehler textarea{box-shadow:inset 0 -3px 0 var(--stempel-pink)}
.sp-feld input::placeholder{color:var(--tinte-leise)}
.z-o8__zeit{display:flex;gap:var(--space-3)}
.z-o8__zeit>.sp-feld{flex:1;min-width:0}

button.sp-btn{text-align:center}
.x-row{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.x-row form{display:contents}
.x-row>form>.sp-btn{flex:1 1 auto}
.x-linkknopf{background:none;border:0;padding:0;font-family:inherit;font-size:inherit;line-height:inherit;color:inherit;cursor:pointer;text-align:left;text-decoration:underline;text-underline-offset:3px}
.x-pw{font-family:var(--font-mono);letter-spacing:.02em;white-space:normal!important;word-break:break-all}
.x-kopftext{display:flex;flex-direction:column;gap:2px;min-width:0;position:relative}
.x-stapel{display:flex;flex-direction:column;gap:8px}
.x-stapel p{margin:0}
.z-en__qr svg{display:block;width:100%;max-width:280px;height:auto;margin:0 auto;background:#fff;border-radius:var(--radius-sm)}

/* Rückfrage als eigene Seite bzw. als Schicht über der Seite */
.x-dim--seite{position:relative;min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding:24px 0}
.x-overlay{position:fixed;inset:0;z-index:50}
.x-overlay[hidden]{display:none}
.x-overlay .x-dim{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;padding:0}
.x-dialog{max-width:var(--content-max);margin-left:auto;margin-right:auto;width:calc(100% - 32px)}
.x-dialog form{display:flex;flex-direction:column;gap:var(--space-4)}

/* Auswahl mit echtem Kontrollkästchen (y-wahl der Leinwand) */
.x-wahl{position:relative}
.x-wahl input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.x-wahl input:focus-visible+.f{outline:3px solid var(--fokus);outline-offset:2px}
.x-wahl:not(:has(input:checked)) .sp-rundstempel{display:none}
.x-wahl:has(input:checked) .f{outline:0}

/* Ab 700 px rückt der Inhalt auf 32 px ein (ds-bundle); der Kopf zieht mit, damit beides fluchtet. */
@media (min-width:700px){.sp-page>.sp-kopf{padding-left:var(--space-6);padding-right:var(--space-6)}}
