/* Altschützen Baierbrunn – Theme
   Grundlage: Design-System „Nocturne“ (dunkler Grund, Inter 500, 8px Radien,
   auslaufende Linien), Akzent im Vereinsgrün des Wappens.

   Einstellbar über die Theme-Konfiguration (Admin → Themes → Altschützen):
   Grundfarben, Schriftgrößen, Breite/Radius und Bilder werden von
   partials/base.html.twig als <style id="theme-vars"> ausgegeben und
   überschreiben die Standardwerte unten. Alle Abstufungen werden per
   color-mix() aus den Grundfarben abgeleitet. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }

/* — Grundwerte (einstellbar) — */
:root {
  /* Farben (dunkles Schema; das helle Schema kommt aus der Konfiguration) */
  --bg: #161826;
  --surface: #232532;
  --text: #e9e9ed;
  --accent: #87b266;
  --section: #1f3a26;
  /* Typografie: Grundgröße in px (ohne Einheit), Faktor für Überschriften */
  --fs-base: 15;
  --hs: 1;
  /* Layout: Inhaltsbreite, Eckenradius in px (ohne Einheit) */
  --wrap: 1280px;
  --r: 8;
  /* Bilder */
  --ornament-img: url("../images/eichenlaub.png");
  --ornament-op: 1;
  --banner-h: 440px;
  --banner-ov: 55%;
}

/* — Schema-Konstanten: dunkel (Standard) — */
:root {
  color-scheme: dark;
  --blend-photo: lighten;
  --blend-ornament: lighten;
  --ornament-filter: none;
  --shade-md: rgba(0, 0, 0, .55);
  --shade-lg: rgba(0, 0, 0, .65);
  --ring-md: var(--n700);
  --ring-lg: var(--n500);
  --error: #f0b9ad;
}
/* — Schema-Konstanten: hell (fest gewählt oder per Umschalter) — */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f1; --surface: #ffffff; --text: #1e2226; --accent: #4b7a2f; --section: #dfeacf;
  --blend-photo: normal;
  --blend-ornament: multiply;
  --ornament-filter: invert(1) hue-rotate(180deg);
  --shade-md: rgba(20, 24, 40, .08);
  --shade-lg: rgba(20, 24, 40, .16);
  --ring-md: var(--n800);
  --ring-lg: var(--n700);
  --error: #b3402a;
}
/* — hell nach Systemeinstellung (Modus „Automatisch“) — */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f5f6f1; --surface: #ffffff; --text: #1e2226; --accent: #4b7a2f; --section: #dfeacf;
    --blend-photo: normal;
    --blend-ornament: multiply;
    --ornament-filter: invert(1) hue-rotate(180deg);
    --shade-md: rgba(20, 24, 40, .08);
    --shade-lg: rgba(20, 24, 40, .16);
    --ring-md: var(--n800);
    --ring-lg: var(--n700);
    --error: #b3402a;
  }
}

