/* Schriften liegen lokal in fonts/. Fehlen die Dateien, greifen die Ersatzschriften. */
@font-face {
  font-family: "Titelschrift";
  src: url("../fonts/titelschrift.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --schwarz: #151515;
  --grau: #8a8a8a;
  --text: #2b2b2b;
  --papier: #e8e8e6;
  --weiss: #ffffff;
  --max-breite: 720px;
  --font-titel: "Titelschrift", "Bodoni MT Condensed", "Playfair Display", Didot, "Times New Roman", serif;
  --font-text: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--papier);
  /* leichte Papiertextur aus Rauschen, keine Bilddatei nötig */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .45  0 0 0 0 .45  0 0 0 .22 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>"),
    linear-gradient(160deg, #f3f3f1 0%, #e4e4e2 100%);
  background-attachment: scroll;
}

/* Rettungsring-Augen als blasse Dekoration, nur Optik */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: clamp(200px, 24vw, 440px);
  aspect-ratio: 5 / 3;
  background: url("../img/ringe.svg") no-repeat center / contain;
  opacity: 0.4;
  pointer-events: none;
}
body::before { top: 6vh; right: -4vw; }
body::after  { bottom: 8vh; left: -4vw; }

.seite {
  position: relative;
  z-index: 1;
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Kopf */
.kopf { text-align: center; padding: 16px 0 8px; }

.titel {
  display: inline-block;
  margin: 0;
  padding: 4px 14px 0;
  background: var(--weiss);
  color: var(--schwarz);
  font-family: var(--font-titel);
  font-weight: 400;
  font-size: clamp(2.2rem, 11vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.untertitel { margin: 8px 0 0; font-size: 1.15rem; color: var(--schwarz); }

.rahmen { margin: 20px 0 0; font-size: 0.95rem; }

/* Überschriften als schwarze Boxen */
.box {
  display: inline-block;
  margin: 40px 0 16px;
  padding: 10px 20px;
  background: var(--schwarz);
  color: var(--weiss);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Ablauf */
.schritte { margin: 0; padding-left: 1.4rem; }
.schritte li { margin: 0 0 12px; padding-left: 4px; }
.schritte strong { font-weight: 600; text-transform: uppercase; }

.hinweis { margin: 0 0 20px; font-size: 0.9rem; }

/* Galerie */
.kuenstlerin { margin: 0 0 32px; }

.kuenstlerin h3 {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.blatt { display: block; background: var(--weiss); box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18); }

.kuenstlerin img {
  display: block;
  width: 100%;
  height: auto;
}

/* Links */
a { color: var(--schwarz); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus-visible { background: var(--schwarz); color: var(--weiss); }
.blatt:hover, .blatt:focus-visible { background: var(--weiss); }
:focus-visible { outline: 3px solid var(--schwarz); outline-offset: 2px; }

/* Fuß */
.fuss { margin-top: 48px; font-size: 0.85rem; text-align: center; }

/* Impressum und Textseiten */
.text-seite h1 { font-size: 1.4rem; margin: 24px 0 16px; }
.text-seite h2 { font-size: 1.05rem; margin: 24px 0 6px; }
.text-seite p { margin: 0 0 12px; }

@media (min-width: 720px) {
  body { font-size: 1.05rem; }
  .seite { padding: 40px 24px 64px; }
}

@media (prefers-reduced-motion: no-preference) {
  .blatt { transition: box-shadow 0.15s ease; }
  .blatt:hover { box-shadow: 0 4px 22px rgba(0, 0, 0, 0.3); }
}
