/* ==========================================================================
   Stadtbahn Hannover – Sonderseiten
   Gemeinsames Stylesheet | Redesign 2026
   Standard-Schriftgröße: 14px
   ========================================================================== */

:root {
  --special-bg: #00343d;
  --special-panel: #f7f7e8;
  --special-panel-soft: #e8f0e7;
  --special-text: #172126;
  --special-muted: #596469;
  --special-accent: #92d050;
  --special-accent-dark: #2f7418;
  --special-white: #ffffff;
  --special-border: rgba(255,255,255,.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--special-bg);
  color: var(--special-white);
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

a {
  color: #b9ef82;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #ffb34d;
  text-decoration: none;
}

/* Seitenrahmen */
.special-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

/* Kopf / Fenster schließen */
.utility,
.utility-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.btn,
.close-button,
.top-button {
  display: inline-block;
  padding: .6rem .85rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 5px;
  background: rgba(255,255,255,.08);
  color: var(--special-white);
  font-weight: 700;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible,
.close-button:hover,
.close-button:focus-visible,
.top-button:hover,
.top-button:focus-visible {
  background: var(--special-accent);
  color: #15320c;
  text-decoration: none;
}

/* Seitentitel */
.hero {
  text-align: center;
  padding: 18px 20px 14px;
  margin-bottom: 18px;
  border-top: 1px solid var(--special-border);
  border-bottom: 1px solid var(--special-border);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  color: var(--special-white);
}

.hero h1 img {
  max-height: 48px;
  width: auto;
  vertical-align: middle;
  margin-left: .5rem;
}

.hero h2,
.hero p {
  margin: .45rem 0 0;
  color: #d5e4e7;
}

.hero h2 {
  font-size: 1.35rem;
  font-weight: 600;
}

/* Abschnittsnavigation */
.nav,
.section-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin: 0 0 22px;
}

.nav a,
.section-nav a {
  padding: .55rem .8rem;
  border-radius: 4px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 700;
}

/* Inhaltsflächen */
.card,
.content-section,
.content-card {
  margin: 0 0 24px;
  padding: 24px;
  background: var(--special-panel);
  color: var(--special-text);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.card h2,
.card h3,
.card h4,
.content-section h2,
.content-section h3,
.content-section h4,
.content-card h2,
.content-card h3,
.content-card h4 {
  color: var(--special-accent-dark);
  margin: 1.5rem 0 .8rem;
}

.card h2:first-child,
.card h3:first-child,
.content-section h2:first-child,
.content-section h3:first-child {
  margin-top: 0;
}

.card a,
.content-section a,
.content-card a {
  color: #176d16;
  text-decoration: none;
}

.card a:hover,
.content-section a:hover,
.content-card a:hover {
  color: #a05200;
  text-decoration: underline;
}

.card hr,
.content-section hr,
.content-card hr {
  border: 0;
  border-top: 1px solid #c7cdc4;
  margin: 2rem 0;
}

.card img,
.content-section img,
.content-card img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto .45rem;
  border-radius: 4px;
}

.card p,
.content-section p,
.content-card p {
  margin: .8rem 0;
}

.card li,
.content-section li {
  margin: .35rem 0;
}

.anchor,
.anchor-target {
  scroll-margin-top: 18px;
}

/* Bildunterschriften – grundsätzlich zentriert */
figcaption,
.image-caption,
.compare-caption,
.photo-card figcaption,
.plan-card figcaption {
  text-align: center;
  color: var(--special-muted);
  font-size: 14px;
}

.image-caption,
.photo-card figcaption {
  margin: .45rem 0 1rem;
  font-style: italic;
}

.source-note,
.copyright {
  color: var(--special-muted);
  font-size: 13px;
}

/* Hervorgehobene Infobox */
.subtle-box,
.plan-box {
  background: var(--special-panel-soft);
  border-left: 4px solid var(--special-accent);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

/* Bildervergleich */
.compare-intro {
  margin-bottom: 1.2rem;
}

.compare-list {
  display: grid;
  gap: 18px;
}

.compare-card {
  background: #fff;
  border: 1px solid #d9dfd5;
  border-radius: 6px;
  overflow: hidden;
}

.compare-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: #d9dfd5;
}

.compare-images img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
}

.compare-caption {
  padding: .8rem .9rem;
  background: #fff;
}

/* Plan-Galerien */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  margin: 0;
  background: #fff;
  border: 1px solid #d9dfd5;
  border-radius: 6px;
  overflow: hidden;
}

.plan-card img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}

.plan-card figcaption {
  padding: .8rem .9rem;
}

/* TW 601 / reine Fotoseiten */
.photo-list {
  display: grid;
  gap: 22px;
}

.photo-card {
  margin: 0;
  text-align: center;
}

.photo-card img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.copyright {
  margin: 1.8rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #c7cdc4;
}

/* Untere Steuerung */
.bottom,
.bottom-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 5px;
}

@media (max-width: 760px) {
  .special-page {
    width: min(100% - 20px, 1120px);
  }

  .card,
  .content-section,
  .content-card {
    padding: 18px 14px;
  }

  .compare-images,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .bottom,
  .bottom-actions {
    flex-direction: column;
  }

  .bottom a,
  .bottom-actions a {
    text-align: center;
  }
}
