/* ==========================================================================
   Helle Gestaltung für Profil und Benutzerverwaltung (body.thema-hell, siehe THEMA_HELL_SEITEN)
   nach Designpaket „Profil-Redesign“; andere Seiten bleiben unverändert.
   Werte: design-tokens.css (Präfix --profile-…). Profilspezifisches: .pf-*
   ========================================================================== */
body.thema-hell {
  --profile-bg: #f6f7f3;
  --profile-surface: #ffffff;
  --profile-header: #244647;
  --profile-header-border: #dca263;
  --profile-text: #183b3b;
  --profile-muted: #667b79;
  --profile-primary: #2f6660;
  --profile-icon: #2c7166;
  --profile-icon-bg: #e5f1eb;
  --profile-gold: #dca05b;
  --profile-input-border: #cbd9d2;
  --profile-input-bg: #fcfdfb;
  --profile-card-border: #e1e8e3;
  --profile-meta-bg: #f2f6f3;
  --profile-meta-border: #e6eee9;
  --profile-success-bg: #eaf6ee;
  --profile-success-text: #28765c;
  --profile-warning-bg: #fff8ec;
  --profile-warning-text: #8a5a26;
  --profile-error: #b3372a;
  --profile-radius-card: 19px;
  --profile-radius-input: 10px;
  --profile-radius-icon: 15px;
  --profile-shadow: 0 12px 36px rgba(24, 59, 59, .045), 0 2px 8px rgba(24, 59, 59, .02);
  --profile-max-width: 1010px;
  /* Kopfband */
  --pm-emblem: 56px;
  --pm-band: calc(max(1.5rem, env(safe-area-inset-top)) + var(--pm-emblem) + 1.1rem);
  --name: clamp(1.05rem, 2.2vw, 1.3rem);          /* Vereinsname im Kopf etwas kompakter */
  background: var(--profile-bg);
}
html:has(> body.thema-hell) { background: var(--profile-bg); }

/* Platz für die Bildlaufleiste immer freihalten: kurze Seiten (Crew-Board) und lange (Profil)
   stehen sonst um die Breite der Leiste versetzt, Kopf und Logo springen beim Seitenwechsel */
html:has(body.thema-hell) { scrollbar-gutter: stable; }

/* ---- Kopf: dunkles Vereinsband mit goldener Unterkante, Original-Logo ---- */
.thema-hell .page::after { display: none; }
.thema-hell .page::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: var(--pm-band);
  background: var(--profile-header); border-bottom: 3px solid var(--profile-header-border);
}
.thema-hell .page--text .site-header {
  padding-bottom: calc(1.1rem + 3px + clamp(1.4rem, 3vw, 2rem));    /* Marke links am Seitenrand wie auf der übrigen Website */
}
.thema-hell .brand__emblem { height: var(--pm-emblem); }
.thema-hell .crew-link {
  top: calc(max(1.5rem, env(safe-area-inset-top)) + (var(--pm-emblem) - 2.25rem) / 2);
}
/* Keine grüne Fußleiste auf diesen Seiten (ohne Menüleiste bleibt sie leer) */
.thema-hell .site-footer { display: none; }

/* ---- Inhaltsfläche ---- */
.thema-hell .pm {
  width: 100%; min-width: 0; max-width: var(--profile-max-width); justify-self: start;   /* linksbündig wie die Marke im Kopf */
  padding-inline: 0;
  color: var(--profile-text); font-size: .9375rem; line-height: 1.5;
}
.pm-zurueck {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  color: var(--profile-primary); font-size: .85rem; font-weight: 700; text-decoration: none;
}
.pm-zurueck svg { width: 16px; height: 16px; }
.pm-zurueck:hover { text-decoration: underline; text-underline-offset: .2em; }
.pm-titel { display: grid; gap: .35rem; margin: .25rem 0 1.4rem; }
.thema-hell .pm .content__title {
  margin: 0; font-family: var(--sans); font-weight: 750; font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  line-height: 1.1; letter-spacing: -.015em; color: var(--profile-text);
}
.content .pm-titel__zusatz { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--profile-muted); }

