/* ==========================================================================
   Jan Fromme — Fine Art Photography
   style.css — handgeschrieben, ersetzt Tailwind vollständig.

   Aufbau:
     1. Design-Tokens (alles zentral anpassbar)
     2. Reset & Basis
     3. Layout-Bausteine
     4. Navigation
     5. Landing
     6. Galerie
     7. Über
     8. Shop
     9. Formular / Kontakt
    10. Impressum
    11. Rechtstexte (Datenschutz)
    12. Footer
    13. Hilfsklassen & Media Queries
   ========================================================================== */


/* ==========================================================================
   1. DESIGN-TOKENS
   Alle Farben, Schriftgrößen und Abstände der Seite stehen hier.
   Eine Änderung hier wirkt sich auf die gesamte Website aus.
   ========================================================================== */

:root {
  /* --- Farben ------------------------------------------------------------ */
  --primary:               #000000;
  --on-primary:            #ffffff;
  --primary-container:     #1b1b1b;
  --secondary:             #5d5f5f;
  --accent:                #c6c6c7;   /* die "goldene" Akzentlinie */
  --error:                 #ba1a1a;

  --background:            #f9f9f9;
  --on-background:         #1a1c1c;
  --surface:               #f9f9f9;
  --surface-container:     #eeeeee;
  --surface-container-low: #f3f3f3;
  --on-surface-variant:    #4c4546;

  --line:                  rgba(0, 0, 0, .10);  /* normale Trennlinie */
  --line-soft:             rgba(0, 0, 0, .05);  /* dezente Trennlinie */

  /* --- Schrift ----------------------------------------------------------- */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --size-display:        64px;   /* Desktop-Überschrift */
  --size-display-mobile: 40px;
  --size-headline:       32px;
  --size-headline-sm:    24px;
  --size-body-lg:        18px;
  --size-body:           16px;
  --size-caption:        14px;
  --size-label:          12px;
  --size-label-sm:       10px;

  /* --- Abstände ---------------------------------------------------------- */
  --gutter:          24px;   /* Grid-Abstand */
  --section-gap:     128px;  /* Abstand zwischen Seitenabschnitten */
  --margin-page:     24px;   /* Seitenrand mobil */
  --container-max:   1440px;
  --nav-height:      88px;
  --page-top:        200px;  /* Abstand unter der fixierten Navigation (mobil) */

  /* --- Bewegung ---------------------------------------------------------- */
  --ease:       cubic-bezier(.4, 0, .2, 1);
  --dur-fast:   .2s;
  --dur:        .3s;
  --dur-slow:   .5s;
}

/* Ab Tablet: größere Seitenränder */
@media (min-width: 768px) {
  :root { --margin-page: 64px; }
}


/* ==========================================================================
   2. RESET & BASIS
   ========================================================================== */

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

/* scrollbar-gutter hält den Platz der Bildlaufleiste immer frei — sonst
   springt der Inhalt seitlich, sobald eine Seite kürzer ist als das
   Fenster. Für Browser ohne Unterstützung greift der overflow-y-Fallback. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--on-background);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body ::selection { background: rgba(233, 195, 73, .3); }

/* -webkit-user-drag verhindert das Herausziehen auf den Schreibtisch */
img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
a   { color: inherit; text-decoration: none; }

h1, h2, h3, p, figure { margin: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}


/* --- Typografie-Rollen (statt Tailwind-Klassen) --------------------------- */

.t-display {
  font-family: var(--font-display);
  font-size: var(--size-display-mobile);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.t-headline {
  font-family: var(--font-display);
  font-size: var(--size-headline);
  font-weight: 400;
  line-height: 1.3;
}

.t-headline-sm {
  font-family: var(--font-display);
  font-size: var(--size-headline-sm);
  font-weight: 500;
  line-height: 1.4;
}

.t-body-lg { font-size: var(--size-body-lg); letter-spacing: .01em; }
.t-caption { font-size: var(--size-caption); line-height: 1.4; }

/* Versal-Label — das Arbeitspferd der Seite */
.t-label {
  font-family: var(--font-body);
  font-size: var(--size-label);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.t-muted  { color: var(--secondary); }
.t-accent { color: var(--accent); }


/* ==========================================================================
   3. LAYOUT-BAUSTEINE
   ========================================================================== */

/* Zentrierter Inhaltsbereich mit Seitenrändern */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-page);
}

