@import url("/fonts/fonts.css");

:root {
  --paper: #f3eee4;
  --sheet: #fbf7f1;
  --ink: #1c1b19;
  --ink-soft: #3e3a34;
  --muted: #5e574e;
  --line: #d4cbbc;
  --ember: #a4161a;
  --ember-deep: #7c1014;
  --coal: #242220;
  --brass: #8c7344;
  --max: 72rem;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Palatino, Georgia, serif;
}
/* Breakpoints: Handy < 600px, Tablet hoch 600–899px, Tablet quer 900–1199px, Desktop ab 1200px */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
a { color: var(--ember-deep); text-underline-offset: .15em; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
iframe, video, embed, object, table { max-width: 100%; }
::selection { background: var(--ember); color: var(--sheet); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--sheet); padding: .7rem 1rem; z-index: 99; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ember-bar { height: 4px; background: var(--ember); }
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand-row, .nav-row, main, .foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-top: .7rem;
  padding-bottom: .55rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand img { width: 3rem; height: 3rem; flex: 0 0 auto; }
.brand small {
  display: block;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}
.brand strong {
  display: block;
  margin-top: .28rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
}
.notruf {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  white-space: nowrap;
  background: var(--ember);
  color: var(--sheet);
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .55rem .8rem;
}
.notruf:hover { background: var(--ember-deep); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--display);
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--ember); color: var(--ember); }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
}
.menu-icon { position: relative; flex: 0 0 auto; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.nav-row {
  display: flex;
  gap: .15rem;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: .15rem;
}
.nav-row a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .65rem .7rem;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}
.nav-row a:hover, .nav-row a[aria-current="page"] { color: var(--ember); }
.nav-row a.nav-parent-active { color: var(--ember); }
.nav-group { position: relative; }
.nav-group > a { display: flex; }
.nav-sub { list-style: none; margin: 0; padding: 0; }
.nav-sub a { white-space: nowrap; }
@media (min-width: 600px) {
  .nav-group > a::after {
    content: "";
    display: inline-block;
    margin-left: .4rem;
    vertical-align: .15em;
    border: .25rem solid transparent;
    border-top-color: currentColor;
    border-bottom-width: 0;
  }
  .nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    min-width: 100%;
    padding: .25rem 0;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-top: 3px solid var(--ember);
    box-shadow: 0 8px 18px rgba(28, 27, 25, .12);
  }
  .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: block; }
  .nav-sub a { padding: .55rem 1rem; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .nav-row a { padding-left: .45rem; padding-right: .45rem; letter-spacing: .05em; }
}
@media (max-width: 599px) {
  .brand-row, .nav-row, main, .foot-inner { padding-left: 1rem; padding-right: 1rem; }
  .brand-row { gap: .6rem; padding-top: .55rem; padding-bottom: .5rem; }
  .brand { gap: .55rem; }
  .brand img { width: 2.5rem; height: 2.5rem; }
  .brand small { font-size: .78rem; letter-spacing: .12em; }
  .brand strong { font-size: 1.35rem; }
  .notruf { padding: .45rem .65rem; font-size: .92rem; }
  .menu-toggle { display: inline-flex; }
  .nav-row {
    flex-direction: column;
    gap: 0;
    padding-bottom: .4rem;
    max-height: calc(100vh - 4.5rem);
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
  }
  .js .nav-row:not(.open) { display: none; }
  .nav-row a { border-top: 1px solid var(--line); padding-left: .2rem; font-size: 1rem; }
  .nav-group { flex-basis: auto; }
  .nav-sub {
    display: block;
    margin: 0 0 0 1.2rem;
    border-left: 2px solid var(--line);
  }
  .nav-sub a { padding-left: .8rem; }
}
@media (max-width: 359px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { padding: .45rem; }
  .brand-row { gap: .45rem; }
  .brand small { letter-spacing: .08em; }
  .brand strong { font-size: 1.25rem; }
  .notruf { padding: .45rem .5rem; letter-spacing: .04em; }
}