/* — Abgeleitete Werte (nicht direkt einstellen) — */
:root {
  --surface-2: color-mix(in srgb, var(--bg) 55%, var(--surface));
  /* Neutrale Stufen: vom Text (100) zum Hintergrund (900) */
  --n100: var(--text);
  --n300: color-mix(in srgb, var(--text) 86%, var(--bg));
  --n400: color-mix(in srgb, var(--text) 74%, var(--bg));
  --n500: color-mix(in srgb, var(--text) 60%, var(--bg));
  --n700: color-mix(in srgb, var(--text) 34%, var(--bg));
  --n800: color-mix(in srgb, var(--text) 22%, var(--bg));
  --n900: color-mix(in srgb, var(--text) 11%, var(--bg));
  /* Akzent-Stufen: 100–400 Richtung Text (mehr Kontrast), 600–900 Richtung Hintergrund */
  --a100: color-mix(in srgb, var(--accent) 20%, var(--text));
  --a200: color-mix(in srgb, var(--accent) 35%, var(--text));
  --a300: color-mix(in srgb, var(--accent) 60%, var(--text));
  --a400: color-mix(in srgb, var(--accent) 80%, var(--text));
  --a600: color-mix(in srgb, var(--accent) 75%, var(--bg));
  --a800: color-mix(in srgb, var(--accent) 35%, var(--bg));
  --a900: color-mix(in srgb, var(--accent) 18%, var(--bg));
  --section-glow: color-mix(in srgb, var(--section) 82%, var(--accent));
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-soft-2: color-mix(in srgb, var(--accent) 22%, transparent);
  --selection: color-mix(in srgb, var(--accent) 30%, transparent);
  --hover: color-mix(in srgb, var(--text) 7%, transparent);
  --active: color-mix(in srgb, var(--text) 14%, transparent);
  --divider: color-mix(in srgb, var(--text) 16%, transparent);
  --rule: color-mix(in srgb, var(--text) 12%, transparent);
  --border-strong: color-mix(in srgb, var(--text) 45%, transparent);
  --radius: calc(var(--r) * 1px);
  --radius-sm: calc(var(--r) * .75px);
  --radius-lg: calc(var(--r) * 1.75px);
  --shadow-sm: 0 0 0 1px var(--n800);
  --shadow-md: 0 0 0 1px var(--ring-md), 0 6px 18px var(--shade-md);
  --shadow-lg: 0 0 0 1px var(--ring-lg), 0 16px 40px var(--shade-lg);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 48px;
  --fade: linear-gradient(to right, transparent, var(--rule) 48px, var(--rule) calc(100% - 48px), transparent);
  --fade-strong: linear-gradient(to right, transparent, var(--divider) 48px, var(--divider) calc(100% - 48px), transparent);
}

/* — Basis — */
*, *::before, *::after { box-sizing: border-box; }
/* rem-Basis = Grundgröße; als Prozent, damit die Schriftgrößen-Einstellung des Browsers weiter wirkt */
html { -webkit-text-size-adjust: 100%; font-size: calc(var(--fs-base) / 16 * 100%); }
body { margin: 0; position: relative; isolation: isolate; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .4em; text-wrap: pretty; }
h1 { font-size: calc(clamp(2.1333rem, 4vw, 3.4667rem) * var(--hs)); letter-spacing: -.02em; }
h2 { font-size: calc(1.8667rem * var(--hs)); }
h3 { font-size: calc(1.3333rem * var(--hs)); }
p { margin: 0 0 .8em; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration: none; }
a:hover { color: var(--a300); text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--selection); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--n400); }
.small { font-size: 0.8667rem; }
.lighten { mix-blend-mode: var(--blend-photo); }

/* — Hintergrundbild der Seite & Header-Bild — */
.site-bg { position: fixed; inset: 0; z-index: -2; background: var(--page-bg) center / cover no-repeat; opacity: var(--page-bg-op, .25); pointer-events: none; }
.site-bg--tile { background-size: auto; background-repeat: repeat; }
.site-banner { position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: var(--banner-h); background: var(--banner) var(--banner-pos, center) / cover no-repeat; pointer-events: none; }
.site-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg)), color-mix(in srgb, var(--bg) var(--banner-ov), transparent);
}
.has-banner .page-head { min-height: calc(var(--banner-h) - 90px); display: flex; flex-direction: column; justify-content: flex-end; }

/* — Eichenlaub-Ornament — */
.ornament { position: relative; isolation: isolate; }
.ornament::before {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0;
  width: min(640px, 80%); height: 520px;
  background: var(--ornament-img) center / cover;
  opacity: calc(.32 * var(--ornament-op)); mix-blend-mode: var(--blend-ornament); filter: var(--ornament-filter); pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%);
}
.ornament--left::before {
  right: auto; left: 0; width: min(760px, 100%); height: 100%; opacity: calc(.4 * var(--ornament-op));
  -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 20% 50%, #000 0%, transparent 70%);
}
.ornament--full::before {
  inset: 0; width: auto; height: auto; opacity: calc(.45 * var(--ornament-op));
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 75%);
}
/* Mit Header-Bild tritt das Ornament oben zurück, sonst überlagern sich beide */
.no-ornament .ornament::before, .has-banner .ornament:not(.ornament--full)::before { display: none; }

/* — Umschalter hell/dunkel — */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--divider); border-radius: var(--radius); background: transparent; color: var(--n300); cursor: pointer; }
.theme-toggle:hover { background: var(--hover); color: var(--text); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: none; }
}