/* Meldungen (Erfolg/Fehler) */
.pm-meldungen:not(:has(.form-note)) { display: none; }
.pm-meldungen { display: grid; gap: .6rem; margin-bottom: 18px; }
.thema-hell .pm .form-note {
  margin: 0; padding: .8rem 1rem; border: 0; border-radius: 12px; font-family: var(--sans); font-size: .92rem;
  background: #fdeeec; color: var(--profile-error);
}
.thema-hell .pm .form-note--ok { background: var(--profile-success-bg); color: var(--profile-success-text); }
.thema-hell .pm .form-note:not(.form-note--ok)::before,
.thema-hell .pm .field__error::before { background: var(--profile-error); color: #fff; }

/* ---- Karten ---- */
.pm-stapel { display: grid; gap: 18px; }
.pf-form { display: grid; gap: 18px; }
.pf-form + .pm-karte { margin-top: 18px; }
.pm-karte {
  padding: 28px 30px; border: 1px solid var(--profile-card-border); border-radius: var(--profile-radius-card);
  background: var(--profile-surface); box-shadow: var(--profile-shadow);
}
.pm-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pm-icon {
  flex: none; display: grid; place-items: center; width: 49px; height: 49px;
  border-radius: var(--profile-radius-icon); background: var(--profile-icon-bg); color: var(--profile-icon);
}
.pm-icon svg { width: 32px; height: 32px; }
.thema-hell .pm h2.pm-kopf__titel { margin: 0; font-family: var(--sans); font-size: 1.375rem; font-weight: 750; line-height: 1.2; color: var(--profile-text); }
.content .pm-kopf__text { margin: .15rem 0 0; font-size: .82rem; color: var(--profile-muted); }

/* Anmeldename, Rolle, Pilotennummer – drei getrennte, nicht editierbare Kacheln */
.pf-fest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(9rem, .4fr); gap: 12px; margin: 0 0 22px; }   /* Pilotennummer schmal */
.pf-fest div { padding: 12px 14px; border: 1px solid var(--profile-meta-border); border-radius: 11px; background: var(--profile-meta-bg); }
.pf-fest dt { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--profile-muted); }
.pf-fest dd { margin: .3rem 0 0; font-size: .95rem; font-weight: 700; overflow-wrap: anywhere; }

.pm-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.pm-karte .pm-zwei + .field { margin-top: 18px; }

