/* ==========================================================================
   KOPF- UND FUSSLEISTE 2027 fuer alle oeffentlichen Seiten (design2025/kopf2027.css)
   Gleiche Optik wie die Kopfleiste im Mitgliederbereich (my-dashboard/assets/dashboard.css, .smd-top).
   Alle Klassen beginnen mit sm27k- (Kopf) bzw. sm27f- (Fuss). Einige Regeln brauchen !important, weil
   sm_style.css allgemeine Regeln wie "a { color: ... !important }", "header li a" und "footer { background }" setzt.
   AENDERUNGEN:
     07.11.2026 Erste Fassung.
   ========================================================================== */
.sm27k, .sm27f { --k-top: #324C5D; --k-fuss: #16232B; --k-a: #C8506E; --k-a-h: #B03F5C; --k-t: #16232B; --k-t2: #3E4C57; --k-muted: #66727D; --k-line: #E2E6EA; --k-soft: #F4F6F8; }
.sm27k *, .sm27f * { box-sizing: border-box; }

/* ---------- Kopf ---------- */
.sm27k { position: sticky; top: 0; z-index: 1030; background: var(--k-top); color: #fff; box-shadow: 0 2px 12px rgba(22,35,43,.18); margin: 0 0 26px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.4; }
.sm27k-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; gap: 24px; }
.sm27k a { text-decoration: none !important; }
.sm27k-logo { color: #fff !important; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 26px; letter-spacing: .01em; white-space: nowrap; }
.sm27k-logo span { color: #F2A7BA; }
.sm27k-links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.sm27k-links > a, .sm27k-links > details > summary { color: #DCE4EA !important; font-weight: 600; font-size: 17px; padding: 8px 12px; border-radius: 10px; }
.sm27k-links > a:hover, .sm27k-links > details > summary:hover, .sm27k-links > details[open] > summary { background: rgba(255,255,255,.1); color: #fff !important; }
.sm27k-links > a[aria-current] { color: #fff !important; box-shadow: inset 0 -2px 0 #F2A7BA; border-radius: 10px 10px 0 0; }
.sm27k-rechts { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.sm27k-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: #fff !important; }
.sm27k-icon:hover { background: rgba(255,255,255,.12); }
.sm27k-badge { position: absolute; top: 2px; right: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #C8506E; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px var(--k-top); }
.sm27k-login { display: inline-flex; align-items: center; gap: 6px; color: #fff !important; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.sm27k-login:hover { background: rgba(255,255,255,.1); }
.sm27k-knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--k-a); color: #fff !important; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px rgba(200,80,110,.32); }
.sm27k-knopf:hover { background: var(--k-a-h); }

/* Ausklappmenues (<details>) */
.sm27k-drop { position: relative; }
.sm27k-drop > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.sm27k-drop > summary::-webkit-details-marker { display: none; }
.sm27k-drop > summary .sm27k-i { transition: transform .15s ease; }
.sm27k-links .sm27k-drop[open] > summary .sm27k-i { transform: rotate(180deg); }
.sm27k-liste { position: absolute; left: 0; top: calc(100% + 10px); width: 300px; background: #fff; color: var(--k-t); border-radius: 16px; box-shadow: 0 16px 40px rgba(22,35,43,.22); padding: 8px; z-index: 1050; }
.sm27k-rechtsbuendig { left: auto; right: 0; width: 260px; }
.sm27k .sm27k-liste a { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--k-t2) !important; font-size: 15px; line-height: 1.3; }
.sm27k .sm27k-liste a:hover { background: var(--k-soft); color: var(--k-t) !important; }
.sm27k-liste a .sm27k-i { flex: 0 0 auto; margin-top: 1px; color: var(--k-a); }
.sm27k-liste b { display: block; font-weight: 600; color: var(--k-t) !important; }
.sm27k-liste small { display: block; color: var(--k-muted); font-size: 13px; }
.sm27k .sm27k-liste a.sm27k-alle { border-top: 1px solid var(--k-line); border-radius: 0 0 10px 10px; margin-top: 6px; padding-top: 11px; font-weight: 700; color: var(--k-a) !important; }
.sm27k .sm27k-liste a.sm27k-premium b { color: var(--k-a); }
.sm27k .sm27k-liste a.sm27k-knopf { justify-content: center; margin: 8px 4px 4px; color: #fff !important; font-weight: 700; }
.sm27k .sm27k-liste a.sm27k-knopf:hover { background: var(--k-a-h); color: #fff !important; }
.sm27k-kontokopf { display: flex; flex-direction: column; padding: 10px 12px 12px; border-bottom: 1px solid var(--k-line); margin-bottom: 6px; line-height: 1.25; }
.sm27k-kontokopf small { color: var(--k-muted); }
.sm27k-konto > summary { gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; color: #fff; font-weight: 600; }
.sm27k-konto > summary:hover, .sm27k-konto[open] > summary { background: rgba(255,255,255,.12); }
.sm27k-konto img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #5A7385; border: 2px solid rgba(255,255,255,.6); }
.sm27k-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm27k-handy { display: none; }
.sm27k-kurz { display: none; }
.sm27k-handy > summary { width: 44px; height: 44px; justify-content: center; border-radius: 12px; color: #fff; }
.sm27k-handy[open] > summary, .sm27k-handy > summary:hover { background: rgba(255,255,255,.12); }
.sm27k :focus-visible { outline: 3px solid #F2A7BA; outline-offset: 2px; }

@media (min-width: 992px) and (max-width: 1199.98px) { .sm27k-name { display: none; } .sm27k-in { gap: 14px; } .sm27k-links > a, .sm27k-links > details > summary { padding: 8px 9px; font-size: 16px; } }
@media (max-width: 991.98px) {
	.sm27k { margin-bottom: 16px; }
	.sm27k-in { height: 58px; padding: 0 10px 0 16px; gap: 6px; }
	.sm27k-logo { font-size: 22px; }
	.sm27k-links, .sm27k-nurdesk, .sm27k-name, .sm27k-login { display: none; }
	.sm27k-handy { display: block; }
	.sm27k-konto > summary { padding: 4px; }
	.sm27k-liste { position: fixed; left: 10px; right: 10px; top: 64px; width: auto; max-height: calc(100vh - 80px); overflow-y: auto; }
}
@media (max-width: 575.98px) { .sm27k-rechts > .sm27k-knopf { padding: 0 14px; min-height: 38px; font-size: 14px; } .sm27k-rechts > .sm27k-knopf .sm27k-lang { display: none; } .sm27k-rechts > .sm27k-knopf .sm27k-kurz { display: inline; } }
@media (max-width: 380px) { .sm27k-logo { font-size: 19px; } .sm27k-in { padding-left: 12px; } }
@media (max-width: 330px) { .sm27k-rechts > .sm27k-knopf { display: none; } }

/* ---------- Fuss ---------- */
.sm27f { background: var(--k-fuss) !important; color: #9FB0BC; margin-top: 48px; padding: 44px 20px 28px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; line-height: 1.5; }
.sm27f-in { max-width: 1240px; margin: 0 auto; }
.sm27f-raster { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.sm27f .sm27f-logo { margin: 0 0 10px; color: #fff !important; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 24px; }
.sm27f-logo span { color: #F2A7BA; }
.sm27f p { margin: 0 0 14px; color: #B5C2CC !important; }
.sm27f h2 { margin: 0 0 12px; color: #fff !important; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .01em; }
.sm27f ul { list-style: none; margin: 0; padding: 0; }
.sm27f li { margin: 0 0 7px; }
.sm27f a { color: #C9D4DC !important; text-decoration: none !important; }
.sm27f a:hover { color: #fff !important; text-decoration: underline !important; }
.sm27f-x { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-weight: 600; }
.sm27f-x:hover { border-color: #fff; text-decoration: none !important; }
.sm27f-mitglied { display: inline-flex; margin: 0 8px 8px 0; }
.sm27f .sm27f-knopf { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--k-a); color: #fff !important; font-weight: 700; }
.sm27f .sm27f-knopf:hover { background: var(--k-a-h); text-decoration: none !important; }
.sm27f-unten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.sm27f-recht { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sm27f-copy { margin: 0 !important; color: #8597A4 !important; }
@media (max-width: 991.98px) { .sm27f-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sm27f-marke { grid-column: 1 / -1; } }
@media (max-width: 991.98px) { .sm27f { padding-bottom: calc(28px + env(safe-area-inset-bottom)); } }
@media (max-width: 420px) { .sm27f { padding: 36px 16px 24px; } .sm27f-raster { gap: 22px 16px; } }
@media (prefers-reduced-motion: reduce) { .sm27k-drop > summary .sm27k-i { transition: none; } }