main { padding: 1.6rem 1.25rem 3.5rem; }
.kicker, .meta {
  font-family: var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember);
  font-size: .85rem;
  margin: 0;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: .6rem 0 .8rem;
}
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 24ch; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; text-wrap: balance; }
@media (max-width: 599px) {
  h1 { font-size: clamp(1.85rem, 8.5vw, 2.2rem); }
  .lead { font-size: 1.1rem; }
}
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 42rem; }
.hero { margin-bottom: 1.2rem; }
.hero-cover { margin: 1.2rem 0; }
.hero-cover img, .cover img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border: 1px solid var(--line);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 1.4rem 0 2rem;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts li { padding: 1.1rem .4rem; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; }
.facts strong {
  display: block;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.05;
}
.facts span { color: var(--muted); font-size: .92rem; }
@media (max-width: 599px) {
  .facts:not(.stat-facts) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts:not(.stat-facts) li:nth-child(2n) { border-right: 0; }
  .facts:not(.stat-facts) li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facts li { padding-left: .6rem; padding-right: .6rem; }
  .facts strong { font-size: 2rem; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .vehicle .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicle .facts li:nth-child(2n) { border-right: 0; }
  .vehicle .facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 1.4rem 0 .8rem;
}
.section-head a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ember);
}
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
  gap: .8rem;
}
.card {
  display: block;
  background: var(--sheet);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  padding: .9rem;
}
.card:hover { border-color: var(--ember); }
.card time {
  display: block;
  font-family: var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .78rem;
}
.card h3 { font-size: 1.25rem; margin: .45rem 0; }
.card p { color: var(--ink-soft); margin: 0; }

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: .8rem;
  margin: 1.4rem 0;
}
.door {
  display: block;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: inherit;
  text-decoration: none;
  padding: 1rem;
  position: relative;
}
.door:hover { border-color: var(--ember); }
.door-icon {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--ember);
  margin-bottom: .5rem;
  display: block;
}
.door span {
  font-family: var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
  font-size: .78rem;
}
.door strong { display: block; margin: .35rem 0; font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; font-size: 1.3rem; font-weight: 500; }

.hof {
  margin: 1.2rem 0 2rem;
  border: 1px solid var(--line);
  background: var(--sheet);
}
.hof-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 2.4rem 2.4rem 2.4rem 4.2rem;
  gap: .4rem;
  align-items: center;
  padding: .55rem .8rem;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.hof-row:last-child { border-bottom: 0; }
.hof-head {
  font-family: var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--muted);
  background: var(--paper);
}
.hof-own {
  background: #f8efe6;
  font-weight: 600;
  color: var(--ember-deep);
}
@media (max-width: 599px) {
  .hof-row { grid-template-columns: 2rem minmax(0, 1fr) 1.7rem 1.7rem 1.7rem 3rem; gap: .3rem; font-size: .92rem; padding: .45rem .5rem; }
}

.pdf-cta { margin: 1.4rem 0; }
.pdf-link {
  display: inline-block;
  min-height: 2.75rem;
  background: var(--ember);
  color: var(--sheet);
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .75rem 1.1rem;
  border: 1px solid var(--ember-deep);
}
.pdf-link:hover { background: var(--ember-deep); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
  margin: 1.2rem 0 1.6rem;
}
.gallery a {
  display: block;
  background: #1b1916;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  display: block;
}
.gallery a:first-child { grid-column: auto; }
.gallery a:first-child img { height: 14rem; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .gallery img, .gallery a:first-child img { height: 11rem; }
}
@media (max-width: 599px) {
  .gallery { gap: .4rem; }
  .gallery img, .gallery a:first-child img { height: 8.5rem; }
}

body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #0d0c0b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  margin: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox figcaption {
  position: absolute;
  left: 0; right: 0; bottom: .8rem;
  color: #efe8dc;
  text-align: center;
  font-family: var(--display);
  letter-spacing: .16em;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(13, 12, 11, .55);
  color: #efe8dc;
  cursor: pointer;
}
.lb-close {
  top: .6rem; right: .6rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  font-family: var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .85rem;
  padding: .5rem .7rem;
}
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.6rem;
  line-height: 1;
  width: 2.8rem;
  height: 3.4rem;
}
.lb-prev { left: .3rem; }
.lb-next { right: .3rem; }

.back { margin: 1.4rem 0 0; }
.back button {
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .55rem .9rem;
  min-height: 2.75rem;
  cursor: pointer;
}

