/* ============================================================================
   simonseidler.com — Stylesheet

   MOBILE FIRST. Die Basisregeln gelten für das kleinste Display. Jede
   Media Query ist eine `min-width`-Erweiterung, keine Rücknahme. Vorher war
   es umgekehrt: Desktop als Basis, Mobil als Sonderfall über `max-width` —
   das kleinste Gerät bekam dadurch die meisten Regeln zu verarbeiten und
   jede Ausnahme musste die Basis wieder überschreiben.

   Breakpoints (in `rem`, damit sie der Schriftgröße des Nutzers folgen und
   nicht der Gerätebreite):

     Basis      bis 33rem    Telefon hochkant
     34rem      ab ~544px    großes Telefon, Telefon quer
     48rem      ab ~768px    Tablet
     64rem      ab ~1024px   Laptop

   Touch: alle eigenständigen Bedienelemente sind mindestens 48x48 CSS-Pixel
   groß (WCAG 2.5.5 Target Size, Level AAA). Verlinkte Wörter im Fließtext
   sind davon ausgenommen — WCAG 2.5.8 nimmt Inline-Links im Textfluss
   ausdrücklich aus, und ein aufgeblähter Link mitten im Satz würde die
   Zeilenabstände zerreißen.
   ========================================================================= */

/* ---------- Schriften (lokal, keine Drittanbieter) ---------- */

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/literata-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/literata-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/literata-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/literata-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/literata-600.woff2') format('woff2');
}

/* ---------- Tokens ---------- */

:root {
  --paper: #F2F3F1;
  --ink: #1C1815;
  --clay: #7A4B32;
  --clay-dark: #6A3F28;      /* erfüllt 4.5:1 auf --paper */
  --moss: #5A6152;
  --grey: #5F5C56;           /* dunkler als zuvor: 4.5:1 statt 4.1:1 */
  --rule: #D6D8D3;
  --deep: #262E26;
  --deep-ink: #E4E6E1;
  --sand: #E7E4DC;

  --measure: 34rem;
  --tap: 3rem;               /* 48px Mindestgröße für Bedienelemente */

  /* Seitenrand wächst mit dem Viewport, inklusive Safe-Area für Geräte
     mit Aussparung (iPhone quer legt den Inhalt sonst unter die Notch). */
  --gutter: max(1.25rem, env(safe-area-inset-left));
  --gutter-right: max(1.25rem, env(safe-area-inset-right));
}

@media (min-width: 48rem) {
  :root {
    --gutter: max(2rem, env(safe-area-inset-left));
    --gutter-right: max(2rem, env(safe-area-inset-right));
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  /* iOS vergrößert Text beim Drehen ins Querformat eigenmächtig. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Literata', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Kein horizontales Scrollen. `clip` statt `hidden`, weil `hidden` einen
     Scroll-Container erzeugt und damit `position: sticky` unbrauchbar macht.
     Nötig, weil `.band` randlos aus dem Raster ausbricht (siehe unten). */
  overflow-x: clip;
}

/* Grundregel für ALLE Bilder. Ohne sie sprengt ein 1200 Pixel breites Foto
   auf einem 360-Pixel-Display das Layout und erzeugt seitliches Scrollen.
   `height: auto` verhindert, dass das Seitenverhältnis dabei kippt. */
img {
  max-width: 100%;
  height: auto;
}

/* Graues Aufblitzen beim Antippen unterdrücken; der eigene
   :active-Zustand übernimmt die Rückmeldung. */
a, button, summary {
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-right);
  padding-bottom: env(safe-area-inset-bottom);
}

.col { max-width: var(--measure); }

/* ---------- Sprungmarke ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding: 0 1.25rem;
  background: var(--deep);
  color: var(--deep-ink);
  text-decoration: none;
}

.skip-link:focus { left: 0; }

main:focus { outline: none; }

/* ---------- Navigation ---------- */

.nav {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap);
}

.nav-name {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  /* Der Name darf umbrechen statt den Sprachumschalter zu verdrängen. */
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-right: 0.5rem;
}

.nav-lang {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--clay-dark);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-lang:hover,
.nav-lang:focus-visible {
  border-color: var(--clay-dark);
  color: var(--ink);
}