/* Seitenrumpf: kompensiert die fixierte Navigation */
.page-body {
  padding-top: var(--page-top);
  padding-bottom: var(--section-gap);
}

.page-header { margin-bottom: 96px; }

/* Goldene Trennlinie unter Überschriften */
.rule {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin-top: 16px;
}

.divider { border-top: 1px solid var(--line); }

/* SPA-Routing: nur die aktive Seite ist sichtbar */
.page { display: none; }
.page.is-active {
  display: block;
  animation: page-fade .45s var(--ease) both;
}

@keyframes page-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sprachabhängige Inhaltsblöcke (Datenschutzseite) */
[data-lang-only] { display: none; }
html[lang="de"] [data-lang-only="de"],
html[lang="en"] [data-lang-only="en"] { display: block; }


/* ==========================================================================
   4. NAVIGATION
   ========================================================================== */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, .90);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

/* Desktop-Variante: Links | Logo | Sprache+Warenkorb */
.nav-desktop { display: none; }

.nav-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-block: 16px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

/* inline-block, damit die von app.js gesetzte Mindestbreite greift.
   Der Unterstrich ist immer vorhanden, aber durchsichtig — sonst würde
   die Zeile beim ersten Aktivwerden um seine Höhe nach oben springen. */
.nav-link {
  display: inline-block;
  text-align: center;
  color: var(--secondary);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.nav-link:hover { color: var(--primary); }

.nav-link.is-active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.nav-logo img { height: 96px; width: auto; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 12px;   /* ohne Trennstrich braucht es etwas mehr Luft */
}

/* Wie bei den Navigationslinks: der Unterstrich ist immer vorhanden,
   aber durchsichtig — so verschiebt sich beim Umschalten nichts. */
.lang-btn {
  padding-inline: 2px;
  padding-bottom: 4px;
  color: var(--secondary);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.lang-btn[aria-pressed="true"] {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.lang-btn:hover { color: var(--primary); }


/* ==========================================================================
   5. LANDING
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-inline: var(--margin-page);
}

.hero-media {
  position: relative;
  width: 100%;
  height: 870px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1.05);
  transition: transform 2s var(--ease);
}
.hero-media:hover img { transform: scale(1); }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-card {
  max-width: 42rem;
  padding: 48px;
  text-align: center;
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .20);
}

.hero-card h1 {
  color: #fff;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
  color: #fff;
  letter-spacing: .3em;
}

.hero-cta .cta-line {
  width: 48px;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur-slow) var(--ease);
}
.hero-cta:hover .cta-line { width: 80px; }

/* Untertitel unter dem Hero: zentriert, etwas kleiner als eine
   normale Überschrift, mit knapperen Abständen. */
.curator {
  padding-block: 72px;
  border-top: 1px solid var(--line-soft);
}

.curator h2 {
  font-size: 26px;
  line-height: 1.4;
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}


/* ==========================================================================
   6. GALERIE
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

/* Jede Kachel ist standardmäßig volle Breite; ab Tablet greifen .col-* */
.gallery-item {
  grid-column: span 12;
  cursor: pointer;
}

/* Leerfeld im Raster (spacer in gallery.js). Auf dem Telefon ohne Wirkung,
   weil dort ohnehin jedes Bild allein in seiner Zeile steht. */
.gallery-spacer { display: none; }

.gallery-frame {
  background: var(--surface-container);
  overflow: hidden;
  margin-bottom: 16px;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur-slow) var(--ease);
}
/* Kurzes Aufhellen beim Überfahren, das nach einer halben Sekunde von
   selbst zurückgeht — statt dauerhaft aufgehellt zu bleiben. */
.gallery-item:hover .gallery-frame img {
  animation: img-flash .5s var(--ease);
}

@keyframes img-flash {
  0%   { opacity: 1; }
  40%  { opacity: .85; }
  100% { opacity: 1; }
}

/* Die Bildinfo hängt an einer dezenten Senkrechten, die an der unteren
   linken Ecke des Bildes ansetzt. */
.gallery-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

/* Mit Auszeichnung: Platz rechts für das Icon freihalten */
.gallery-meta.has-award {
  position: relative;
  padding-right: 84px;
}

.gallery-title {
  font-size: var(--size-caption);
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.gallery-year-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

/* Ortsangabe neben der Jahreszahl. Ohne Eintrag verschwindet auch
   der Trennpunkt — kein leerer Platzhalter im Layout. */
.gallery-place { color: var(--secondary); }
.gallery-place:empty { display: none; }

/* Serie: Zeile unter dem Titel, gleiche Schrift wie die Ortsangabe,
   aber nicht halbfett. Ohne Eintrag verschwindet sie ganz. */
.gallery-serie {
  font-family: var(--font-body);
  font-size: var(--size-label);
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--secondary);
}
.gallery-serie:empty { display: none; }

/* Auszeichnungen: bis zu drei Symbole, untereinander am rechten Rand
   des Textblocks. */
.gallery-awards {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.gallery-award {
  display: block;
  transition: opacity var(--dur-fast) var(--ease);
}
.gallery-award:hover { opacity: .7; }

.gallery-award img {
  width: 72px;
  height: auto;
  display: block;
}

/* Kategoriezeile. Ohne Eintrag verschwindet sie ganz. */
.gallery-cat {
  font-family: var(--font-body);
  font-size: var(--size-label-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--secondary);
  opacity: .75;
}
.gallery-cat:empty { display: none; }

.gallery-place::before {
  content: "·";
  margin-right: 8px;
  opacity: .4;
}

/* Seitenverhältnisse */
.ratio-1x1  { aspect-ratio: 1 / 1; }
.ratio-3x2  { aspect-ratio: 3 / 2; }
.ratio-2x3  { aspect-ratio: 2 / 3; }
.ratio-3x4  { aspect-ratio: 3 / 4; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.ratio-3x1  { aspect-ratio: 3 / 1; }
.ratio-9x16 { aspect-ratio: 9 / 16; }
.ratio-4x5  { aspect-ratio: 4 / 5; }
.ratio-21x9 { aspect-ratio: 21 / 9; }

.is-bw img { filter: grayscale(1); }


/* ==========================================================================
   7. ÜBER
   ========================================================================== */

/* Etwas mehr Luft zur Navigation als auf den übrigen Seiten */
.about-body { padding-top: calc(var(--page-top) + 56px); }

/* Alle Texte in einer Spalte, das Foto daneben und von den Absätzen
   unabhängig. Die Trennlinien gehören zur Textspalte und enden deshalb
   an deren Kante, nicht am Seitenrand. */
.about-layout {
  display: grid;
  gap: 48px;
}

/* Behälter für alle Textabschnitte — begrenzt zugleich die Breite der
   Trennlinien zwischen den Abschnitten. */
.about-column { min-width: 0; }

/* Auf dem Telefon steht das Porträt über dem Text und soll dort nicht die
   ganze Fensterbreite einnehmen — auf halber Breite, linksbündig. */
.about-media img {
  width: 55%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) brightness(1.05);
}

/* Rubrik über der Überschrift — gleiche Gestaltung auf der ganzen Seite.
   Gilt für DER KÜNSTLER wie für PHILOSOPHIE. */
.eyebrow,
.philosophy-label {
  display: block;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Einheitlicher Knopf: heller Grund, dunkle Kontur, füllt sich beim Hover.
   Verwendet für „Zum Shop" und „Nachricht senden". */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { background: var(--primary); color: var(--on-primary); }

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.btn:disabled:hover { background: transparent; color: var(--primary); }


/* Erster Abschnitt nach dem Seitenkopf — keine Trennlinie darüber. */
.philosophy { margin-bottom: 64px; }

/* Kein pauschaler Abstand zwischen den Kindern — sonst addiert er sich
   zum margin-bottom der Rubrik und der Abstand weicht von der Bio ab. */
.philosophy h3 { line-height: 1.4; margin-bottom: 24px; }
.philosophy p  { color: var(--secondary); }
.philosophy p + p { margin-top: 24px; }

.credits {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.credit-list { max-width: none; }

.credits h2 { color: var(--accent); margin-bottom: 32px; }

.credit-list > * + * { margin-top: 32px; }

/* Auszeichnung: Text links, ausgezeichnete Bilder rechtsbündig.
   Die ganze Zeile ist ein Link auf die Seite des Wettbewerbs. */
.credit-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* Symbol des Wettbewerbs am Zeilenanfang — gleiche Breite wie das
   Auszeichnungssymbol in der Galerie (.gallery-award img). */
.credit-icon {
  width: 72px;
  height: auto;
  flex-shrink: 0;
  align-self: center;
  transition: opacity var(--dur-fast) var(--ease);
}
.credit-row:hover .credit-icon { opacity: .85; }

.credit-main { flex: 1 1 16rem; }

/* Miniaturen, rechtsbündig am Zeilenende */
.credit-thumbs {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.credit-thumbs img {
  height: 64px;
  width: auto;
  display: block;
}

/* Serie: schmale Hochformat-Ausschnitte, damit vier Bilder nebeneinander
   nicht die halbe Zeile einnehmen. */
.credit-thumbs.is-series img {
  width: 34px;
  object-fit: cover;
}

.credit-thumbs:empty { display: none; }

.credit-title { transition: color var(--dur-fast) var(--ease); }
.credit-row:hover .credit-title { color: var(--accent); }
.credit-row:hover .credit-thumbs img { opacity: .85; }
.credit-thumbs img { transition: opacity var(--dur-fast) var(--ease); }

.credit-sub  { font-size: var(--size-caption); color: var(--secondary); }
/* Titelzeile mit Jahr und Pfeilsymbol */
.credit-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


/* ==========================================================================
   8. SHOP
   ========================================================================== */

/* Fließtext wie auf der Über-Seite: 16 px, gleiche Zeilenbreite. */
.shop-header { margin-bottom: 64px; }
.shop-header p { color: var(--secondary); max-width: 46rem; margin-top: 16px; }

/* Einladung zum externen Shop */
.shop-invite {
  display: grid;
  gap: 48px;
}

/* Kein Hintergrund — das Bild hat einen transparenten und soll auf dem
   Seitenhintergrund stehen. Das Bild ist zugleich Link zum Shop. */
.shop-invite-media {
  display: block;
  overflow: hidden;
  transition: opacity var(--dur) var(--ease);
}
.shop-invite-media:hover { opacity: .88; }

/* Volle Breite, Höhe nach Seitenverhältnis der Datei — das Bild wird nie
   beschnitten und nie über seine Originalgröße hinaus vergrößert. */
.shop-invite-media img {
  display: block;
  width: 100%;
  max-width: 1312px;
  height: auto;
  margin-inline: auto;
}

.shop-invite-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Symbol „öffnet neues Fenster" — als SVG, damit es nicht von der
   Icon-Schrift abhängt (deren Zeichensatz ist evtl. reduziert). */
.ext-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.shop-invite-note { max-width: 46rem; }


/* ==========================================================================
   9. FORMULAR / KONTAKT
   ========================================================================== */

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 42rem;
}

.form-intro { color: var(--secondary); margin-bottom: 40px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-family: var(--font-body);
  font-size: var(--size-label-sm);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--secondary);
}

.field input,
.field textarea {
  font: inherit;
  color: inherit;
  padding: 12px 16px;
  background: var(--surface-container-low);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease);
}

.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.consent input { margin-top: 4px; flex-shrink: 0; accent-color: var(--primary); }
.consent label { font-size: var(--size-caption); color: var(--secondary); }
.consent a     { text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--primary); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.form-status              { font-size: var(--size-caption); }
.form-status.is-pending   { color: var(--secondary); }
.form-status.is-success   { color: var(--primary); }
.form-status.is-error     { color: var(--error); }

/* Honeypot — für Menschen unsichtbar, fängt Bots ab */
.honeypot {
  position: absolute;
  left: -9999px;
}


/* ==========================================================================
   10. IMPRESSUM
   ========================================================================== */

.imprint-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

.imprint-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Rubriken wie auf der Über-Seite: goldene Versalien über dem Inhalt,
   statt einer waagerechten Linie, die sonst nirgends vorkommt. */
.imprint-block h2 {
  color: var(--accent);
}

.imprint-block .body,
.imprint-block p { color: var(--secondary); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item { display: flex; flex-direction: column; }

.contact-item .label {
  font-family: var(--font-body);
  font-size: var(--size-label-sm);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 4px;
}

.contact-item a { transition: color var(--dur-fast) var(--ease); }
.contact-item a:hover { color: var(--accent); }


/* ==========================================================================
   11. RECHTSTEXTE (Datenschutz)
   ========================================================================== */

/* Gleiche Zeilenbreite wie auf den übrigen Seiten, linksbündig statt
   zentriert — der Text beginnt damit an derselben Kante wie überall. */
.legal { max-width: 46rem; }

/* Seitentitel: wie die anderen Seiten (t-display) */
.legal h1 {
  font-family: var(--font-display);
  font-size: var(--size-display-mobile);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}

/* Zierlinie unter dem Titel — wie .rule auf den übrigen Seiten. Hier als
   ::after, weil die Überschrift aus dem Rechtstext stammt. */
.legal h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin-top: 16px;
  margin-bottom: 32px;
}

/* Hauptabschnitte: wie die Zwischenüberschriften der Über-Seite */
.legal h2 {
  font-family: var(--font-display);
  font-size: var(--size-headline-sm);
  font-weight: 400;
  line-height: 1.4;
  margin: 56px 0 20px;
}

/* Unterabschnitte: Fließtextschrift, halbfett, nur wenig größer als
   der Text — sie gliedern, ohne mit den h2 zu konkurrieren. */
.legal h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-body);
  line-height: 1.5;
  margin: 32px 0 8px;
}

.legal p        { margin: 0 0 16px; font-size: var(--size-body); line-height: 1.7; color: var(--on-surface-variant); }
.legal ul       { margin: 0 0 16px; padding-left: 1.25em; list-style: disc; }
.legal li       { margin: 0 0 8px; font-size: var(--size-body); line-height: 1.6; color: var(--on-surface-variant); }
.legal strong   { color: var(--on-background); font-weight: 600; }
.legal a        { text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover  { color: var(--primary); }

.legal ul.index,
.legal ul.glossary { list-style: none; padding-left: 0; }
.legal ul.index li { margin-bottom: 4px; }

.legal [id],
#awards { scroll-margin-top: 130px; }
.legal .seal { margin-top: 48px; font-size: var(--size-label); }
.legal .dsg-locked { color: #9a9a9a; font-style: italic; }

/* Blöcke aus dem Datenschutz-Generator */
.legal ul.m-elements  { margin-top: 8px; }
.legal a.index-link   { text-decoration: none; }
.legal a.index-link:hover { text-decoration: underline; }


/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.site-footer {
  padding-top: 48px;
  padding-bottom: 40px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Ist das Fenster höher als der Inhalt, blieb unter der Fußzeile ein
   grauer Streifen stehen. body wird deshalb mindestens fensterhoch und
   schiebt die Fußzeile ans untere Ende. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* Ein einziger Abstandswert für alle Zeilen — die drei unteren stehen
   dadurch gleichmäßig. Hier justieren, nicht über einzelne margins. */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--size-body-lg);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: center;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gutter);
}

.footer-links a       { color: var(--secondary); transition: color var(--dur-fast) var(--ease); }
.footer-links a:hover { color: var(--primary); }

/* Nur Symbole, ohne Kontonamen — die Adressen stehen im aria-label. */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  transition: color var(--dur-fast) var(--ease);
}
.footer-social a:hover { color: var(--primary); }
.footer-social svg     { width: 20px; height: 20px; flex-shrink: 0; }

