/* ==========================================================================
   Gröbenzeller Web Portal — Modern Editorial Design System (2026)
   Zero external fonts/trackers · DSGVO-konform · WCAG 2.2 AA · Light & Dark
   ========================================================================== */

:root {
  /* Palette — Light (Bavarian Garden-Town Editorial) */
  --bg: #faf8f4;
  --bg-alt: #f2eee6;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --ink: #18211d;
  --ink-muted: #495650;
  --ink-subtle: #64726b;
  --border: #e3ddd1;
  --border-strong: #c8bfb0;

  --brand: #1b4d3e;
  --brand-hover: #13392d;
  --brand-ink: #ffffff;
  --brand-soft: #e6f0ec;

  --stream: #1d5588;
  --stream-soft: #e6f0f8;

  --accent: #b3552d;
  --accent-soft: #f9ebe4;

  --alert: #b42318;
  --alert-soft: #feeceb;

  --shadow-sm: 0 1px 2px rgba(24, 33, 29, 0.05), 0 1px 3px rgba(24, 33, 29, 0.04);
  --shadow-md: 0 6px 20px rgba(24, 33, 29, 0.07), 0 2px 6px rgba(24, 33, 29, 0.04);
  --shadow-lg: 0 18px 44px rgba(24, 33, 29, 0.12), 0 4px 12px rgba(24, 33, 29, 0.05);

  /* Typography (100% Native System & Editorial Serif Stacks — Zero External Requests) */
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;

  /* Layout & Radii */
  --container: 1140px;
  --prose: 68ch;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --header-h: 72px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0f1613;
  --bg-alt: #151f1b;
  --surface: #18231f;
  --surface-elevated: #1e2c27;
  --ink: #f1eee8;
  --ink-muted: #b6c2bc;
  --ink-subtle: #8c9b93;
  --border: #273730;
  --border-strong: #394e45;

  --brand: #5ac49d;
  --brand-hover: #7ad4b3;
  --brand-ink: #0c1914;
  --brand-soft: rgba(90, 196, 157, 0.14);

  --stream: #75b4e8;
  --stream-soft: rgba(117, 180, 232, 0.14);

  --accent: #e58e67;
  --accent-soft: rgba(229, 142, 103, 0.15);

  --alert: #f97066;
  --alert-soft: rgba(249, 112, 102, 0.16);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}

/* Base & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--brand-hover);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.65em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
}

h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  color: var(--ink-muted);
}

/* Container & Sections */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}

.section {
  padding: clamp(44px, 6.5vw, 80px) 0;
}

.section--alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(26px, 3.5vw, 40px);
}

.section-header p {
  max-width: 58ch;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* Eyebrow / Pills */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 14px;
}

.eyebrow--alert {
  background: var(--alert-soft);
  color: var(--alert);
}

.eyebrow--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.eyebrow--stream {
  background: var(--stream-soft);
  color: var(--stream);
}

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--brand);
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 0.72rem;
  color: var(--ink-subtle);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 12px;
  font-size: 0.91rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--brand-soft);
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-alt);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.theme-icon--sun {
  display: none;
}

[data-theme="dark"] .theme-icon--sun {
  display: block;
}

[data-theme="dark"] .theme-icon--moon {
  display: none;
}

.nav-toggle {
  display: none;
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 20px clamp(18px, 4vw, 32px) 32px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 1.05rem;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.mobile-nav__list a:hover,
.mobile-nav__list a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--border);
}

.mobile-nav__secondary {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mobile-nav__secondary a {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--brand-hover);
  color: var(--brand-ink);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  background: var(--bg-alt);
  color: var(--ink);
  border-color: var(--brand);
}

.btn--alert {
  background: var(--alert);
  color: #ffffff;
}

.btn--alert:hover {
  filter: brightness(1.08);
  color: #ffffff;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.86rem;
}

/* ==========================================================================
   Homepage Hero
   ========================================================================== */
.hero {
  padding: clamp(32px, 5vw, 60px) 0 clamp(40px, 5.5vw, 68px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4.5vw, 54px);
  align-items: center;
}