/* — Buttons & Tags — */
.btn, button.btn, .form-actions button, .form-actions .button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 0.9333rem/1.2 var(--font); color: var(--text); text-decoration: none;
  background: transparent; border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 9px 14px; cursor: pointer; min-height: 40px;
}
.btn:hover, .button:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.btn:active { background: var(--active); }
.btn.btn-primary, .form-actions button[type="submit"], .button.primary { color: var(--accent); border-color: var(--accent); }
.btn.btn-primary:hover, .form-actions button[type="submit"]:hover { background: var(--accent-soft); color: var(--accent); }
.btn.btn-primary:active { background: var(--accent-soft-2); }
.btn-lg { font-size: 1rem; padding: 11px 18px; }
.btn-sm { font-size: 0.8667rem; padding: 5px 10px; min-height: 32px; }
.btn-block { width: 100%; }
.btn svg, .icon { width: 18px; height: 18px; flex: none; }
.link-more { font-weight: 500; font-size: 0.9333rem; }
.tag { display: inline-flex; align-items: center; font-size: 0.7333rem; letter-spacing: .02em; padding: 3px 10px; border-radius: var(--radius-sm); background: var(--a800); color: var(--a100); white-space: nowrap; }
.tag-neutral { background: var(--n800); color: var(--n100); }
.kicker { display: block; font-size: 0.7333rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; font-weight: 500; }

/* — Chips / Tabs — */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 400 0.8667rem/1 var(--font); padding: 9px 13px; border-radius: var(--radius-sm); border: 1px solid var(--divider); background: transparent; color: var(--n300); cursor: pointer; min-height: 36px; }
.chip:hover { background: var(--hover); }
.chip[aria-pressed="true"] { background: var(--a800); border-color: var(--a800); color: var(--a100); }
.seg { display: inline-flex; border: 1px solid var(--divider); border-radius: var(--radius); overflow: hidden; flex-wrap: wrap; }
.seg button { font: 400 0.8667rem/1 var(--font); padding: 10px 14px; background: transparent; color: var(--n300); border: 0; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--divider); }
.seg button[aria-selected="true"] { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

/* — Karten — */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card--raised { box-shadow: var(--shadow-md); }
.card-title { font-size: 1.1333rem; font-weight: 500; line-height: 1.25; margin: 0; }
.card-body { font-size: 0.8667rem; color: var(--n400); margin: 0; }
.card-media { margin: -20px -20px 4px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .card-motiv { width: 100%; height: 100%; display: block; }
.placeholder { background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--surface) 10px 20px); }

/* — Header — */
.site-header { position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--text); font-size: 1.2rem; font-weight: 500; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: auto; height: var(--logo-h, 44px); max-width: 240px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav ul a { color: var(--n300); font-size: 0.9333rem; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }

