/* ==========================================================================
   Kultournacht – das komplette Design in einer Datei.

   Aufbau:
     1. Farben, Schrift, Abstände (hier zuerst ändern)
     2. Grundlagen
     3. Kopf und Menü
     4. Startseite: Slideshow, Termin, Einleitung, Kacheln
     5. Inhaltsseiten, Museum, Programm, Flyer, Sponsoren
     6. Bildansicht, Fuß
     7. Verwaltung (/admin)
     8. Busfahrplan-App (/busfahrplan)
     9. Druckfahrplan (/busfahrplan/druck)
   ========================================================================== */

/* ---------- 1. Farben, Schrift, Abstände ---------- */
:root {
  --bg: #0e0601;              /* Seitenhintergrund */
  --bg-raised: #190e10;       /* Kästen, Menüs */
  --line: rgba(255, 255, 255, .1);
  --text: rgba(255, 255, 255, .72);
  --text-strong: #fff;
  --muted: rgba(255, 255, 255, .5);
  --orange: #fe8534;          /* Motto, Überschriften-Akzent */
  --orange-2: #f58f38;
  --yellow: #fbba4d;          /* das "tour" in Kultournacht */
  --red: #fe4634;             /* Punkte, Hervorhebungen */
  --glow: #cc004e;
  --glow-soft: rgba(254, 33, 66, .13);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 6px;
  --container: 1200px;
  --header-h: 80px;
}

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-600.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-700.woff2) format('woff2'); }

/* ---------- 2. Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(204, 0, 78, .08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(254, 133, 52, .05), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-strong); text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
a:hover { color: var(--orange); text-decoration-color: currentColor; }
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong { color: var(--text-strong); }
.tour { color: var(--yellow); }
.center { text-align: center; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 8px 16px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.button {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.3em;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--text-strong);
  background: rgba(254, 133, 52, .1);
  text-decoration: none;
  font-weight: 600;
  transition: background .15s, box-shadow .15s;
}
.button:hover { color: #fff; background: rgba(254, 133, 52, .25); box-shadow: 0 0 20px -6px var(--orange); }
.button.small { padding: .45em 1em; font-size: .9rem; }
.icon { flex: none; }

.notice {
  border-left: 3px solid var(--orange);
  background: rgba(254, 133, 52, .07);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.admin-note { background: #523; color: #fff; padding: 8px 14px; border-radius: var(--radius); font-size: .9rem; }
.lead { font-size: 1.15rem; }
.plain-list { padding-left: 1.2em; }

/* ---------- 3. Kopf und Menü ---------- */
.admin-bar { background: #2a1a1a; color: #fff; font-size: .85rem; padding: 6px 24px; text-align: center; }
.admin-bar a { color: var(--yellow); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 6, 1, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: stretch; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; padding: 0 28px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-decoration: none; }
.logo img { width: 70px; height: 70px; object-fit: contain; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.site-nav > ul > li { position: relative; display: flex; align-items: stretch; border-right: 1px solid var(--line); }
.site-nav > ul > li:first-child { border-left: 1px solid var(--line); }
.site-nav > ul > li > a {
  display: flex; align-items: center;
  padding: 0 26px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color .1s, text-shadow .1s;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li.active > a {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, .7);
  background-image: radial-gradient(at 50% bottom, var(--glow-soft), rgba(254, 33, 66, 0));
  box-shadow: 0 6px 20px -13px var(--glow);
}
.site-nav > ul > li.active > a { font-weight: 600; }
.sub-toggle { display: none; }
.site-nav .sub {
  list-style: none; margin: 0; padding: 10px 0;
  position: absolute; top: 100%; left: 0; min-width: 300px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav .has-sub:hover .sub,
.site-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub a { display: block; padding: 8px 22px; color: var(--text); text-decoration: none; }
.site-nav .sub a:hover, .site-nav .sub .active a { color: #fff; background: rgba(255, 255, 255, .04); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .logo { border: 0; padding: 0 4px; }
  .logo img { width: 52px; height: 52px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 48px; height: 48px; align-self: center;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--bg);
    overflow-y: auto;
    display: none;
    padding: 12px 0 40px;
  }
  .nav-open .site-nav { display: block; }
  .nav-open { overflow: hidden; }
  .site-nav > ul { flex-direction: column; height: auto; }
  .site-nav > ul > li { border: 0 !important; border-bottom: 1px solid var(--line) !important; flex-wrap: wrap; }
  .site-nav > ul > li > a { flex: 1; padding: 16px 24px; font-size: 1.2rem; }
  .sub-toggle {
    display: block; width: 60px; background: none; border: 0; border-left: 1px solid var(--line); color: #fff; cursor: pointer;
  }
  .sub-toggle::before { content: ''; display: inline-block; width: 10px; height: 10px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); transition: transform .2s; }
  .sub-open .sub-toggle::before { transform: rotate(-135deg); }
  .site-nav .sub { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 12px; min-width: 0; }
  .site-nav .sub-open .sub { display: block; }
  .site-nav .sub a { padding: 10px 36px; }
}

/* ---------- 4. Startseite ---------- */
.slideshow { position: relative; height: clamp(320px, 62vh, 720px); overflow: hidden; background: #000; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.submission-form, .submission-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.submission-form .field { margin: 0 0 22px; }
.submission-form label { display: block; color: var(--text-strong); font-weight: 600; margin-bottom: 7px; }
.submission-form input[type=text], .submission-form input[type=url], .submission-form select, .submission-form textarea { display: block; width: 100%; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-strong); background: #26171a; font: inherit; }
.submission-form textarea { resize: vertical; }
.submission-form input[type=file] { max-width: 100%; }
.submission-form :is(input, textarea, select):focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.submission-form .program-entry { margin-bottom: 12px; }
.submission-form .program-entry input { margin-bottom: 2px; }
.submission-form .character-count { display: block; color: var(--muted); font-size: .85rem; text-align: right; }
.submission-card { margin-bottom: 20px; }
.submission-card h3 { margin: 16px 0 8px; }
.submission-form + .errors, .page-section .errors { color: #ff9a8d; }
.slide-caption {
  position: absolute; left: 0; bottom: 40px;
  background: rgba(14, 6, 1, .75);
  color: #fff; font-weight: 600;
  padding: 14px 24px;
  max-width: 80%;
}
.slide-prev, .slide-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s, background .2s;
}
.slide-prev { left: 16px; }
.slide-next { right: 16px; }
.slideshow:hover .slide-prev, .slideshow:hover .slide-next, .slide-prev:focus-visible, .slide-next:focus-visible { opacity: 1; }
.slide-prev:hover, .slide-next:hover { background: rgba(0, 0, 0, .6); }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.slide-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); background: transparent; padding: 0; cursor: pointer; }
.slide-dots button[aria-current="true"] { background: var(--red); border-color: var(--red); }

