/* MAXHOME Deutschland – Neubau 2026. Thema über die Engine-Token, eigene Klassen darunter.
   Die Engine (cool-website.css/.js) bleibt unverändert. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/assets/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/assets/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/plexmono-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/plexmono-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/plexmono-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/plexmono-500-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --cw-canvas:     #eef0ea;
  --cw-surface:    #e2e6dc;
  --cw-ink:        #17201a;
  --cw-ink-soft:   #4c5a50;
  --cw-accent:     #3a7a1d;
  --cw-accent-ink: #ffffff;
  --cw-font-display: "Archivo", system-ui, sans-serif;
  --cw-font-text:    "Archivo", system-ui, sans-serif;
  --cw-font-mono:    "IBM Plex Mono", ui-monospace, monospace;
  --cw-shadow-color: 140 20% 12%;

  --papier: #f7f8f4;
  --nacht: #141c17;
  --nacht-2: #1c2620;
  --nacht-ink: #eef0ea;
  --nacht-soft: #aebbb1;
  --gruen-hell: #8cc63f;
  --leiste: 4.25rem;
  --breit: 112%;
}

html { scroll-padding-top: calc(var(--leiste) + 1rem); }
body { background: var(--cw-canvas); color: var(--cw-ink); font-family: var(--cw-font-text); font-stretch: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cw-accent); outline-offset: 3px; border-radius: 2px; }
.sprung { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--cw-ink); color: var(--cw-canvas); padding: .6rem 1rem; border-radius: 6px; }
.sprung:focus { top: .75rem; }

.etikett {
  font-family: var(--cw-font-mono); font-size: var(--cw-t-xs); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--cw-ink-soft); margin: 0;
}
.etikett a { text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: .2em; }

/* ------------------------------------------------------------- Kopfleiste */
.leiste {
  position: sticky; top: 0; z-index: 80; height: var(--leiste);
  display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem);
  padding-inline: var(--cw-gutter);
  background: color-mix(in oklab, var(--cw-canvas) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cw-hairline);
}
.marke { display: block; flex: none; }
.marke img { height: 2.6rem; width: auto; }
.leiste__nav { display: flex; align-items: center; gap: clamp(.25rem, 1.4vw, 1.5rem); margin-left: auto; }
.leiste__nav > a, .idx > summary {
  font-weight: 560; font-size: var(--cw-t-sm); text-decoration: none; padding: .55rem .5rem; border-radius: 6px;
  cursor: pointer; transition: background-color 160ms var(--cw-ease-out);
}
.leiste__nav > a:hover, .idx > summary:hover { background: var(--cw-surface); }
.leiste__nav > a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; text-decoration-color: var(--cw-accent); }
.leiste__tel {
  flex: none; display: inline-flex; gap: .5rem; align-items: baseline; text-decoration: none;
  background: var(--cw-accent); color: var(--cw-accent-ink); font-weight: 650; font-size: var(--cw-t-sm);
  padding: .6rem .95rem; border-radius: 999px; white-space: nowrap;
  transition: background-color 160ms var(--cw-ease-out);
}
.leiste__tel:hover { background: color-mix(in oklab, var(--cw-accent) 85%, black); }
.leiste__tel-label { font-family: var(--cw-font-mono); font-size: var(--cw-t-xs); text-transform: uppercase; letter-spacing: .06em; opacity: .9; }