/* Mannschaft: Kommando-Karten, Foto oben, Text darunter (nur /mannschaft/) */
.portraits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
  gap: 1.4rem 1rem;
  margin: .6rem 0 2rem;
}
.portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: center;
}
.portrait source { display: none; }
.portrait img {
  width: 100%;
  max-width: 16rem;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(.35) contrast(1.02);
  border: 1px solid var(--line);
  background: #fff;
}
.portrait img.portrait-platzhalter { object-fit: contain; object-position: center; filter: none; }
.portrait > div { width: 100%; }
.portrait span, .portrait strong {
  hyphens: manual;
  -webkit-hyphens: manual;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}
.portrait span {
  display: block;
  font-size: .74rem;
  letter-spacing: .05em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--display);
}
.portrait strong {
  display: block;
  margin-top: .3rem;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1.2;
}
.crew {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  border-top: 1px solid var(--line);
}
.crew li {
  border-bottom: 1px solid var(--line);
  padding: .45rem 0;
  font-size: 1rem;
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
}

.vehicle {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  gap: 1.2rem;
  align-items: start;
  margin: 0 0 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.vehicle .cover { margin: 0; }
@media (max-width: 599px) {
  .cover { margin-left: 0; margin-right: 0; }
}
.vehicle img { width: 100%; height: auto; filter: none; }
.vehicle .cover img { max-height: none; object-fit: contain; }
.retired img { filter: grayscale(.45); }
@media (max-width: 599px) {
  .vehicle { grid-template-columns: 1fr; }
}

.roles {
  margin: .4rem 0 1rem;
  padding: 0;
}
.roles div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: .4rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--line);
}
.roles div:last-child { border-bottom: 0; }
.roles dt {
  margin: 0;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.roles dd {
  margin: 0;
  font-weight: 500;
}

.pdf-frame { margin: 1.2rem 0 1.6rem; border: 1px solid var(--line); background: var(--sheet); }
.pdf-frame iframe { width: 100%; height: min(80vh, 52rem); border: 0; display: block; }

.years {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 1.2rem 0 1.6rem;
  position: sticky;
  top: var(--head-h, 7.3rem);
  z-index: 15;
  background: var(--paper);
  padding: .4rem 0;
}
.years a {
  font-family: var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: .4rem .7rem;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.years a:hover { border-color: var(--ember); color: var(--ember); }
@media (max-width: 599px) {
  .years {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .years a { flex: 0 0 auto; }
}

/* Einsatzstatistik */
.stat-jahr { margin: 0 0 2.4rem; scroll-margin-top: calc(var(--head-h, 7.3rem) + 4rem); }
.stat-facts { grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); margin: 1rem 0 1.6rem; }
.stat-block {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 1rem;
  margin: 0 0 1rem;
}
.stat-block h3 { margin-top: 0; }
.stat-monate {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: .35rem;
  align-items: end;
  height: 12rem;
  border-bottom: 2px solid var(--ink);
}
.stat-monate li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  position: relative;
}
.stat-monate .stat-balken {
  display: block;
  width: 100%;
  max-width: 2.6rem;
  height: calc(var(--wert) * .8);
  background: var(--ember);
}
.stat-monate .stat-wert {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.4;
}
.stat-monate .stat-monat {
  position: absolute;
  top: 100%;
  padding-top: .3rem;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-monate abbr { text-decoration: none; }
.stat-tabelle { margin-top: 2.4rem; }
.stat-tabelle { overflow-x: auto; }
.stat-tabelle summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--ember-deep);
}
.stat-tabelle table { border-collapse: collapse; margin-top: .6rem; min-width: 14rem; font-variant-numeric: tabular-nums; }
.stat-tabelle caption { text-align: left; color: var(--muted); font-size: .92rem; }
.stat-tabelle th, .stat-tabelle td { text-align: left; padding: .25rem .8rem .25rem 0; border-bottom: 1px solid var(--line); }
.stat-tabelle td { text-align: right; }
.stat-arten { list-style: none; margin: 0; padding: 0; }
.stat-arten li {
  display: grid;
  grid-template-columns: minmax(9rem, 16rem) 1fr;
  gap: .3rem .8rem;
  align-items: center;
  padding: .35rem 0;
  border-bottom: 1px solid var(--line);
}
.stat-arten li:last-child { border-bottom: 0; }
.stat-spur { display: flex; align-items: center; gap: .5rem; }
.stat-arten .stat-balken {
  display: block;
  width: calc(var(--wert) * .85);
  height: 1.1rem;
  background: var(--ember);
}
.stat-arten .stat-wert { font-family: var(--display); font-size: 1.05rem; }
.stat-hinweis { color: var(--muted); margin: .6rem 0 0; }
.stat-gemeinde { border-left: 4px solid var(--brass); }
.stat-gemeinde .stat-hinweis { margin: 0 0 .4rem; }
.stat-gemeinde .stat-facts { margin: 0; }
.stat-quelle { color: var(--muted); font-size: .92rem; }
.stat-teaser { display: block; max-width: 28rem; margin: 0 0 1.4rem; border-left: 4px solid var(--ember); }
.stat-teaser h2 { font-size: 1.25rem; margin: .45rem 0; }
@media (max-width: 599px) {
  .stat-block { padding: .8rem; }
  .stat-monate { gap: .15rem; height: 10rem; }
  .stat-monate .stat-monat { font-size: .72rem; letter-spacing: 0; }
  .stat-arten li { grid-template-columns: 1fr; }
}
.block { margin: 2.2rem 0; }
.block > p { max-width: 42rem; }
.nummern {
  list-style: none;
  margin: 1rem 0 1.2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
  gap: .6rem;
}
.nummer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.4rem;
  height: 100%;
  padding: .7rem 1rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ember);
  color: var(--ink);
  text-decoration: none;
}
.nummer:hover { border-color: var(--ember); }
.nummer strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: .04em;
  line-height: 1.05;
  color: var(--ember-deep);
}
.nummer span { color: var(--ink-soft); font-size: .95rem; line-height: 1.3; }
.nummer-main { background: var(--ember); border-color: var(--ember-deep); }
.nummer-main strong, .nummer-main span { color: var(--sheet); }
.nummer-main:hover { background: var(--ember-deep); }
.wfragen { max-width: 42rem; padding-left: 1.4rem; margin: 1rem 0 1.4rem; }
.wfragen li { margin-bottom: .5rem; }
.wfragen strong { font-family: var(--display); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ember-deep); }
.block .door h3 { font-size: 1.3rem; margin-top: 0; }
.block .door ul { padding-left: 1.2rem; }
.block .door li + li { margin-top: .45rem; }
.quellen ul { font-size: .92rem; color: var(--muted); }

