/* =====================================================================
   Mr. Back – gemeinsamer Web-Stil
   Zentrale Quelle: /root/marke/mrback.css  (verteilt per marke-verteilen.sh)
   Vorbild: Workshop-Anmeldung (anmeldung.massage-ohne-termin.de)
   Seiten binden ihn ein mit  <link rel="stylesheet" href="/mrback.css">
   und ergänzen danach nur noch, was nur auf dieser Seite gilt.

   GESTALTUNGSREGEL (Webseiten und E-Mails gleich):
   „Der Kopf ist zentriert, der Inhalt ist linksbündig.“
   - Zentriert: Logo, Überschrift, Unterzeile (höchstens zwei kurze Sätze),
     blaue Info-Box, ein einzelner kurzer Link unter dem Inhalt
     (z. B. „Zurück zur Karte“) und Bild-Elemente wie die Karte selbst.
   - Linksbündig: alles, was man liest oder ausfüllt: Fließtext, Anrede,
     Formulare, Hinweise, Fehlertexte, Listen, Rechtstexte, Grußformel, Fußzeile.
   - Buttons: volle Breite, Text mittig.
   ===================================================================== */

@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Poppins-Regular.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/Poppins-Medium.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/Poppins-Bold.woff') format('woff'); }

:root {
  --blau: #0B3A82;
  --hell: #2FA4FF;
  --weiss: #FCFDFD;
  --gold: #C9A47A;
  --blau-weich: rgba(11, 58, 130, .08);
  --blau-linie: rgba(11, 58, 130, .28);
  --rot: #B3261E;              /* nur für endgültiges Löschen */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--weiss); color: var(--blau);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400; font-size: 16px; line-height: 1.55;
}
main { max-width: 40rem; margin: 0 auto; padding: 18px 16px 56px; }

/* Logo oben */
.logo { display: block; height: auto; width: 70%; max-width: 240px; margin: 0 auto 34px; }

/* Text */
h1 { font-weight: 700; font-size: 1.65rem; line-height: 1.25; margin: 0 0 .6rem; text-align: center; }
h1:focus { outline: none; }
h2 { font-weight: 700; font-size: 1.1rem; margin: 2rem 0 .75rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 700; }
.sub, .unterzeile { font-weight: 500; margin: 0 0 1.5rem; text-align: center; }
.klein, .optional { font-size: .85rem; }
.hinweis { font-weight: 400; font-size: .8rem; opacity: .8; display: block; margin-top: 4px; }
.mitte { text-align: center; }

