/* ── Arbeitsunfaelle.de – öffentliches Layout (Lesen & Navigation) ── */
:root {
  --bg: #f7f5f1;
  --bg-elevated: #ffffff;
  --text: #1c1917;
  --text-soft: #44403c;
  --muted: #78716c;
  --accent: #0f5c8c;
  --accent-hover: #0a4468;
  --accent-soft: #e0f0fa;
  --accent-glow: rgba(15, 92, 140, 0.12);
  --highlight: #c2410c;
  --border: #e7e5e4;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow: 0 4px 24px rgba(28, 25, 23, 0.07);
  --shadow-hover: 0 12px 40px rgba(28, 25, 23, 0.1);
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --read-width: 42rem;
  --header-h: 68px;
  --content-max: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --surface: var(--bg-elevated);
  --ink: var(--text);
  --bg-soft: #f5f5f4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site-body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent-hover); }

.container {
  width: min(var(--content-max), 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 300;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* Lesefortschritt */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.site-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}
.site-tool-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.site-theme-btn {
  width: auto;
  min-width: 44px;
  padding: 0 0.7rem;
  gap: 0.4rem;
}
.theme-toggle-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
@media (max-width: 520px) {
  .theme-toggle-label { display: none; }
  .site-theme-btn { width: 44px; padding: 0; }
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}
.brand-lockup:hover { opacity: 0.9; color: inherit; }

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  display: block;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-tagline {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.site-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-soft);
  border-radius: 999px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-item-dropdown { position: relative; }
.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 110;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 1.1rem 1.3rem;
  min-width: min(520px, 92vw);
  max-height: 70vh;
  overflow-y: auto;
  columns: 2;
  column-gap: 1.5rem;
}
.nav-item-dropdown:hover .nav-dropdown-panel,
.nav-item-dropdown:focus-within .nav-dropdown-panel,
.nav-item-dropdown.is-open .nav-dropdown-panel {
  display: block;
}
.nav-group { break-inside: avoid; margin-bottom: 1rem; }
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.nav-group-title {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.nav-group a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.nav-group a:hover { color: var(--accent); }

@media (max-width: 959px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
    box-shadow: var(--shadow);
    overflow-y: auto;
    max-height: calc(100vh - var(--header-h));
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; border-radius: 10px; }
  .nav-dropdown-panel {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding: 0.5rem 0 0 0.75rem;
    columns: 1;
  }
  .nav-item-dropdown.is-open .nav-dropdown-panel { display: block; }
  .nav-item-dropdown:hover .nav-dropdown-panel { display: none; }
  .nav-item-dropdown.is-open:hover .nav-dropdown-panel { display: block; }
}

/* Main */
.site-main { padding: 0 0 4rem; }
.main-inner { min-height: 50vh; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0a4468 0%, #0f5c8c 45%, #1a7ab5 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  margin-bottom: 2rem;
}
.hero-inner {
  width: min(var(--content-max), 92vw);
  margin: 0 auto;
  max-width: 40rem;
}
.hero-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}
.hero-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.12rem;
  line-height: 1.55;
  opacity: 0.92;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.hero--portal .hero-inner { max-width: 46rem; }

.portal-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: min(var(--content-max), 92vw);
  margin: -0.5rem auto 2rem;
  padding: 0;
}
@media (max-width: 900px) {
  .portal-pillars { grid-template-columns: 1fr; }
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.pillar-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--ink);
}
.pillar-text {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}
.pillar-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}
.pillar-link:hover { text-decoration: underline; }

.story-grid--archive .story-card--archive,
.story-grid--archive .fall-card--archive {
  border-left: 3px solid var(--border);
}
.aside-panel--about {
  background: var(--bg-soft);
  border-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--accent-hover);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.site-main .btn-primary,
