/* Historie – über 70 Jahre Verkehrs-Institut (nur für /historie/) */
.hx { --bi: #80bf20; --du: #2878b9; --un: #ffb62f; --he: #c93416; --asphalt: #3a4542; --asphalt-2: #4a5552; }
.hx-grad { background: linear-gradient(90deg, var(--bi) 0%, #3f9f6a 28%, var(--du) 48%, #9a8f86 60%, var(--un) 74%, #e0782c 86%, var(--he) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.hx-hero { position: relative; overflow: hidden; padding: 92px 0 84px; background: var(--forest-2); color: #fff; isolation: isolate; }
.hx-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/images/historie/1954-haus-einschlingen.webp") center 35% / cover no-repeat; filter: grayscale(1) contrast(1.05); opacity: .28; transform: scale(1.04); }
.hx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 51, 43, .97) 0%, rgba(11, 51, 43, .88) 48%, rgba(11, 51, 43, .55) 100%); }
.hx-hero .breadcrumbs, .hx-hero .breadcrumbs a { color: rgba(255, 255, 255, .72); }
.hx-hero .eyebrow { color: var(--lime); }
.hx-hero h1 { max-width: 900px; font-size: clamp(3.2rem, 9vw, 8.2rem); line-height: .95; letter-spacing: -.035em; }
.hx-hero h1 small { display: block; margin-top: 14px; font-size: clamp(1.35rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em; color: #fff; -webkit-text-fill-color: #fff; }
.hx-hero .lead { color: rgba(255, 255, 255, .86); max-width: 720px; }
.hx-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 46px 0 0; padding: 0; list-style: none; max-width: 1060px; }
.hx-facts li { padding: 18px 18px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.hx-facts strong { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; color: var(--lime); letter-spacing: -.02em; }
.hx-facts span { display: block; margin-top: 8px; font-size: .92rem; line-height: 1.35; color: rgba(255, 255, 255, .85); }

/* Kurzfassung */
.hx-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.hx-intro h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; letter-spacing: -.025em; }
.hx-intro p { color: #44534f; font-size: 1.08rem; }
.hx-summary { margin: 0; padding: 28px 30px; border-radius: var(--radius); background: var(--cream); }
.hx-summary h3 { margin: 0 0 14px; font-size: 1.05rem; }
.hx-summary ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: #33433f; }

/* Kapitel-Navigation */
.hx-chapters { position: sticky; top: var(--hx-head, 0px); z-index: 90; background: rgba(255, 254, 249, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hx-chapters .container { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.hx-chapters .container::-webkit-scrollbar { display: none; }
.hx-chapters a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 700; color: var(--forest); background: #fff; transition: background .2s, color .2s, border-color .2s; }
.hx-chapters a:hover, .hx-chapters a:focus-visible { border-color: var(--forest); }
.hx-chapters a.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }

/* Zeitstrahl als Straße */
.hx-timeline-section { padding: 0 0 110px; background: linear-gradient(180deg, var(--paper) 0%, #f4f6f1 100%); }
.hx-timeline-section > .container { padding-top: 70px; }
.hx-road-wrap { position: relative; margin-top: 30px; }
.hx-road { position: absolute; top: 0; bottom: 0; left: 50%; width: 64px; transform: translateX(-50%); border-radius: 32px; background: linear-gradient(90deg, #d9dfdb 0 5px, var(--asphalt-2) 5px calc(100% - 5px), #d9dfdb calc(100% - 5px)); box-shadow: inset 0 0 18px rgba(0, 0, 0, .25); }
.hx-road::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 50%; width: 4px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .9) 0 22px, transparent 22px 44px); }
.hx-road-progress { position: absolute; top: 0; left: 50%; width: 4px; height: 0; transform: translateX(-50%); border-radius: 4px; background: var(--lime); box-shadow: 0 0 12px rgba(217, 255, 104, .55); }
.hx-car { position: absolute; top: 0; left: 50%; width: 30px; height: 52px; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); pointer-events: none; }

.hx-stops { position: relative; list-style: none; margin: 0; padding: 40px 0 20px; }
.hx-stop { position: relative; display: grid; grid-template-columns: 1fr 140px 1fr; align-items: center; margin-bottom: 56px; scroll-margin-top: calc(var(--hx-head, 0px) + 90px); }
.hx-stop:last-child { margin-bottom: 0; }
.hx-stop .hx-card { grid-column: 1; grid-row: 1; }
.hx-stop .hx-pin { grid-column: 2; grid-row: 1; }
.hx-stop:nth-child(even) .hx-card { grid-column: 3; }

.hx-pin { --c: var(--bi); position: relative; justify-self: center; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 75%, #000) 100%); box-shadow: 0 12px 22px rgba(0, 0, 0, .28); z-index: 2; }
.hx-pin span { transform: rotate(45deg); color: #fff; font-weight: 900; font-size: 1.12rem; letter-spacing: -.01em; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.hx-stop[data-loc="duesseldorf"] .hx-pin { --c: var(--du); }
.hx-stop[data-loc="unna"] .hx-pin { --c: var(--un); }
.hx-stop[data-loc="herne"] .hx-pin { --c: var(--he); }
.hx-stop[data-loc="zukunft"] .hx-pin { --c: var(--forest); outline: 3px dashed var(--bi); outline-offset: 4px; }
.hx-stop.is-small .hx-pin { width: 62px; height: 62px; }
.hx-stop.is-small .hx-pin span { font-size: .92rem; }

.hx-card { position: relative; padding: 0; border-radius: 24px; background: #fff; box-shadow: var(--shadow); overflow: hidden; border-top: 5px solid var(--bi); }
.hx-stop[data-loc="duesseldorf"] .hx-card { border-top-color: var(--du); }
.hx-stop[data-loc="unna"] .hx-card { border-top-color: var(--un); }
.hx-stop[data-loc="herne"] .hx-card { border-top-color: var(--he); }
.hx-stop[data-loc="zukunft"] .hx-card { border-top-color: var(--forest); background: var(--forest-2); color: #fff; }
.hx-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #e8ece9; }
.hx-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.hx-card:hover figure img { transform: scale(1.04); }
.hx-card-body { padding: 24px 28px 26px; }
.hx-place { margin: 0 0 6px; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hx-stop[data-loc="zukunft"] .hx-place { color: var(--lime); }
.hx-card h3 { margin: 0 0 10px; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; letter-spacing: -.01em; }
.hx-card p { margin: 0 0 10px; color: #3f4f4b; }
.hx-stop[data-loc="zukunft"] .hx-card p { color: rgba(255, 255, 255, .86); }
.hx-card p:last-child { margin-bottom: 0; }
.hx-card figcaption { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(17, 39, 34, .72); color: #fff; font-size: .74rem; }
.hx-card .hx-badge { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hx-card a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hx-stop[data-loc="zukunft"] .hx-card a { color: var(--lime); }

/* Animation (nur wenn JS aktiv und Bewegung erlaubt) */
.hx-js .hx-stop .hx-card { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.hx-js .hx-stop:nth-child(even) .hx-card { transform: translateX(40px); }
.hx-js .hx-stop .hx-pin { transform: rotate(-45deg) scale(.4); opacity: 0; transition: transform .55s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.hx-js .hx-stop.is-visible .hx-card { opacity: 1; transform: none; }
.hx-js .hx-stop.is-visible .hx-pin { transform: rotate(-45deg) scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hx-js .hx-stop .hx-card, .hx-js .hx-stop .hx-pin { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hx-js .hx-stop .hx-pin { transform: rotate(-45deg) !important; }
  .hx-car { display: none; }
}

/* Zitat */
.hx-quote { position: relative; padding: 100px 0; background: var(--forest); color: #fff; overflow: hidden; }
.hx-quote .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.hx-quote img { border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); filter: grayscale(1); }
.hx-quote blockquote { margin: 0; }
.hx-quote blockquote p { margin: 0; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 800; }
.hx-quote blockquote p::before { content: "„"; color: var(--lime); }
.hx-quote blockquote p::after { content: "“"; color: var(--lime); }
.hx-quote footer { margin-top: 20px; color: rgba(255, 255, 255, .75); }
.hx-quote .eyebrow { color: var(--lime); }
.hx-quote .hx-quote-text { margin-top: 18px; color: rgba(255, 255, 255, .8); }

/* Damals & heute */
.hx-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; margin-top: 34px; }
.hx-gallery figure { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: #e8ece9; }
.hx-gallery figure.is-wide { grid-column: span 2; }
.hx-gallery figure.is-tall { grid-row: span 2; }
.hx-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.hx-gallery figure:hover img { transform: scale(1.05); }
.hx-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72)); color: #fff; font-size: .86rem; line-height: 1.3; }
.hx-gallery figcaption b { display: block; color: var(--lime); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }

/* Roadmap */
.hx-roadmap { margin: 34px 0 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.hx-roadmap a { display: block; }
.hx-roadmap img, .hx-quote img { width: 100%; height: auto; }
.hx-roadmap figcaption { padding: 16px 22px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }

/* Träger */
.hx-verbaende { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.hx-verband { padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.hx-verband strong { display: block; font-size: 2.2rem; line-height: 1; color: var(--forest); letter-spacing: -.02em; }
.hx-verband h3 { margin: 10px 0 8px; font-size: 1.15rem; }
.hx-verband p { margin: 0; color: #44534f; }

/* FAQ */
.hx-faq { max-width: 880px; margin-top: 30px; display: grid; gap: 12px; }
.hx-faq details { border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.hx-faq summary { cursor: pointer; padding: 20px 24px; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: "+"; color: var(--forest); font-size: 1.4rem; line-height: 1; }
.hx-faq details[open] summary::after { content: "–"; }
.hx-faq details p { margin: 0; padding: 0 24px 22px; color: #44534f; }

/* CTA */
.hx-cta { padding: 80px 0; background: var(--lime); }
.hx-cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.hx-cta h2 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -.02em; max-width: 720px; }
.hx-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Responsive */
@media (max-width: 980px) {
  .hx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-intro, .hx-quote .container { grid-template-columns: 1fr; gap: 32px; }
  .hx-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .hx-verbaende { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hx-hero { padding: 64px 0 60px; }
  .hx-road { left: 30px; width: 44px; }
  .hx-stop, .hx-stop:nth-child(even) { grid-template-columns: 60px 1fr; gap: 14px; margin-bottom: 36px; }
  .hx-stop .hx-card, .hx-stop:nth-child(even) .hx-card { grid-column: 2; }
  .hx-stop .hx-pin { grid-column: 1; align-self: start; margin-top: 18px; width: 58px; height: 58px; }
  .hx-stop .hx-pin span { font-size: .84rem; }
  .hx-stop.is-small .hx-pin { width: 50px; height: 50px; }
  .hx-stop.is-small .hx-pin span { font-size: .76rem; }
  .hx-js .hx-stop .hx-card, .hx-js .hx-stop:nth-child(even) .hx-card { transform: translateY(24px); }
  .hx-card-body { padding: 20px 20px 22px; }
  .hx-car { width: 22px; height: 38px; }
  .hx-gallery { grid-auto-rows: 150px; gap: 10px; }
  .hx-gallery figure.is-wide { grid-column: span 2; }
  .hx-gallery figcaption { font-size: .78rem; padding: 24px 10px 8px; }
}
@media (max-width: 420px) {
  .hx-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hx-facts li { padding: 14px; }
  .hx-facts span { font-size: .84rem; }
}

/* Quellen */
.hx-source-list { max-width: 900px; margin: 26px 0 0; padding-left: 1.2em; display: grid; gap: 10px; color: #44534f; }
.hx-source-list a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