/* Das offizielle Vero-Symbol liegt weiß auf transparentem Grund vor.
   invert(1) macht daraus Schwarz; die Transparenz bleibt erhalten.
   opacity gleicht es an die grauen Nachbarsymbole an.

   Die Datei misst 1000 × 832 px, ist also breiter als hoch. Deshalb die
   Höhe festlegen und die Breite mitlaufen lassen — bei 20 × 20 px wäre
   das Symbol gestaucht. Ergibt rund 24 px Breite. */
.vero-icon {
  height: 20px;
  width: auto;
  flex-shrink: 0;
  filter: invert(1);
  opacity: .63;
  transition: opacity var(--dur-fast) var(--ease);
}
.footer-social a:hover .vero-icon { opacity: 1; }

.footer-copy {
  font-family: var(--font-body);
  font-size: var(--size-label-sm);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--secondary);
}


/* ==========================================================================
   13. MEDIA QUERIES
   ========================================================================== */

/* --- ab 640px: zweispaltige Kleinraster ---------------------------------- */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* --- ab 768px: das eigentliche Desktop-Layout ---------------------------- */
@media (min-width: 768px) {

  .t-display,
  .legal h1 { font-size: var(--size-display); }

  /* Leerfelder: 1 bis 6 Rasterspalten breit */
  .gallery-spacer { display: block; }
  .gallery-spacer.col-1 { grid-column: span 1; }
  .gallery-spacer.col-2 { grid-column: span 2; }
  .gallery-spacer.col-3 { grid-column: span 3; }
  .gallery-spacer.col-4 { grid-column: span 4; }
  .gallery-spacer.col-5 { grid-column: span 5; }
  .gallery-spacer.col-6 { grid-column: span 6; }

  /* Galerie-Spaltenbreiten */
  .gallery-item.col-3  { grid-column: span 3; }
  .gallery-item.col-4  { grid-column: span 4; }
  .gallery-item.col-5  { grid-column: span 5; }
  .gallery-item.col-6  { grid-column: span 6; }
  .gallery-item.col-7  { grid-column: span 7; }
  .gallery-item.col-8  { grid-column: span 8; }
  .gallery-item.col-12 { grid-column: span 12; }

  .imprint-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
  .imprint-grid .span-4  { grid-column: span 4; }
  .imprint-grid .span-6  { grid-column: span 6; }
  .imprint-grid .span-12 { grid-column: span 12; }
}