.article-footer .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.site-main .btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* Topic rail */
.topic-rail {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 min(4vw, 1rem) 1.5rem;
  margin: -0.5rem auto 2rem;
  width: min(var(--content-max), 100%);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.topic-pill {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(260px, 78vw);
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.topic-pill:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  color: inherit;
}
.topic-pill-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.topic-pill-desc {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Layout grid */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.5rem;
  align-items: start;
  width: min(var(--content-max), 92vw);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.section-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}
.section-sub { margin: 0; font-size: 0.9rem; color: var(--muted); }
.section-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* Fallarchiv-Suche */
.fall-search-panel {
  margin-bottom: 1.75rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.fall-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.fall-search-field--wide { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .fall-search-field--wide { grid-column: span 2; }
  .fall-search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fall-search-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.fall-search-field input,
.fall-search-field select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
}
.fall-search-field input:focus,
.fall-search-field select:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
.fall-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.fall-search-reset {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}
.fall-search-reset:hover { color: var(--accent); }
.fall-search-summary {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.fall-search-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.fall-search-active-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.fall-search-chip {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}
.fall-search-chip:hover {
  background: var(--accent);
  color: #fff;
}

/* Story cards */
.story-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.story-card--featured {
  margin-bottom: 1.25rem;
  padding: 1.75rem 2rem;
  border-color: transparent;
  background: linear-gradient(145deg, #fff 0%, #f0f9ff 100%);
  box-shadow: var(--shadow);
}
.story-card--featured .story-title { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.story-card--featured .story-excerpt {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.story-location {
  padding: 0.15rem 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.78rem;
}
.story-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 600;
}
.story-title a {
  color: var(--text);
  text-decoration: none;
}
.story-title a:hover { color: var(--accent); }
.story-excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.story-more:hover { text-decoration: underline; }

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.tag {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Fall cards & themed tags */
.fall-card {
  position: relative;
  overflow: hidden;
}
.fall-card--archive {
  border-left-width: 3px;
  border-left-style: solid;
}
.fall-card-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--fall-accent-soft, var(--accent-soft));
  color: var(--fall-accent, var(--accent));
}
.fall-card-badge--inline { margin-bottom: 0; }
.fall-insight {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-soft);
}
.fall-card--theme-fall { --fall-accent: #0d9488; --fall-accent-soft: #ccfbf1; border-left-color: #0d9488 !important; }
.fall-card--theme-press { --fall-accent: #c2410c; --fall-accent-soft: #ffedd5; border-left-color: #c2410c !important; }
.fall-card--theme-vehicle { --fall-accent: #1d4ed8; --fall-accent-soft: #dbeafe; border-left-color: #1d4ed8 !important; }
.fall-card--theme-electric { --fall-accent: #ca8a04; --fall-accent-soft: #fef9c3; border-left-color: #ca8a04 !important; }
.fall-card--theme-chemical { --fall-accent: #7c3aed; --fall-accent-soft: #ede9fe; border-left-color: #7c3aed !important; }
.fall-card--theme-fire { --fall-accent: #dc2626; --fall-accent-soft: #fee2e2; border-left-color: #dc2626 !important; }
.fall-card--theme-site { --fall-accent: #475569; --fall-accent-soft: #f1f5f9; border-left-color: #475569 !important; }
.fall-card--theme-lift { --fall-accent: #0891b2; --fall-accent-soft: #cffafe; border-left-color: #0891b2 !important; }
.fall-card--theme-default { --fall-accent: var(--accent); --fall-accent-soft: var(--accent-soft); }

.tags--fall { margin-top: 0.75rem; }
.tag--fall { background: #ccfbf1; border-color: #99f6e4; color: #0f766e; }
.tag--fall:hover { background: #0d9488; border-color: #0d9488; color: #fff; }
.tag--press { background: #ffedd5; border-color: #fed7aa; color: #9a3412; }
.tag--press:hover { background: #c2410c; border-color: #c2410c; color: #fff; }
.tag--vehicle { background: #dbeafe; border-color: #bfdbfe; color: #1e40af; }
.tag--vehicle:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.tag--electric { background: #fef9c3; border-color: #fde68a; color: #854d0e; }
.tag--electric:hover { background: #ca8a04; border-color: #ca8a04; color: #fff; }
.tag--chemical { background: #ede9fe; border-color: #ddd6fe; color: #5b21b6; }
.tag--chemical:hover { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.tag--fire { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.tag--fire:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.tag--site { background: #f1f5f9; border-color: #e2e8f0; color: #334155; }
.tag--site:hover { background: #475569; border-color: #475569; color: #fff; }
.tag--lift { background: #cffafe; border-color: #a5f3fc; color: #0e7490; }
.tag--lift:hover { background: #0891b2; border-color: #0891b2; color: #fff; }

.fall-insight-box {
  margin: 1rem 0 1.1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
  border: 1px solid #bae6fd;
}
.fall-article--theme-fall .fall-insight-box { background: linear-gradient(135deg, #f0fdfa, #fff); border-color: #99f6e4; }
.fall-article--theme-press .fall-insight-box { background: linear-gradient(135deg, #fff7ed, #fff); border-color: #fed7aa; }
.fall-article--theme-vehicle .fall-insight-box { background: linear-gradient(135deg, #eff6ff, #fff); border-color: #bfdbfe; }
.fall-article--theme-fire .fall-insight-box { background: linear-gradient(135deg, #fef2f2, #fff); border-color: #fecaca; }
.fall-insight-box-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
}
.fall-insight-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.fall-insight-link:hover { text-decoration: underline; }
.fall-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
}
.fall-meta-badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(15, 92, 140, 0.1);
  color: var(--accent);
}
.fall-meta-badge--severity {
  background: rgba(180, 83, 9, 0.12);
  color: #9a3412;
}
.fall-meta-subhead {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fall-prevention-list {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--text);
}
.fall-prevention-list li { margin: 0.2rem 0; }
.fall-prevention-hint {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Sidebar */
.content-aside { position: relative; }
.aside-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.aside-panel--tip {
  background: linear-gradient(160deg, #fffbeb, #fff);
  border-color: #fde68a;
}
.aside-title {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Article reading layout */
.article-layout {
  width: min(var(--content-max), 92vw);
  margin: 0 auto;
}

.article-hero {
  max-width: var(--read-width);
  margin: 0 auto 2rem;
  padding: 0 0.5rem;
}
.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.article-location {
  padding: 0.2rem 0.65rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
}
.article-location:hover {
  background: var(--accent);
  color: #fff;
}
.article-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.article-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .article-layout-grid { grid-template-columns: 1fr; }
}

.article-main {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

/* Prose – Lesekomfort */
.prose,
.entry {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.75;
  color: var(--text);
  max-width: var(--read-width);
  margin: 0 auto;
}
.prose > *:first-child,
.entry > *:first-child { margin-top: 0; }
.prose p,
.entry p,
.wp-content p {
  margin: 0 0 1.25em;
}
.prose h2,
.entry h2,
.wp-content h2 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2em 0 0.75em;
  color: var(--text);
  letter-spacing: -0.01em;
}
.prose h3,
.entry h3,
.wp-content h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  margin: 1.5em 0 0.5em;
}
.prose a,
.entry a,
.wp-content a {
  color: var(--accent);
  font-weight: 500;
}
.prose ul,
.prose ol,
.entry ul,
.entry ol,
.wp-content ul,
.wp-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}
.prose li,
.entry li,
.wp-content li { margin-bottom: 0.4em; }
.prose blockquote,
.entry blockquote {
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.25em;
  border-left: 4px solid var(--accent);
  color: var(--text-soft);
  font-style: italic;
}

.article-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: var(--read-width);
  margin-left: auto;
  margin-right: auto;
}

/* Legacy panels */
.hero-block {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.hero-block--compact { margin-bottom: 1.5rem; }
.page-heading {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
}
.lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.55;
}

.article-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}

.related-posts {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  max-width: var(--read-width);
  margin-left: auto;
  margin-right: auto;
}
.related-posts h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 1rem;
}
.related-posts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-posts li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.related-posts li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-posts a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.related-posts a:hover { color: var(--accent); }
.related-posts .meta { font-size: 0.82rem; }

.wissen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.wissen-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.wissen-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.wissen-card-title {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.wissen-topic-list { list-style: none; margin: 0; padding: 0; }
.wissen-topic { margin-bottom: 0.65rem; }
.wissen-topic:last-child { margin-bottom: 0; }
.wissen-topic-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.wissen-topic-link:hover {
  background: var(--accent-soft);
  border-color: var(--border);
}
.wissen-topic-name {
  display: block;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.wissen-topic-teaser {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  font-family: var(--font-sans);
}

/* Wissensartikel – Leselayout */
.article-hero--wissen { margin-bottom: 1.5rem; }
.article-hero-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-family: var(--font-sans);
}
.article-hero-lead {
  margin: 0.85rem 0 0;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 62ch;
  font-family: var(--font-sans);
}
.prose-wissen .prose { max-width: none; }

.prose-wissen .wissen-lead,
.prose .wissen-lead {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.prose-wissen .wissen-keyfacts,
.prose .wissen-keyfacts {
  margin: 0 0 2rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(160deg, #f0f9ff, #fff);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.prose-wissen .wissen-keyfacts-title,
.prose .wissen-keyfacts-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
}
.prose-wissen .wissen-keyfacts ul,
.prose .wissen-keyfacts ul {
  margin: 0;
  padding-left: 1.2em;
}
.prose-wissen .wissen-callout,
.prose .wissen-callout {
  margin: 1.75rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.55;
}
.prose-wissen .wissen-callout--recht {
  border-left-color: #0369a1;
  background: #f0f9ff;
}
.prose-wissen .wissen-callout p:last-child,
.prose .wissen-callout p:last-child { margin-bottom: 0; }

.wissen-aside-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wissen-aside-links a {
  display: block;
  padding: 0.4rem 0;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.35;
}
.wissen-aside-links a:hover,
.wissen-aside-links a[aria-current="page"] {
  color: var(--accent);
}
.wissen-aside-back { margin-top: 1rem; }

.wissen-related-inline {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.wissen-related-title {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.wissen-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wissen-related-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.wissen-related-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.wissen-related-list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.wissen-related-list a:hover { color: var(--accent); }
.wissen-related-list .meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
}

/* Unfallfreie-Tage-Rechner */
.unfallfrei-tool {
  margin: 2rem 0 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: linear-gradient(165deg, #f0f9ff 0%, #fff 55%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.unfallfrei-tool-heading {
  margin: 0 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.unfallfrei-result {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem 1rem 1.25rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.unfallfrei-result.is-empty .unfallfrei-result-value {
  color: var(--muted);
  font-weight: 500;
}
.unfallfrei-result:not(.is-empty) {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, #fff 0%, #f0f9ff 100%);
}
.unfallfrei-result-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.unfallfrei-result-value {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.unfallfrei-result-meta {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  font-family: var(--font-sans);
}
.unfallfrei-result-milestone {
  margin: 0.85rem auto 0;
  max-width: 42ch;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #0c4a6e;
  background: #e0f2fe;
  border-radius: 999px;
  font-family: var(--font-sans);
}
.unfallfrei-fields {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem 1rem;
  align-items: end;
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .unfallfrei-fields {
    grid-template-columns: 1fr;
  }
  .unfallfrei-field--arrow { display: none; }
}
.unfallfrei-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
}
.unfallfrei-field input[type="date"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
}
.unfallfrei-field input[type="date"]:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
.unfallfrei-arrow {
  display: inline-block;
  padding-bottom: 0.65rem;
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 700;
}
.unfallfrei-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.unfallfrei-error {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #b91c1c;
  font-family: var(--font-sans);
}
.unfallfrei-hint {
  margin: 1rem 0 0;
  text-align: center;
}

.site-contact {
  font-style: normal;
  line-height: 1.6;
  margin: 0 0 1rem;
}
.site-contact-note {
  max-width: 52ch;
}

.empty-state {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 0.35rem;
  opacity: 0.5;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.pagination a,
.pagination span {
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-soft);
}
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination .active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.ad-slot {
  margin: 1.5rem 0;
  min-height: 90px;
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft, #f5f5f4);
}
.ad-slot--in-article { margin: 2rem auto; max-width: 100%; }
.ad-slot--in-feed { grid-column: 1 / -1; margin: 0.5rem 0 1rem; }
.ad-slot ins.adsbygoogle { display: block; }

.overview-hint {
  max-width: 62ch;
  margin-bottom: 2rem;
  color: var(--muted);
  line-height: 1.6;
}

.timeline { margin-bottom: 2.5rem; }
.timeline-month { margin-bottom: 2.25rem; }
.timeline-month-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-soft, var(--border));
}
.timeline-item:last-child { border-bottom: none; }
.timeline-date {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.timeline-link {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.timeline-link:hover { color: var(--accent); }
.timeline-place {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.timeline-place::before { content: "· "; }
.timeline-insight {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-soft);
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.timeline-tags .tag {
  font-size: 0.72rem;
  padding: 0.18rem 0.5rem;
}

.map-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.map-section-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  font-weight: 600;
}
.map-section-summary::-webkit-details-marker { display: none; }
.map-section-title { font-size: 1.1rem; }
.map-section[open] .map-section-summary { margin-bottom: 0.75rem; }

.unfall-map {
  height: min(55vh, 480px);
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #e7e5e4;
}
.map-hint { max-width: 55ch; margin-bottom: 1.25rem; color: var(--muted); }

@media (max-width: 520px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.flash {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.flash.success { background: #ecfdf5; color: #065f46; }
.flash.error { background: #fef2f2; color: #991b1b; }

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #1c1917;
  color: #a8a29e;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0 2rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  color: #fafaf9;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.footer-desc { margin: 0; line-height: 1.6; max-width: 36ch; }
.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #78716c;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-nav a,
.footer-social a {
  color: #d6d3d1;
  text-decoration: none;
  font-weight: 500;
}
.footer-nav a:hover,
.footer-social a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #292524;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: #1c1917;
  color: #fafaf9;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}
.cookie-consent a { color: #7dd3fc; }
.cookie-consent .btn {
  margin: 0;
  background: var(--accent);
  color: #fff;
}

/* ── Dunkelmodus (System-Standard oder manuell) ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141210;
    --bg-elevated: #1c1917;
    --bg-soft: #292524;
    --text: #fafaf9;
    --text-soft: #d6d3d1;
    --muted: #a8a29e;
    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
    --accent-soft: #0c3347;
    --accent-glow: rgba(56, 189, 248, 0.15);
    --highlight: #fb923c;
    --border: #292524;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.45);
    --surface: var(--bg-elevated);
    --ink: var(--text);
  }
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141210;
  --bg-elevated: #1c1917;
  --bg-soft: #292524;
  --text: #fafaf9;
  --text-soft: #d6d3d1;
  --muted: #a8a29e;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-soft: #0c3347;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --highlight: #fb923c;
  --border: #292524;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.45);
  --surface: var(--bg-elevated);
  --ink: var(--text);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5f1;
  --bg-elevated: #ffffff;
  --bg-soft: #f5f5f4;
  --text: #1c1917;
  --text-soft: #44403c;
  --muted: #78716c;
  --accent: #0f5c8c;
  --accent-hover: #0a4468;
  --accent-soft: #e0f0fa;
  --accent-glow: rgba(15, 92, 140, 0.12);
  --highlight: #c2410c;
  --border: #e7e5e4;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow: 0 4px 24px rgba(28, 25, 23, 0.07);
  --shadow-hover: 0 12px 40px rgba(28, 25, 23, 0.1);
  --surface: var(--bg-elevated);
  --ink: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .story-card--featured {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  :root:not([data-theme="light"]) .fall-insight-box,
  :root:not([data-theme="light"]) [class*="fall-article--theme-"] .fall-insight-box {
    background: var(--bg-elevated) !important;
    border-color: var(--border) !important;
  }
  :root:not([data-theme="light"]) [class*="fall-card--theme-"] {
    --fall-accent-soft: var(--accent-soft);
  }
  :root:not([data-theme="light"]) .unfall-map {
    background: var(--bg-soft);
  }
  :root:not([data-theme="light"]) .fall-merge-bar {
    background: #422006;
    border-color: #92400e;
    color: #fde68a;
  }
  :root:not([data-theme="light"]) .fall-merge-bar-text {
    color: #fde68a;
  }
}
html[data-theme="dark"] .story-card--featured {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
html[data-theme="dark"] .fall-insight-box,
html[data-theme="dark"] [class*="fall-article--theme-"] .fall-insight-box {
  background: var(--bg-elevated) !important;
  border-color: var(--border) !important;
}
html[data-theme="dark"] [class*="fall-card--theme-"] {
  --fall-accent-soft: var(--accent-soft);
}
html[data-theme="dark"] .unfall-map {
  background: var(--bg-soft);
}

html[data-theme="dark"] .unfallfrei-tool,
html[data-theme="dark"] .unfallfrei-result:not(.is-empty) {
  background: linear-gradient(165deg, #0c3347 0%, var(--bg-elevated) 55%);
  border-color: #1e4a63;
}
html[data-theme="dark"] .fall-merge-bar {
  background: #422006;
  border-color: #92400e;
  color: #fde68a;
}
html[data-theme="dark"] .fall-merge-bar-text { color: #fde68a; }

.article-footer--tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.article-footer--tools .btn-ghost {
  background: var(--bg);
  color: var(--text-soft);
  border: 1px solid var(--border);
}
.article-footer--tools .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 120;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Tabellen & Medien – Tablet/Handy */
.prose table,
.entry table,
.wp-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 1.25em 0;
  font-size: 0.92em;
}
.prose img,
.entry img,
.wp-content img {
  height: auto;
  border-radius: var(--radius);
}

/* ── Druckansicht ── */
/* Admin: Meldungen zusammenführen (Suche) */
.fall-merge-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.92rem;
}
.fall-merge-bar-text { margin: 0; color: #92400e; }
.fall-card--selectable { position: relative; }
.fall-merge-check {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.fall-merge-check input { accent-color: var(--accent); }
.story-grid--merge .fall-card { padding-top: 2.25rem; }

/* Werkzeuge-Hub & Einbettung */
.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.tools-hub-grid--inline {
  margin: 1rem 0 1.75rem;
}
.tool-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.tool-hub-card--compact {
  padding: 1rem 1.15rem;
}
.tool-hub-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-family: var(--font-sans);
}
.tool-hub-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}
.tool-hub-title a {
  color: var(--text);
  text-decoration: none;
}
.tool-hub-title a:hover { color: var(--accent); }
.tool-hub-lead {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.tool-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.tools-hub-note {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.tool-chrome {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}
.tool-chrome-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.tool-chrome-link:hover { text-decoration: underline; }
.tool-chrome-btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.tool-chrome-btn:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: var(--bg);
}

.tool-embed-body {
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
}
.tool-embed-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1.15rem 1.5rem;
}
.article-layout--embed .article-main {
  padding: 0;
}
.article-layout-grid--single {
  grid-template-columns: 1fr !important;
}

.rate-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  max-width: 520px;
  margin: 0 auto;
}
.rate-tool-grid--quad {
  max-width: 560px;
}
.rate-tool-field--wide {
  grid-column: 1 / -1;
}
@media (max-width: 520px) {
  .rate-tool-grid,
  .rate-tool-grid--quad {
    grid-template-columns: 1fr;
  }
}
.rate-tool-form select,
.rate-tool-form input[type="number"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
}
.rate-tool-form select:focus,
.rate-tool-form input[type="number"]:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.wissen-formula {
  text-align: center;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.95rem;
  overflow-x: auto;
}
.wissen-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}
.wissen-table th,
.wissen-table td {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}
.wissen-table th {
  background: var(--bg-elevated);
  font-weight: 600;
}
.wissen-table--compact {
  max-width: 520px;
}

@media print {
  @page {
    margin: 1.5cm;
  }
  body.site-body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.5;
  }
  .skip-link,
  .site-header,
  .site-footer,
  .cookie-consent,
  .nav-toggle,
  .site-tool-btn,
  .back-to-top,
  .reading-progress,
  .ad-slot,
  .article-aside,
  .content-aside,
  .hero-actions,
  .portal-pillars,
  .topic-rail,
  .pagination,
  .fall-search-panel,
  .fall-search-active,
  .wissen-aside,
  .related-posts {
    display: none !important;
  }
  .container,
  .article-layout,
  .article-main,
  .main-inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .article-layout-grid {
    display: block !important;
  }
  .article-title {
    font-size: 18pt !important;
    color: #000 !important;
  }
  .breadcrumb {
    font-size: 9pt;
    margin-bottom: 0.75rem;
  }
  .prose,
  .entry {
    font-size: 11pt !important;
    max-width: none !important;
    color: #000 !important;
  }
  .prose a[href^="http"]:after,
  .entry a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #444;
    word-break: break-all;
  }
  .prose a[href^="/"]:after,
  .entry a[href^="/"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #444;
  }
  .fall-insight-box,
  .fall-card-badge {
    border: 1px solid #ccc !important;
    background: #f5f5f5 !important;
    color: #000 !important;
  }
  .article-footer--tools button {
    display: none !important;
  }
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }
}
