:root {
    --ink: #17251e;
    --paper: #f2f1e8;
    --soft: #4a584f;
    --accent: #d6ef7d;
    --line: #c9d2c4;
}
body { background: var(--paper); }
.wrap { width: min(100% - 48px, 1360px); }
.masthead { border-bottom: 1px solid #d5dacd; background: #f2f1e8; }
.masthead-inner { min-height: 78px; }
.brand-mark { white-space: normal; font-size: clamp(1.02rem,2.1vw,1.52rem); letter-spacing: -.045em; }
.brand-mark img { width: 44px; height: 44px; flex: none; }
.brand-parent { margin: .12rem 0 0 52px; }
.account summary { border-radius: 100px; }
.schwarzwald-hero { position: relative; display: grid; align-items: end; isolation: isolate; overflow: hidden; min-height: clamp(410px,44vw,605px); margin: 20px 0 0; padding: 0; color: #fff; background: #17251e; }
.schwarzwald-hero picture, .schwarzwald-hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.schwarzwald-hero picture { z-index: -2; }
.schwarzwald-hero img { object-fit: cover; object-position: center 54%; }
.schwarzwald-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #102018ee 0%, #14261da0 37%, #17271d16 76%),linear-gradient(0deg,#17251e6b,transparent 58%); }
.hero-copy { padding: clamp(24px,6vw,82px); min-width: 0; }
.schwarzwald-kicker { color: #d6ef7d; letter-spacing: .18em; font-weight: 850; font-size: .79rem; }
.schwarzwald-hero h1 { font: 900 clamp(2.2rem,6.1vw,6.6rem)/.87 system-ui,sans-serif; text-wrap: initial; letter-spacing: -.075em; margin: .21em 0; max-width: 10em; overflow-wrap: anywhere; }
.hero-url { font-size: .9rem; color: #e2ebd8; overflow-wrap: anywhere; }
.schwarzwald-hero p { color: white; margin: .9rem 0; max-width: 30rem; font-size: 1.14rem; }
.hero-cta { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem 1rem; text-decoration: none; background: #d6ef7d; color: #17251e; font-weight: 800; border-radius: 100px; }
.schwarzwald-intro { margin: 1.2rem 0; max-width: 50rem; font-size: 1.13rem; }
.feed-status { background: #e7edd8; border-left: 3px solid #687c42; padding: .65rem .85rem; }
.tools, .results, .map-stage, .partner-cta { border-radius: .7rem; }
#bike-fit { background: #d6ef7d; border-color: #9baa70; }
.schwarzwald-guide { max-width: none; margin-top: 2rem; background: #17251e; color: #f4f6ed; padding: clamp(18px,4vw,48px); }
.schwarzwald-guide h2, .schwarzwald-guide h3, .schwarzwald-guide h4 { color: #fffdf6; }
.schwarzwald-guide p { max-width: 53rem; color: #f0f3e7; }
.schwarzwald-guide a { color: #f0ffbf; text-decoration: underline; text-underline-offset: .2em; }
.schwarzwald-guide a:focus-visible { outline-color: #f0ffbf; }
.tour-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.tour-grid article { background: #2b3c31; padding: 1rem; border-top: 3px solid #d6ef7d; }
.tour-grid h4, .tour-grid p { margin: 0; }
.schwarzwald-map-privacy { flex-basis: 100%; margin: 0; font-size: .85rem; color: #4a584f; }
.schwarzwald-view { display: flex; gap: .5rem; margin-bottom: .65rem; }
.schwarzwald-view button[aria-pressed=true] { background: #17251e; color: white; }
.schwarzwald-view[hidden] { display: none; }
@media (min-width:761px) {
    .schwarzwald-view { display: none; }
    .map-first .workspace[data-view-mode=map] { display: grid; grid-template-columns: minmax(255px,1fr) minmax(0,2.2fr); align-items: start; }
    .map-first .workspace[data-view-mode=map] .results { display: block; max-height: min(690px,72vh); margin: 0; }
}
@media (max-width:760px) {
    .wrap { width: calc(100% - 24px); }
    .schwarzwald-hero { min-height: 395px; }
    .schwarzwald-hero img { object-position: 64% center; }
    .schwarzwald-hero::after { background: linear-gradient(0deg,#102018f7 0%,#14261dc2 45%,transparent 100%); }
    .hero-copy { padding: 18px; }
    .tour-grid { grid-template-columns: 1fr; }
}
@media (max-width:480px) {
    .masthead .account > a, .brand-parent { display: none; }
    .brand { min-width: 0; }
    .account { flex: 0 0 auto; }
}
