/*
  Kapitel "Techniken" (Runde 8): alles Gemeinsame (Kopf, Schritte, Notizen, .quellen, Regler) steht in seite.css,
  die Weltkarte in weltkarte.css. Hier nur: die Teil-Koepfe (wie in Sanieren), die kleine Namenszeile ueber jeder Technik,
  die Abschnitte im Text einer Technik (Woran man sie erkennt, Beispiele, Wo und wann), der Knopf "auf der Karte zeigen"
  und die Hoehe der erklaerenden Schnitte am Handy.
*/
.kopf-bild > div { position: absolute; inset: 0; }

/* the parts: Massiver Lehm, Holz und Lehm. A quiet heading between the steps, in the type of the chapter head */
.teil-kopf { position: relative; z-index: 2; padding: 22vh var(--rand) 6vh; max-width: calc(var(--spalte) + 2 * var(--rand)); }
.teil-nr { font-family: var(--grotesk); font-size: 15px; letter-spacing: 0.01em; color: var(--leise); }
.teil-kopf h2 { margin-top: var(--s2); font-family: var(--grotesk); font-weight: 500; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -0.025em; line-height: 1.05; }
.teil-kopf p:not(.teil-nr) { margin-top: var(--s4); font-size: 20px; line-height: 1.5; }
.schritt-text h3 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.12; }
@media (max-width: 760px) {
  .teil-kopf { padding: var(--s8) var(--rand) var(--s5); }
  .teil-kopf p:not(.teil-nr) { font-size: 18px; }
}

/* the other names of a technique, over its heading */
.schritt-text .namen { font-style: italic; font-size: 16.5px; color: var(--leise); margin: 0 0 var(--s2); }
.schritt-text .namen + h3 { margin-top: 0; }

/* what a technique looks like, examples, where and when: small headings in the text column */
.schritt-text h4 { margin-top: var(--s6); font-family: var(--grotesk); font-weight: 500; font-size: 18px; letter-spacing: -0.005em; }
.schritt-text h4 + p { margin-top: var(--s2); }
.beispiele { list-style: none; margin-top: var(--s2); }
.beispiele li { position: relative; padding-left: 18px; }
.beispiele li + li { margin-top: var(--s2); }
.beispiele li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--leise); }
.beispiele em { font-style: normal; font-family: var(--grotesk); font-weight: 500; font-size: 0.94em; }
.schritt-text a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.schritt-text a:hover { text-decoration-thickness: 1.5px; }

/* where and when: one sentence, then the way up to the map */
.karte-zeigen { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s3); padding: 6px 0; border: 0; background: none; font-family: var(--grotesk); font-size: 15.5px; color: var(--tusche); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.karte-zeigen::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lehm, #B99A6E); box-shadow: inset 0 0 0 1px rgba(30, 26, 22, 0.55); }
.karte-zeigen:hover { text-decoration-thickness: 1.5px; }
.karte-zeigen:focus-visible { outline: 2px solid var(--tusche); outline-offset: 3px; }

/* a related technique without its own drawing, and the note under a free suggestion */
.schritt-text .hinweis { margin-top: var(--s5); padding-left: var(--s4); border-left: 1px solid var(--hauch, rgba(30, 26, 22, 0.18)); font-size: 17px; line-height: 1.5; }
.schritt-text .andeutung { font-size: 16px; color: var(--leise); }
.schritt-text .mehr { margin-top: var(--s5); font-family: var(--grotesk); font-size: 15.5px; line-height: 1.5; color: var(--leise); }
.schritt-text .mehr a { color: var(--tusche); }

/* jump marks for the map and for other names of the same place in the page */
.anker { position: relative; top: -12vh; display: block; height: 0; }
/* inside a step the mark must stay out of the grid of drawing and text */
.schritt:has(> .anker) { position: relative; }
.schritt > .anker { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.schritt[id] { scroll-margin-top: 6vh; }

/* explaining sections (notes, step line, drag): taller on a phone */
@media (max-width: 760px) {
  .schritt-bild.erklaer-bild { height: 72vh; height: 72svh; }
  .schritt-text h4 { margin-top: var(--s5); }
}