/* Horizontal scrollbarer Streifen für die Seitenlinks.
   Sieben Links mit 48px Höhe bräuchten untereinander vier Zeilen. */
.nav-scroll {
  position: relative;
  margin-top: 0.25rem;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter-right));
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--rule);
  /* Weiche Kante rechts als Hinweis, dass es weitergeht. */
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%);
  mask-image: linear-gradient(to right, #000 82%, transparent 100%);
}

.nav-scroll::-webkit-scrollbar { display: none; }

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  width: max-content;
  padding-left: var(--gutter);
  padding-right: var(--gutter-right);
  font-size: 0.9375rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.625rem;
  color: var(--grey);
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  scroll-snap-align: start;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--clay-dark);
}

.nav-links a:active { color: var(--clay-dark); }

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--ink);
}

/* Ab Tablet passen alle Links ohne Scrollen nebeneinander:
   Streifen zurück in die normale Zeile, Umschalter in dieselbe Reihe. */
@media (min-width: 48rem) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    padding-bottom: 4rem;
  }

  .nav-bar { min-height: 0; }
  .nav-name { min-height: 0; }

  .nav-scroll {
    margin: 0;
    overflow: visible;
    border-bottom: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .nav-links {
    width: auto;
    padding: 0;
    gap: 0.5rem;
  }

  .nav-links a { min-height: 2.25rem; }
}

@media (min-width: 64rem) {
  .nav-links { gap: 1rem; }
}

/* ---------- Hero ---------- */

/* Das Titelbild wird weder beschnitten noch gerahmt.

   Vorher stand hier `width: 100%` zusammen mit `max-height` und
   `object-fit: contain`. Das ist die Kombination, die den grauen Rand
   erzeugt hat: die Box war 864 Pixel breit und 544 hoch, das hochkant
   aufgenommene Bild passte mit 306x544 hinein — die restlichen 558 Pixel
   Breite blieben als graue Fläche stehen.

   Jetzt bestimmt das Bild seine Größe selbst. `width: auto` statt `100%`
   heißt: die Box ist immer genau so breit wie das Bild, nie breiter.
   `max-width` und `max-height` begrenzen nur nach oben. Kein
   `object-fit` und kein Hintergrund, weil beides nur dann etwas tut,
   wenn Box und Bild auseinanderfallen. */
.hero-image {
  width: auto;
  height: auto;
  max-width: min(100%, 54rem);
  max-height: 70vh;
  display: block;
  margin: 0 0 2.25rem;
}

@media (min-width: 34rem) {
  .hero-image { margin-bottom: 3rem; }
}

@media (min-width: 48rem) {
  .hero-image { max-height: 32rem; margin-bottom: 3.5rem; }
}

.role {
  font-size: 0.9375rem;
  color: var(--moss);
  margin: 0 0 1rem;
}

/* ---------- Typografie ---------- */

h1 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
  max-width: 20ch;
  text-wrap: balance;
}

/* Muss NACH h1 stehen: die Mantra IST die h1 der Startseite. Stünde sie
   davor, gewönnen bei gleicher Spezifität die h1-Regeln. */
.mantra {
  font-size: clamp(1.875rem, 7.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  max-width: 18ch;
  text-wrap: balance;
}

@media (min-width: 48rem) {
  h1 { margin-bottom: 2.5rem; }
  .mantra { margin-bottom: 3.25rem; max-width: 20ch; }
}

/* Abschnittsüberschrift mit Trennlinie: macht sichtbar, wo ein Abschnitt
   beginnt. Ohne die Linie liefen Überschrift und Inhalt optisch ineinander. */
h2 {
  font-size: clamp(1.25rem, 4vw, 1.375rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin: 3rem 0 1.5rem;
  max-width: var(--measure);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rule);
  color: var(--clay-dark);
  text-wrap: balance;
}

/* Im dunklen Band und in den Wegweiser-Kacheln stört die Linie:
   dort trennt bereits die Fläche. */
.band h2,
.paths h2 {
  border-bottom: 0;
  padding-bottom: 0;
  max-width: 34ch;
}

@media (min-width: 48rem) {
  h2 { margin: 4rem 0 1.5rem; }
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  text-wrap: balance;
}

p {
  margin: 0 0 1.375rem;
  max-width: var(--measure);
}

/* Lange deutsche Komposita wie "Anbauvereinigung" oder eine URL sollen
   umbrechen statt die Seite zu verbreitern. */
p, li, h1, h2, h3, figcaption, dd, dt {
  overflow-wrap: break-word;
}

:where([lang="de"]) p { hyphens: auto; }

.lede {
  font-size: clamp(1.0625rem, 3.6vw, 1.1875rem);
  line-height: 1.6;
}

a {
  color: var(--clay-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--clay-dark);
  outline-offset: 3px;
}

.note {
  color: var(--grey);
  font-size: 0.9375rem;
  font-style: italic;
}

.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.75rem 0;
  max-width: var(--measure);
}