a { color: var(--blau); font-weight: 500; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Weiße Kästen */
.kasten, .block { background: #fff; border: 1px solid var(--blau-linie); border-radius: 14px; padding: 20px 18px; }
.kasten + .kasten, .block + .block { margin-top: 16px; }
.kasten > h2:first-child, .block > h2:first-child { margin-top: 0; }
.kasten > .feld:last-child, .kasten > .feld:last-child .check { margin-bottom: 0; }

/* Blaue Info-Box (z. B. Gutschein-Hinweis) */
.meldung { background: var(--blau); color: #fff; border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; font-weight: 500; text-align: center; }
.meldung a { color: #fff; }

/* Formularfelder */
.feld { margin-bottom: 18px; }
label, .label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[inputmode], select {
  width: 100%; font: inherit; font-weight: 400; color: var(--blau);
  background: #fff; border: 1.5px solid var(--blau-linie); border-radius: 10px;
  padding: 12px 14px; min-height: 48px; appearance: none; -webkit-appearance: none;
}
select {
  padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B3A82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
input:focus-visible, select:focus-visible, .radio:focus-within, .check:focus-within, .schalter:focus-within,
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--hell); outline-offset: 2px;
}

/* Fehler: goldener Rahmen und Ausrufezeichen */
.hat-fehler input, .hat-fehler select, .ungueltig input, .ungueltig select { border-color: var(--gold); border-width: 2px; background-color: #fffdf9; }
.fehlertext, .serverfehler { display: none; margin-top: 6px; font-weight: 500; font-size: .85rem; }
.hat-fehler .fehlertext, .ungueltig .fehlertext { display: flex; gap: 8px; align-items: flex-start; }
.fehlertext::before, .serverfehler::before {
  content: '!'; flex: 0 0 auto; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--gold); color: var(--blau); font-weight: 700; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.serverfehler { gap: 8px; align-items: flex-start; margin-top: 12px; }
.serverfehler[style*="block"], .serverfehler.sichtbar { display: flex !important; }

/* Auswahl- und Häkchen-Boxen */
fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
legend { font-weight: 500; font-size: .92rem; padding: 0; margin-bottom: 8px; }
.radio, .check, .schalter {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px;
  border: 1.5px solid var(--blau-linie); border-radius: 10px; background: #fff; cursor: pointer;
}
.radio input, .check input, .schalter input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blau); }
.radio:has(input:checked), .check:has(input:checked), .schalter:has(input:checked) { border-color: var(--blau); background: var(--blau-weich); }
.radio span { font-weight: 500; }
.check span, .check label, .schalter label { font-weight: 400; font-size: .9rem; margin: 0; cursor: pointer; }
.hat-fehler .radio, .hat-fehler .check, .ungueltig .check { border-color: var(--gold); }

/* Buttons */
button.haupt, a.knopf {
  display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  width: 100%; min-height: 52px; margin-top: 12px; font: inherit; font-weight: 700; font-size: 1.05rem;
  color: #fff; background: var(--blau); border: 0; border-radius: 12px; padding: 14px 18px; cursor: pointer;
  box-shadow: 0 3px 0 var(--gold);
  transition: background-color .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) {
  button.haupt:not([disabled]):hover, a.knopf:hover {
    background: #0f4aa8; transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--gold), 0 10px 22px rgba(11, 58, 130, .22);
  }
}
button.haupt:not([disabled]):active, a.knopf:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--gold); transition-duration: .08s; }
button.haupt[disabled] { opacity: .6; cursor: progress; }

/* Zweiter Button: weiß mit blauem Rahmen */
button.haupt.zweit, a.knopf.zweit { background: #fff; color: var(--blau); border: 1.5px solid var(--blau); box-shadow: none; font-size: 1rem; }
@media (hover: hover) {
  button.haupt.zweit:not([disabled]):hover, a.knopf.zweit:hover { background: var(--blau-weich); box-shadow: 0 6px 16px rgba(11, 58, 130, .12); }
}
/* Endgültiges Löschen */
button.haupt.gefahr { background: var(--rot); color: #fff; border: 0; box-shadow: 0 3px 0 rgba(179, 38, 30, .35); }
button.haupt.gefahr.zweit { background: #fff; color: var(--rot); border: 1.5px solid var(--rot); box-shadow: none; }
@media (hover: hover) {
  button.haupt.gefahr:not([disabled]):hover { background: #9b1f18; box-shadow: 0 5px 0 rgba(179, 38, 30, .35), 0 10px 22px rgba(179, 38, 30, .2); }
  button.haupt.gefahr.zweit:not([disabled]):hover { background: #fdf3f2; box-shadow: none; }
}

/* Aufklappbare Fragen */
details.aufklapp summary { list-style: none; cursor: pointer; }
details.aufklapp summary::-webkit-details-marker { display: none; }

/* Fuß */
footer { max-width: 40rem; margin: 40px auto 0; font-size: .85rem; border-top: 1px solid var(--blau-linie); padding-top: 18px;
         display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
footer a { font-weight: 500; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .25s ease; }
footer a:hover, footer a:focus-visible { text-decoration-color: var(--gold); }

[hidden] { display: none !important; }

.radio, .check, .schalter, input[type=text], input[type=email], input[type=tel], input[type=date], input[inputmode], select {
  transition: border-color .2s ease, background-color .2s ease;
}
@media (prefers-reduced-motion: reduce) {
  button.haupt, a.knopf { transition: background-color .35s ease, box-shadow .35s ease; }
  button.haupt:not([disabled]):hover, button.haupt:not([disabled]):active, a.knopf:hover, a.knopf:active { transform: none; }
}