/* — Startseite — */
.hero { display: grid; grid-template-columns: 200px minmax(0, 1fr) 380px; gap: 48px; align-items: center; padding-top: 8px; padding-bottom: 40px; }
.hero-crest { mix-blend-mode: var(--blend-photo); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero-crest img { width: 200px; height: auto; }
.hero-text p { font-size: 1.1333rem; color: var(--n300); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.next-event .date-big { display: flex; gap: 16px; align-items: center; }
.date-block { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.date-block .d { font-size: 1.7333rem; font-weight: 500; line-height: 1; }
.date-block .m { font-size: 0.8rem; color: var(--n400); }
.date-big .date-block .d { font-size: 2.2667rem; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.section-head h2 { margin: 0; }
.kings-list { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.kings-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9333rem; }
.kings-list dt { color: var(--n400); }
.kings-list dd { margin: 0; font-weight: 500; text-align: right; }
.kings-photo { height: 170px; border-radius: var(--radius-sm); overflow: hidden; }
.kings-photo img { width: 100%; height: 100%; object-fit: cover; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pb { padding-bottom: 48px; }
.news-card { display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.news-card:hover { text-decoration: none; color: var(--text); }
.news-card:hover .news-title { color: var(--accent); }
.news-card .thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-date { font-size: 0.8rem; color: var(--n500); }
.news-title { font-size: 1.1333rem; font-weight: 500; line-height: 1.3; }

/* — Listen mit auslaufender Linie — */
.rows > * { background: var(--fade) no-repeat bottom / 100% 1px; }
.event-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 12px 0; }
.event-title { font-size: 1.0667rem; font-weight: 500; }
.event-meta { font-size: 0.8667rem; color: var(--n400); }
.event-row .ics { font-size: 0.8667rem; display: inline-flex; align-items: center; gap: 6px; }
.event-row .ics .icon { width: 16px; height: 16px; }
.month-label { margin: 22px 0 6px; }
.event-row.is-muted .event-title, .event-row.is-muted .d { color: var(--n400); font-weight: 400; }
.event-row.is-muted .tag { background: var(--n900); color: var(--n400); }

/* — Seitenkopf / Inhalte — */
/* Titelblock bündig mit dem Inhalt; nur die Textbreite ist begrenzt */
.page-head { padding-top: 40px; padding-bottom: 24px; }
.page-head h1, .page-head p { max-width: 820px; }
.page-head p { font-size: 1.1333rem; color: var(--n300); }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-bottom: 56px; }
.aside-stack { display: flex; flex-direction: column; gap: 16px; }
.prose { max-width: 720px; font-size: 1.0667rem; color: var(--n300); }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.6em; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote { margin: 1.2em 0; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9333rem; margin: 0.8em 0 1.2em; }
.prose th { text-align: left; font-size: 0.7333rem; letter-spacing: .08em; text-transform: uppercase; color: var(--n500); font-weight: 500; }
.prose th, .prose td { padding: 8px; background: var(--fade) no-repeat bottom / 100% 1px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.subnav a { font-size: 0.8667rem; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--divider); color: var(--n300); }
.subnav a[aria-current="page"] { background: var(--a800); border-color: var(--a800); color: var(--a100); }
.subnav a:hover { text-decoration: none; background: var(--hover); }
.training-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8667rem; }

/* — Chronik — */
.chronicle { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 56px; }
.table-head, .chronicle-row { display: grid; grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.table-head { padding: 0 14px 8px; font-size: 0.7333rem; letter-spacing: .08em; text-transform: uppercase; color: var(--n500); background: var(--fade-strong) no-repeat bottom / 100% 1px; }
.chronicle-row { padding: 14px; border-radius: var(--radius-sm); }
.chronicle-row:nth-child(odd of .chronicle-row) { background: var(--surface-2); }
.chronicle-row .year { font-size: 1.4667rem; font-weight: 500; color: var(--accent); }
.chronicle-row .sub { display: block; font-size: 0.8rem; color: var(--n500); }
.chronicle-row span { color: var(--n300); }
.chronicle-row strong { font-weight: 500; }
.chronicle-founding { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border: 1px dashed var(--divider); border-radius: var(--radius-sm); margin-top: 10px; color: var(--n400); font-size: 0.9333rem; }
.chronicle-founding .year { font-size: 1.4667rem; font-weight: 500; color: var(--accent); }

/* — Schützenkönige — */
.majesty { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 48px; }
.majesty-photo { margin: 0; }
.majesty-photo a { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.majesty-photo img { width: 100%; height: auto; }
.majesty-photo figcaption { margin-top: 10px; line-height: 1.5; }
.majesty-info h2 { font-size: calc(1.4667rem * var(--hs)); margin-bottom: 18px; }
.majesty-list { margin: 0 0 18px; display: flex; flex-direction: column; gap: 14px; }
.majesty-list div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-bottom: 14px; background: var(--fade) no-repeat bottom / 100% 1px; }
.majesty-list dt { font-size: 0.7333rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.majesty-list dd { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.majesty-list dd strong { font-size: 1.2rem; font-weight: 500; }
.king-tools { align-items: center; gap: 12px 20px; margin-bottom: 18px; }
.king-tools .chips { margin-left: auto; }
.king-search input { width: 200px; min-height: 36px; padding: 7px 12px; }
.king-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.king-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.king-thumb { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface-2); }
.king-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
a.king-thumb:hover img { transform: scale(1.03); }
.king-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.king-year { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.king-year .year, .king-gap .year { font-size: 1.4667rem; font-weight: 500; color: var(--accent); line-height: 1; }
.king-names { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.9333rem; }
.king-names div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.king-names dt { color: var(--n500); font-size: 0.8rem; }
.king-names dd { margin: 0; }
.king-gap { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; min-height: 160px; padding: 16px; text-align: center; border: 1px dashed var(--divider); border-radius: var(--radius); }
.king-gap .year { font-size: 1.2rem; }
[data-filter-empty] { margin-top: 12px; }
.pb > .chronicle-founding { margin-top: 24px; }
.lightbox-text { max-width: min(94vw, 900px); padding-top: 10px; }
.lightbox-text strong { display: block; font-weight: 500; margin-bottom: 4px; }
.lightbox-text p { margin: 0; color: #cfd3e5; line-height: 1.5; }

/* — Bisher (Rückblick) — */
.bisher-filter { margin-bottom: 8px; }
.bisher-season { margin-top: 28px; }
.bisher-season-title { font-size: calc(1.6rem * var(--hs)); margin: 0 0 4px; }
.bisher-list { display: flex; flex-direction: column; }
.bisher-month { display: flex; flex-direction: column; gap: 12px; }
.bisher-month .month-label { margin: 22px 0 2px; }
.bisher-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: stretch; background: var(--surface); border-radius: var(--radius); overflow: hidden; color: var(--text); }
.bisher-card:hover { text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); }
.bisher-card:hover .news-title { color: var(--accent); }
.bisher-card-media { aspect-ratio: 16 / 11; background: var(--surface-2); }
.bisher-card-media img { width: 100%; height: 100%; object-fit: cover; }
.bisher-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 16px 0; min-width: 0; }
.bisher-card.is-gratulation { box-shadow: inset 3px 0 0 var(--accent); }
.bisher-count { display: inline-flex; align-items: center; gap: 6px; color: var(--n400); margin-top: auto; }
.bisher-count .icon { width: 16px; height: 16px; }
.bisher-short { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 12px 0; background: var(--fade) no-repeat bottom / 100% 1px; }
.bisher-short .bisher-date { padding-top: 2px; }
.bisher-short-body strong { display: block; font-weight: 500; margin-bottom: 2px; }
.bisher-short-body .prose { font-size: 0.9333rem; max-width: none; }
.bisher-short-body .prose p { margin: 0; }
.bisher-short-thumb { display: block; width: 120px; border-radius: var(--radius-sm); overflow: hidden; }
.bisher-archive { margin-top: 40px; }
.post-body { max-width: 760px; }
.post-links { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 6px; }
.post-links a { display: inline-flex; align-items: center; gap: 8px; }
.post-section { font-size: calc(1.3333rem * var(--hs)); margin: 36px 0 14px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.video-grid video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 18px; background: var(--fade) no-repeat top / 100% 1px; }
.post-nav a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; }
.post-nav .post-nav-older { text-align: right; margin-left: auto; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.archive-tile { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.archive-tile:hover { text-decoration: none; color: var(--accent); }
.archive-thumb { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-title { font-weight: 500; }
.archive-text { max-width: 820px; }
.archive-text p a > img { display: inline-block; width: 160px; height: 120px; object-fit: cover; margin: 4px 6px 4px 0; border-radius: var(--radius-sm); vertical-align: top; }
.archive-text hr { border: 0; height: 1px; margin: 28px 0; background: var(--fade-strong); }
.archive-text table { display: block; overflow-x: auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
.gallery-grid figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gallery-grid a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.gallery-grid a:hover img { opacity: .85; }
.aktuell { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; align-items: start; padding: 18px 20px; margin-bottom: 28px; background: var(--a900); border-radius: var(--radius); box-shadow: inset 3px 0 0 var(--accent); }
.aktuell .kicker { margin: 2px 0 0; }
.aktuell h2 { font-size: calc(1.2rem * var(--hs)); margin: 0 0 4px; }
.aktuell .prose { max-width: none; font-size: 0.9333rem; }
.aktuell .prose p { margin: 0 0 4px; }

/* — Login — */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 18px; background: radial-gradient(ellipse at 30% 20%, var(--section-glow) 0%, var(--section) 40%, var(--bg) 85%); }
.login-screen.has-image { background: linear-gradient(color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 55%, transparent)), var(--login-bg) center / cover no-repeat; }
.login-crest { position: absolute; z-index: -1; left: 8%; top: 10%; mix-blend-mode: var(--blend-photo); -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.login-card { width: min(400px, 100%); background: var(--surface); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 18px; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand img { width: auto; height: 52px; max-width: 200px; object-fit: contain; }
.login-brand strong { display: block; font-size: 1.3333rem; font-weight: 500; }
.login-card h1, .login-card h2 { display: none; }
.login-card .form-actions { display: flex; flex-direction: column; gap: 10px; }
.login-card .form-actions button { width: 100%; }
.login-card .rememberme, .login-card .login-form-rememberme { font-size: 0.8667rem; color: var(--n300); }

/* — Formulare (Form-/Login-Plugin) — */
.form-field { margin-bottom: 14px; }
.form-label label, .form-field > label { display: block; font-size: 0.8rem; margin-bottom: 5px; color: var(--n300); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; min-height: 40px; padding: 9px 12px; font: 400 0.9333rem/1.4 var(--font); color: var(--text); caret-color: var(--accent);
  background: var(--surface-2); border: 1px solid var(--divider); border-radius: var(--radius);
}
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.form-errors, .notices .error, .alert.error { color: var(--error); font-size: 0.8667rem; }
.notices .success, .alert.success { color: var(--a300); font-size: 0.8667rem; }
.contact-card { max-width: 640px; }

/* — Mitgliederbereich — */
.intern { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.intern-side { background: var(--surface-2); padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.intern-side .brand { font-size: 1rem; margin: 0 0 22px; }
.intern-side .brand img { width: auto; height: calc(var(--logo-h, 44px) * .82); max-width: 160px; object-fit: contain; }
.intern-side a.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius); font-size: 0.9333rem; color: var(--n300); }
.intern-side a.side-link:hover { background: var(--hover); text-decoration: none; }
.intern-side a.side-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--a800); }
.intern-user { margin-top: auto; padding-top: 24px; font-size: 0.8rem; color: var(--n500); display: flex; flex-direction: column; gap: 3px; }
.intern-user strong { color: var(--text); font-weight: 500; }
.intern-main { padding: 36px 40px 56px; min-width: 0; }
.intern-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.intern-head h1 { font-size: calc(2.4rem * var(--hs)); margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 16px; }
.stat strong { display: block; font-size: 2rem; font-weight: 500; line-height: 1.2; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9333rem; font-variant-numeric: tabular-nums; }
.data-table th { text-align: left; font-size: 0.7333rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--n500); padding: 0 12px 8px; background: var(--fade-strong) no-repeat bottom / 100% 1px; }
.data-table td { padding: 10px 12px; }
.data-table .num { text-align: right; }
.data-table .total { color: var(--a300); }
.data-table tr.is-mine td { background: var(--a900); font-weight: 600; }
.data-table tr.is-mine td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.data-table tr.is-mine td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.data-table .mine { color: var(--a300); font-weight: 600; }
.table-scroll { overflow-x: auto; }
/* Termine per E-Mail */
.mail-form { display: flex; flex-direction: column; gap: 8px; }
.mail-form .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Ergebnisse: Reiter nach Waffengattung gruppiert */
.tab-groups { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 18px; }
.tab-group .kicker { margin-bottom: 6px; }
.data-table th.num { white-space: nowrap; }

/* Verein: Kennzahlen, Vorstand, Bildunterschriften im Fließtext, Seiten-Galerie */
.fact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 32px; }
.fact-row > div { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column-reverse; gap: 2px; }
.fact-row dt { font-size: 0.8667rem; color: var(--n400); }
.fact-row dd { margin: 0; font-size: 1.6rem; font-weight: 600; color: var(--accent); line-height: 1.2; }
.board-section { margin-bottom: 36px; }
.board-section h2 { margin: 0 0 12px; }
.board-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.person-card { gap: 6px; }
.person-contact { display: flex; flex-direction: column; gap: 2px; font-size: 0.8667rem; overflow-wrap: anywhere; }
.board-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; margin: 0; }
.board-list > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 10px 0; background: var(--fade) no-repeat bottom / 100% 1px; }
.board-list dt { color: var(--n400); font-size: 0.9333rem; }
.board-list dd { margin: 0; color: var(--text); }
.prose p > img { display: block; margin-bottom: 0; max-width: 100%; height: auto; }
.prose p > a > img { display: block; margin-bottom: 0; max-width: 100%; height: auto; }
.prose p > em:only-child { display: block; margin-top: -0.6em; font-size: 0.8667rem; color: var(--n400); }
.page-gallery { margin-top: 36px; }
.page-gallery h2 { margin: 0; }

/* Loipe */
.loipe-status { margin-bottom: 20px; --loipe-color: var(--n500); box-shadow: inset 4px 0 0 var(--loipe-color); }
.loipe-status.is-open { --loipe-color: var(--accent); }
.loipe-status.is-partly { --loipe-color: #d9a441; }
.loipe-status-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.loipe-status-head h2 { margin: 0; font-size: 1.4rem; color: var(--text); }
.loipe-status-head .small { margin-left: auto; }
.loipe-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--loipe-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--loipe-color) 25%, transparent); }
.loipe-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.loipe-photos a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; display: block; }
.loipe-photos img { width: 100%; height: 100%; object-fit: cover; }
.loipe-plan { margin-top: 32px; }
.loipe-plan figure { margin: 0 0 20px; max-width: 720px; }
.loipe-plan figure img { border-radius: var(--radius); width: 100%; height: auto; }
.loipe-plan figcaption { margin-top: 6px; }
.loipe-plan-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 32px; color: var(--n300); }
.loipe-plan-info h3 { font-size: 1rem; color: var(--text); margin: 0 0 8px; }
.loipe-plan-info ul { padding-left: 1.2em; margin: 0; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }

