/* ==========================================================================
   Frankfurtpuls – Stylesheet
   Palette: Weiß #ffffff · Anthrazit #14181f · Text #1b1f26 · Blau #0b5fff · Gelb #ffd166 · Linien #d9dee7
   Fonts: Sora (Überschriften) · Work Sans (Fließtext), lokal aus fonts/fonts.css
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #1b1f26;
  --ink-soft: #4b5362;
  --dark: #14181f;
  --dark-2: #1d232c;
  --blue: #0b5fff;
  --blue-dark: #0646c2;
  --yellow: #ffd166;
  --line: #d9dee7;
  --paper: #f4f6fa;
  --font-head: 'Sora', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Work Sans', 'Segoe UI', Arial, sans-serif;
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--dark); padding: .5rem .9rem; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Top-Leiste
   -------------------------------------------------------------------------- */
.topbar { background: var(--bg); position: relative; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 22px; flex: none; }
.brand .puls { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .7rem; font: 600 .9rem var(--font-body); color: var(--ink); cursor: pointer; align-items: center; gap: .5rem; }
.nav-toggle .bars { position: relative; width: 20px; height: 14px; display: inline-block; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 6px; }
.nav-toggle .bars::after { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.site-nav a { display: block; padding: .5rem .7rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: var(--radius); }
.site-nav a:hover { background: var(--paper); color: var(--blue-dark); }
.site-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--yellow); }
.stripe { height: 4px; background: linear-gradient(90deg, var(--blue) 0 72%, var(--yellow) 72% 100%); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--dark); color: #fff; min-height: clamp(420px, 68vh, 720px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,24,31,.15) 0%, rgba(20,24,31,.35) 45%, rgba(20,24,31,.92) 100%); }
.hero .wrap { width: 100%; padding-top: 4rem; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: .6rem; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 58ch; color: #e9edf3; margin-bottom: 0; }
.hero.hero-sub { min-height: clamp(300px, 46vh, 480px); }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--yellow); }
.page-head { padding: 3rem 0 1rem; }
.page-head .kicker { color: var(--blue); }
.page-head .kicker::before { background: var(--blue); }
.page-head .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 64ch; }

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-tight { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--dark); color: #e9edf3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: var(--yellow); }
.section-head { max-width: 70ch; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section-dark .section-head p { color: #c6cdd8; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.lead { font-size: 1.15rem; }
.two-col { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.two-col figure { margin: 0; }
figure { margin: 0 0 1.5rem; }
figure img { border-radius: var(--radius); }
figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; }
.section-dark figcaption { color: #c6cdd8; }
.quelle { font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: .8rem; margin-top: 2rem; }
.section-dark .quelle { color: #aab3c0; border-color: #2d3542; }
.note { border-left: 4px solid var(--yellow); background: var(--paper); padding: 1rem 1.2rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
.note p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Rubriken-Karten
   -------------------------------------------------------------------------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,24,31,.1); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-num { font-family: var(--font-head); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--yellow); margin-bottom: .4rem; -webkit-text-stroke: 1px rgba(20,24,31,.08); }
.card h3 { margin-bottom: .4rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--ink-soft); margin-bottom: 1rem; font-size: .98rem; }
.card .more { margin-top: auto; font-weight: 600; color: var(--blue); font-size: .95rem; }

/* --------------------------------------------------------------------------
   Zahlenblock
   -------------------------------------------------------------------------- */
.zahlen { background: var(--dark); color: #e9edf3; }
.zahlen-grid { display: grid; gap: 1px; grid-template-columns: 1fr; background: #2a313d; border: 1px solid #2a313d; border-radius: var(--radius); overflow: hidden; }
.zahl { background: var(--dark-2); padding: 1.4rem 1.4rem 1.3rem; }
.zahl .wert { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); white-space: nowrap; color: var(--yellow); line-height: 1.05; letter-spacing: -0.02em; }
.zahl .wert small { font-size: .55em; font-weight: 600; margin-left: .15em; }
.zahl .label { margin-top: .45rem; font-weight: 600; color: #fff; font-size: .98rem; }
.zahl .sub { font-size: .85rem; color: #aab3c0; margin-top: .15rem; }

/* --------------------------------------------------------------------------
   Höhen-Leiste (Skyline)
   -------------------------------------------------------------------------- */
.hoehen { margin: 1.5rem 0 0; }
.hoehen-scroll { overflow-x: auto; padding-bottom: .5rem; }
.hoehen-chart { display: flex; align-items: flex-end; gap: 10px; min-width: 1000px; height: 390px; padding-top: 1.8rem; padding: 0 .25rem; border-bottom: 2px solid var(--line); position: relative; }
.hoehen-chart::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(150 / 260 * 280px + 52px); border-top: 1px dashed #aab3c0; font-size: .7rem; color: var(--ink-soft); text-align: left; line-height: 1.6; pointer-events: none; }
.hoehen-chart::after { content: ""; }
.turm { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; align-self: stretch; min-width: 0; text-align: center; }
.turm .balken { width: 100%; max-width: 54px; background: linear-gradient(180deg, var(--blue) 0%, #0646c2 100%); border-radius: 3px 3px 0 0; position: relative; }
.turm .balken::before { content: attr(data-m) " m"; position: absolute; top: -1.4rem; left: 50%; transform: translateX(-50%); font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--ink); white-space: nowrap; }
.turm.highlight .balken { background: linear-gradient(180deg, var(--yellow) 0%, #e6b64a 100%); }
.turm .name { font-size: .7rem; line-height: 1.2; margin-top: .45rem; height: 3.9em; color: var(--ink-soft); font-weight: 500; hyphens: manual; }
.turm .jahr { font-size: .7rem; color: var(--ink-soft); }
.hoehen-legende { font-size: .85rem; color: var(--ink-soft); margin-top: .75rem; }

/* Gebäude-Porträts */
.portraets { display: grid; gap: 1.25rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
.portraet { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.portraet .meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-family: var(--font-head); font-size: .8rem; font-weight: 600; margin-bottom: .5rem; }
.portraet .meta span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; }
.portraet .meta .m { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }
.portraet h3 { margin-bottom: .3rem; }
.portraet p { margin-bottom: 0; font-size: .97rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Zeitleiste (Geschichte)
   -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0 0 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 74px; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--blue), var(--yellow)); border-radius: 3px; }
.timeline li { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem; padding: 0 0 2.2rem; }
.timeline .jahr { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--dark); background: var(--yellow); border-radius: 999px; padding: .3rem .75rem; justify-self: start; align-self: start; position: relative; z-index: 1; text-align: center; min-width: 150px; }
.timeline .inhalt h3 { margin-bottom: .3rem; }
.timeline .inhalt p { margin-bottom: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Listen, Tabellen
   -------------------------------------------------------------------------- */
.facts { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.facts li { padding: .7rem 1rem; border-left: 3px solid var(--blue); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.facts li strong { font-family: var(--font-head); font-weight: 600; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.5rem; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-head); font-weight: 600; font-size: .85rem; background: var(--paper); }
.kraeuter { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); list-style: none; padding: 0; margin: 1rem 0 1.5rem; counter-reset: k; }
.kraeuter li { counter-increment: k; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem .7rem 2.6rem; position: relative; font-weight: 500; }
.kraeuter li::before { content: counter(k); position: absolute; left: .7rem; top: .6rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--yellow); color: var(--dark); font: 700 .8rem var(--font-head); display: grid; place-items: center; }
.legal h2 { margin-top: 2rem; font-size: 1.3rem; }
.placeholder { background: #fff3cf; border: 1px dashed #d9a400; padding: 0 .3rem; border-radius: 3px; }
.btn { display: inline-block; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; padding: .75rem 1.3rem; border-radius: var(--radius); }
.btn:hover { background: var(--blue-dark); color: #fff; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--dark); color: #c6cdd8; margin-top: 3rem; border-top: 4px solid var(--blue); }
.site-footer .wrap { padding-top: 3rem; padding-bottom: 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer h4 { color: #fff; margin-bottom: .6rem; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer a { color: #e9edf3; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .brand { color: #fff; }
.footer-bottom { border-top: 1px solid #2d3542; margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #aab3c0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.notfound { text-align: center; padding: 5rem 0; }
.notfound .code { font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 15vw, 9rem); line-height: 1; color: var(--yellow); -webkit-text-stroke: 2px var(--dark); }

/* --------------------------------------------------------------------------
   Responsiv
   -------------------------------------------------------------------------- */
@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 4px solid var(--blue); box-shadow: 0 16px 30px rgba(20,24,31,.12); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .6rem var(--gutter) 1rem; gap: 0; }
  .site-nav a { padding: .75rem .4rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--yellow); padding-left: .9rem; }
  .timeline::before { left: 16px; }
  .timeline li { grid-template-columns: 1fr; gap: .5rem; padding-left: 40px; }
  .timeline .jahr { min-width: 0; position: relative; }
  .timeline li::before { content: ""; position: absolute; left: 10px; top: .55rem; width: 15px; height: 15px; border-radius: 50%; background: var(--yellow); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue); }
}
@media (min-width: 600px) {
  .zahlen-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .portraets { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .zahlen-grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1.15fr .85fr; }
  .two-col.flip { grid-template-columns: .85fr 1.15fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card:hover { transition: none; transform: none; }
}