/* ---- Formularfelder (überschreibt die dunklen Grundregeln aus main.css) ---- */
.thema-hell .pm .field label:not(.pf-prim):not(.bv-chip),
.thema-hell .pm .pf-gruppe legend,
.thema-hell .pm .bv-rollen legend {
  display: block; margin: 0 0 6px; padding: 0; font-size: .75rem; font-weight: 650; letter-spacing: 0;
  text-transform: none; opacity: 1; color: var(--profile-text);
}
.thema-hell .pm .req { color: #c27a2c; }
.thema-hell .pm .field input:not([type="checkbox"]):not([type="radio"]),
.thema-hell .pm .field select {
  min-height: 49px; padding: 0 14px; border: 1px solid var(--profile-input-border); border-radius: var(--profile-radius-input);
  background: var(--profile-input-bg); color: var(--profile-text); font-family: var(--sans); font-size: .95rem;
  box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.thema-hell .pm .field input:not([type="checkbox"]):not([type="radio"]):hover,
.thema-hell .pm .field select:hover { border-color: #a9c2b8; }
.thema-hell .pm .field select { width: 100%; padding-right: 36px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667b79' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.thema-hell .pm .field input[readonly] { background: var(--profile-meta-bg); color: var(--profile-muted); }
.thema-hell .pm .field input:not([type="checkbox"]):not([type="radio"]):focus,
.thema-hell .pm .field select:focus {
  outline: none; border-color: var(--profile-primary); box-shadow: 0 0 0 3px rgb(47 102 96 / .18);
}
.thema-hell .pm .field input:not([type="checkbox"]):not([type="radio"])[aria-invalid="true"],
.thema-hell .pm .pf-gruppe[aria-invalid="true"] .pf-zeile input:not([type="radio"]) {
  border-color: var(--profile-error); box-shadow: 0 0 0 3px rgb(179 55 42 / .12);
}
.thema-hell .pm .field__error { margin-top: .4rem; font-size: .82rem; color: var(--profile-error); }

/* Rufzeichen-Hinweis */
.content .pf-vorschau-box {
  margin: 10px 0 0; padding: 10px 14px; border-radius: var(--profile-radius-input);
  background: var(--profile-warning-bg); color: var(--profile-warning-text); font-size: .82rem;
}
.pf-vorschau { margin-left: .25rem; font-weight: 800; color: var(--profile-warning-text); }
.pf-vorschau-box__zusatz { display: block; margin-top: .15rem; opacity: .85; }

/* ---- Kontakte ---- */
.pf-gruppe { margin: 0; padding: 0; border: 0; min-width: 0; }
.pf-liste { display: grid; gap: 10px; }
.pf-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 10px; }
.pf-zeile > input { grid-column: 1; min-width: 0; }

/* Primärkontakt: gewählt = grünes Etikett mit Haken, sonst „Als Primär wählen“ */
.pf-prim { position: relative; display: inline-flex; cursor: pointer; }
.pf-prim input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pf-prim span {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--profile-input-border); background: #fff; color: var(--profile-muted);
  font-size: .8rem; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s;
}
.pf-prim span b { font-weight: 700; }
.pf-prim svg { display: none; width: 14px; height: 14px; }
.pf-prim__an { display: none; }
.pf-prim:hover span { border-color: var(--profile-primary); color: var(--profile-primary); }
.pf-prim input:checked + span { border-color: transparent; background: var(--profile-success-bg); color: var(--profile-success-text); }
.pf-prim input:checked + span svg { display: block; }
.pf-prim input:checked + span .pf-prim__an { display: inline; }
.pf-prim input:checked + span .pf-prim__aus { display: none; }
.pf-prim input:focus-visible + span { outline: 2px solid var(--profile-primary); outline-offset: 2px; }

.pf-weg {
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--profile-input-border); border-radius: var(--profile-radius-input);
  background: #fff; color: var(--profile-muted); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.pf-weg:hover, .pf-weg:focus-visible { border-color: var(--profile-error); color: var(--profile-error); outline: none; }
.pf-liste .pf-zeile:only-child .pf-weg { display: none; }
.content .pf-status {
  grid-column: 1 / -1; margin: 0; padding: 6px 10px; border-radius: 8px;
  background: var(--profile-warning-bg); color: var(--profile-warning-text); font-size: .8rem;
}
.pf-erneut { margin-left: .3em; padding: 0; border: 0; background: none; color: var(--profile-primary); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.pf-plus {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: 4px; padding: 0;
  border: 0; background: none; color: var(--profile-primary); font-family: var(--sans); font-size: .85rem; font-weight: 700; cursor: pointer;
}
.pf-plus svg { width: 15px; height: 15px; }
.pf-plus:hover { text-decoration: underline; text-underline-offset: .2em; }
.pf-plus:focus-visible, .pm-zurueck:focus-visible, .pf-erneut:focus-visible { outline: 2px solid var(--profile-primary); outline-offset: 3px; border-radius: 4px; }
.content .pf-hinweis { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--profile-muted); }

/* ---- Dein Zugang ---- */
.pm-zugang { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.pm-zugang:has(> .pf-pw[open]) { flex-direction: column; align-items: stretch; }
.content .pm-zugang__text { flex: 1 1 22rem; margin: 0; max-width: 40rem; font-size: .92rem; color: #3f5856; }
.pf-pw > summary {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1.5px solid #8fb5aa; border-radius: var(--profile-radius-input);
  background: #fff; color: var(--profile-text); font-family: var(--sans); font-size: .92rem; font-weight: 700;
  cursor: pointer; list-style: none; transition: border-color .15s, background-color .15s;
}
.pf-pw > summary::-webkit-details-marker { display: none; }
.pf-pw > summary:hover { border-color: var(--profile-primary); background: #f7faf8; }
.pf-pw > summary:focus-visible { outline: 2px solid var(--profile-primary); outline-offset: 3px; }
.pf-pw[open] > summary { margin-bottom: 18px; }
.pm-pwform { display: grid; gap: 16px; max-width: 46rem; }

/* ---- Schaltflächen ---- */
.pm-knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border: 0; border-radius: var(--profile-radius-input); font-family: var(--sans); font-size: .95rem; font-weight: 750;
  text-decoration: none; cursor: pointer; transition: background-color .15s, box-shadow .15s, opacity .15s;
}
.pm-knopf--gold { background: var(--profile-gold); color: var(--profile-text); box-shadow: 0 6px 16px -8px rgb(220 160 91 / .8); }
.pm-knopf--gold:hover { background: #d2914a; }
.pm-knopf--gold:disabled { opacity: .55; cursor: default; box-shadow: none; }
.pm-knopf--still { background: transparent; color: var(--profile-muted); }
.pm-knopf--still:hover { color: var(--profile-text); }
.pm-knopf:focus-visible { outline: 2px solid var(--profile-primary); outline-offset: 3px; }
.pm-unsichtbar { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ---- Aktionsleiste über die volle Fensterbreite ---- */
.pm-leiste {
  position: relative; margin-top: 34px; padding: 14px 0;
}
.pm-leiste__innen { display: flex; align-items: center; gap: 12px; max-width: var(--profile-max-width); margin-inline: auto; padding-inline: max(var(--pad), 24px); }
.pm-leiste__innen { width: 100%; margin: 0; padding-inline: 0; }
/* Fläche und Trennlinie reichen über die ganze Fensterbreite (abgeschnitten von .page) */
.pm-leiste::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -100vw; right: -100vw;
  border-top: 1px solid rgba(47, 102, 96, .22); background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* „Zum Startplatz“ im typischen Stil der Website (kurze Linie davor), Farben für die helle Fläche */
.thema-hell .pm .pm-leiste__start { margin: 0 auto 0 0; font-size: .9rem; letter-spacing: .06em; }
.thema-hell .pm .pm-leiste__start::before { background: var(--profile-gold); }
.thema-hell .pm .content__action a { color: var(--profile-text); }
.thema-hell .pm .content__action a:hover,
.thema-hell .pm .content__action a:focus-visible { color: var(--profile-primary); }

/* Einleitung über den Kontaktfeldern */
.content .pf-intro { margin: -4px 0 18px; font-size: .88rem; line-height: 1.55; color: #3f5856; }

/* „Nach oben“ */
.pm-nachoben {
  position: fixed; right: max(var(--pad), env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 20;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--profile-header); color: #fff; box-shadow: 0 8px 20px -8px rgb(24 59 59 / .55);
  transition: transform .15s, background-color .15s;
}
.pm-nachoben[hidden] { display: none; }
.pm-nachoben svg { width: 27px; height: 27px; transform: rotate(90deg); }
.pm-nachoben:hover { background: var(--profile-primary); transform: translateY(-2px); }
.pm-nachoben:focus-visible { outline: 3px solid var(--profile-gold); outline-offset: 3px; }

/* ---- Einblenden ---- */
@media (prefers-reduced-motion: no-preference) {
  .thema-hell .pm-karte { animation: pm-ein .4s cubic-bezier(.2, .7, .2, 1) both; }
  .thema-hell .pf-form .pm-karte:nth-of-type(2) { animation-delay: .05s; }
  .thema-hell .pf-form + .pm-karte { animation-delay: .1s; }
  @keyframes pm-ein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---- Bis 720 px: Felder untereinander, Metadaten zweispaltig ---- */
@media (max-width: 720px) {
  .pm-karte { padding: 21px 18px; }
  .pf-fest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-fest div:nth-child(3) { grid-column: 1 / -1; }
  .pm-zwei { grid-template-columns: 1fr; }
  .pm-zwei--kontakt { gap: 22px; }
  .pf-zeile { grid-template-columns: minmax(0, 1fr) auto; }
  .pf-zeile .pf-prim { grid-column: 1; grid-row: 2; justify-self: start; }
  .pf-zeile .pf-weg { grid-column: 2; grid-row: 1; }
  .pm-zugang { flex-direction: column; align-items: flex-start; }
}
/* Unter 600 px gibt es keine Menüleiste unten – dort bleibt die Aktionsleiste am Fensterrand */
@media (max-width: 599px) {
  body.thema-hell { --pm-emblem: 46px; }
  .pm-leiste { position: sticky; bottom: 0; z-index: 5; margin-bottom: calc(max(1.5rem, env(safe-area-inset-bottom)) * -1); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .pm-leiste__innen { padding-inline: 0; }
  .pm-nachoben { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 136px); }  /* über der angehefteten Aktionsleiste */
}
@media (max-width: 369px) {
  .pf-fest { grid-template-columns: 1fr; }
}

/* Grundregeln aus main.css (Links in Amber, Großbuchstaben an Beschriftungen) für diese Seite neutralisieren */
.thema-hell .pm a.pm-zurueck { color: var(--profile-primary); }
.thema-hell .pm a.pm-knopf--still { color: var(--profile-muted); }
.thema-hell .pm a.pm-knopf--still:hover { color: var(--profile-text); }
.thema-hell .pm .field label.pf-prim { margin: 0; font-size: inherit; letter-spacing: 0; text-transform: none; opacity: 1; }

/* Logo auch auf dem Handy zeigen (sonst blendet main.css das Emblem auf Inhaltsseiten aus) */
@media (max-width: 599px) {
  body.thema-hell { --name: min(1.05rem, calc((100vw - 2 * var(--pad) - 118px - var(--pm-emblem) - .6rem) / 15.8)); }
  /* Sehr schmal: „Abflug“ nur als Symbol, damit der Vereinsname lesbar bleibt */
  @media (max-width: 420px) {
    body.thema-hell { --name: min(1.05rem, calc((100vw - 2 * var(--pad) - 52px - var(--pm-emblem) - .6rem) / 15.8)); }
    .thema-hell .brand { padding-right: 52px !important; }
    .thema-hell .crew-link { padding: 0 .3rem; }
    .thema-hell .crew-link__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  }
  .thema-hell .brand__emblem { display: block; }
  .thema-hell .brand { gap: .6rem; padding-right: 118px; }        /* Platz für „Abflug“ oben rechts */
  .thema-hell .pm { padding-inline: 0; }
}
/* Text im Zugang nimmt in Spaltenrichtung keine feste Höhe ein */
.pm-zugang:has(> .pf-pw[open]) .pm-zugang__text { flex-basis: auto; }
@media (max-width: 720px) { .content .pm-zugang__text { flex-basis: auto; } }
.pf-liste .pf-zeile:only-child > input { grid-column: 1 / -1; }
@media (min-width: 721px) { .pf-liste .pf-zeile:only-child > input { grid-column: 1; } }

/* Aktionsleiste: alles in einer Zeile. Reicht der Platz nicht, heißt der Knopf nur „Speichern“
   und Innenränder sowie Abstände werden so klein wie möglich (Container-Abfrage auf die Leiste). */
.pm-leiste__innen { container-type: inline-size; gap: 0; }
.pm-leiste__innen > .pm-knopf { margin-left: 12px; }
.pm-kurz { display: none; }
@container (max-width: 470px) {
  .pm-lang { display: none; }
  .pm-kurz { display: inline; }
  .pm-leiste__innen > .pm-knopf { margin-left: 6px; padding-inline: 10px; }
  .pm-leiste__innen > .pm-knopf--still { padding-inline: 6px; }
  .thema-hell .pm .pm-leiste__start { gap: .5rem; font-size: .82rem; letter-spacing: .03em; }
  .thema-hell .pm .pm-leiste__start::before { width: 1.4rem; }
}
@container (max-width: 300px) {
  .pm-leiste__innen > .pm-knopf { margin-left: 4px; padding-inline: 8px; font-size: .88rem; }
  .pm-leiste__innen > .pm-knopf--still { padding-inline: 4px; }
  .thema-hell .pm .pm-leiste__start { gap: .35rem; font-size: .78rem; letter-spacing: 0; }
  .thema-hell .pm .pm-leiste__start::before { width: .9rem; }
}

/* Gleiche Breite für „Passwort ändern“, „Änderungen speichern“ und das Primärkontakt-Etikett */
.thema-hell { --pm-knopf-breite: 12.5rem; }   /* längste Beschriftung „Änderungen speichern“ + 20 px Innenabstand je Seite */
.pf-pw > summary,
.pm-leiste [data-speichern],
.pf-prim span { width: var(--pm-knopf-breite); justify-content: center; }
.pf-prim { flex: none; }
/* Damit daneben genug Platz für die Eingabe bleibt: E-Mail und Handy erst ab 1100 px nebeneinander */
@media (max-width: 1100px) { .pm-zwei--kontakt { grid-template-columns: 1fr; gap: 22px; } }
/* Kompakte Aktionsleiste (wenig Platz): „Speichern“ wieder so breit wie nötig */
@container (max-width: 470px) { .pm-leiste__innen > [data-speichern] { width: auto; } }

/* Knöpfe optisch untereinander: rechte Kanten an der Innenkante der Karten.
   Kontaktzeile: Eingabe | Entfernen | Primärkontakt – das Etikett steht immer ganz rechts. */
@media (min-width: 721px) {
  .pf-zeile .pf-weg { grid-column: 2; grid-row: 1; }
  .pf-zeile .pf-prim { grid-column: 3; grid-row: 1; }
  .pf-zeile .pf-status { grid-row: 2; }
}
.pm-leiste__innen { padding-right: 31px; }                       /* Kartenpolster 30 px + Rahmen */
@media (max-width: 720px) { .pm-leiste__innen { padding-right: 19px; } }
/* Feste Knopfbreite: Text mittig, kein Zeilenumbruch (Innenabstand ergibt sich aus der Breite) */
.pf-pw > summary,
.pm-leiste [data-speichern],
.pf-prim span { padding-inline: 0; white-space: nowrap; }
@container (max-width: 470px) { .pm-leiste__innen > .pm-knopf[data-speichern] { padding-inline: 10px; } }
@container (max-width: 300px) { .pm-leiste__innen > .pm-knopf[data-speichern] { padding-inline: 8px; } }

/* ---- Hintergrundfoto (Sonnenaufgang über der Wiese, Monitor der Drohnensteuerung) ----
   Fest hinter dem Inhalt. Die reduzierte Lasur macht das Bild erkennbar, während
   die Formularkarten selbst voll deckend bleiben und lesbar sind. */
body.thema-hell::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(246 247 243 / .68) 0%, rgb(246 247 243 / .52) 52%, rgb(246 247 243 / .24) 100%),
    url("../img/hintergrund-kitzsuche-sonnenaufgang-1700.jpg") 72% 60% / cover no-repeat;
  background:
    linear-gradient(90deg, rgb(246 247 243 / .68) 0%, rgb(246 247 243 / .52) 52%, rgb(246 247 243 / .24) 100%),
    image-set(url("../img/hintergrund-kitzsuche-sonnenaufgang-1700.webp") type("image/webp"),
              url("../img/hintergrund-kitzsuche-sonnenaufgang-1700.jpg") type("image/jpeg")) 72% 60% / cover no-repeat;
}
/* Tablet und Mobile: etwas stärkere Lasur für lesbare Navigation und sichere Kontraste */
@media (max-width: 1100px) {
  body.thema-hell::before {
    background:
      linear-gradient(180deg, rgb(246 247 243 / .66) 0%, rgb(246 247 243 / .72) 40%, rgb(246 247 243 / .78) 100%),
      url("../img/hintergrund-kitzsuche-sonnenaufgang-900.jpg") 30% 30% / cover no-repeat;
    background:
      linear-gradient(180deg, rgb(246 247 243 / .66) 0%, rgb(246 247 243 / .72) 40%, rgb(246 247 243 / .78) 100%),
      image-set(url("../img/hintergrund-kitzsuche-sonnenaufgang-900.webp") type("image/webp"),
                url("../img/hintergrund-kitzsuche-sonnenaufgang-900.jpg") type("image/jpeg")) 30% 30% / cover no-repeat;
  }
}
/* Bis 720 px: Etikett und „Passwort ändern“ rechtsbündig – rechte Kanten untereinander mit „Speichern“ */
@media (max-width: 720px) {
  .pf-zeile .pf-prim { justify-self: end; grid-column: 1 / -1; }
  .pm-zugang { align-items: stretch; }
  .pm-zugang .pf-pw { align-self: flex-end; }
  .pm-zugang:has(> .pf-pw[open]) .pf-pw { align-self: stretch; }
  .pm-zugang:has(> .pf-pw[open]) .pf-pw > summary { margin-left: auto; display: flex; }
}
/* ---- Aktionsleiste: transparenter Bereich, kontrastreiche Bedienelemente ----
   Kein flächiger Hintergrund – auch nicht per ::before oder auf Mobilgeräten.
   Die bestehenden Vereinsfarben werden lediglich kräftiger abgestuft. */
.thema-hell .pm-leiste,
.thema-hell .pm-leiste__innen {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.thema-hell .pm-leiste::before {
  background: transparent;
  border-top: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* Farb- und Schriftstil wie die Seitenüberschrift: dunkles Petrolgrün ohne Textschatten */
.thema-hell .pm .pm-leiste__start,
.thema-hell .pm .content__action a,
.thema-hell .pm a.pm-knopf--still,
.thema-hell .pm-leiste .pm-knopf--still {
  color: var(--profile-text);
  opacity: 1;
  font-weight: 750;
  text-shadow: none;
}
.thema-hell .pm .pm-leiste__start::before { background: #b8742e; }
.thema-hell .pm .content__action a:hover,
.thema-hell .pm .content__action a:focus-visible,
.thema-hell .pm a.pm-knopf--still:hover,
.thema-hell .pm a.pm-knopf--still:focus-visible,
.thema-hell .pm-leiste .pm-knopf--still:hover {
  color: #065a4b;
}
/* Nur der Button selbst erhält eine deckende Goldfläche – nicht die Leiste. */
.thema-hell .pm-leiste .pm-knopf--gold {
  background: #eaa34f;
  color: #153b35;
  opacity: 1;
  box-shadow: 0 3px 12px rgb(21 56 48 / .32);
  font-weight: 750;
  text-shadow: none;
}
.thema-hell .pm-leiste .pm-knopf--gold:hover { background: #f4bc72; }
.thema-hell .pm-leiste .pm-knopf--gold:disabled {
  opacity: .85;
  box-shadow: 0 2px 6px rgb(21 56 48 / .20);
  cursor: default;
}
.thema-hell .pm-leiste .pm-knopf:focus-visible {
  outline: 3px solid #165e50;
  outline-offset: 3px;
}

/* ---- Crew-Board (/intern): Kacheln als helle Karten ---- */
.pm-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
/* Gruppen (Einsatz · Verwaltung) durch Abstand und eine feine Linie getrennt */
.pm-kacheln + .pm-kacheln { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--profile-card-border); }
.thema-hell .pm a.pm-kachel {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 22px 22px 22px 24px;
  border: 1px solid var(--profile-card-border); border-radius: var(--profile-radius-card); background: var(--profile-surface);
  box-shadow: var(--profile-shadow); color: var(--profile-text); text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.thema-hell .pm a.pm-kachel:hover { border-color: var(--profile-primary); transform: translateY(-2px); }
.thema-hell .pm a.pm-kachel:focus-visible { outline: 2px solid var(--profile-primary); outline-offset: 3px; }
.pm-kachel__inhalt { display: grid; gap: .2rem; min-width: 0; flex: 1; }
.pm-kachel__titel { font-size: 1.2rem; font-weight: 750; line-height: 1.2; }
.pm-kachel__info { font-size: .85rem; color: var(--profile-muted); }
.content .pm-karte > .pm-kachel__info { margin: 0; }
.pm-kachel__pfeil { flex: none; display: grid; color: var(--profile-primary); transition: transform .15s; }
.pm-kachel__pfeil svg { width: 18px; height: 18px; transform: rotate(180deg); }
.pm-kachel:hover .pm-kachel__pfeil { transform: translateX(3px); }

/* ---- Anmeldung zum Crew-Board (/login_intern): Karte mittig ---- */
.thema-hell .pm-login { justify-self: center; max-width: 27rem; }
.pm-login .pm-zurueck { display: flex; justify-content: center; }
.pm-login__karte { display: grid; justify-items: center; gap: 0; text-align: center; padding-top: 30px; }
.pm-login__icon { margin-bottom: 14px; }
.thema-hell .pm-login .content__title { margin: 0; font-size: clamp(1.6rem, 4vw, 2rem); }
.pm-login .pm-titel__zusatz { margin: .3rem 0 0; }
.content--login.pm-login .form { width: 100%; max-width: none; margin-top: 22px; text-align: left; }
.content--login.pm-login .form-note { width: 100%; margin: 16px 0 0; text-align: left; }
.content--login.pm-login .form .form-note { margin: 0; }
.pm-login__knopf { width: 100%; justify-content: center; }
.thema-hell .pm-login .login__links { margin: 18px 0 0; font-size: .875rem; }
.thema-hell .pm-login .login__links a { color: var(--profile-primary); font-weight: 650; text-decoration: none; }
.thema-hell .pm-login .login__links a:hover { text-decoration: underline; text-underline-offset: .2em; }