/* --- ab 868px: Über-Seite zweispaltig ------------------------------------ */
/* Eigener Umbruchpunkt: Text- und Bildspalte nebeneinander brauchen mehr
   Platz als die übrigen zweispaltigen Bereiche der Seite. Darunter stehen
   Foto und Texte untereinander. */
@media (min-width: 868px) {

  /* Textspalte 9 von 12, Foto 3 von 12. Das Foto steht am oberen Rand und
     reicht so weit nach unten, wie sein Seitenverhältnis vorgibt — ragt
     also je nach Textlänge in den Philosophie-Abschnitt hinein. */
  .about-layout {
    grid-template-columns: 9fr 3fr;
    column-gap: var(--gutter);
    align-items: start;
  }

  /* Bild an der rechten Kante ausgerichtet */
  .about-media {
    display: flex;
    justify-content: flex-end;
  }

  .about-media img {
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 5;
    height: auto;
  }
}

/* --- ab 968px: Desktop-Navigation ---------------------------------------- */
@media (min-width: 968px) {

  .nav-mobile  { display: none; }

  :root { --page-top: 148px; }   /* Desktop-Navigation ist flacher */

  .nav-desktop {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--nav-height);
    overflow: visible;
  }

  .nav-desktop .nav-links {
    justify-self: start;
    gap: 28px;
    transform: translateY(-10px);
  }

  .nav-desktop .nav-logo {
    justify-self: center;
    align-self: start;
  }
  .nav-desktop .nav-logo img { height: 149px; }

  .nav-desktop .nav-actions {
    justify-self: end;
    gap: var(--gutter);
    transform: translateY(-10px);
  }
}

/* --- Bewegungsreduktion respektieren ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page.is-active { animation: none; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
