/* The Roadtrip Scout – Basis-Stylesheet
   Keine externen Fonts (DSGVO + Ladezeit): Bahnschrift / DIN als Straßenschild-Schrift,
   System-UI für Fließtext. */

:root {
  --glacier: #edf2f1;      /* Seitenhintergrund, kühles Gletscherweiß */
  --paper: #ffffff;
  --asphalt: #232a2f;      /* Text, Header */
  --asphalt-2: #3b454c;
  --stone: #6b767c;        /* Sekundärtext */
  --rule: #cfd8d6;
  --line: #e9b61c;         /* Mittellinien-Gelb */
  --pine: #2d5a4c;         /* Wald, CTA */
  --pine-dark: #21453a;
  --sky: #2f6a8c;          /* Links */
  --ad: #fff7dc;           /* Anzeige-Fläche */

  --font-sign: Bahnschrift, "DIN Alternate", "DIN 2014", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: 2.15rem;
  --step-4: clamp(2.4rem, 6vw, 3.9rem);

  --wrap: 72rem;
  --measure: 40rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--glacier);
  color: var(--asphalt);
  font: 400 var(--step-0)/1.6 var(--font-body);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sky); text-underline-offset: .18em; }
a:hover { color: var(--asphalt); }
:focus-visible { outline: 3px solid var(--line); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--line); color: var(--asphalt); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

