/* Schrift und Farben wie vikz.de. Catamaran (SIL Open Font License) liegt hier, damit das Formular
   keine Anfrage an Google stellt. */
@font-face {
  font-family: "Catamaran";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/catamaran-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Catamaran";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/catamaran-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Hell wie die Webseite des Vereins, auch bei dunkler Systemeinstellung. */
:root {
  color-scheme: light;
  --bg: #fafafa;
  --card: #ffffff;
  --text: #282828;
  --muted: #5f6668;
  --line: #e0e3e3;
  --brand: #5c9698; /* Türkis von vikz.de: Linie, Überschriften */
  --brand-light: #bbdad9;
  --brand-lime: #cedb6e;
  --accent: #365859; /* dunkles Türkis: Knöpfe und Links (ausreichend Kontrast zu Weiß) */
  --accent-soft: #eef6f5;
  --accent-text: #ffffff;
  --warn: #7a5200;
  --warn-bg: #fdf1d8;
  --bad: #ae2a22;
  --bad-bg: #fbe5e3;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.5 "Catamaran", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--accent);
}

/* Kopf wie auf vikz.de: weiß, Logo links, türkise Linie über die ganze Breite */
.masthead {
  background: #fff;
  border-bottom: 4px solid var(--brand);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 660px;
  margin: 0 auto;
  padding: 0.9rem 16px;
}

#org-logo {
  display: block;
  height: 64px;
  width: auto;
}

@media (max-width: 480px) {
  #org-logo {
    height: 48px;
  }
}

.lang {
  display: flex;
  gap: 2px;
  background: var(--line);
  border-radius: 999px;
  padding: 2px;
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--card);
  font-weight: 600;
}

main {
  max-width: 660px;
  margin: 0 auto;
  padding: 1rem 16px 2rem;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.15;
  margin: 1.25rem 0 0.4rem;
  text-wrap: balance;
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.25rem;
  margin: 0 0 1rem;
  min-width: 0;
}

legend {
  font-weight: 650;
  font-size: 1.15rem;
  color: var(--accent);
  padding: 0 0.4rem;
  margin-left: -0.4rem;
}

.field {
  margin-top: 0.9rem;
}

label,
.label {
  display: block;
  font-size: 0.92rem;
  font-weight: 550;
  margin-bottom: 0.3rem;
}

input:not([type="radio"]):not([type="checkbox"]),
select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  min-height: 46px;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
.option:focus-within,
.segments label:focus-within,
.chips button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--bad);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.8rem;
}

.grid.narrow-first {
  grid-template-columns: 9rem 1fr;
}

@media (max-width: 480px) {
  .grid,
  .grid.narrow-first {
    grid-template-columns: 1fr;
  }
}

.chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.chips button {
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0.65rem 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.chips button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--accent-soft);
  color: var(--accent);
}

.money {
  position: relative;
}

.money input {
  padding-right: 2.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.money span {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.segments {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.segments label {
  flex: 1;
  margin: 0;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
}

.segments label + label {
  border-left: 1px solid var(--line);
}

.segments input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segments span {
  display: block;
  padding: 0.6rem 0.3rem;
}

.segments input:checked + span {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.options {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.option {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.8rem;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

.option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: inset 4px 0 0 var(--brand-lime);
  background: var(--accent-soft);
}

.option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.option input,
.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  flex: none;
  accent-color: var(--accent);
}

.option strong {
  display: block;
}

.option small {
  color: var(--muted);
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
  margin-top: 0.9rem;
  cursor: pointer;
}

.mandate strong {
  display: block;
}

.mandate small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  line-height: 1.45;
}

.phone {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem;
}

.err {
  color: var(--bad);
  font-size: 0.88rem;
  margin: 0.3rem 0 0;
}

.note {
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin: 0 0 1rem;
}

.note.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.note.bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.center {
  text-align: center;
}

button.primary {
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

/* Dankesseite: Verweise als Knöpfe (zurück zum Formular, zur Webseite) */
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

a.button {
  flex: 1 1 14rem;
  padding: 0.8rem 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: 650;
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
}

a.button.primary {
  color: var(--accent-text);
  background: var(--accent);
}

a.button.primary:hover {
  background: #2b4748;
}

a.button:not(.primary):hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* Logo bzw. Vereinsname im Kopf: Verweis zum Anfang des Formulars, ohne wie ein Link auszusehen */
.org-home {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

button.primary:hover:not(:disabled) {
  background: #2b4748;
}

button.primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Felder und Knöpfe von Stripe bleiben im Layout (volle Breite), auch wenn sie gerade nicht gezeigt werden:
   In einem ausgeblendeten Bereich könnten sie ihre Größe nicht bestimmen. */
.collapsed {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

#card-fields:not(.collapsed) {
  margin-top: 0.9rem;
}

#express-row:not(.collapsed) {
  margin-top: 1.1rem;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 16px 2.5rem;
  display: flex;
  gap: 1.25rem;
  font-size: 0.88rem;
}

#thanks-id {
  font-variant-numeric: tabular-nums;
}

/* Pflichtfelder */
/* Angemeldet: gespeicherte Angaben als Übersicht */
.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* Speichern/Abbrechen beim Ändern der Angaben: abgesetzt von den Feldern, mit Trennlinie */
#edit-actions {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

#edit-actions .actions {
  margin-bottom: 0;
  gap: 1.25rem;
}

#edit-actions #edit-save {
  min-width: 9rem;
}

#edit-error {
  margin-top: 0.6rem;
}

