/* ---- head: five vignettes, one per tab (18.10.2026). Neu bauen is the large one, the others step around it */
.kopf-v { position: relative; z-index: 2; padding: 108px var(--rand) var(--s7); }
.kv-text h1 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(34px, 3.3vw, 50px); letter-spacing: -0.03em; line-height: 1.04; }
.kv-text .mission { margin-top: var(--s3); max-width: 38rem; font-size: 20px; line-height: 1.45; text-wrap: pretty; }
.vignetten { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: var(--s3) var(--s7); margin-top: var(--s5); align-items: start; max-width: 1500px; }
.vignette { display: block; text-decoration: none; color: var(--tusche); }
.vignette .v-bild { position: relative; aspect-ratio: 4 / 3; width: 100%; }
.v-links { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; min-width: 0; }
.v-neu .v-bild { aspect-ratio: 1.39 / 1; }
.v-material { grid-column: 2; grid-row: 1; }
.v-tierwelt { grid-column: 3; grid-row: 1; transform: translateY(var(--s6)); }
.v-sanieren { grid-column: 2; grid-row: 2; }
.v-geschichte { grid-column: 3; grid-row: 2; transform: translateY(var(--s6)); }
.v-name { display: block; margin-top: var(--s1); }
.v-name .n { display: block; font-family: var(--grotesk); font-weight: 500; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; }
.v-name .z { display: block; font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.3; color: var(--leise); }
.v-neu .v-name .n { font-size: 22px; }
/* the sixth, smaller vignette: a hint to the finder, not a chapter. Desktop: below Neu bauen, stepped to the right */
.v-finder { align-self: flex-end; width: 38%; margin-top: calc(-1 * var(--s6)); }
.v-finder .v-bild { aspect-ratio: 5.5 / 3; }
.v-finder .v-name .n { font-size: 17px; }
.v-finder .v-name .z { font-size: 14.5px; }
@media (min-width: 1024px) and (max-width: 1279px) { .v-finder { width: 46%; } }
.vignette:hover .n, .vignette:focus-visible .n { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.vignette:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 6px; border-radius: 2px; }
.navi a.jetzt { color: var(--tusche); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
.kopf-v + .weg + .unten { padding-top: var(--s7); }
@media (max-width: 1023px) {
  .vignetten { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s4); }
  .v-neu { grid-column: 1 / 3; grid-row: auto; }
  .v-neu { order: -1; }
  .v-material, .v-tierwelt, .v-sanieren, .v-geschichte { grid-column: auto; grid-row: auto; transform: none; }
  .v-tierwelt, .v-geschichte { transform: translateY(var(--s5)); }
  /* tablet and phone: the wrapper dissolves, the finder hint comes last, drawing and name side by side */
  .v-links { display: contents; }
  .v-finder { grid-column: 1 / 3; order: 1; width: auto; align-self: auto; margin-top: var(--s7); display: flex; align-items: center; gap: var(--s4); }
  .v-finder .v-bild { flex: 0 0 48%; width: 48%; }
  .v-finder .v-name { margin-top: 0; }
}
@media (max-width: 760px) {
  .kopf-v { padding-top: 124px; }
  .kv-text h1 { font-size: 31px; }
  .kv-text .mission { font-size: 17.5px; margin-top: var(--s2); }
  .vignetten { margin-top: var(--s4); gap: var(--s3) var(--s3); }
  .v-name .n { font-size: 16.5px; } .v-neu .v-name .n { font-size: 19px; }
  .v-name .z { font-size: 13.5px; }
}

/*
  Startseite. Oben der Kopf mit den fuenf Vignetten (szenen/vignetten.js), weiter unten die Regeln der frueheren Koepfe.
  Frueher: Kopf "Die lange Linie" (e6, 18.10.2026, szenen/linie.js; vorher "Ein Ort aus Lehm", szenen/start.js).
  Desktop: Titel und Satz links oben, der Ort rechts daneben, die Bereichsnamen an ihren Hinweislinien.
  Handy: erst der Ort (die Namen stehen ueber den Daechern und unter dem Boden), darunter Titel und Satz.
  Farben, Schriften und die Engine-Teile kommen aus seite.css. Frueherer Einstieg (Querschnitt) siehe szenen/einstieg.js.
*/
.ort { position: relative; height: 100vh; height: 100svh; min-height: 640px; }
.ort-zeichnung { position: absolute; inset: 0; }
.ort-text { position: absolute; z-index: 3; left: var(--rand); top: 108px; width: min(46vw, 40rem); }
.ort-text h1 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(34px, 3.3vw, 50px); letter-spacing: -0.03em; line-height: 1.04; }
.ort-text .mission { margin-top: var(--s3); font-size: 20px; line-height: 1.45; text-wrap: pretty; }

/* the tab being drawn lights up in the navigation */
.navi a.jetzt { color: var(--tusche); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px; }

/* the names of the areas, set by the scene at the end of their leader lines */
.ort-namen { list-style: none; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.ort-name { position: absolute; white-space: nowrap; opacity: 0; transition: opacity 0.6s ease; }
.ort-name.an, .ort-name:focus-within { opacity: 1; }
.ort-name:not(.an) a { pointer-events: none; }
.ort-name a { display: block; padding: 3px 0; color: var(--tusche); text-decoration: none; pointer-events: auto; }
.ort-name .n { display: block; font-family: var(--grotesk); font-weight: 500; font-size: 19px; line-height: 1.15; letter-spacing: -0.01em; }
.ort-name .z { display: block; margin-top: 1px; font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.25; color: var(--leise); }
.ort-name a:hover .n, .ort-name a:focus-visible .n, .ort-name a.jetzt .n { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.ort-name.links { transform: translate(-100%, -14px); text-align: right; }
.ort-name.rechts { transform: translate(0, -14px); }
.ort-name.oben { transform: translate(-50%, -100%); text-align: center; }
.ort-name.oben-l { transform: translate(0, -100%); }
.ort-name.oben-r { transform: translate(-100%, -100%); text-align: right; }
.ort-name.unten-l { transform: none; }
.ort-name.unten-r { transform: translate(-100%, 0); text-align: right; }

/* below the head: the chapters follow */
.ort + .weg + .unten { padding-top: var(--s7); }

/* narrow screens (tablet and phone): first the place, the names above the roofs and under the ground, then title and sentence */
@media (max-width: 1023px) {
  /* the head fills the first screen, so the chapter drawings below only begin when one scrolls */
  .ort { height: auto; min-height: 100vh; min-height: 100svh; }
  .ort-zeichnung { position: relative; inset: auto; height: max(400px, 62vh); height: max(400px, 62svh); }
  .ort-text { position: relative; left: auto; top: auto; width: auto; max-width: 40rem; padding: var(--s4) var(--rand) 0; }
  .ort-name.oben .z, .ort-name.oben-l .z, .ort-name.oben-r .z { display: none; }
  .ort + .weg + .unten { padding-top: var(--s6); }
}
@media (max-width: 760px) {
  .ort-text h1 { font-size: 31px; }
  .ort-text .mission { margin-top: var(--s2); font-size: 17.5px; line-height: 1.45; }
  .ort-name .n { font-size: 15.5px; }
  .ort-name .z { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .ort-name { transition: none; } }
/* the swallow flies on its own layer above the drawing, so the place itself can rest once it is drawn */
.ort-vogel { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