.event { padding: 80px 0 40px; }
.kicker { color: #fff; font-weight: 700; font-size: 1.3rem; margin-bottom: .2em; }
.motto {
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  color: var(--orange);
  margin: 0 0 .15em;
  letter-spacing: -.01em;
  text-shadow: 0 0 40px rgba(254, 133, 52, .25);
}
.event-date { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; }
.countdown { display: flex; justify-content: center; gap: clamp(12px, 3vw, 32px); margin: 10px 0 20px; }
.countdown[hidden] { display: none; }
.countdown > div { display: flex; flex-direction: column; align-items: center; min-width: 3.2em; position: relative; }
.countdown > div + div::before { content: ':'; position: absolute; left: calc(-1 * clamp(6px, 1.5vw, 16px) - .15em); top: .35em; font-size: 1.4rem; color: #fff; }
.countdown span { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 700; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .8rem; color: var(--text); }
.event-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

.intro { padding: 50px 0; }
.intro-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: center; }
.intro-title { color: var(--orange-2); text-align: center; grid-column: 1 / -1; }
.intro-grid > div:first-child { display: contents; }
.intro .text, .intro .tickets { grid-column: 1; }
.intro-logo { grid-column: 2; grid-row: 2 / span 2; }
.intro-logo img { width: 100%; max-width: 320px; margin: 0 auto; filter: drop-shadow(0 0 40px rgba(254, 133, 52, .25)); }
.tickets { border-left: 3px solid var(--orange); padding: 4px 0 4px 18px; }
.tickets h3 { font-size: 1.05rem; color: var(--orange); margin-bottom: .4em; }
@media (max-width: 800px) {
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .intro .text, .intro .tickets, .intro-logo { grid-column: 1; grid-row: auto; }
  .intro-logo img { max-width: 220px; }
}

.participants { padding: 50px 0 80px; }
.tiles { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile { position: relative; display: block; aspect-ratio: 7 / 5; overflow: hidden; background: var(--bg-raised); text-decoration: none; }
.tile img, .tile-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.tile-placeholder {
  display: block;
  background:
    radial-gradient(circle at 30% 30%, rgba(254, 133, 52, .35), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(204, 0, 78, .3), transparent 60%),
    var(--bg-raised);
}
.tile-text {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  color: #fff;
  display: flex; flex-direction: column;
}
.tile-text strong { font-size: 1.05rem; line-height: 1.25; }
.tile-text small { font-size: .82rem; color: rgba(255, 255, 255, .8); }
.tile-more { font-size: .8rem; color: var(--orange); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s, opacity .3s, margin .3s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:hover .tile-more, .tile:focus-visible .tile-more { max-height: 2em; opacity: 1; margin-top: 4px; }

/* ---------- 5. Inhaltsseiten ---------- */
.page-section { padding: 60px 0 80px; }
.text ul { padding-left: 1.2em; }
.page-body h2, .page-body h3 { margin-top: 1.6em; font-size: 1.3rem; }
.page-body h2:first-child, .page-body h3:first-child { margin-top: 0; }

.museum-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; }
.museum-general { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 30px; }
.museum-general h2 { color: var(--orange-2); font-size: 1.5rem; }
.museum-general .gallery { margin-bottom: 0; }
.museum .subtitle { font-size: 1.2rem; margin-top: -.4em; color: var(--text-strong); }
.museum-side { font-size: .98rem; }
.side-label { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; color: var(--text-strong); margin: 0 0 .4em; }
.side-label .icon { color: var(--orange); width: 18px; height: 18px; }
.museum-side p { margin-bottom: 1.4em; }
.small-link { font-size: .88rem; }
.icon-links { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.icon-button {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  border: 1px solid rgba(254, 70, 52, .6);
  box-shadow: 0 0 14px -2px rgba(254, 70, 52, .55);
  transition: box-shadow .2s, background .2s;
}
.icon-button:hover { color: #fff; background: rgba(254, 70, 52, .2); box-shadow: 0 0 22px 0 rgba(254, 70, 52, .7); }
.bus-box { border-top: 1px solid var(--line); padding-top: 20px; }
.departures summary { cursor: pointer; color: var(--text-strong); margin-bottom: 10px; }
.departures table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 14px; }
.departures td { padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dep-time { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.line-tag { display: inline-block; min-width: 1.8em; text-align: center; font-weight: 700; font-size: .8rem; border-radius: 4px; padding: 1px 6px; background: var(--c); color: #111; }

.gallery { list-style: none; margin: 30px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { display: block; aspect-ratio: 7 / 5; overflow: hidden; background: var(--bg-raised); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.description { margin-top: 10px; }
.description h3 { font-size: 1.35rem; }
@media (max-width: 900px) {
  /* Auf dem Handy: Jahresprogramm, Kontakt und danach allgemeine Museumsinfos. */
  .museum-grid { display: flex; flex-direction: column; gap: 0; }
  .museum-main { display: contents; }
  .museum-main > * { order: 1; }
  .museum-side { order: 2; margin: 10px 0 20px; }
  .museum-general { order: 3; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.program { margin: 10px 0 30px; }
.program h2 { font-size: 1.35rem; color: var(--orange-2); }
.program-list { list-style: none; margin: 0; padding: 0; }
.program-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.program-list li.without-time { grid-template-columns: 1fr; }
.program-time { color: var(--orange); font-weight: 600; font-variant-numeric: tabular-nums; }
.program-desc { margin-top: 4px; font-size: .95rem; }
.program-desc p:last-child { margin-bottom: 0; }
.program-museum { display: block; font-size: .9rem; color: var(--yellow); }
@media (max-width: 600px) { .program-list li { grid-template-columns: 1fr; gap: 2px; } }
.program-museums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 40px; }
.program-block h2 { font-size: 1.3rem; }
.program-block h2 a { text-decoration: none; }
.tabs { display: flex; gap: 6px; margin: 20px 0 30px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 18px; text-decoration: none; color: var(--text); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: #fff; border-color: var(--orange); }

.flyer-pages { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.flyer-pages img { width: 100%; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }

.sponsors { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.sponsors li { background: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 140px; }
.sponsors img { max-height: 80px; width: auto; }
.sponsors small, .sponsors span { color: #333; }

/* ---------- 6. Bildansicht und Fuß ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; }
.lightbox-next { right: 16px; top: 50%; }
.lightbox.single .lightbox-prev, .lightbox.single .lightbox-next { display: none; }

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { display: flex; align-items: center; gap: 24px; padding: 30px 24px 40px; }
.to-top { color: var(--muted); }
.footer-links { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; color: #fff; }
.footer-links a:hover { color: var(--orange); }

/* ---------- 7. Verwaltung (/admin) ---------- */
body.admin {
  --a-bg: #f4f2ee; --a-surface: #fff; --a-ink: #1d1d1b; --a-muted: #6b6f68; --a-line: #e2ded7;
  --a-accent: #d9531e; --a-ok: #2e7d32; --a-warn: #8a5a00; --a-danger: #b3261e;
  background: var(--a-bg); color: var(--a-ink); font-size: 15px;
}
.admin a { color: var(--a-accent); }
.admin h1, .admin h2, .admin h3 { color: var(--a-ink); }
.admin h1 { font-size: 1.7rem; }
.admin h2 { font-size: 1.25rem; margin-top: 1.6em; }
.admin strong { color: inherit; }
.admin-top { background: #1d1d1b; color: #fff; }
.admin-top .container { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; min-height: 56px; }
.admin-top .brand { color: #fff; font-weight: 700; text-decoration: none; margin-right: 10px; }
.admin-top nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
.admin-top nav a { color: rgba(255, 255, 255, .8); text-decoration: none; padding: 16px 10px; border-bottom: 3px solid transparent; }
.admin-top nav a:hover { color: #fff; }
.admin-top nav a.active { color: #fff; border-color: var(--orange); }
.admin-top .user { display: flex; gap: 12px; align-items: center; font-size: .9rem; }
.admin-top .user a, .admin-top .user button { color: rgba(255, 255, 255, .8); background: none; border: 0; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.admin main { padding: 30px 0 60px; }
.admin .container { max-width: 1240px; }
.admin-card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 8px; padding: 22px 24px; margin-bottom: 24px; }
.admin-card > h2:first-child { margin-top: 0; }
.admin .submission-group > summary { cursor: pointer; color: var(--a-ink); font-size: 1.1rem; }
.admin .submission-group > summary .badge { margin-left: 8px; vertical-align: middle; }
.admin .submission-entry { border-top: 1px solid var(--a-line); margin-top: 18px; padding-top: 18px; }
.admin .submission-entry h2 { margin-top: 0; }
.admin .flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; border: 1px solid; }
.admin .flash.ok { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; }
.admin .flash.error { background: #fdecea; border-color: #f5b7b1; color: #7f1d1d; }
.admin .flash.info { background: #fff8e1; border-color: #ffe082; color: #5d4300; }
.hints { list-style: none; padding: 0; margin: 0; }
.hints li { padding: 8px 12px 8px 36px; position: relative; background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px; margin-bottom: 8px; color: #5d4300; }
.hints li::before { content: '!'; position: absolute; left: 12px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #f0a500; color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 16px; }
.admin .muted { color: var(--a-muted); font-size: .9rem; }
.admin .row-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin td.row-actions { display: table-cell; white-space: nowrap; }
.admin td.row-actions > * + * { margin-left: 10px; }
.admin .toolbar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.admin .toolbar-row h1 { margin: 0; }

.admin table.list { width: 100%; border-collapse: collapse; background: var(--a-surface); }
.admin table.list th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--a-muted); font-weight: 600; padding: 10px; border-bottom: 2px solid var(--a-line); }
.admin table.list td { padding: 10px; border-bottom: 1px solid var(--a-line); vertical-align: middle; }
.admin table.list tr.off td { color: var(--a-muted); }
.admin table.list tr.off img { opacity: .45; }
.admin table.list tr.dragging { opacity: .4; }
.admin table.list tr.drop-before td { border-top: 3px solid var(--a-accent); }
.admin .thumb { width: 72px; height: 50px; object-fit: cover; border-radius: 4px; background: #ddd; }
.admin .handle { cursor: grab; color: var(--a-muted); user-select: none; font-size: 1.2rem; padding: 0 4px; }
.admin .badge { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: #eee; color: #444; white-space: nowrap; }
.admin .badge.ok { background: #e8f5e9; color: #1b5e20; }
.admin .badge.warn { background: #fff3e0; color: #8a4b00; }

/* Schalter "dabei" */
.admin label.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; font-weight: 400; }
.admin .switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.admin .switch .track { display: block; width: 46px; height: 26px; border-radius: 13px; background: #c9c5bd; position: relative; transition: background .2s; flex: none; }
.admin .switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.admin .switch input:checked + .track { background: var(--a-ok); }
.admin .switch input:checked + .track::after { transform: translateX(20px); }
.admin .switch input:focus-visible + .track { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.admin .switch .label { display: inline; margin: 0; font-weight: 400; font-size: .92rem; }

/* Formulare */
.admin form .field { margin-bottom: 18px; }
.admin label, .admin .label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .92rem; }
.admin .hint { display: block; font-weight: 400; color: var(--a-muted); font-size: .85rem; margin-top: 4px; }
.admin input[type=text], .admin input[type=email], .admin input[type=url], .admin input[type=password], .admin input[type=date],
.admin input[type=time], .admin input[type=number], .admin input[type=color], .admin select, .admin textarea {
  width: 100%; font: inherit; color: var(--a-ink); background: #fff;
  border: 1px solid #cfcac2; border-radius: 6px; padding: 8px 10px;
}
.admin input[type=color] { padding: 2px; height: 38px; width: 60px; }
.admin textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.admin textarea.tall { min-height: 260px; }
.admin textarea.code { font-family: Consolas, monospace; font-size: .85rem; min-height: 420px; }
.admin input:focus, .admin select:focus, .admin textarea:focus { outline: 2px solid rgba(217, 83, 30, .35); border-color: var(--a-accent); }
.admin .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.admin .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
@media (max-width: 800px) { .admin .grid-2, .admin .grid-3 { grid-template-columns: 1fr; } }
.admin .check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.admin .check input { width: 18px; height: 18px; }
.admin .btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 9px 18px; border-radius: 6px;
  border: 1px solid var(--a-accent); background: var(--a-accent); color: #fff; text-decoration: none;
}
.admin .btn:hover { filter: brightness(1.08); color: #fff; }
.admin .btn.secondary { background: #fff; color: var(--a-accent); }
.admin .btn.danger { background: #fff; color: var(--a-danger); border-color: var(--a-danger); }
.admin .btn.small { padding: 5px 12px; font-size: .88rem; }
.admin .btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--a-danger); cursor: pointer; text-decoration: underline; }
.admin .form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; position: sticky; bottom: 0; background: rgba(244, 242, 238, .95); padding: 14px 0; border-top: 1px solid var(--a-line); margin-top: 10px; z-index: 5; }
.admin .image-field { display: flex; gap: 16px; align-items: flex-start; }
.admin .image-field img { width: 160px; height: 110px; object-fit: cover; border-radius: 6px; background: #ddd; flex: none; }
.admin .image-field img[data-tile-preview] { height: 114.3px; }
.admin .image-field img[data-slide-preview] { height: 90px; }
.admin .image-field.contain img { object-fit: contain; background: #333; }
.admin .image-field img[hidden] { display: none; }
.image-crop-dialog { width: min(94vw, 780px); max-height: 94vh; overflow: auto; border: 1px solid var(--a-line); border-radius: 8px; padding: 22px; background: var(--a-surface); color: var(--a-ink); }
.image-crop-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.image-crop-dialog h2 { margin-top: 0; }
.image-crop-dialog canvas { display: block; width: 100%; height: auto; background: #ddd; cursor: grab; touch-action: none; }
.image-crop-dialog canvas:active { cursor: grabbing; }
.image-crop-dialog canvas:focus-visible { outline: 3px solid var(--a-accent); outline-offset: 3px; }
.image-crop-dialog input[type=range] { display: block; width: 100%; margin: 10px 0 20px; }
.image-crop-dialog .image-crop-error { color: var(--a-danger); }
.image-crop-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.admin .gallery-edit { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.admin .gallery-edit li { background: #fff; border: 1px solid var(--a-line); border-radius: 6px; padding: 6px; cursor: grab; }
.admin .gallery-edit li.dragging { opacity: .4; }
.admin .gallery-edit li.drop-before { box-shadow: -4px 0 0 var(--a-accent); }
.admin .gallery-edit img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; border-radius: 4px; }
.admin .gallery-edit label { font-weight: 400; font-size: .85rem; margin: 6px 0 0; display: flex; gap: 6px; align-items: center; }
.admin .gallery-edit li.remove img { opacity: .3; }

/* Programm-Zeilen */
.program-rows { list-style: none; margin: 0 0 14px; padding: 0; }
.program-rows li { display: grid; grid-template-columns: 28px 100px 100px 1fr auto; gap: 10px; align-items: start; background: #fff; border: 1px solid var(--a-line); border-radius: 6px; padding: 10px; margin-bottom: 10px; }
.program-rows li.dragging { opacity: .4; }
.program-rows li.drop-before { box-shadow: 0 -3px 0 var(--a-accent); }
.program-rows .handle { padding-top: 26px; }
.program-rows .texts { display: grid; gap: 6px; }
.program-rows textarea { min-height: 60px; }
.program-rows .remove-row { margin-top: 26px; }
.program-rows .small-label { font-size: .75rem; color: var(--a-muted); font-weight: 600; margin-bottom: 2px; display: block; }
@media (max-width: 700px) { .program-rows li { grid-template-columns: 1fr 1fr; } .program-rows .handle { display: none; } .program-rows .texts { grid-column: 1 / -1; } }

.admin .format-help { font-size: .82rem; color: var(--a-muted); background: #faf8f4; border: 1px dashed var(--a-line); border-radius: 6px; padding: 8px 12px; margin-top: 6px; }
.admin .format-help code { background: #eee; padding: 0 4px; border-radius: 3px; }
.admin .stop-map { height: 360px; border-radius: 6px; border: 1px solid var(--a-line); margin-bottom: 12px; }
.admin .login-box { max-width: 420px; margin: 60px auto; }
.admin .errors { color: var(--a-danger); }
.admin .errors li { margin-bottom: 4px; }
.admin .color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; margin-right: 6px; border: 1px solid rgba(0, 0, 0, .2); }
.admin details.help summary { cursor: pointer; color: var(--a-accent); }

/* ---------- 8. Busfahrplan-App (/busfahrplan) ---------- */
/* Übernommen aus der bisherigen Fahrplan-App, auf body.busapp begrenzt */
  body.busapp {
    --ink: #0b0d08;
    --muted: #6b6f68;
    --line: #e6e3de;
    --bg: #ffffff;
    --orange: #fe8534;
    --red: #fe4634;
    --yellow: #fbba4d;
    --surface: #ffffff;
    --hl: #fff4e8;
    --grab: #cfcbc4;
    --lblbg: rgba(255,255,255,.92);
    --locate-control-icon-color: #333;
    --l1: #ec407a; --l2: #ffe83a; --l3: #f7941d; --l4: #a3c94a; --l5: #3aa8e4; }
  body.busapp { color-scheme: light; }
/* Dunkler Modus nur auf Wunsch: ?dark=1 (Standard ist hell, unabhängig von der Geräteeinstellung) */
  html.dark body.busapp { color-scheme: dark; }
  html.dark body.busapp {
    --ink: #eceae6; --muted: #a4a8a0; --line: #34372f; --bg: #14160f;
    --surface: #1e2018; --hl: #3b2b1c; --grab: #5a5d54; --lblbg: rgba(30,32,24,.92);
    --locate-control-icon-color: #eceae6; }
  html.dark body.busapp .leaflet-container { background: #1a1c15; }
/* OSM-Kacheln abdunkeln (Satellit bleibt unverändert) */
  html.dark body.busapp .osm-tiles { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88); }
  html.dark body.busapp .leaflet-bar a, html.dark body.busapp .leaflet-bar a:hover, html.dark body.busapp .leaflet-control-layers, html.dark body.busapp .leaflet-control-locate a { background-color: var(--surface); color: var(--ink); border-color: var(--line); }
  html.dark body.busapp .leaflet-bar a:hover { background-color: var(--hl); }
  html.dark body.busapp .leaflet-control-attribution { background: rgba(30,32,24,.8) !important; color: var(--muted); }
  html.dark body.busapp .leaflet-control-attribution a { color: #9ec5ff; }
  html.dark body.busapp .leaflet-control-layers-separator { border-top-color: var(--line); }
  body.busapp * { box-sizing: border-box; }
  html:has(body.busapp), body.busapp { height: 100%; margin: 0; }
  body.busapp { height: 100dvh; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
  body.busapp {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink); background: var(--bg);
    display: flex; flex-direction: column; }
  body.busapp #top header {
    flex: none; display: flex; align-items: center; gap: 12px;
    padding: 8px 16px; background: var(--surface); }
  body.busapp #top header img { width: 40px; height: 40px; }
  body.busapp #top header h1 { font-size: 1.05rem; line-height: 1.15; margin: 0; font-weight: 700; }
  body.busapp #top header h1 span { color: var(--orange); }
  body.busapp #top header small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: 2px; }
  body.busapp #top { flex: none; position: relative; z-index: 1100; background: var(--surface); }
  body.busapp #topbody { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .25s ease; }
  body.busapp #topbody .inner { overflow: hidden; min-height: 0; }
  body.busapp #top.collapsed #topbody { grid-template-rows: 0fr; }
  body.busapp #topgrab { height: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; touch-action: none; background: var(--surface); border-bottom: 3px solid var(--orange); }
  body.busapp #topgrab::before { content: ''; width: 40px; height: 4px; border-radius: 2px; background: var(--grab); }
  body.busapp .sels { flex: 1; min-width: 0; display: flex; gap: 8px; }
  body.busapp #swap { flex: none; width: 40px; border: 2px solid var(--line); background: var(--surface); border-radius: 8px; font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer; }
  body.busapp #swap:active { background: var(--hl); }
  body.busapp #sheet .head { position: relative; touch-action: none; cursor: grab; }
  body.busapp #sheet .head::before { content: ''; position: absolute; top: 5px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--grab); }
  body.busapp #route { flex: none; display: flex; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
  body.busapp #route select { flex: 1; min-width: 0; font: inherit; font-size: .9rem; padding: 6px 8px; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
  body.busapp #route select.set { border-color: var(--orange); }
  body.busapp .dep[data-i] { cursor: pointer; }
  body.busapp .dep.sel { background: var(--hl); box-shadow: -16px 0 0 var(--hl), 16px 0 0 var(--hl); }
  body.busapp .leg { margin-top: 4px; font-size: .85rem; color: var(--muted); }
  body.busapp .leg b { color: var(--ink); }
  body.busapp .legtag { display: inline-block; font-weight: 800; font-size: .72rem; padding: 1px 6px; border-radius: 5px; background: var(--c); color: #111; }
  body.busapp #wrap { position: relative; flex: 1; min-height: 0; }
  body.busapp #map { position: absolute; inset: 0; }
  body.busapp .lbl { background: var(--lblbg); border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.3); font-weight: 600; font-size: 11px; padding: 1px 5px; color: var(--ink); }
  body.busapp .lbl::before { display: none; }
  body.busapp .zoomed-out .lbl { display: none; }
  body.busapp #sheet {
    position: absolute; z-index: 1000; left: 0; right: 0; bottom: 0; max-height: 58%;
    background: var(--surface); border-radius: 16px 16px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,.25);
    display: none; flex-direction: column; }
  body.busapp #sheet.open { display: flex; }
  body.busapp #sheet .head { padding: 14px 16px 8px; display: flex; gap: 8px; align-items: flex-start; border-bottom: 1px solid var(--line); }
  body.busapp #sheet h2 { margin: 0; font-size: 1.05rem; flex: 1; }
  body.busapp #sheet h2 small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 2px; }
  body.busapp #close { border: 0; background: var(--ink); color: var(--surface); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; flex: none; }
  body.busapp #deps { overflow-y: auto; padding: 4px 16px 16px; }
  body.busapp #sextra { flex: none; padding: 0 16px; }
  body.busapp .actions { display: flex; gap: 8px; margin: 10px 0 2px; }
  body.busapp .actions .walk { flex: 1; margin: 0; }
  body.busapp .walk { display: block; margin: 10px 0 2px; padding: 9px 12px; text-align: center; font-weight: 700; font-size: .9rem; color: var(--ink); background: var(--surface); border: 2px solid var(--orange); border-radius: 8px; text-decoration: none; }
  body.busapp .walk:active { background: var(--hl); }
  body.busapp .firstlast { display: flex; gap: 8px; margin: 10px 0 2px; }
  body.busapp .firstlast > div { flex: 1; background: var(--hl); border-left: 4px solid var(--orange); border-radius: 4px; padding: 6px 10px; font-size: .85rem; }
  body.busapp .firstlast small { color: var(--muted); font-size: .7rem; font-weight: 500; }
  body.busapp .firstlast > div > small:first-child { display: block; }
  body.busapp .firstlast b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
  body.busapp .note { background: var(--hl); border-left: 4px solid var(--orange); padding: 8px 10px; margin: 10px 0 4px; font-size: .85rem; border-radius: 4px; }
  body.busapp .dep { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
  body.busapp .dep .time { font-weight: 800; font-size: 1.15rem; width: 3.4em; flex: none; font-variant-numeric: tabular-nums; }
  body.busapp .dep .time small.cd { color: var(--orange); font-weight: 800; font-size: .72rem; }
  body.busapp .dep.gone { opacity: .4; }
  body.busapp .dep .time small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); }
  body.busapp .dep .tag { flex: none; min-width: 52px; text-align: center; font-weight: 800; font-size: .8rem; padding: 3px 8px; border-radius: 6px; background: var(--c); color: #111; }
  body.busapp .dep .to { font-weight: 700; }
  body.busapp .dep .via { color: var(--muted); font-size: .8rem; margin-top: 2px; }
  body.busapp .empty { color: var(--muted); padding: 16px 0; }
  body.busapp .leaflet-control-layers { font-family: inherit; }
  body.busapp .busicon { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
  body.busapp #simclock { position: absolute; z-index: 900; left: 10px; top: 10px; background: var(--surface); color: var(--ink); font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.3); pointer-events: none; }
@media (pointer: coarse) {
  body.busapp #close { width: 40px; height: 40px; font-size: 22px; }
  body.busapp .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; }
  body.busapp .dep { padding: 12px 0; }

  }
@media (max-width: 599px) {
  body.busapp #top header { padding: 6px 12px; gap: 10px; padding-top: max(6px, env(safe-area-inset-top)); }
  body.busapp #top header img { width: 32px; height: 32px; }
  body.busapp #top header h1 { font-size: .95rem; }
  body.busapp #top header small { display: none; }
  body.busapp #route { padding: 6px 12px; }
  body.busapp .sels { flex-direction: column; gap: 6px; }
  body.busapp #swap { width: 44px; }
  body.busapp #sheet .head { padding-top: 18px; }
  body.busapp .firstlast { display: none; }
/* Erster/Letzter Bus nur auf größeren Bildschirmen */
  body.busapp #route select { font-size: .8rem; padding: 6px 8px; }
/* maximum-scale=1 im Viewport verhindert den Auto-Zoom auf iOS */
  body.busapp #sheet { max-height: 55%; }
  body.busapp #deps { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  body.busapp .dep .time { font-size: 1.05rem; width: 3.2em; }

  }
@media (max-height: 500px) and (orientation: landscape) {
  body.busapp #top header small { display: none; }
  body.busapp #top header img { width: 28px; height: 28px; }
  body.busapp .sels { flex-direction: row; }
  body.busapp #sheet { max-height: 80%; }

  }
@media (min-width: 800px) {
  body.busapp #sheet { left: 16px; right: auto; bottom: 16px; top: 16px; width: 380px; max-height: none !important; border-radius: 12px; }
  body.busapp #sheet .head { cursor: default; touch-action: auto; }
  body.busapp #sheet .head::before { display: none; }

  }

  /* Ergänzungen für die Einbindung in die Website */
  body.busapp h1, body.busapp h2 { color: var(--ink); }
  body.busapp strong, body.busapp b { color: inherit; }
  body.busapp #top header a img { display: block; }
  body.busapp #top header h1 { flex: 1; }
  body.busapp #top header .home-link { flex: none; font-size: .8rem; font-weight: 600; color: var(--ink); text-decoration: none; border: 2px solid var(--orange); border-radius: 8px; padding: 5px 10px; }
  body.busapp .walk.museum-link { margin-top: 8px; border-color: var(--yellow); }
@media (max-width: 599px) {
  body.busapp #top header .home-link { display: none; }
}

/* Desktop: Karte innerhalb des normalen Seitenrahmens. Mobil: eigene Vollbildansicht. */
body.busapp main { display: flex; flex: 1; min-height: 0; }
body.busapp .bus-frame { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; }
body.busapp .site-header { flex: none; }
body.busapp .site-footer { flex: none; margin-top: 0; background: #0e0601; color: var(--text); }
@media (min-width: 768px) {
  body.busapp #top header, body.busapp #topgrab { display: none; }
}
@media (max-width: 767px) {
  body.busapp .site-header, body.busapp .site-footer, body.busapp .admin-bar, body.busapp .skip-link { display: none; }
  body.busapp main, body.busapp .bus-frame { height: 100dvh; }
}

/* ---------- 9. Druckfahrplan (/busfahrplan/druck) ---------- */
  body.druck { --ink: #0b0d08; --muted: #6b6f68; --line: #e6e3de; --orange: #fe8534; }
  body.druck * { box-sizing: border-box; }
  body.druck { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); margin: 0; background: #f4f2ee; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.druck .toolbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: #fff; border-bottom: 3px solid var(--orange); }
  body.druck .toolbar a, body.druck .toolbar button { font: inherit; font-weight: 700; font-size: .9rem; padding: 7px 14px; border-radius: 8px; border: 2px solid var(--orange); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }
  body.druck .toolbar button { background: var(--orange); }
  body.druck .page { max-width: 820px; margin: 16px auto; background: #fff; padding: 22px 26px; box-shadow: 0 1px 6px rgba(0,0,0,.15); }
  body.druck .page header { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--orange); padding-bottom: 10px; margin-bottom: 14px; }
  body.druck .page header img { width: 54px; height: 54px; }
  body.druck .page h1 { margin: 0; font-size: 1.5rem; line-height: 1.15; }
  body.druck .page h1 small { display: block; font-size: .95rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
  body.druck table { width: 100%; border-collapse: collapse; }
  body.druck th { text-align: left; font-size: .75rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); padding: 4px 6px; }
  body.druck td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
  body.druck td.t { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; width: 5.5em; }
  body.druck td.t small { display: block; font-weight: 500; font-size: .65rem; color: var(--muted); }
  body.druck .tag { display: inline-block; min-width: 3.6em; text-align: center; font-weight: 800; font-size: .8rem; padding: 2px 8px; border-radius: 6px; color: #111; }
  body.druck .via { color: var(--muted); font-size: .78rem; margin-top: 1px; }
  body.druck .foot { margin-top: 14px; font-size: .7rem; color: var(--muted); }
  body.druck ul.list { columns: 2; padding-left: 18px; }
  body.druck ul.list li { margin: 4px 0; }
@media (max-width: 600px) {
  body.druck .page { margin: 0; padding: 14px 12px; box-shadow: none; }
  body.druck ul.list { columns: 1; }
 }
@page { size: A4; margin: 12mm; }
@media print {
  body.druck { background: #fff; }
  body.druck .toolbar { display: none; }
  body.druck .page { margin: 0; padding: 0; box-shadow: none; max-width: none; page-break-after: always; break-after: page; }
  body.druck .page:last-of-type { page-break-after: auto; break-after: auto; }
  body.druck tr { break-inside: avoid; }

  }

  body.druck { display: block; }
  body.druck h1 { color: var(--ink); }
  body.druck a { color: #b4471a; }
  body.druck strong, body.druck b { color: inherit; }

/* ---------- Drucken der normalen Seiten ---------- */
@media print {
  body:not(.druck):not(.busapp) { background: #fff; color: #000; display: block; }
  body:not(.druck):not(.busapp) h1, body:not(.druck):not(.busapp) h2, body:not(.druck):not(.busapp) h3,
  body:not(.druck):not(.busapp) strong, body:not(.druck):not(.busapp) a { color: #000; }
  .site-header, .site-footer, .slideshow, .admin-bar, .countdown, .gallery, .lightbox, .event-links { display: none !important; }
}
