/*
  lehmhub, Kapitel Techniken: die Weltkarte mit Zeitregler (Runde 8). Gleiche Hand wie die Finder-Karte:
  Grund #E9E6DF, Tusche #1E1A16, Lavur Lehm #B99A6E nur fuer Lehm, Stroh nur fuer Stroh. Schibsted Grotesk + Newsreader.
  Aufbau: .weltkarte > figure.wk-bild (Karte, Zeitregler, Zeile darunter), form.wk-filter (Technik = Legende),
  .wk-liste (alle Orte, der Textweg). Breit: Filter und Liste in zwei Spalten wie im Finder; schmal: eine Spalte.
*/

.weltkarte { padding: 0 var(--rand) var(--s8); }
.wk-bild { margin: 0; }

/* ------------------------------------------------------------ the map */
.wk-karte { position: relative; width: 100%; aspect-ratio: 3.15 / 1; }
@media (max-width: 819px) { .wk-karte { aspect-ratio: 0.78 / 1; } }
/* headline of the enlarged excerpt */
.wk-karte .strich-notiz.wk-titel { font-size: 14.5px; color: var(--leise); white-space: nowrap; }
.wk-karte .strich-notiz.wk-titel.klein { font-size: 13px; }
.wk-karte .strich-notiz.wk-titel .z2 { display: inline; margin-left: 0.3em; font-size: inherit; }
/* the words of a place: the lines of the map step back around them, as on a drawn map */
.wk-karte .strich-notiz.info { z-index: 2; width: max-content !important; max-width: var(--info-max, 320px); }
.wk-karte .strich-notiz.info > span { display: table; padding: 0 3px; margin-left: -3px; background: var(--grund); box-shadow: 0 0 5px 3px var(--grund); }
.wk-karte .strich-notiz.info.links > span { margin-left: auto; margin-right: -3px; }
.wk-karte .strich-notiz.info .z2 + .z2 { margin-top: 1px; }

/* ------------------------------------------------------------ the time line */
.wk-zeit { position: relative; height: 84px; margin-top: var(--s3); cursor: ew-resize; user-select: none; -webkit-user-select: none; }
/* the range input carries keys and screen readers; the pen draws the line */
.wk-regler { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.wk-zeit.fokus { outline: 1.5px solid var(--tusche); outline-offset: 4px; border-radius: 2px; }
.wk-zeit .strich-notiz.wk-marke { transform: translate(-50%, 0); font-size: 13.5px; color: var(--leise); white-space: nowrap; }
.wk-zeit .strich-notiz.wk-marke.anfang { transform: translate(-12px, 0); }
.wk-zeit .strich-notiz.wk-marke.ende { transform: translate(calc(-100% + 12px), 0); }
.wk-zeit .strich-notiz.wk-marke.klein { font-size: 12.5px; }
.wk-zeit .strich-notiz.wk-jahr { transform: translate(-50%, -50%); font-size: 19px; white-space: nowrap; }
.wk-zeit .strich-notiz.wk-jahr.leise { color: var(--leise); }

/* the line under the map: hint, or the words of a tapped place */
.wk-info { margin-top: var(--s2); font-style: italic; font-size: 15.5px; line-height: 1.45; color: var(--leise); max-width: 40rem; min-height: 2.9em; }
.wk-info.an { color: var(--tusche); }
.wk-info b { font-weight: 500; font-style: italic; }
.wk-info a { font-family: var(--grotesk); font-style: normal; font-size: 14.5px; color: var(--tusche); white-space: nowrap; text-underline-offset: 3px; }

/* ------------------------------------------------------------ controls and filter (the legend) */
.wk-filter { display: none; margin-top: var(--s5); }
.js .wk-filter { display: block; }
.wk-steuer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 22px; padding: var(--s1) 0 var(--s2); }
.wk-spiel { font: inherit; font-family: var(--grotesk); font-size: 15px; color: var(--tusche); background: none; border: 0; border-bottom: 1.5px solid var(--tusche); padding: 6px 0 3px; cursor: pointer; }
.wk-spiel:hover { color: var(--tusche); }
.wk-spiel:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 4px; border-radius: 2px; }
.wk-steuer .wahl input:checked + span { color: var(--tusche); border-bottom-color: var(--tusche); }
.wk-filter fieldset { border: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 5vw; align-items: baseline; padding: var(--s2) 0; min-width: 0; }
.wk-filter legend { float: left; font-family: var(--grotesk); font-size: 15px; color: var(--leise); padding: 6px 0; }
.wk-filter .wahlen { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 22px; }
/* the mark of a technique, drawn in the pen (szenen/weltkarte.js) */
.wk-zeichen { display: inline-block; position: relative; width: 22px; height: 18px; vertical-align: -4px; margin-right: 5px; }
.wk-zeichen .strich-flaeche { display: block; }
.wahl .wk-zeichen { pointer-events: none; }
/* without the drawings (no script): no empty gap */
html:not(.js) .wk-zeichen { display: none; }

/* ------------------------------------------------------------ the list of all places (the text way) */
.wk-liste { margin-top: var(--s6); }
.wk-liste-titel { font-family: var(--grotesk); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
.wk-gruppe { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 5vw; padding: var(--s4) 0 var(--s3); border-top: 1px solid var(--hauch); }
.wk-gruppe:first-of-type { margin-top: var(--s4); }
.wk-gruppe[hidden] { display: none; }
.wk-gruppe h4 { font-family: var(--grotesk); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; padding-top: 2px; }
.wk-gruppe h4 a { text-decoration: none; }
.wk-gruppe h4 a:hover, .wk-gruppe h4 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.wk-gruppe ul { list-style: none; }
.wk-gruppe li { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 0 var(--s4); padding: 5px 0 6px; font-size: 16.5px; line-height: 1.4; }
.wk-gruppe li + li { border-top: 1px solid rgba(30, 26, 22, 0.07); }
.wk-gruppe .wk-wann { grid-row: 1 / span 2; color: var(--leise); font-style: italic; font-size: 15.5px; }
.wk-gruppe .wk-ort { grid-column: 2; }
.wk-gruppe .wk-bsp { grid-column: 2; font-style: italic; color: var(--leise); font-size: 15.5px; }
.wk-leer { margin-top: var(--s5); font-style: italic; color: var(--leise); }

/* ------------------------------------------------------------ narrow */
@media (max-width: 760px) {
  .weltkarte { padding: 0 var(--rand) var(--s7); }
  .wk-zeit { height: 80px; }
  .wk-info { font-size: 15px; }
  .wk-filter fieldset { grid-template-columns: 1fr; }
  .wk-filter legend { float: none; padding-bottom: 2px; }
  .wk-filter .wahlen { grid-column: 1; gap: 0 18px; }
  .wk-gruppe { grid-template-columns: 1fr; gap: var(--s2) 0; }
  .wk-gruppe li { grid-template-columns: 1fr; gap: 1px 0; padding: 7px 0 8px; }
  .wk-gruppe .wk-wann, .wk-gruppe .wk-ort, .wk-gruppe .wk-bsp { grid-column: 1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .wk-karte .strich-notiz, .wk-zeit .strich-notiz { transition: none; }
}
