/* Öffentliche Portal-Seiten (Helferabfrage, später Vereinsanmeldung): hell, ruhig, fürs Handy gebaut. */
@import url("portal-felder.css");
:root { color-scheme: light; }
* { box-sizing: border-box; }
body.portal { margin: 0; background: #f5f7fa; color: #1b2430;
  font: 16px/1.5 "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif; }
.portal-blatt { max-width: 44rem; margin: 0 auto; padding: 1.25rem 1rem 2rem; }
.portal-kopf { border-top: 4px solid #1f6feb; background: #fff; border-radius: 10px; padding: 1.2rem 1.25rem .9rem; margin-bottom: 1rem;
  border: 1px solid #d8dee6; }
.portal-kopf h1 { margin: 0; font-size: 1.45rem; line-height: 1.25; }
.portal-unter { margin: .35rem 0 0; color: #6b7280; }
.portal-einleitung, .portal-form, .portal-kasten, .portal-blatt > p { background: #fff; border-radius: 10px; padding: 1.1rem 1.25rem;
  border: 1px solid #d8dee6; margin: 0 0 1rem; }
.portal-einleitung p { margin: 0 0 .7rem; }
.portal-einleitung p:last-child { margin-bottom: 0; }
.portal-klein { font-size: .88rem; color: #6b7280; }
.portal-meldung { background: #fff4e5 !important; border-left: 5px solid #c47f00; font-weight: 600; }
.portal-knopf { font: inherit; font-weight: 700; font-size: 1.05rem; background: #1f6feb; color: #fff; border: 0; border-radius: 8px;
  padding: .85rem 1.6rem; cursor: pointer; width: 100%; }
.portal-knopf:hover { background: #1a5fd0; }
.portal-kasten h2 { margin: 0 0 .6rem; font-size: 1.1rem; }
.portal-qr { width: 12rem; max-width: 70%; margin: .5rem 0; }
.portal-qr svg { width: 100%; height: auto; display: block; }
.portal-fuss { text-align: center; color: #9aa3b5; font-size: .8rem; padding: 0 0 1.5rem; }
a { color: #1a5fd0; }
@media (min-width: 40rem) { .portal-knopf { width: auto; } .portal-blatt { padding-top: 2rem; } }

/* --- Vereinsanmeldung ------------------------------------------------------------------------- */
body.portal:has(.an-reiter) .portal-blatt { max-width: 62rem; }
.an-orga { background: #fff4e5; border-left: 5px solid #c47f00; padding: .6rem .9rem; border-radius: 10px; font-weight: 600; }
.an-info { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; background: #fff; border-radius: 10px; padding: .8rem 1.2rem; margin: 0 0 1rem;
  border: 1px solid #d8dee6; }
.an-klein { font-size: .88rem; color: #6b7280; }
.an-ok { background: #e8f5ee; border-left: 5px solid #2e8b57; padding: .6rem .9rem; border-radius: 10px; }
/* .portal-blatt > p (Kasten weiß) ist spezifischer als .an-ok – hier ausdrücklich zurück auf Grün. */
.portal-blatt > p.an-ok { background: #e8f5ee; border-left: 5px solid #2e8b57; }
.an-freigabe { margin: .6rem 0; }
.an-fehler { background: #fdecec; border-left: 5px solid #b42318; padding: .6rem .9rem; border-radius: 10px; font-weight: 600; }
.an-warn { color: #c47f00; font-weight: 600; }
/* Reiter wie die Phasen-Reiter im WebGUI (Theme „Reiter", gleiche Farben/Ecken): oben gerundet, der aktive sitzt auf der Linie auf. */
/* Die Grundlinie ist ein Schatten statt eines Rahmens: So verdeckt der aktive Reiter sie auch dann, wenn die
   Leiste auf dem Handy seitlich scrollt (ein Überstand nach unten würde dort eine senkrechte Laufleiste erzeugen). */
.an-reiter { display: flex; gap: .25rem; margin: 0 0 1rem; box-shadow: inset 0 -1px 0 #d8dee6; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; }
.an-reiter a { text-decoration: none; color: #6b7280; padding: .55rem 1.1rem; border: 1px solid transparent; border-bottom: 0;
  border-radius: 8px 8px 0 0; font-weight: 600; white-space: nowrap; }
.an-reiter a:hover:not(.aktiv) { color: #1b2430; background: #eef1f5; }
.an-reiter a small { font-weight: 400; color: #6b7280; }
.an-reiter a.aktiv { background: #fff; color: #1f6feb; border-color: #d8dee6; box-shadow: none; }
.an-eckdaten { display: flex; flex-wrap: wrap; gap: .5rem 2rem; background: #fff; border-radius: 10px; padding: .8rem 1.2rem; margin: 0 0 1rem;
  border: 1px solid #d8dee6; }
.an-eckdaten dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.an-eckdaten dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.an-auswahl { font: inherit; font-size: .92rem; padding: .45rem .6rem; border: 1px dashed #a9c6f7; border-radius: 8px; background: #eef4ff;
  color: #1a5fd0; width: 100%; max-width: 100%; }
.an-punkt { display: inline-block; min-width: 1.3rem; text-align: center; background: #c47f00; color: #fff; border-radius: 999px; font-size: .75rem; padding: 0 .3rem; }
.an-karte { background: #fff; border-radius: 10px; padding: 1rem 1.2rem; margin: 0 0 1rem; border: 1px solid #d8dee6; }
.an-karte h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.an-karte h3 { margin: .9rem 0 .2rem; font-size: 1rem; }
.an-karte h4 { margin: .8rem 0 .3rem; font-size: .9rem; color: #6b7280; }
.an-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .7rem 1rem; }
.an-form label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .92rem; }
.an-breit { grid-column: 1 / -1; }
.an-form input, .an-form textarea, .an-kinder input, .an-kinder select {
  font: inherit; font-size: .98rem; padding: .5rem .6rem; border: 1px solid #d8dee6; border-radius: 8px; background: #fff; width: 100%; }
.an-form input:disabled, .an-kinder input:disabled, .an-kinder select:disabled, .an-form textarea:disabled { background: #f5f7fa; color: #6b7280; }
.an-haken { flex-direction: row !important; align-items: flex-start; gap: .5rem; font-weight: 400 !important; }
.an-haken input { width: auto; margin-top: .2rem; }
.an-teamkopf { margin-bottom: .6rem; }
.an-teamkopf input[name=name] { font-weight: 700; font-size: 1.05rem; }
.an-knopf-klein { font: inherit; font-weight: 600; background: #eef4ff; color: #1a5fd0; border: 1px solid #a9c6f7; border-radius: 8px;
  padding: .4rem .7rem; cursor: pointer; white-space: nowrap; }
.an-knopf-klein:hover { background: #eef4ff; }
.an-weg { background: #fff; color: #b42318; border-color: #f0b8b8; }
.an-weg:hover { background: #fdecec; }
.an-inline { display: inline; }
.an-scroll { overflow-x: auto; }
.an-tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.an-tabelle th { text-align: left; font-size: .8rem; color: #6b7280; font-weight: 600; padding: .3rem .35rem; border-bottom: 1px solid #d8dee6; }
.an-tabelle td { padding: .3rem .35rem; border-bottom: 1px solid #eef1f5; vertical-align: top; }
.an-kinder td:nth-child(3) { min-width: 9.5rem; }
.an-kinder td:nth-child(4) { min-width: 7rem; }
.an-aktionen { white-space: nowrap; }
.an-neu td { background: #eef4ff; }
.an-doppelt td { background: #fff7e6; }
.an-summe td { font-weight: 700; }
.an-hinweise { margin: .4rem 0 .6rem; padding-left: 1.2rem; color: #c47f00; font-size: .92rem; }
.an-ruf { margin: 0 0 .2rem; font-style: italic; color: #6b7280; }
.an-loeschen { margin-top: .6rem; font-size: .9rem; }
.an-loeschen summary { cursor: pointer; color: #b42318; }
/* Handy: jede Kinderzeile wird eine kleine Karte (Vorname | Nachname, Jahrgang | Geschlecht, Knöpfe). */
@media (max-width: 40rem) {
  .an-kinder thead { display: none; }
  .an-kinder, .an-kinder tbody { display: block; }
  .an-kinder tr { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .55rem .4rem; border-bottom: 1px solid #d8dee6; }
  .an-kinder td { display: block; border: 0; padding: 0; min-width: 0 !important; }
  .an-kinder td:last-child { grid-column: 1 / -1; }
  .an-kinder td[colspan] { grid-column: 1 / -1; }
  .an-scroll { overflow-x: visible; }
  .an-kinder tr.an-doppelt { background: #fff7e6; }
  .an-kinder tr.an-doppelt td, .an-kinder tr.an-neu td { background: transparent; }
  .an-kinder tr.an-neu { background: #eef4ff; }
}

/* --- Impressum und Datenschutzerklärung ------------------------------------------------------- */
.portal-recht h2 { margin: 0 0 .6rem; font-size: 1.1rem; }
.portal-recht h2:not(:first-child) { margin-top: 1.1rem; }
.portal-recht h3 { margin: 1.1rem 0 .3rem; font-size: 1rem; }
.portal-recht p, .portal-recht ul { margin: 0 0 .6rem; }
.portal-recht p:last-child, .portal-recht ul:last-child { margin-bottom: 0; }
.portal-recht ul { padding-left: 1.2rem; }
.portal-fuss a { color: inherit; }
.portal-zurueck { margin: 0 0 .8rem; }

/* Wortmarke: Grundfarben für helle Flächen, im dunklen Kopf die Dunkel-Variante */
.marke-bild { display: block; height: 34px; width: auto; max-width: none; }
.marke-kidz { fill: var(--marke-kidz, #101828); }
.marke-kreis { fill: var(--marke-kreis, #E8A317); }
.marke-c { fill: var(--marke-c, #fff); }
.marke-app { fill: var(--marke-app, #2E5CFF); }
.portal-marke { margin-bottom: 14px; }