/* Übersicht: Abstand zwischen Text, Schaltfläche und Hinweis */
#person-summary .actions {
  margin: 0.25rem 0 0.9rem;
}

.note.ok {
  background: var(--accent-soft);
  border-color: var(--brand-light);
  color: var(--accent);
}

.account .inline select {
  flex: 0 0 auto;
  width: auto;
}

#person-summary-text {
  white-space: pre-line;
  margin: 0 0 0.9rem 0;
  line-height: 1.55;
}

/* Spenderkonto: Anmeldung per Mail-Code über dem Formular */
.account {
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
}

.account label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.account .inline {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.account .inline input {
  flex: 1 1 14rem;
  min-width: 0;
}

.account #account-code-input {
  flex: 0 1 9rem;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-align: center;
}

.account #account-in,
.account #account-out {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.account .account-actions {
  display: flex;
  gap: 1rem;
}

.account [hidden] {
  display: none !important;
}

button.textlink {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

button.secondary {
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--brand-light);
  border-radius: 10px;
  cursor: pointer;
}

button.secondary:disabled {
  opacity: 0.6;
  cursor: progress;
}

input[readonly] {
  background: var(--bg);
  color: var(--muted);
}

.req::after{content:" *";color:var(--bad);font-weight:600}

/* Adresssuche: Suchfeld mit Vorschlägen, gewählte Anschrift */
.address-search {
  position: relative;
}

.address-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  margin: 0.2rem 0 0;
  padding: 0.25rem 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  max-height: 20rem;
  overflow-y: auto;
}

.address-list li {
  padding: 0.6rem 0.8rem;
  cursor: pointer;
}

.address-list li.on {
  background: var(--accent-soft);
}

.address-list li .secondary {
  color: var(--muted);
}

.address-list li.none {
  cursor: default;
  color: var(--muted);
}

/* Quellenangabe nach Vorgabe von Google: Text "Google Maps", Roboto, nicht übersetzt */
.address-list li.address-source {
  cursor: default;
  text-align: right;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: normal;
  color: #5e5e5e;
  border-top: 1px solid var(--line);
  padding: 0.35rem 0.8rem 0.15rem;
}

.address-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.3rem 0 0;
}

.address-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.address-chosen-text {
  white-space: pre-line;
  margin: 0 0 0.4rem;
}

/* Straße und Hausnummer nebeneinander; auf schmalen Bildschirmen untereinander */
.grid.street-row {
  grid-template-columns: 1fr 9rem;
}

@media (max-width: 480px) {
  .grid.street-row {
    grid-template-columns: 1fr;
  }
}

/* Spenderkonto: Meine Spenden */
.overview {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.overview h2 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.overview h3 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.4rem 0 0.5rem;
}

.overview p {
  margin: 0.3rem 0;
}

.overview ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.overview-what {
  min-width: 0;
}

.overview-type,
.overview-detail {
  display: block;
}

.overview-amount {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.overview-badge {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  background: var(--warn-bg);
  color: var(--warn);
}

.overview-badge.bad {
  background: var(--bad-bg);
  color: var(--bad);
}

/* Laufende Spenden: je eine Karte */
.overview-running {
  display: grid;
  gap: 0.6rem;
}

.overview-running li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.8rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--brand-light);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.overview-running .overview-type {
  font-weight: 600;
}