/* ---------- Randloser Abschnitt ---------- */

/* `100vw` schließt auf Desktops die Breite der Scrollleiste ein und ist
   damit breiter als der sichtbare Bereich — das erzeugte horizontales
   Scrollen. Deshalb `overflow-x: clip` am body (oben) als Gegenstück. */
.band {
  background: var(--deep);
  color: var(--deep-ink);
  margin: 3rem calc(50% - 50vw) 0;
  padding: 2.75rem calc(50vw - 50%);
}

@media (min-width: 48rem) {
  .band { margin-top: 4.5rem; padding: 4.5rem calc(50vw - 50%); }
}

.band .band-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-right);
}

.band h2 { color: #fff; margin-top: 0; }
.band p { color: var(--deep-ink); }
.band p:last-child { margin-bottom: 0; }
.band .col { max-width: 38rem; }
.band a { color: #D8B9A4; }

.band + * { margin-top: 2.5rem; }
.band + .paths { margin-top: 0; }
.band + .col,
.band + div > .col:first-child { margin-top: 2.5rem; }
.band + .col > p:first-child { margin-top: 0; }

/* ---------- Wegweiser-Kacheln ---------- */

.paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  background: var(--sand);
  padding: 2rem var(--gutter);
  margin-top: 3rem;
}

@media (min-width: 34rem) {
  .paths {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 2rem;
    padding: 2.5rem 2rem;
  }
}

@media (min-width: 48rem) {
  .paths { gap: 2.5rem; padding: 2.75rem 2rem; margin-top: 4.5rem; }
}

.path h3 { margin-bottom: 0.5rem; }

/* Die ganze Zeile ist Ziel, nicht nur die Wortbreite. */
.path h3 a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--clay-dark);
}

.path h3 a:hover,
.path h3 a:focus-visible { color: var(--clay-dark); }

.path p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--grey);
  line-height: 1.55;
}

/* ---------- Farmliste ---------- */

/* Basis: Bild oben, darunter Kopf und Text. Ab 34rem drei Spalten. */
.entry {
  border: 1px solid var(--rule);
  background: #FBFBF9;
  padding: 1.25rem;
  margin-bottom: 0.875rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  align-items: start;
}

.entry:last-child { margin-bottom: 0; }

.entry-thumb {
  display: block;
  width: 100%;
  max-width: 10rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.entry-thumb {
  position: relative;
}

.entry-thumb:hover img,
.entry-thumb:focus-visible img { transform: scale(1.04); }

/* Zahl der Fotos auf der Vorschau: macht sichtbar, dass hinter dem Bild
   eine Strecke liegt, und nicht nur dieses eine Foto. */
.entry-count {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.15rem 0.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--deep-ink);
  background: rgba(28, 24, 21, 0.72);
}

/* Stationen ohne Fotos — geplante Expeditionen — bekommen kein leeres
   Bildfeld, sondern nur Text. */
.entry--textonly {
  grid-template-columns: 1fr;
}

@media (min-width: 34rem) {
  .entry--textonly { grid-template-columns: 1fr; }
  .entry--textonly .entry-head,
  .entry--textonly p { grid-column: 1; }
}

.entry-head h3 { margin: 0; }

.entry-place {
  display: block;
  font-size: 0.875rem;
  color: var(--clay-dark);
  margin-top: 0.25rem;
}

.entry p { margin: 0; max-width: 42ch; }

@media (min-width: 34rem) {
  .entry {
    grid-template-columns: 7rem 1fr;
    gap: 1.25rem 1.5rem;
    padding: 1.5rem;
  }
  .entry-thumb { max-width: none; grid-row: span 2; }
  .entry-head, .entry p { grid-column: 2; }
}