.idx { position: relative; }
.idx > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
.idx > summary::-webkit-details-marker { display: none; }
.idx > summary::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -.15rem; transition: rotate 160ms var(--cw-ease-out); }
.idx[open] > summary::after { rotate: 225deg; translate: 0 .1rem; }
.idx__panel {
  position: absolute; top: calc(100% + .9rem); left: 50%; translate: -50% 0; width: min(46rem, 92vw);
  background: var(--papier); border: 1px solid var(--cw-hairline-strong); border-radius: 14px;
  box-shadow: 0 18px 40px -16px hsl(var(--cw-shadow-color) / .35); padding: 1.1rem 1.25rem 1.25rem;
}
.idx__kopf { margin: 0 0 .6rem; font-family: var(--cw-font-mono); font-size: var(--cw-t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--cw-ink-soft); }
.idx__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
.idx__liste a { display: flex; flex-direction: column; padding: .55rem .5rem; border-top: 1px solid var(--cw-hairline); text-decoration: none; border-radius: 4px; }
.idx__liste a:hover { background: var(--cw-surface); }
.idx__name { font-weight: 650; font-stretch: var(--breit); }
.idx__ort { font-size: var(--cw-t-sm); color: var(--cw-ink-soft); }
.idx__seiten { display: none; }
.idx__alle { display: inline-block; margin-top: .8rem; font-weight: 600; color: var(--cw-accent); text-underline-offset: .2em; }

/* -------------------------------------------------------------- Schild */
.schild { margin: 0; display: grid; font-size: var(--cw-t-sm); }
.schild > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; padding: .5rem 0; border-top: 1px solid var(--cw-hairline-strong); }
.schild > div:last-child { border-bottom: 1px solid var(--cw-hairline-strong); }
.schild dt { font-family: var(--cw-font-mono); font-size: var(--cw-t-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--cw-ink-soft); padding-top: .12em; }
.schild dd { margin: 0; text-wrap: pretty; }
.schild a { text-underline-offset: .2em; }

.knopf { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; text-decoration: none; padding: .8rem 1.15rem; border-radius: 999px; background: var(--cw-accent); color: var(--cw-accent-ink); transition: background-color 160ms var(--cw-ease-out); white-space: nowrap; }
.knopf:hover { background: color-mix(in oklab, var(--cw-accent) 85%, black); }
.knopf--rand { background: transparent; color: var(--cw-ink); box-shadow: inset 0 0 0 2px var(--cw-ink); }
.knopf--rand:hover { background: var(--cw-ink); color: var(--cw-canvas); }
.pfeil { font-weight: 650; color: var(--cw-accent); text-underline-offset: .22em; }
.pfeil::after { content: " →"; }

