/* Gemeinsame Kopfzeile (kopfzeile.php) – öffentliche Seiten und Mitgliederbereich */
.kopf { background: #fff; border-bottom: 4px solid #C8121C; }
.kopf-innen { position: relative; max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
/* Sprachwahl in einer schmalen eigenen Zeile oben rechts (überdeckt nichts, nimmt der Menüzeile keine Breite):
   zeigt die aktuelle Sprache, klappt eine Liste auf */
.sprachwahl { position: relative; order: -1; flex-basis: 100%; text-align: right; margin: -8px 0 -14px;
  z-index: 20; font-size: 13px; font-weight: 600; }
.sprachwahl summary { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; color: #3A4440; border: 1px solid #D9DDD6;
  border-radius: 4px; background: #fff; cursor: pointer; list-style: none; }
.sprachwahl summary::-webkit-details-marker { display: none; }
.sprachwahl summary:hover, .sprachwahl[open] summary { color: #8E0B13; border-color: #8E0B13; }
.sprachwahl-pfeil { width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.sprachwahl[open] .sprachwahl-pfeil { transform: translateY(1px) rotate(-135deg); }
.sprachwahl ul { position: absolute; right: 0; top: calc(100% + 4px); min-width: 140px; margin: 0; text-align: left; padding: 4px; list-style: none;
  background: #fff; border: 1px solid #D9DDD6; border-radius: 6px; box-shadow: 0 6px 18px rgba(24, 32, 29, .15); }
.sprachwahl li a, .sprachwahl li > span { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 4px; color: #18201D; text-decoration: none; font-size: 14px; }
.sprachwahl li a:hover { background: #F1F2EE; color: #8E0B13; }
.sprachwahl li > span[aria-current] { background: #F1F2EE; color: #8E0B13; font-weight: 700; }
.sprachwahl-haken { color: #C8121C; }
.kopf-logo { display: flex; }
.kopf-logo img { height: 84px; width: auto; display: block; }
.hauptmenue { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.hauptmenue a { text-decoration: none; padding: 12px; font-weight: 600; color: #18201D; }
.hauptmenue a:hover { color: #8E0B13; }
.hauptmenue a[aria-current=page] { color: #8E0B13; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.hauptmenue .menue-mitglieder { color: #fff; background: #C8121C; padding: 12px 18px; border-radius: 6px; margin-left: 6px; }
.hauptmenue .menue-mitglieder:hover { background: #8E0B13; color: #fff; }
.hauptmenue .menue-mitglieder[aria-current=page] { color: #fff; text-decoration: none; }
/* Angemeldet: Name klein unter „Mitgliederbereich“ */
.hauptmenue .menue-mitglieder.angemeldet { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; padding: 7px 18px; }
.hauptmenue .menue-mitglieder.angemeldet small { font-size: 12px; font-weight: 500; opacity: .9; }
.hauptmenue .menue-mitglieder.angemeldet small::before { content: "● "; color: #9BE29B; }
/* Mitgliederbereich: Passwort ändern und Abmelden klein neben dem Knopf */
.menue-gruppe { display: inline-flex; flex-direction: column; align-items: stretch; gap: 3px; margin-left: 6px; }
.menue-gruppe .menue-mitglieder { margin-left: 0; }
.menue-konto { display: flex; justify-content: center; gap: 12px; font-size: 13px; line-height: 1.3; }
.hauptmenue .menue-konto a, .menue-konto button { padding: 2px 0; border: 0; background: none; font: inherit; font-weight: 500; color: #3A4440; text-decoration: none; cursor: pointer; }
.hauptmenue .menue-konto a:hover, .menue-konto button:hover { color: #8E0B13; text-decoration: underline; }
.menue-konto form { margin: 0; }
.menue-knopf { display: none; }

/* Handy: Menü hinter einem Knopf (nur mit JavaScript – ohne bleibt es einfach sichtbar) */
@media (max-width: 860px) {
  .kopf-innen { padding: 10px 16px; }
  .sprachwahl { order: 2; flex-basis: auto; margin: 0 0 0 auto; }
  .sprachwahl summary { min-height: 44px; padding: 0 12px; }
  .menue-knopf { order: 3; }
  .hauptmenue { order: 4; }
  .kopf-logo img { height: 60px; }
  .js .menue-knopf { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 2px solid #18201D; border-radius: 6px; background: #fff; color: #18201D; font: inherit; font-weight: 600; cursor: pointer; }
  .menue-symbol, .menue-symbol::before, .menue-symbol::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .menue-symbol::before, .menue-symbol::after { content: ""; position: absolute; left: 0; }
  .menue-symbol::before { top: -6px; }
  .menue-symbol::after { top: 6px; }
  .menue-knopf[aria-expanded=true] .menue-symbol { background: transparent; }
  .menue-knopf[aria-expanded=true] .menue-symbol::before { transform: translateY(6px) rotate(45deg); }
  .menue-knopf[aria-expanded=true] .menue-symbol::after { transform: translateY(-6px) rotate(-45deg); }
  .hauptmenue { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .js .hauptmenue:not(.offen) { display: none; }
  .hauptmenue a { padding: 14px 4px; border-top: 1px solid #D9DDD6; }
  .hauptmenue .menue-mitglieder { margin: 12px 0 4px; text-align: center; }
  .menue-gruppe { margin: 12px 0 4px; }
  .menue-gruppe .menue-mitglieder { margin: 0; }
  .menue-konto { gap: 20px; margin: 4px 0 8px; font-size: 15px; }
  .hauptmenue .menue-konto a, .menue-konto button { padding: 8px 4px; border-top: 0; }
}

/* Nur in der lokalen Testversion (USB-Stick): Marke oben rechts, damit man sie nicht mit der echten Homepage verwechselt */
.lokal-marke { position: fixed; top: 0; right: 130px; z-index: 1000; padding: 2px 12px 3px; background: #FFE27A; color: #4A3700; border: 1px solid #B7860B; border-top: 0; border-radius: 0 0 8px 8px;
               font: 600 12px/1.3 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .03em; white-space: nowrap; pointer-events: none; }
.lokal-marke span { color: #B7860B; }
@media print { .lokal-marke { display: none; } }
@media (max-width: 760px) { .lokal-marke { right: 8px; font-size: 11px; padding: 1px 8px 2px; } }
/* „Vorschlag“ (Vorstand, Admin, Empfänger) farbig hinterlegt, damit er auffällt */
.hauptmenue .menue-konto a.menue-vorschlag { padding: 1px 8px; border-radius: 999px; background: #FFE27A; color: #4A3700; font-weight: 600; }
.hauptmenue .menue-konto a.menue-vorschlag:hover { background: #F5C842; color: #18201D; text-decoration: none; }
@media (max-width: 900px) { .hauptmenue .menue-konto a.menue-vorschlag { padding: 6px 12px; } }

/* Glöckchen (angemeldet): Benachrichtigungen mit Zahl der ungelesenen – rechts neben dem Menü, am Handy neben dem Menüknopf */
.kopf-innen .hauptmenue { margin-left: auto; }
.glocke { order: 5; position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 2px solid #18201D; border-radius: 50%; background: #fff; color: #18201D; text-decoration: none; }
.glocke:hover, .glocke:focus-visible, .glocke[aria-current] { background: #18201D; color: #fff; }
.glocke-zahl { position: absolute; top: -6px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px;
  background: #C8121C; color: #fff; font: 700 12px/22px Barlow, "Helvetica Neue", sans-serif; text-align: center; border: 2px solid #fff; }
.glocke.leer { border-color: #8E9790; color: #5B6661; }
@media (max-width: 860px) { .glocke { order: 2; margin-left: auto; } .glocke + * { margin-left: 0; } }
/* Text für Vorleseprogramme (die öffentliche Seite kennt .sr-only nicht) */
.glocke-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.glocke svg { display: block; flex: none; }