/* Ergebnis-Import (Plugin disag-import) */
.import-step { margin-bottom: 18px; }
.upload-form, .form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.upload-form input[type="file"] { flex: 1 1 260px; min-height: 40px; padding: 7px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--n300); font: inherit; font-size: 0.9333rem; }
.check { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; cursor: pointer; }
.check input { width: 18px; height: 18px; }
.preview-card { margin-bottom: 14px; }
.preview-card.is-off { opacity: .55; }
.tag-new { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--a100); }
.tag-changed { background: color-mix(in srgb, #d9a441 26%, var(--surface)); color: var(--text); }
.tag-removed { background: color-mix(in srgb, var(--error) 24%, var(--surface)); color: var(--text); }
.tag + .tag { margin-left: 4px; }
.delta-up { color: var(--a300); font-weight: 500; }
.delta-down { color: var(--error); font-weight: 500; }
.data-table tr.is-removed td { color: var(--n500); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--error) 60%, transparent); }
.data-table tr.is-removed td:last-child { text-decoration: none; }
.btn.btn-danger { color: var(--error); border-color: color-mix(in srgb, var(--error) 60%, transparent); }
.btn.btn-danger:hover { background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error); }
.danger-zone { margin-top: 10px; padding-top: 10px; background: var(--fade) no-repeat top / 100% 1px; }
.danger-zone summary { cursor: pointer; color: var(--error); font-size: 0.9333rem; }
.danger-zone form { margin-top: 10px; }