.hero__title {
  margin-bottom: 18px;
}

.hero__lead {
  margin-bottom: 24px;
  max-width: 52ch;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(16, 24, 20, 0.76);
  backdrop-filter: blur(8px);
  color: #f4f2ec;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.hero__caption strong {
  color: #ffffff;
  font-weight: 650;
}

/* Facts Strip */
.facts-strip {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.fact-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.fact-item__label {
  display: block;
  font-size: 0.74rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-subtle);
  margin-bottom: 3px;
}

.fact-item__value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .facts-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts-strip .fact-item:last-child {
    grid-column: span 2;
  }
}

/* ==========================================================================
   Subpage Hero & Breadcrumbs
   ========================================================================== */
.page-hero {
  padding: clamp(28px, 4.5vw, 52px) 0 clamp(28px, 4vw, 44px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ink-subtle);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border-strong);
}

.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.page-hero__content {
  max-width: 72ch;
}

.page-hero__banner {
  margin-top: 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.page-hero__banner img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

/* ==========================================================================
   Spotlight Banner (Reinhold Feature on Homepage)
   ========================================================================== */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 38px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--alert);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-md);
}

.spotlight__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d1b2a;
}

.spotlight__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.spotlight:hover .spotlight__media img {
  transform: scale(1.03);
}

.spotlight__stamp {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(180, 35, 24, 0.92);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spotlight__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-subtle);
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  .spotlight {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 920px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .card-grid,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card--link {
  text-decoration: none;
  color: inherit;
}

.card--link:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card__icon--stream {
  background: var(--stream-soft);
  color: var(--stream);
}

.card__icon--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.card__icon--alert {
  background: var(--alert-soft);
  color: var(--alert);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__title {
  font-size: 1.24rem;
  margin-bottom: 8px;
}

.card__body {
  color: var(--ink-muted);
  font-size: 0.95rem;
  flex: 1;
}

.card__footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--brand);
}

.card--link:hover .card__arrow {
  transform: translateX(4px);
}

.card__arrow {
  transition: transform 0.18s ease;
}

/* ==========================================================================
   Prose & Editorial Content
   ========================================================================== */
.prose {
  max-width: var(--prose);
}

.prose h2 {
  margin-top: 2.1em;
  padding-top: 0.4em;
  border-top: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  margin-top: 1.75em;
}

.prose h4 {
  margin-top: 1.4em;
  color: var(--brand);
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  margin: 0 0 1.25em;
}

.prose li {
  margin-bottom: 0.45em;
}

.callout {
  margin: 1.5em 0;
  padding: 18px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
}

.callout--accent {
  border-left-color: var(--accent);
}

.callout--stream {
  border-left-color: var(--stream);
}

.callout__title {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-bottom: 6px;
}

.callout--accent .callout__title {
  color: var(--accent);
}

.callout--stream .callout__title {
  color: var(--stream);
}

/* Pull Quote */
.pull-quote {
  margin: 0 0 28px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.pull-quote blockquote {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}

.pull-quote figcaption {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Editorial Layout with Sticky TOC (geschichte.html)
   ========================================================================== */
.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.toc-sidebar__title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  margin-bottom: 12px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list a {
  display: block;
  padding: 6px 10px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--ink-muted);
  text-decoration: none;
  border-radius: 6px;
  border-left: 2px solid transparent;
}

.toc-list a:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

.toc-list a.is-active {
  color: var(--brand);
  background: var(--brand-soft);
  border-left-color: var(--brand);
  font-weight: 600;
}

@media (max-width: 920px) {
  .editorial-layout {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    position: static;
  }
}

/* ==========================================================================
   Timeline (geschichte-kurz.html & reinhold.html)
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: 34px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-strong);
}

.timeline__item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 26px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--brand);
}

.timeline--alert .timeline__item::before {
  background: var(--alert);
  box-shadow: 0 0 0 2px var(--alert);
}

.timeline__date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.timeline--alert .timeline__date {
  color: var(--alert);
  background: var(--alert-soft);
}

/* Year badge inside prose */
.year-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.84em;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-right: 4px;
}