/* Fußzeile */
.site-foot { border-top: 1px solid var(--line); padding: 1.6rem 0 1.4rem; }
.foot-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: .4rem 2rem;
}
.site-foot h2 { font-size: 1.25rem; margin: .4rem 0 .5rem; }
.site-foot p { margin: 0 0 .6rem; }
.site-foot p a { padding: .7rem 0; }
.site-foot ul { list-style: none; margin: 0 0 .6rem; padding: 0; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-foot .legal {
  max-width: var(--max);
  margin: 1rem auto 0;
  padding: 1rem 1.25rem 0;
  color: var(--muted);
  font-size: .92rem;
}
@media (min-width: 600px) {
  .foot-inner { grid-template-columns: repeat(2, 1fr); }
  .foot-inner > div:first-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .foot-inner { grid-template-columns: 2fr 1fr 1fr; }
  .foot-inner > div:first-child { grid-column: auto; }
}
@media (max-width: 599px) {
  .site-foot .legal { padding-left: 1rem; padding-right: 1rem; }
}

/* Kopfhöhe für klebende Leisten (Jahresleiste) */
:root { --head-h: 7.2rem; }
@media (max-width: 599px) { :root { --head-h: 4.4rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-head { position: static; }
  .menu-toggle, .ember-bar, .back { display: none; }
  .js .nav-row:not(.open) { display: flex; }
}

.admin-link { color: transparent; font-size: .55rem; text-decoration: none; margin-left: .3rem; }
.admin-link:hover, .admin-link:focus { color: var(--muted); }

/* Tablet Querformat (typisch 900–1199px, z. B. iPad landscape) */
@media (min-width: 900px) and (max-width: 1199px) {
  .nav-row { gap: .05rem; }
  .nav-row a {
    padding-left: .5rem;
    padding-right: .5rem;
    letter-spacing: .05em;
    font-size: .88rem;
  }
  .hero-cover img, .cover img { max-height: 22rem; }
  .facts strong { font-size: 1.85rem; }
  .grid.cards { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
  .gallery img, .gallery a:first-child img { height: 12rem; }
  .vehicle { grid-template-columns: minmax(12rem, 18rem) 1fr; gap: 1rem; }
  .years { top: 6.4rem; }
  :root { --head-h: 6.4rem; }
  h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
  .foot-inner { gap: 1rem 1.5rem; }
}

/* Tablet hoch und Quer: bessere Abstände */
@media (min-width: 600px) and (max-width: 1199px) {
  main { padding-top: 1.2rem; padding-bottom: 2.5rem; }
  .hero { margin-bottom: .8rem; }
  .section-head { margin-top: 1rem; }
}

/* === Alle Geräte, beide Ausrichtungen === */

/* Smartphone Querformat: wenig Höhe, Navigation kompakt */
@media (max-height: 500px) and (orientation: landscape) {
  .brand-row { padding-top: .35rem; padding-bottom: .3rem; }
  .brand img { width: 2.2rem; height: 2.2rem; }
  .brand strong { font-size: 1.15rem; }
  .notruf { min-height: 2.2rem; padding: .35rem .6rem; font-size: .85rem; }
  .nav-row a { min-height: 2.2rem; padding-top: .4rem; padding-bottom: .4rem; }
  .hero-cover img, .cover img { max-height: 12rem; }
  main { padding-top: .8rem; padding-bottom: 1.5rem; }
  h1 { font-size: 1.6rem; }
  .facts strong { font-size: 1.5rem; }
  .facts li { padding-top: .6rem; padding-bottom: .6rem; }
  :root { --head-h: 3.8rem; }
  .years { top: 3.8rem; }
}

/* Tablet hoch: ausgewogene Spalten */
@media (min-width: 600px) and (max-width: 899px) and (orientation: portrait) {
  .grid.cards { grid-template-columns: repeat(2, 1fr); }
  .doors { grid-template-columns: repeat(2, 1fr); }
  .hero-cover img { max-height: 20rem; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts strong { font-size: 1.7rem; }
}

/* Tablet quer: bereits oben, hier Feinschliff */
@media (min-width: 900px) and (max-width: 1199px) and (orientation: landscape) {
  .grid.cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop ab 1200px */
@media (min-width: 1200px) {
  .hero-cover img, .cover img { max-height: 32rem; }
  .grid.cards { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
  .gallery img { height: 15rem; }
}

/* Sehr kleine Handys */
@media (max-width: 380px) {
  .facts strong { font-size: 1.6rem; }
  .card h3 { font-size: 1.1rem; }
  .door strong { font-size: 1.1rem; }
}

/* Kein horizontaler Scroll auf keinem Gerät */
html, body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; }

/* Startbild (Startseite) und oberstes Bild auf /fahrzeug/: immer vollständig, nie abgeschnitten */
.hero-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  max-height: none;
  object-fit: contain;
  background: #000;
}
.cover-ganz img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(80vh, 40rem);
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero-cover img { max-height: 62vh; }
  .cover-ganz img { max-height: 62vh; }
}

/* Nützliche Links (/links/) */
.link-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.grid.cards.link-list { grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); }
.link-list li { display: flex; min-width: 0; }
.link-card { flex: 1 1 auto; display: flex; flex-direction: column; }
.link-card h2 { font-size: 1.25rem; margin: 0 0 .45rem; overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 380px) { .link-card h2 { font-size: 1.1rem; } }
.link-card .link-domain {
  margin-top: auto;
  padding-top: .6rem;
  font-family: var(--display);
  letter-spacing: .06em;
  color: var(--ember);
  font-size: .9rem;
  overflow-wrap: anywhere;
}

/* Hauptmenü mit 8 Punkten: schmale Tablets (600–767px) etwas kompakter, damit es einzeilig bleibt */
@media (min-width: 600px) and (max-width: 767px) {
  .nav-row { gap: .05rem; padding-left: .75rem; padding-right: .75rem; }
  .nav-row a { padding-left: .28rem; padding-right: .28rem; letter-spacing: .03em; font-size: .84rem; }
  .nav-group > a::after { margin-left: .3rem; }
}