/* --------------------------------------------------------------- Held */
.held { background: var(--cw-canvas); }
.held__flaeche { position: relative; height: calc(100svh - var(--leiste)); min-height: 36rem; max-height: 62rem; overflow: clip; }
.held__fern { position: absolute; margin: 0; top: -5rem; bottom: -5rem; left: 31%; right: 0; }
.held__foto { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.held__schild {
  position: absolute; z-index: 2; left: var(--cw-gutter); bottom: clamp(2rem, 7vh, 5rem);
  width: min(37rem, 44vw); background: var(--papier); padding: clamp(1.4rem, 2.6vw, 2.5rem);
  box-shadow: 0 30px 60px -30px hsl(var(--cw-shadow-color) / .45), 0 2px 6px hsl(var(--cw-shadow-color) / .08);
}
.held__titel { font-family: var(--cw-font-display); font-weight: 760; font-stretch: var(--breit); font-size: clamp(2.1rem, 1.2rem + 2.9vw, 4.1rem); line-height: 1.0; letter-spacing: -0.025em; margin: 0 0 1rem; hyphens: manual; text-wrap: balance; }
.held__satz { margin: 0 0 1.4rem; color: var(--cw-ink-soft); font-size: var(--cw-t-base); line-height: 1.5; max-width: 40ch; }
.held__objekt { margin-bottom: .5rem; }
.held__nah { position: absolute; z-index: 3; margin: 0; right: var(--cw-gutter); bottom: clamp(-6rem, -8vh, -3rem); width: clamp(11rem, 21vw, 20rem); border: .45rem solid var(--papier); box-shadow: 0 24px 48px -20px hsl(var(--cw-shadow-color) / .5); }
.held__nah img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ----------------------------------------------------------- Sammlung */
.sammlung { background: var(--cw-canvas); }
.sammlung__buehne { background: var(--cw-canvas); }
.sammlung__karte {
  position: absolute; z-index: 4; left: 0; top: var(--leiste); bottom: 0; width: calc(var(--cw-gutter) + 33vw);
  padding: 4vh 2.5vw 4vh var(--cw-gutter); display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  background: var(--cw-canvas);
}
.sammlung__karte::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 6vw; pointer-events: none;
  background: linear-gradient(to right, var(--cw-canvas) 15%, color-mix(in oklab, var(--cw-canvas) 0%, transparent));
}
.sammlung__stand { padding-left: .25rem; }
.schiene {
  position: absolute; top: var(--leiste); bottom: 0; left: 0; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
  padding-left: calc(var(--cw-gutter) + 37vw); padding-right: var(--cw-gutter);
}
.schiene__kopf, .schiene__ende { flex: 0 0 clamp(15rem, 22vw, 21rem); }
.schiene__titel { font-family: var(--cw-font-display); font-weight: 760; font-stretch: var(--breit); font-size: clamp(2rem, 1.4rem + 2vw, 3.3rem); line-height: 1; letter-spacing: -0.025em; margin: 0 0 1rem; }
.schiene__kopf p, .schiene__ende p { color: var(--cw-ink-soft); margin: 0 0 1.2rem; line-height: 1.5; }
.schiene__ende p { font-family: var(--cw-font-display); font-stretch: var(--breit); font-weight: 650; color: var(--cw-ink); font-size: var(--cw-t-xl); line-height: 1.15; }
.objekt { flex: 0 0 clamp(17rem, 24vw, 24rem); }
.objekt__link { display: block; text-decoration: none; }
.objekt__rahmen { overflow: hidden; background: var(--cw-surface); box-shadow: 0 18px 36px -22px hsl(var(--cw-shadow-color) / .5); }
.objekt__rahmen img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: scale 420ms var(--cw-ease-out); }
.objekt__link:hover img { scale: 1.03; }
.objekt__name { font-family: var(--cw-font-display); font-weight: 720; font-stretch: var(--breit); font-size: var(--cw-t-xl); line-height: 1.05; letter-spacing: -0.015em; margin: 1rem 0 .7rem; }
.objekt__link:hover .objekt__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; text-decoration-color: var(--cw-accent); }
.objekt .schild { font-size: var(--cw-t-xs); }
.objekt .schild > div { grid-template-columns: 5.6rem 1fr; padding: .38rem 0; }
@media (prefers-reduced-motion: no-preference) {
  .objekt { opacity: calc(.55 + .45 * var(--da, 1)); transition: opacity 200ms linear; }
  .objekt:focus-within { opacity: 1; }
}