h1, h2, h3 { font-family: var(--font-sign); font-weight: 600; line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .5em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); margin-top: 2.2em; }
h3 { font-size: var(--step-1); margin-top: 1.6em; }
p, ul, ol { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.prose { max-width: var(--measure); }
.prose li { margin-bottom: .35em; }
.muted { color: var(--stone); }
.small { font-size: var(--step--1); }

/* ---------- Header ---------- */
.site-head { background: var(--asphalt); color: #fff; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--font-sign); font-weight: 600; font-size: 1.2rem; }
.brand svg { width: 2rem; height: 2rem; }
.nav { display: none; gap: 1.4rem; }
.nav a { color: #dfe5e3; text-decoration: none; font-family: var(--font-sign); font-size: 1.02rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--line); }
.menu-btn { background: none; border: 1px solid #56626a; color: #fff; border-radius: var(--radius); padding: .4rem .75rem; font: inherit; font-size: .95rem; cursor: pointer; }
.mobile-nav { display: none; background: var(--asphalt-2); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; color: #fff; padding: .8rem 1rem; text-decoration: none; border-top: 1px solid #4a555c; font-family: var(--font-sign); }
@media (min-width: 60rem) { .nav { display: flex; } .menu-btn, .mobile-nav { display: none !important; } }

/* Mittellinie: Strukturelement zwischen Header und Inhalt sowie in der Etappenliste */
.centerline { height: 6px; background: repeating-linear-gradient(90deg, var(--line) 0 34px, transparent 34px 56px), var(--asphalt-2); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: var(--step--1); color: var(--stone); padding-top: 1rem; }
.hero .crumbs, .hero .crumbs a { color: #9fb0aa; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--rule); }
.crumbs a { color: var(--stone); }

/* ---------- Höhenprofil-Hero (das eine markante Element) ---------- */
.hero { background: var(--asphalt); color: #fff; overflow: hidden; }
.hero .wrap { padding-top: 2.4rem; }
.hero h1 { max-width: 18ch; }
.hero .lede { color: #cdd6d3; font-size: var(--step-1); max-width: 36rem; line-height: 1.45; }
.profile { margin: 1.5rem -1rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.profile svg { width: 100%; min-width: 640px; height: auto; }
@media (min-width: 48rem) { .profile { margin: 1.5rem 0 0; } }
.profile .ground { fill: #2f383e; }
.profile .road { fill: none; stroke: var(--line); stroke-width: 3; stroke-dasharray: 14 9; stroke-linecap: round; }
.profile .pass circle { fill: var(--line); }
.profile .pass text { fill: #fff; font: 600 16px var(--font-sign); }
.profile .pass .h { fill: #9fb0aa; font-weight: 400; font-size: 13px; }
.profile .town text { fill: #9fb0aa; font: 400 13px var(--font-body); }
@media (prefers-reduced-motion: no-preference) {
  .profile .road { stroke-dashoffset: 1200; animation: drive 2.6s ease-out .2s forwards; }
  @keyframes drive { to { stroke-dashoffset: 0; } }
}

.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: #3a454c; margin: 1.5rem 0 0; border-top: 1px solid #3a454c; }
.facts div { background: var(--asphalt); padding: .9rem 1rem 1.1rem 0; }
.facts dt { color: #9fb0aa; font-size: var(--step--1); }
.facts dd { margin: 0; font-family: var(--font-sign); font-size: var(--step-2); }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(4, minmax(0,1fr)); } .facts div { padding-left: 0; } }

/* ---------- Layout Artikel ---------- */
.article { padding: 2rem 0 4rem; }
.article-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
.article-grid > * { min-width: 0; }
@media (min-width: 64rem) { .article-grid { grid-template-columns: minmax(0, 1fr) 19rem; } .aside { position: sticky; top: 1rem; align-self: start; } }
.byline { font-size: var(--step--1); color: var(--stone); margin-bottom: 1.5rem; }
.notice { border-left: 4px solid var(--line); background: var(--paper); padding: 1rem 1.2rem; margin: 1.5rem 0; max-width: var(--measure); }
.notice strong { font-family: var(--font-sign); font-size: 1.05rem; }
.toc { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.2rem; }
.toc h2 { font-size: var(--step-1); margin: 0 0 .5rem; }
.toc ol { padding-left: 1.2rem; margin: 0; }

/* ---------- Etappen (Day by Day) ---------- */
.days { list-style: none; padding: 0; margin: 1.5rem 0; max-width: var(--measure); }
.day { position: relative; padding: 0 0 2rem 3.2rem; }
.day::before { /* Straße zwischen den Tagen */
  content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: 0; width: 4px;
  background: repeating-linear-gradient(180deg, var(--line) 0 14px, transparent 14px 24px);
}
.day:last-child::before { display: none; }
.day-no { position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--asphalt); color: var(--line); display: grid; place-items: center; font: 600 1.05rem var(--font-sign); }
.day h3 { margin: .2rem 0 .3rem; font-size: var(--step-2); }
.day-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: var(--step--1); color: var(--stone); margin-bottom: .8rem; }
.day-meta b { color: var(--asphalt); font-weight: 600; }
.stops { padding-left: 1.1rem; }

/* ---------- Partnerboxen (Anzeige) ---------- */
.partner { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 1.6rem 0; max-width: var(--measure); }
.partner .tag { display: inline-block; font-size: .78rem; color: var(--stone); border: 1px solid var(--rule); border-radius: 3px; padding: 0 .4rem; margin-bottom: .5rem; }
.partner h3 { margin: 0 0 .35rem; font-size: var(--step-1); }
.partner p { margin-bottom: .8rem; }
.partner--car { border-top: 5px solid var(--pine); }
.partner--hotel { border-top: 5px solid var(--sky); }
.partner--activity { border-top: 5px solid var(--line); }
.btn { display: inline-block; background: var(--pine); color: #fff; text-decoration: none; font-family: var(--font-sign); font-weight: 600; font-size: 1.05rem; padding: .7rem 1.15rem; border-radius: var(--radius); border: 0; cursor: pointer; }
.btn:hover { background: var(--pine-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--pine); border: 2px solid var(--pine); }
.btn--ghost:hover { background: var(--pine); color: #fff; }
.btn[data-missing] { outline: 2px dashed #c0392b; outline-offset: 2px; }

.gear-note { margin: 1.2rem 0 -.6rem; }
.gear { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.5rem 0; max-width: var(--measure); }
@media (min-width: 40rem) { .gear { grid-template-columns: 1fr 1fr; } }
.gear-item { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; }
.gear-item h4 { font: 600 1.1rem var(--font-sign); margin: 0 0 .3rem; }
.gear-item p { font-size: .95rem; flex: 1; }
.gear-item a { font-weight: 600; }

/* Fester Werbeplatz */
.adslot { background: var(--ad); border: 1px dashed #d8c27a; border-radius: var(--radius); padding: 1rem 1.2rem; margin: 2rem 0; max-width: var(--measure); }
.adslot .tag { font-size: .78rem; color: #7a6a2e; }
.adslot h3 { margin: .2rem 0 .35rem; font-size: var(--step-1); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; max-width: var(--measure); margin: 1.2rem 0; }
table { border-collapse: collapse; width: 100%; background: var(--paper); font-size: .97rem; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--font-sign); font-weight: 600; background: #e2e9e7; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--measure); }
.faq details { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-family: var(--font-sign); font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pine); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 1.1rem 1rem; }

/* ---------- Rechner ---------- */
.calc { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.2rem; max-width: var(--measure); margin: 1.5rem 0; }
.calc h3 { margin-top: 0; }
.calc-grid { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
.calc label { display: block; font-size: var(--step--1); color: var(--asphalt-2); margin-bottom: .25rem; }
.calc input { width: 100%; font: inherit; padding: .55rem .65rem; border: 1px solid #aebbb8; border-radius: 4px; background: #fbfcfc; }
.calc output { display: block; margin-top: 1rem; font-family: var(--font-sign); font-size: var(--step-1); }
.calc output span { color: var(--stone); font-family: var(--font-body); font-size: var(--step--1); display: block; }

/* ---------- Seitenleiste ---------- */
.aside .box { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.aside h2 { font-size: var(--step-1); margin: 0 0 .5rem; }
.aside ul { padding-left: 1.1rem; margin: 0; }

/* ---------- Startseite ---------- */
.home-hero { background: var(--asphalt); color: #fff; }
.home-hero .wrap { padding-top: 3rem; padding-bottom: 0; }
.home-hero p.lede { color: #cdd6d3; font-size: var(--step-1); max-width: 34rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 0; }
.home-actions .btn--ghost { color: #fff; border-color: #8aa198; }
.section { padding: 3rem 0; }
.section h2 { margin-top: 0; }
.route-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.route-list li { background: var(--paper); }
.route-list a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--asphalt); }
.route-list a:hover { background: #f6f9f8; }
.route-list .t { font: 600 var(--step-1) var(--font-sign); }
.route-list .m { color: var(--stone); font-size: var(--step--1); grid-column: 1; }
.route-list .k { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 600 var(--step-1) var(--font-sign); color: var(--pine); white-space: nowrap; }
.route-list .soon { color: var(--stone); }
.moto-tag { display: inline-block; margin-left: .35rem; padding: 0 .45rem; border: 1px solid var(--asphalt-2); border-radius: 3px; font-size: .78rem; color: var(--asphalt-2); white-space: nowrap; }
.hero--article .wrap { padding-bottom: 2rem; }
.hero--article h1 { max-width: 22ch; }
.pillars { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillars h3 { margin-top: 0; }
.pillars a.more { font-weight: 600; }

/* ---------- Footer ---------- */
.site-foot { background: var(--asphalt); color: #c4ccca; padding: 2.5rem 0 2rem; font-size: var(--step--1); }
.site-foot a { color: #e8eeec; }
.foot-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .35rem; }
.site-foot h2 { color: #fff; font-size: 1.05rem; margin: 0 0 .6rem; }
.foot-note { border-top: 1px solid #3c474e; margin-top: 2rem; padding-top: 1rem; }