.overview-sum {
  display: grid;
  justify-items: end;
}

.overview-running .overview-amount {
  font-size: 1.1rem;
}

.overview-side {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  align-items: center;
  margin-top: 0.3rem;
}

.overview-side .overview-badge {
  margin-top: 0;
}

/* Die Aktionen des Kontos brechen auf schmalen Bildschirmen um, statt jede für sich zweizeilig zu werden */
.account .account-actions {
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
}

/* --- Gewichtung: Der Betrag ist das Wichtigste auf der Seite --------------------------------- */
.chips button {
  padding: 0.85rem 0.2rem;
  font-size: 1.15rem;
}

.chips button:hover {
  border-color: var(--brand);
}

.chips button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.money input {
  min-height: 54px;
  font-size: 1.25rem;
}

.money input::placeholder {
  font-weight: 400;
  font-size: 1rem;
  color: var(--muted);
}

#test-banner {
  font-size: 0.88rem;
  padding: 0.45rem 0.8rem;
}

/* --- Zusammenfassung über dem Spenden-Knopf --------------------------------------------------- */
.summary {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.summary h2 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.3rem;
}

.summary-amount {
  margin: 0 0 0.5rem;
}

.summary-amount strong {
  font-size: 1.7rem;
  font-weight: 650;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.summary dl {
  margin: 0;
  font-size: 0.92rem;
}

.summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}

.summary dt {
  color: var(--muted);
}

.summary dd {
  margin: 0;
  text-align: right;
  font-weight: 550;
}

/* --- Breite Bildschirme: zwei Spalten, rechts läuft die Zusammenfassung mit -------------------- */
#view-thanks,
#view-unavailable {
  max-width: 660px;
}

/* Dankesseite: mittig auf der Seite, Inhalt zentriert, Zeichen über der Überschrift */
#view-thanks {
  margin: 2rem auto 0;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

#view-thanks h1 {
  margin-top: 0.5rem;
}

#view-thanks p {
  max-width: 34rem;
  margin-inline: auto;
}

.thanks-icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
}

.thanks-icon svg {
  width: 2.4rem;
  height: 2.4rem;
}

.thanks-icon path {
  display: none;
}

#view-thanks[data-state="ok"] .icon-ok,
#view-thanks[data-state="wait"] .icon-wait,
#view-thanks[data-state="bad"] .icon-bad {
  display: inline;
}

#view-thanks[data-state="wait"] .thanks-icon {
  color: var(--warn);
  background: var(--warn-bg);
}

#view-thanks[data-state="bad"] .thanks-icon {
  color: var(--bad);
  background: var(--bad-bg);
}

@media (max-width: 480px) {
  #view-thanks {
    margin-top: 1rem;
    padding: 1.75rem 1.1rem 1.25rem;
  }
}

@media (min-width: 980px) {
  .top,
  main,
  footer {
    max-width: 1040px;
  }

  /* Dankesseite: Es gibt nur eine Spalte. Hinweis, Kontozeile und Karte stehen gleich breit in der Seitenmitte,
     statt links in der breiten Seite zu kleben. */
  main:has(#view-thanks:not([hidden])),
  main:has(#view-thanks:not([hidden])) ~ footer {
    max-width: 692px;
  }

  .form-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 0 1.25rem;
    align-items: start;
  }

  .form-side {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    margin-top: 0.7rem; /* auf Höhe der Rahmen links (deren Überschrift ragt nach oben heraus) */
  }

  .sticky-bar {
    display: none;
  }
}

/* --- Schmale Bildschirme: kompakter, Spenden-Knopf bleibt unten sichtbar ----------------------- */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.6rem 16px calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
}

.sticky-bar button.primary {
  display: block;
  max-width: 628px;
  margin: 0 auto;
}

/* Beim Tippen nimmt die Leiste über der Bildschirmtastatur nur Platz weg */
body:has(input:not([type="radio"]):not([type="checkbox"]):focus) .sticky-bar {
  display: none;
}

@media (max-width: 979px) {
  footer {
    padding-bottom: 6rem; /* Platz für die Leiste */
  }
}