@media (min-width: 64rem) {
  .entry {
    grid-template-columns: 8.5rem 12rem 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }
  .entry-thumb { grid-row: auto; }
  .entry-head { grid-column: 2; }
  .entry p { grid-column: 3; }
}

/* ---------- Listen ---------- */

.plain {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  max-width: var(--measure);
}

.plain li { border-bottom: 1px solid var(--rule); }
.plain li:first-child { border-top: 1px solid var(--rule); }

/* Reine Textzeilen bleiben kompakt, verlinkte Zeilen werden Tap-Ziele. */
.plain li { padding: 0.5rem 0; }

.plain li > a:only-child {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  margin: -0.5rem 0;
}

/* ---------- Veröffentlichungen ---------- */

/* Vorher waren die Einträge nur durch eine dünne Oberlinie getrennt und
   verschwammen zu einer langen Liste. Jetzt ist jeder Eintrag eine
   erkennbare Box: Rahmen, eigene Fläche, farbige Kante links als Anker. */
.pub {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--clay-dark);
  background: #FBFBF9;
  padding: 1.125rem 1.25rem;
  margin: 0 0 0.875rem;
  max-width: 46rem;
}

.pub:last-of-type { margin-bottom: 0; }

/* Die Quelle als kleines Etikett statt als weitere Textzeile — sie ist
   Herkunftsangabe, nicht Fließtext. */
.pub-source {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  background: var(--sand);
  padding: 0.2rem 0.5rem;
  margin: 0 0 0.75rem;
}

/* Marke der Veröffentlichung: klein, quadratisch, oben rechts in der Box.
   Sie soll die Herkunft zeigen, nicht den Text verdrängen. */
.pub-logo {
  float: right;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 0 0.5rem 0.75rem;
  border: 1px solid var(--rule);
  background: #fff;
  object-fit: contain;
}

@media (min-width: 34rem) {
  .pub-logo { width: 3.5rem; height: 3.5rem; }
}

.pub h3 { margin-bottom: 0.35rem; }

.pub h3 a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  text-decoration: none;
  border-bottom: 1px solid var(--clay-dark);
}

.pub h3 a:hover,
.pub h3 a:focus-visible { color: var(--clay-dark); border-bottom-width: 2px; }

.pub p { margin: 0; max-width: 46ch; }

@media (min-width: 48rem) {
  .pub {
    padding: 1.375rem 1.5rem;
    margin-bottom: 1rem;
  }
}

/* ---------- Galerie: Alben ---------- */

/* Jedes Album ist ein Abschnitt mit Überschrift. Vorher war die Galerie ein
   einziges Raster ohne Gliederung — bei 267 Fotos wäre das eine endlose
   Fläche ohne Orientierung. */
.album {
  margin: 0 0 3rem;
  scroll-margin-top: 1rem;
}

.album:focus { outline: none; }

.album-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.75rem;
}

.album-place {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--moss);
  text-transform: none;
  letter-spacing: 0;
}

/* Raster ohne festes Seitenverhältnis: die Fotos sind teils hoch, teils
   quer. `object-fit: cover` hätte sie auf ein einheitliches Format
   beschnitten und dabei genau das weggeschnitten, worum es geht. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
  gap: 0.5rem;
  align-items: start;
}

@media (min-width: 34rem) {
  .shots {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 64rem) {
  .shots { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
}

/* Jede Vorschau ist ein Link auf das Vollbild. Das ist die Zoom-Lösung:
   ein direkt geöffnetes Bild lässt der Browser nativ mit zwei Fingern
   vergrößern. Eine Lightbox mit JavaScript würde die Gesten abfangen und
   müsste Zoom selbst nachbauen — meist schlechter. */
/* Kein Hintergrund: er wäre nur sichtbar, wenn die Kachel größer als das
   Bild ist — und genau das soll nicht vorkommen. Der dünne Rahmen bleibt,
   er trennt helle Bilder vom hellen Seitenhintergrund und liegt direkt am
   Bild an, nicht um eine leere Fläche herum. */
.shot {
  display: block;
  border: 1px solid var(--rule);
  overflow: hidden;
  /* Mindestens 48px hoch, damit die Vorschau ein sicheres Tippziel ist. */
  min-height: var(--tap);
  line-height: 0;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 200ms ease;
}