/* ==========================================================================
   Restaurant / Venue Cards (lokale.html)
   ========================================================================== */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 780px) {
  .venue-grid {
    grid-template-columns: 1fr;
  }
}

.venue-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.venue-card__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.venue-card__tag {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

.venue-card__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--ink-subtle);
}

.venue-card__location svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
  flex-shrink: 0;
}

.venue-card__note {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.86rem;
  color: var(--ink-subtle);
}

/* ==========================================================================
   Räuber Kneißl Archival Portrait Layout
   ========================================================================== */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(28px, 4.5vw, 52px);
  align-items: start;
}

@media (max-width: 860px) {
  .feature-split {
    grid-template-columns: 1fr;
  }
}

.portrait-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.portrait-card__frame {
  width: 136px;
  height: 136px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 8px;
  background: #141715;
  border: 3px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-card__frame img {
  width: 113px;
  height: 113px;
  border-radius: 50%;
}

.dossier-facts {
  text-align: left;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
}

.dossier-facts div {
  display: flex;
  flex-direction: column;
}

.dossier-facts dt {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-subtle);
}

.dossier-facts dd {
  margin: 2px 0 0;
  font-weight: 550;
  color: var(--ink);
}

/* ==========================================================================
   Reinhold Evidence Gallery, Compare Slider & Lightbox
   ========================================================================== */
.compare-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin: 26px 0;
}

.compare-slider {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
  background: #0d161b;
  --pos: 50%;
}

.compare-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-slider__after {
  clip-path: inset(0 0 0 var(--pos));
}

.compare-slider__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.compare-slider__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #141c18;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.compare-slider__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

.compare-slider__label {
  position: absolute;
  bottom: 12px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: rgba(12, 18, 20, 0.78);
  color: #ffffff;
  pointer-events: none;
  z-index: 2;
}

.compare-slider__label--left {
  left: 12px;
}

.compare-slider__label--right {
  right: 12px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 760px) {
  .evidence-grid {
    grid-template-columns: 1fr;
  }
}

.evidence-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.evidence-card__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #0d161b;
  cursor: zoom-in;
  overflow: hidden;
}

.evidence-card__btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.evidence-card__btn:hover img {
  transform: scale(1.04);
}

.evidence-card figcaption {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.evidence-card figcaption strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

/* Reader Comments */
.comment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 720px) {
  .comment-list {
    grid-template-columns: 1fr;
  }
}

.comment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.comment-card__author {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand);
  margin-bottom: 6px;
}

.comment-card__text {
  font-size: 0.94rem;
  color: var(--ink-muted);
}

/* Lightbox Dialog */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 13, 11, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__inner {
  position: relative;
  max-width: 820px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox__img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #0b1114;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.lightbox__caption {
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0;
}

/* ==========================================================================
   Notice Box (Bilingual DE / EN)
   ========================================================================== */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 760px) {
  .notice-grid {
    grid-template-columns: 1fr;
  }
}

.notice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.notice-card__lang {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stream);
  margin-bottom: 8px;
}

/* ==========================================================================
   Contact Form & Interactive Email Helper
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  margin-bottom: 6px;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.copy-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.copy-box code {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink);
}

/* ==========================================================================
   Partner Construction Nod
   ========================================================================== */
.partner-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}

.partner-banner__badge {
  width: 96px;
  height: 110px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.partner-banner__badge img {
  max-height: 86px;
  width: auto;
}

.partner-banner__body {
  flex: 1 1 320px;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 5vw, 60px) 0 28px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col__title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--ink-subtle);
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.78rem;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-hover);
}

/* External link visual cue */
a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.85em;
  opacity: 0.7;
}

.no-ext-icon::after {
  content: none !important;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Print Stylesheet */
@media print {
  .site-header,
  .site-footer,
  .toc-sidebar,
  .back-to-top,
  .btn-group,
  .header-actions {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .editorial-layout,
  .feature-split {
    display: block;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