/* Karte */
.karte { width: 100%; height: auto; display: block; overflow: hidden; }
.karte__rest { fill: color-mix(in oklab, var(--cw-ink) 4%, transparent); stroke: color-mix(in oklab, var(--cw-ink) 14%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.karte__land { fill: color-mix(in oklab, var(--cw-ink) 9%, var(--cw-canvas)); stroke: color-mix(in oklab, var(--cw-ink) 38%, transparent); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.karte__land--pl { fill: color-mix(in oklab, var(--cw-ink) 6%, var(--cw-canvas)); }
.karte__land-name { font-family: var(--cw-font-mono); font-size: 20px; letter-spacing: .12em; text-transform: uppercase; fill: color-mix(in oklab, var(--cw-ink) 45%, transparent); text-anchor: middle; }
.route__linie { fill: none; stroke: var(--cw-accent); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.route__ziel { fill: var(--cw-accent); stroke: var(--papier); stroke-width: 2.5; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 200ms var(--cw-ease-out); }
.route__name { font-family: var(--cw-font-display); font-stretch: var(--breit); font-weight: 700; font-size: 26px; fill: var(--cw-ink); paint-order: stroke; stroke: var(--cw-canvas); stroke-width: 6px; stroke-linejoin: round; opacity: 0; transition: opacity 200ms var(--cw-ease-out); }
.route.is-fertig .route__ziel { opacity: 1; }
.route.is-fertig .route__linie { stroke-dashoffset: 0; }
.route.is-alt .route__linie { stroke: color-mix(in oklab, var(--cw-accent) 50%, var(--cw-canvas)); stroke-width: 1.8; }
.route.is-alt .route__ziel { fill: color-mix(in oklab, var(--cw-accent) 55%, var(--cw-canvas)); }
.route.is-aktiv .route__name { opacity: 1; }
.route.is-aktiv .route__linie { stroke-width: 3.4; }
.werk rect { fill: var(--cw-ink); }
.werk text { font-family: var(--cw-font-mono); font-size: 20px; font-weight: 500; letter-spacing: .05em; fill: var(--cw-ink); paint-order: stroke; stroke: var(--cw-canvas); stroke-width: 6px; }
.karte--alle .route__linie { stroke-width: 1.8; }
.karte--klein .route__name { font-size: 34px; }
.karte--klein .werk text { font-size: 28px; }

/* --------------------------------------------------------------- Weg */
.weg { background: var(--cw-surface); padding-block: var(--cw-section); }
.weg__kopf { max-width: 58rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.weg__titel { font-family: var(--cw-font-display); font-weight: 760; font-stretch: var(--breit); font-size: var(--cw-t-3xl); line-height: 1.0; letter-spacing: -0.028em; margin: .8rem 0 0; text-wrap: balance; }
.weg__raster { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.5vw, 2.5rem); align-items: end; }
.weg__bild { margin: 0; }
.weg__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.weg__bild--a { grid-column: 1 / span 7; }
.weg__text--a { grid-column: 8 / span 4; padding-bottom: 1rem; }
.weg__bild--b { grid-column: 6 / span 7; grid-row: 2; margin-top: clamp(1rem, 4vw, 4rem); }
.weg__text--b { grid-column: 1 / span 4; grid-row: 2; padding-bottom: 1rem; }
.weg__text p { margin: 0 0 1rem; line-height: 1.6; max-width: 46ch; }
.zahlen { margin: clamp(3rem, 7vw, 6rem) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--cw-ink); }
.zahlen > div { padding: 1.1rem 1rem 0 0; display: flex; flex-direction: column-reverse; gap: .5rem; }
.zahlen dt { font-family: var(--cw-font-mono); font-size: var(--cw-t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--cw-ink-soft); }
.zahlen dd { margin: 0; font-family: var(--cw-font-display); font-weight: 720; font-stretch: var(--breit); font-size: clamp(2rem, 1.2rem + 2.2vw, 3.3rem); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zahlen .klein { font-size: .5em; font-weight: 600; letter-spacing: 0; margin-inline: .1em; }

/* ---------------------------------------------------------- Register */
.register { background: var(--cw-canvas); padding-block: var(--cw-section); }
.register__raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.register__kopf { position: sticky; top: calc(var(--leiste) + 2rem); }
.register__titel { font-family: var(--cw-font-display); font-weight: 760; font-stretch: var(--breit); font-size: var(--cw-t-2xl); line-height: 1.04; letter-spacing: -0.024em; margin: 0 0 1.2rem; text-wrap: balance; }
.register__kopf p { color: var(--cw-ink-soft); line-height: 1.6; margin: 0; max-width: 46ch; }
.register__liste { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--cw-hairline-strong); }
.register__liste a { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; gap: 1.25rem; align-items: baseline; padding: 1.25rem .25rem; border-top: 1px solid var(--cw-hairline-strong); text-decoration: none; transition: background-color 160ms var(--cw-ease-out); }
.register__liste a::after { content: "→"; color: var(--cw-accent); font-weight: 700; transition: translate 160ms var(--cw-ease-out); }
.register__liste a:hover { background: var(--cw-surface); }
.register__liste a:hover::after { translate: .25rem 0; }
.register__name { font-family: var(--cw-font-display); font-weight: 700; font-stretch: var(--breit); font-size: var(--cw-t-lg); line-height: 1.15; }
.register__satz { color: var(--cw-ink-soft); line-height: 1.5; }

/* ----------------------------------------------------- Schluss, Platte */
.schluss, .platte { background: var(--nacht); color: var(--nacht-ink); --cw-hairline-strong: color-mix(in oklab, var(--nacht-ink) 22%, transparent); }
.schluss { padding-block: var(--cw-section) clamp(3rem, 6vw, 5rem); }
.schluss__raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.schluss__bild { margin: 0; }
.schluss__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.schluss__vor { color: var(--nacht-soft); line-height: 1.6; margin: 0 0 2rem; max-width: 48ch; }
.schluss__name, .platte__name { font-family: var(--cw-font-display); font-weight: 780; font-stretch: var(--breit); font-size: var(--cw-t-3xl); letter-spacing: -0.03em; line-height: .95; margin: 0 0 1.25rem; }
.schild--platte { font-size: var(--cw-t-base); }
.schild--platte > div { grid-template-columns: 7.5rem 1fr; padding: .7rem 0; }
.schild--platte dt { color: var(--nacht-soft); }
.schild--platte a { color: var(--nacht-ink); font-weight: 650; text-decoration-color: var(--gruen-hell); text-decoration-thickness: 2px; }
.schild--platte a:hover { color: var(--gruen-hell); }
.schluss__satz, .platte__satz { margin: 1.6rem 0 0; font-family: var(--cw-font-display); font-stretch: var(--breit); font-weight: 650; font-size: var(--cw-t-lg); line-height: 1.25; max-width: 30ch; }
.schluss :focus-visible, .platte :focus-visible, .fuss :focus-visible { outline-color: var(--gruen-hell); }
.platte { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2rem, 4vw, 3rem); }
.platte__inner { width: 100%; max-width: 46rem; margin-inline: auto; padding-inline: var(--cw-gutter); }

/* ---------------------------------------------------------------- Fuß */
.fuss { background: var(--nacht); color: var(--nacht-soft); border-top: 1px solid color-mix(in oklab, var(--nacht-ink) 12%, transparent); padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.fuss__inner { width: 100%; max-width: var(--cw-maxw); margin-inline: auto; padding-inline: var(--cw-gutter); display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.fuss__marke img { width: 11rem; height: auto; background: #fff; padding: .55rem .7rem; border-radius: 6px; }
.fuss__marke p { font-size: var(--cw-t-sm); line-height: 1.55; margin: 1rem 0 0; max-width: 34ch; }
.fuss .etikett { color: var(--nacht-soft); margin-bottom: .7rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.fuss a { color: var(--nacht-ink); text-decoration: none; font-size: var(--cw-t-sm); }
.fuss a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ------------------------------------------------------ Unterseiten */
.seite, .kontakt, .uebersicht { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.seite__kopf { margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 60rem; }
.seite__titel { font-family: var(--cw-font-display); font-weight: 760; font-stretch: var(--breit); font-size: var(--cw-t-3xl); line-height: 1.0; letter-spacing: -0.028em; margin: .6rem 0 0; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.seite__raster { display: grid; grid-template-columns: 13rem minmax(0, 1fr) minmax(0, 22rem); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.s-recht .seite__raster { grid-template-columns: 13rem minmax(0, 1fr); }
.seite__neben { position: sticky; top: calc(var(--leiste) + 2rem); }
.seite__neben ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--cw-hairline-strong); }
.seite__neben a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--cw-ink-soft); font-weight: 560; }
.seite__neben a:hover { color: var(--cw-ink); }
.seite__neben a[aria-current="page"] { color: var(--cw-ink); border-left-color: var(--cw-accent); }
.seite__bilder { display: grid; gap: 1rem; }
.seite__bild { margin: 0; }
.seite__bild img { width: 100%; }

.prosa { max-width: 68ch; line-height: 1.65; overflow-wrap: break-word; }
.prosa > * + * { margin-top: 1rem; }
.prosa > :first-child { margin-top: 0; }
.prosa :where(p) { margin: 0; }
.prosa .lede { font-size: var(--cw-t-lg); line-height: 1.45; color: var(--cw-ink); }
.prosa h2 { overflow-wrap: break-word; hyphens: auto; font-family: var(--cw-font-display); font-weight: 720; font-stretch: var(--breit); font-size: var(--cw-t-xl); letter-spacing: -0.015em; line-height: 1.12; margin: 2.4rem 0 0; }
.prosa h3 { font-family: var(--cw-font-display); font-weight: 680; font-size: var(--cw-t-lg); line-height: 1.2; margin: 2rem 0 0; }
.prosa h4 { font-weight: 700; margin: 1.6rem 0 0; }
.prosa ul, .prosa ol { padding-left: 1.2rem; margin: 1rem 0 0; }
.prosa li + li { margin-top: .35rem; }
.prosa blockquote { margin: 1.5rem 0 0; padding: .25rem 0 .25rem 1.2rem; border-left: 3px solid var(--cw-accent); }
.prosa blockquote > * + * { margin-top: .8rem; }
.prosa a { color: var(--cw-accent); text-underline-offset: .2em; font-weight: 560; }
.prosa strong { font-weight: 680; }
.prosa--recht { font-size: var(--cw-t-sm); }
.prosa--recht h2 { font-size: var(--cw-t-lg); }

/* Haus */
.haus { padding-block: clamp(2rem, 5vw, 4rem) 0; }
.haus__kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: .8rem clamp(1.5rem, 4vw, 4rem); align-items: end; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.haus__kopf .etikett { grid-column: 1 / -1; }
.haus__name { font-family: var(--cw-font-display); font-weight: 780; font-stretch: var(--breit); font-size: clamp(2.1rem, .9rem + 4vw, 5rem); line-height: .96; letter-spacing: -0.03em; margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.haus__bild { margin-block: 0; }
.haus__bild img { width: 100%; max-height: 78svh; object-fit: cover; }
.haus__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(2rem, 5vw, 5rem); margin-block: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.haus__titel { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 3rem) !important; margin-top: 0 !important; line-height: 1.05 !important; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.haus__karte { position: sticky; top: calc(var(--leiste) + 2rem); background: var(--papier); padding: 1rem 1rem .9rem; border: 1px solid var(--cw-hairline); }
.haus__karte .etikett { margin-top: .6rem; }
.haus__galerie { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.galerie__bild { margin: 0; }
.galerie__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie__bild--gross { grid-column: span 2; }
.blaettern { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; padding-block: 1.5rem clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--cw-hairline-strong); }
.blaettern a { min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: .3rem; text-decoration: none; font-family: var(--cw-font-display); font-stretch: var(--breit); font-weight: 700; font-size: var(--cw-t-lg); padding: .5rem; border-radius: 6px; }
.blaettern a:hover { background: var(--cw-surface); }
.blaettern a[rel="next"] { text-align: right; }
.blaettern a:nth-child(2) { text-align: center; }

/* Übersicht */
.uebersicht__kopf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-bottom: clamp(2rem, 5vw, 4rem); }
.uebersicht__kopf .lede { font-size: var(--cw-t-lg); line-height: 1.45; color: var(--cw-ink-soft); margin: 1rem 0 1.5rem; max-width: 42ch; }
.uebersicht__karte { margin: 0; background: var(--papier); border: 1px solid var(--cw-hairline); padding: 1rem; }
.uebersicht__karte .etikett { margin-top: .5rem; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter a { text-decoration: none; font-weight: 600; padding: .5rem .95rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--cw-hairline-strong); }
.filter a:hover { box-shadow: inset 0 0 0 1.5px var(--cw-ink); }
.filter a[aria-current="page"] { background: var(--cw-ink); color: var(--cw-canvas); box-shadow: none; }
.katalog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1rem, 2.5vw, 2rem); }
.katalog__eintrag a { display: block; text-decoration: none; }
.katalog__bild { display: block; overflow: hidden; background: var(--cw-surface); }
.katalog__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: scale 420ms var(--cw-ease-out); }
.katalog__eintrag a:hover img { scale: 1.03; }
.katalog__name { display: block; font-family: var(--cw-font-display); font-weight: 720; font-stretch: var(--breit); font-size: var(--cw-t-xl); line-height: 1.05; margin: .9rem 0 .6rem; }
.katalog__eintrag a:hover .katalog__name { text-decoration: underline; text-decoration-color: var(--cw-accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.schild--kurz { font-size: var(--cw-t-xs); }
.schild--kurz > div { grid-template-columns: 5.6rem 1fr; padding: .38rem 0; }

/* Kontakt */
.kontakt__raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.schild--gross { font-size: var(--cw-t-lg); }
.schild--gross > div { grid-template-columns: 8rem 1fr; padding: 1rem 0; }
.schild--gross a { font-weight: 650; color: var(--cw-ink); text-decoration-color: var(--cw-accent); text-decoration-thickness: 2px; text-underline-offset: .2em; overflow-wrap: anywhere; }

/* --------------------------------------------------------- schmaler */
@media (max-width: 1100px) {
  .leiste__tel-label { display: none; }
  .seite__raster { grid-template-columns: 12rem minmax(0, 1fr); }
  .seite__bilder { grid-column: 2; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
}

@media (max-width: 860px) {
  :root { --leiste: 3.75rem; }
  .marke img { height: 2.15rem; }
  .leiste { gap: .5rem; }
  .leiste__nav > a[href="/mobile-modulheime/"], .leiste__nav > a[href="/ueber-uns/"] { display: none; }
  .leiste__nav { gap: 0; }
  .leiste__nav > a, .idx > summary { padding: .5rem .45rem; }
  .leiste__tel { padding: .55rem .8rem; }
  .leiste__tel-nr { display: none; }
  .leiste__tel-label { display: inline; font-family: var(--cw-font-text); font-size: var(--cw-t-sm); text-transform: none; letter-spacing: 0; font-weight: 650; }
  .idx { position: static; }
  .idx__panel { left: 0; right: 0; translate: none; width: auto; top: var(--leiste); border-radius: 0 0 14px 14px; max-height: calc(100svh - var(--leiste)); overflow: auto; }
  .idx__liste { grid-template-columns: 1fr; }
  .idx__seiten { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--cw-hairline-strong); }
  .idx__seiten a { font-weight: 600; text-decoration: none; padding: .55rem .9rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--cw-hairline-strong); }

  .held__flaeche { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; overflow: clip; }
  .held__fern { position: relative; top: auto; bottom: auto; left: auto; right: auto; height: 56svh; overflow: hidden; }
  .held__fern img { height: calc(100% + 6rem); margin-top: -3rem; }
  .held__schild { position: relative; left: auto; bottom: auto; width: auto; margin: -3.5rem 1rem 0; padding: 1.3rem 1.2rem 1.4rem; }
  .held__nah { right: 1.25rem; top: calc(56svh - 7.5rem); bottom: auto; width: 34vw; border-width: .3rem; }
  .held { padding-bottom: 2.5rem; }

  .sammlung__karte { width: auto; right: 0; bottom: auto; height: 36svh; padding: .75rem var(--cw-gutter) .25rem; background: var(--cw-canvas); justify-content: flex-start; gap: .25rem; }
  .sammlung__karte .karte { max-height: calc(36svh - 2.2rem); width: auto; max-width: 100%; margin-inline: auto; }
  .schiene { top: calc(var(--leiste) + 36svh); padding-left: var(--cw-gutter); align-items: flex-start; padding-top: .75rem; }
  .schiene__kopf, .schiene__ende { flex-basis: 70vw; }
  .sammlung__karte::after { display: none; }
  .objekt { flex-basis: min(74vw, calc((100svh - var(--leiste) - 36svh - 11.5rem) * 1.333)); min-width: 11rem; }
  .objekt__name { margin: .7rem 0 .45rem; }

  .weg__titel { font-size: clamp(2rem, 9vw, 2.6rem); }
  .weg__raster { grid-template-columns: 1fr; }
  .weg__bild--a, .weg__text--a, .weg__bild--b, .weg__text--b { grid-column: 1; grid-row: auto; margin-top: 0; }
  .weg__text { padding-bottom: 1.5rem; }
  .zahlen { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
  .register__raster { grid-template-columns: 1fr; }
  .register__kopf { position: static; }
  .register__liste a { grid-template-columns: 1fr auto; }
  .register__satz { grid-column: 1; }
  .register__liste a::after { grid-column: 2; grid-row: 1; }
  .schluss__raster { grid-template-columns: 1fr; }
  .fuss__inner { grid-template-columns: 1fr 1fr; }
  .fuss__marke { grid-column: 1 / -1; }

  .seite__raster, .s-recht .seite__raster { grid-template-columns: 1fr; }
  .seite__neben { position: static; order: 3; }
  .seite__bilder { grid-column: auto; }
  .haus__kopf, .haus__text, .uebersicht__kopf, .kontakt__raster { grid-template-columns: 1fr; }
  .haus__karte { position: static; }
  .galerie__bild--gross { grid-column: auto; }
  .blaettern { grid-template-columns: 1fr 1fr; }
  .blaettern a:nth-child(2) { display: none; }
  .blaettern a { font-size: var(--cw-t-base); }
  .schild > div { grid-template-columns: 5.6rem 1fr; }
  .schild--platte > div, .schild--gross > div { grid-template-columns: 6rem 1fr; }
}

@media (max-width: 860px) and (max-height: 700px) and (orientation: portrait) {
  .sammlung__karte { height: 28svh; }
  .sammlung__karte .karte { max-height: calc(28svh - 2rem); }
  .schiene { top: calc(var(--leiste) + 28svh); }
  .objekt { flex-basis: min(74vw, calc((100svh - var(--leiste) - 28svh - 11rem) * 1.333)); }
  .objekt .schild > div { padding: .28rem 0; }
}
@media (max-width: 960px) and (max-height: 560px) and (orientation: landscape) {
  .held__nah { display: none; }
  .held__fern { height: 72svh; }
  .sammlung__karte { top: var(--leiste); bottom: 0; right: auto; height: auto; width: calc(var(--cw-gutter) + 34vw); padding: .5rem 1.5vw .5rem var(--cw-gutter); justify-content: center; background: var(--cw-canvas); }
  .sammlung__karte .karte { max-height: calc(100svh - var(--leiste) - 3rem); width: 100%; }
  .sammlung__karte::after { display: block; }
  .schiene { top: var(--leiste); padding-top: 0; align-items: center; padding-left: calc(var(--cw-gutter) + 38vw); }
  .schiene__kopf, .schiene__ende { flex-basis: 34vw; }
  .schiene__titel { font-size: 1.6rem; }
  .schiene__kopf p { font-size: var(--cw-t-sm); }
  .objekt { flex-basis: calc((100svh - var(--leiste) - 9.5rem) * 1.333); min-width: 10rem; }
  .objekt__name { font-size: var(--cw-t-lg); margin: .45rem 0 .3rem; }
  .objekt .schild > div { padding: .2rem 0; grid-template-columns: 4.8rem 1fr; }
}

@media (max-width: 380px) {
  .leiste__nav > a[href="/kontakt/"] { display: none; }
}

/* Unter reduzierter Bewegung wird die Schiene zu einer normalen waagrechten Liste (Engine), die Karte zeigt alle Wege. */
@media (prefers-reduced-motion: reduce) {
  .route .route__linie { stroke-dashoffset: 0; }
  .route .route__ziel { opacity: 1; }
  /* Ohne Bewegung kein Halten: die Sammlung wird zur Karte mit Raster darunter. */
  .sammlung { height: auto !important; }
  .sammlung .cw-stage, .sammlung [data-cw-stage] { height: auto; overflow: visible; }
  .sammlung__karte { position: relative; top: auto; bottom: auto; left: auto; right: auto; width: auto; height: auto; max-width: 44rem; padding: 2.5rem var(--cw-gutter) 0; background: none; }
  .sammlung__karte .karte { max-height: none; width: 100%; }
  .schiene { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 2.5rem 2rem; padding: 2.5rem var(--cw-gutter) 4rem; transform: none !important; }
  .schiene__kopf, .schiene__ende, .objekt { flex: none; }
  .schiene__kopf { grid-column: 1 / -1; max-width: 40rem; }
}
