/* wturm.de – Designsystem nach Design-Richtlinien (Montserrat/Manrope, Ebenen, Pills) */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --schwarz: #262222; --blau: #4283d7; --gruen: #23bd5a; --rosa: #f07e92;
  --bg: #e8f2f7; --weiss: #fff; --block-head: #f9f9fb; --th: #f2f2f7;
  --grau-mittel: #d2d2d7; --grau-rahmen: #e5e5ea; --grau-text: #6e6e73;
  --shadow-nav: 0 2px 12px rgba(0,0,0,.09); --shadow-card: 0 1px 4px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--schwarz);
  font-family: "Manrope", system-ui, sans-serif; font-size: 1rem; line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, .logo, th { font-family: "Montserrat", system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--schwarz); }
a:hover { color: var(--blau); }

/* Navigation */
.nav {
  position: sticky; top: 14px; z-index: 10;
  max-width: 1100px; margin: 14px auto; padding: 10px 20px;
  background: var(--weiss); border-radius: 18px; box-shadow: var(--shadow-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.nav-wrap { padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: none; }
.logo { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.brand small { color: var(--grau-text); font-size: .82rem; padding-left: 10px; border-left: 1px solid var(--grau-rahmen); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-btn {
  display: inline-block; padding: 8px 18px; border-radius: 20px; text-decoration: none;
  font-size: .82rem; font-weight: 600; color: #fff; transition: opacity .15s;
}
.nav-btn:hover { opacity: .82; color: #fff; }
.nav-btn { background: var(--blau); }
.nav-btn[aria-current="page"] { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 0 0 2px currentColor; outline: 2px solid var(--schwarz); outline-offset: 2px; }

/* Layout */
main { max-width: 1100px; margin: 0 auto; padding: 0 24px 24px; }
.block { background: var(--weiss); border-radius: 14px; box-shadow: var(--shadow-card); margin-bottom: 24px; overflow: hidden; }
.block-head { background: var(--block-head); border-bottom: 1px solid var(--grau-rahmen); padding: 14px 20px; }
.block-head h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.block-head p { margin: 2px 0 0; color: var(--grau-text); font-size: .9rem; }
.block-body { padding: 20px; }
.block-body p { margin: 0 0 1em; font-size: .95rem; }
.block-body p:last-child { margin-bottom: 0; }

/* Hero */
.hero { position: relative; }
.hero img { width: 100%; height: clamp(260px, 46vw, 480px); object-fit: cover; }
.hero-text {
  position: absolute; inset: auto 0 0 0; padding: 40px 28px 24px;
  background: linear-gradient(transparent, rgba(38,34,34,.78)); color: #fff;
}
.hero-text .kicker { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.hero-text h1 { margin: 4px 0 0; font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.2; font-weight: 700; }

/* Zwei Spalten: Text + Bild */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.split.rev { grid-template-columns: 1fr 1.4fr; }
.split.rev > figure { order: -1; }
figure { margin: 0; }
figure img { border-radius: 8px; width: 100%; }
figcaption { color: var(--grau-text); font-size: .82rem; margin-top: 6px; }

/* Zitat */
blockquote {
  margin: 0 0 1em; padding: 14px 18px; background: #fff8ec; border: 1px solid #ffd60a; border-radius: 10px;
  font-size: .92rem;
}
blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: .82rem; color: var(--grau-text); }

/* Chronik-Tabelle */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { background: var(--th); color: var(--grau-text); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 9px 16px; }
td { padding: 9px 16px; border-top: 1px solid var(--th); vertical-align: top; }
td.num { white-space: nowrap; font-weight: 700; width: 1%; }
tr.haupt td { background: #fafafa; font-weight: 700; }

/* Kennzahlen */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.fact { background: var(--block-head); border: 1px solid var(--grau-rahmen); border-radius: 10px; padding: 12px 14px; }
.fact b { display: block; font-family: "Montserrat", sans-serif; font-size: 1.3rem; }
.fact span { color: var(--grau-text); font-size: .82rem; }

/* Galerie + CSS-Lightbox (ohne JS) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; background: var(--th); aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.gallery a:hover img { opacity: .82; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(38,34,34,.92); padding: 24px; align-items: center; justify-content: center; text-decoration: none; }
.lightbox:target { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; width: auto; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.22); }
.lightbox::after { content: "✕  Schließen"; position: absolute; top: 16px; right: 20px; color: #fff; font-size: .82rem; font-weight: 600; }

/* Footer */
footer { max-width: 1100px; margin: 0 auto; padding: 8px 24px 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--grau-text); font-size: .82rem; }
footer a { color: var(--grau-text); }

.legal h3 { font-size: .95rem; font-weight: 600; margin: 1.4em 0 .4em; }
.legal h3:first-child { margin-top: 0; }

@media (max-width: 760px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > figure { order: 0; }
  .nav { position: static; }
  .brand small { display: none; }
  .nav-btn { padding: 7px 14px; }
}