/* Presse-Auswertung (Plugin disag-import) */
.presse-weapon { font-size: 1.0667rem; margin: 18px 0 4px; }
.presse-table tbody + tbody { border-top: 2px solid var(--divider); }
.presse-table td:first-child { white-space: nowrap; }

/* Dienstplan: Bewirtung mit Selbsteintragung */
.data-table td.bewirtung { min-width: 180px; }
.bew-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-weight: 400; }
.bew-status form { margin: 0; }
.notice { margin: 0 0 18px; padding: 10px 14px; border-radius: var(--radius); font-size: 0.9333rem; }
.notice--success { background: var(--a900); color: var(--a200); box-shadow: inset 0 0 0 1px var(--a800); }
.notice--error { background: color-mix(in srgb, var(--error) 14%, transparent); color: var(--error); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--error) 40%, transparent); }
.duty-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
.album-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.album-card { display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.album-card:hover { text-decoration: none; color: var(--accent); }
.album-card .thumb { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.album-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.album-card .count { position: absolute; right: 8px; bottom: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.photo-grid a { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; display: block; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.photo-grid a:hover img { opacity: .85; }
.photo-item { position: relative; min-width: 0; aspect-ratio: 1; }
.photo-item > a { height: 100%; }
.photo-item form { position: absolute; top: 6px; margin: 0; }
.photo-item .photo-delete-form { right: 6px; }
.photo-item .photo-cover-form { left: 6px; }
.photo-action { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.photo-action:hover, .photo-action:focus-visible { background: var(--accent); color: var(--bg); }
.photo-delete:hover, .photo-delete:focus-visible { background: var(--error); color: #fff; }
.photo-item.is-cover > a { box-shadow: 0 0 0 3px var(--accent); }
.photo-cover-badge { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--bg); font-size: 0.75rem; font-weight: 600; pointer-events: none; }
.gallery-edit { margin-bottom: 24px; }
.gallery-edit summary { cursor: pointer; }
details.gallery-edit[open] summary { margin-bottom: 12px; }
.album-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 14px; align-items: end; }
.album-form-wide { grid-column: 1 / -1; }
.album-form textarea { height: 72px; resize: vertical; }
.album-form .btn { justify-self: start; margin-bottom: 8px; }
/* Die Bildansicht bleibt in beiden Schemata dunkel */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; color: #e9e9ed; --text: #e9e9ed; --n400: #b2b6ca; --divider: rgba(233, 233, 237, .16); --hover: rgba(233, 233, 237, .07); --active: rgba(233, 233, 237, .14); }
.lightbox::backdrop { background: rgba(10, 11, 18, .92); }
.lightbox img { max-width: 94vw; max-height: 74vh; border-radius: var(--radius); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; background: var(--fade) no-repeat bottom / 100% 1px; }

/* — Footer — */
.site-footer { background: var(--surface-2); margin-top: 24px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 32px; padding-top: 28px; padding-bottom: 28px; font-size: 0.8667rem; color: var(--n400); }
.footer-inner strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.footer-links { display: flex; gap: 18px; align-items: flex-end; }
.footer-links a { color: var(--n400); }

/* — Responsiv — */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 160px minmax(0, 1fr); }
  .hero .next-event { grid-column: 1 / -1; }
  .grid-4, .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chronicle { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --pad: 18px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 18px 20px; background: var(--surface); box-shadow: var(--shadow-md); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; font-size: 1.0667rem; }
  .brand img { height: calc(var(--logo-h, 44px) * .82); }
  .brand { font-size: 1.0667rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .majesty { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bisher-card { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bisher-card-body { padding: 14px 16px 16px; }
  .bisher-short { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .bisher-short-thumb { width: 160px; }
  .aktuell { grid-template-columns: minmax(0, 1fr); }
  .archive-text p a > img { width: calc(50% - 8px); height: auto; aspect-ratio: 4 / 3; }
  .king-tools .chips { margin-left: 0; }
  .king-search, .king-search input { width: 100%; }
  .hero-crest { justify-self: center; }
  .hero-crest img { width: 154px; height: 200px; object-fit: cover; object-position: top; }
  .home-grid, .layout-aside, .duty-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .grid-3, .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .event-row { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .event-row .tag, .event-row .ics { display: none; }
  .table-head { display: none; }
  .chronicle-row { grid-template-columns: 64px minmax(0, 1fr); }
  .chronicle-row > :nth-child(n+3) { grid-column: 2; font-size: 0.8667rem; }
  /* minmax(0, …): Spalte nie breiter als der Bildschirm – breite Tabellen scrollen in .table-scroll */
  .intern { grid-template-columns: minmax(0, 1fr); }
  .intern-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 12px 18px; }
  .intern-side .brand { width: 100%; margin-bottom: 6px; }
  /* Mobil: Rückweg zur Website und Abmelden als eigene Zeile unter der Navigation */
  .intern-user { width: 100%; margin-top: 4px; padding-top: 10px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 0.8667rem; background: var(--fade) no-repeat top / 100% 1px; }
  .intern-user strong { margin-right: auto; }
  .intern-main { padding: 20px 18px 40px; }
  .intern-head h1 { font-size: calc(1.7333rem * var(--hs)); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .grid-4, .album-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .album-form { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr; }
  .board-list > div { grid-template-columns: 1fr; gap: 2px; }
  .fact-row { grid-template-columns: 1fr 1fr; }
}