@media (max-width: 480px) {
  main {
    padding-top: 0.75rem;
  }

  h1 {
    font-size: 1.6rem;
    margin-top: 0.9rem;
  }

  .lead {
    margin-bottom: 0.9rem;
  }

  .card {
    padding: 0.9rem 0.9rem 1rem;
  }

  /* PLZ und Ort sowie Straße und Hausnummer passen auch auf dem Handy nebeneinander */
  .grid.narrow-first {
    grid-template-columns: 6.5rem 1fr;
  }

  .grid.street-row {
    grid-template-columns: 1fr 7.2rem;
  }

  .grid.narrow-first,
  .grid.street-row {
    gap: 0 0.6rem;
  }
}

.summary-amount strong.empty {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
}

/* Spenderkonto: Meine Daten – je Zeile Bezeichnung, Wert, Änderung */
.data-list {
  margin: 0.4rem 0 0.8rem;
}

.data-row {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 0 0.8rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.data-label {
  color: var(--muted);
}

.data-value {
  white-space: pre-line;
  overflow-wrap: anywhere;
  min-width: 0;
}

#account-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1rem;
}

@media (max-width: 480px) {
  .data-row {
    grid-template-columns: 1fr auto;
  }

  .data-label {
    grid-column: 1 / -1;
    font-size: 0.88rem;
  }
}

/* Meine Daten: Ändern in der Zeile – das Eingabefeld tritt an die Stelle des Werts, Speichern/Abbrechen an die
   Stelle von „Ändern" */
.data-row {
  align-items: center;
  min-height: 3.1rem;
}

.data-row input:not([type="radio"]):not([type="checkbox"]) {
  min-height: 40px;
  padding: 0.35rem 0.6rem;
  max-width: 20rem;
  min-width: 0;
}

.data-actions {
  display: flex;
  gap: 0.9rem;
  white-space: nowrap;
}

.data-wide {
  grid-column: 1 / -1;
  margin: 0.3rem 0 0;
}

/* Anrede: schmale Auswahl über Vor- und Nachname */
.salutation-field select,
.data-row select {
  max-width: 14rem;
}

.data-row select {
  min-height: 40px;
  padding: 0.35rem 0.6rem;
}

/* Telefon in der Zeile: Vorwahl und Nummer nebeneinander */
.data-phone-input:not([hidden]) {
  display: flex;
  gap: 0.4rem;
  min-width: 0;
}

.data-phone-input select {
  flex: 0 1 7rem;
  min-width: 0;
}

.data-phone-input input {
  flex: 1 1 8rem;
  width: 100%;
}

/* Auf dem Handy bekommt die Nummer die ganze Breite; Senden/Abbrechen rücken darunter nach rechts. */
@media (max-width: 480px) {
  .data-phone-input {
    grid-column: 1 / -1;
    margin-bottom: 0.4rem;
  }

  .data-phone-input + input[hidden] + .data-actions {
    grid-column: 2;
  }
}

/* Anrede im Formular: zwei Knöpfe statt einer Auswahlliste */
.choice {
  display: flex;
  gap: 0.5rem;
}

.choice button {
  font: inherit;
  font-weight: 500;
  min-width: 6.5rem;
  min-height: 46px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.choice button:hover {
  border-color: var(--brand);
}

.choice button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.overview-badge.done {
  background: var(--card);
  color: var(--accent);
  border: 1px solid var(--brand-light);
}

/* Konto löschen: Code aus der Mail */
.delete-form {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.delete-form p {
  margin: 0 0 0.5rem;
}

.account .delete-form #delete-code {
  flex: 0 1 9rem;
  letter-spacing: 0.15em;
  text-align: center;
}

/* Tippflächen auf Geräten mit Fingerbedienung mindestens 44 px hoch (Prüfung vom 26.11.2026, U-5) */
@media (pointer: coarse) {
  .lang button {
    min-height: 44px;
    padding: 0.3rem 1rem;
  }
  button.textlink,
  footer a {
    display: inline-block;
    padding: 0.75rem 0;
  }
  .check {
    min-height: 44px;
    align-items: center;
  }
  .check a {
    padding: 0.75rem 0;
  }
  .segments label,
  .segments span {
    min-height: 44px;
  }
}

/* Hinweis statt des Häkchens „Spenderkonto anlegen": so groß wie die Häkchen-Texte daneben */
#account-pending-note {
  font-size: 0.92rem;
  margin-top: 0.75rem;
}