.shot:hover img,
.shot:focus-visible img { opacity: 0.86; }

@media (hover: none) {
  .shot:hover img { opacity: 1; }
}

/* Hochformate im Raster deckeln, damit ein einzelnes stehendes Foto die
   Zeile nicht doppelt so hoch macht wie die daneben. */
.shot.is-portrait img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  height: auto;
}

.shot.is-landscape img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Ein einzelnes Bild auf einer Seite wird nicht beschnitten. */
/* Einzelbild auf einer Seite: die Verpackung folgt dem Bild.
   `width: fit-content` verhindert, dass der Link als Blockelement die
   volle Spaltenbreite einnimmt und links neben einem Hochformat eine
   anklickbare Leerfläche entsteht. */
.shot.is-single {
  border: 0;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 2rem;
}

.shot.is-single img {
  aspect-ratio: auto;
  width: auto;
  height: auto;
  max-width: min(100%, 46rem);
  max-height: 60vh;
}

@media (min-width: 48rem) {
  .shot.is-single img { max-height: 30rem; }
}

/* Schmales Band zusätzlicher Fotos unter einem Seitentext. */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8rem), 1fr));
  gap: 0.5rem;
  margin: 2rem 0;
  max-width: 46rem;
}

@media (min-width: 34rem) {
  .strip { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
}

.page-photo {
  width: auto;
  height: auto;
}

/* ---------- Kontakt ---------- */

.contact-mail {
  font-size: clamp(1.25rem, 5.5vw, 1.875rem);
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-bottom: 2rem;
  /* Eine E-Mail-Adresse hat keine Leerzeichen und würde sonst die Seite
     auf schmalen Displays verbreitern. */
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 1rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--grey);
}

.foot > div:first-child {
  display: flex;
  align-items: center;
  min-height: var(--tap);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--grey);
  text-decoration: none;
}

.foot a:hover,
.foot a:focus-visible { color: var(--ink); text-decoration: underline; }

@media (min-width: 48rem) {
  .foot {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 6rem;
    padding: 1.5rem 0 3rem;
  }
}

/* ---------- Aktuelles ---------- */

/* Gerahmt statt nur abgetrennt: der Abschnitt ist eine eigene Aussage und
   soll sich vom umgebenden Fließtext abheben. */
.current {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--moss);
  background: #FBFBF9;
  padding: 1.5rem 1.25rem;
  margin-top: 3rem;
  max-width: 46rem;
}

.current h2 {
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 48rem) {
  .current { padding: 2rem 1.75rem; margin-top: 4rem; }
}

main { padding-bottom: 1.5rem; }

/* ---------- Querformat auf flachen Displays ---------- */

/* Ein Telefon im Querformat hat oft nur ~360px Höhe. Großzügige vertikale
   Abstände kosten dort den halben sichtbaren Bereich. */
@media (orientation: landscape) and (max-height: 30rem) {
  .nav { padding-top: 0.25rem; padding-bottom: 1.5rem; }
  .hero-image { aspect-ratio: 21 / 9; margin-bottom: 1.5rem; }
  .mantra { font-size: clamp(1.5rem, 4.5vw, 2.25rem); margin-bottom: 1.25rem; }
  h1 { margin-bottom: 1.25rem; }
  h2 { margin-top: 2rem; }
  .band { margin-top: 2rem; padding-top: 2rem; padding-bottom: 2rem; }
  .foot { margin-top: 2.5rem; }
}

/* ---------- Zeigegeräte ohne Feinsteuerung ---------- */

/* Hover-Effekte, die auf Touch als „hängender“ Zustand kleben bleiben,
   nur für echte Mauszeiger aktivieren. */
@media (hover: none) {
  .entry-thumb:hover img { transform: none; }
}

/* ---------- Druck ---------- */

@media print {
  .nav, .foot, .skip-link { display: none; }
  body { background: #fff; color: #000; overflow-x: visible; }
  .band { background: none; color: #000; margin: 1rem 0; padding: 0; }
  .band h2 { color: #000; }
  .band p { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  .shots, .strip { display: block; }
  .pub, .entry, .current { background: none; border: 1px solid #999; }
  h2 { border-bottom-color: #999; }
}
