/* VON ZWEIEN, Entwurf. Eine Schrift (Newsreader), keine Kursive. */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --schwarz: #000;
  --weiss: #fff;
  --rand: clamp(20px, 4vw, 56px);
  --schrift: "Newsreader", Georgia, serif;
  --klein: 15px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--schwarz);
  font-family: var(--schrift);
  font-optical-sizing: auto;
  font-size: clamp(18px, 1.2vw, 20px);
  line-height: 1.6;
  font-weight: 400;
}
h1, h2, h3 { font-weight: 300; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* Logo: Instrument Serif, normale Schreibweise */
.logo {
  font-family: "Instrument Serif", var(--schrift); font-weight: 400; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
}

/* Kopf */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--rand);
  font-size: var(--klein);
  mix-blend-mode: difference; color: var(--weiss);
}
.kopf a { text-decoration: none; }
.kopf .logo { font-size: 22px; line-height: 1; }
.startseite .kopf .logo { visibility: hidden; }
.menueknopf {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit;
}

/* Menü als Vollbild */
.menue {
  position: fixed; inset: 0; z-index: 30;
  background: var(--weiss);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: var(--rand);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.menue.offen { opacity: 1; visibility: visible; transition: opacity 0.4s ease; }
.menue ul { list-style: none; margin: 0; padding: 0; }
.menue li a {
  font-weight: 300; font-size: clamp(38px, 5.5vw, 76px); line-height: 1.25; letter-spacing: -0.01em;
  text-decoration: none;
}
.menue li a:hover, .menue li a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.menue .schliessen {
  position: absolute; top: 24px; right: var(--rand);
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: var(--klein); color: var(--schwarz);
}
.menue .menue-fuss { margin-top: 56px; }
.menue .menue-fuss .logo { font-size: 22px; }

/* Startseite: Logo und Titelbild */
.kopfzeile-start {
  margin: 0; padding: clamp(110px, 14vw, 190px) var(--rand) 0;
  text-align: center; font-weight: 400;
}
.kopfzeile-start .logo { display: block; font-size: clamp(52px, 6.4vw, 104px); line-height: 1; }
.kopfzeile-start .zusatz { display: block; margin-top: 16px; font-size: var(--klein); letter-spacing: 0.02em; }
.titelbild { margin: clamp(56px, 7vw, 110px) auto 0; width: min(76vw, 1240px); }

/* Textanker */
.anker {
  padding: clamp(120px, 15vw, 240px) var(--rand);
  max-width: 1180px; margin: 0 auto; text-align: center;
}
.anker h2 { margin: 0 0 1.4em; font-size: var(--klein); font-weight: 400; letter-spacing: 0.02em; }
.anker p {
  margin: 0;
  font-weight: 300; font-size: clamp(28px, 3vw, 50px); line-height: 1.3; letter-spacing: -0.005em;
}

/* Wörter erscheinen beim Scrollen */
.aufdecken .wort { opacity: 0.14; transition: opacity 0.3s linear; }
.aufdecken .wort.da { opacity: 1; }

/* Verstreute Bilder (Startseite) */
.streuung {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: 0 var(--rand);
}
.streuung figure { margin: 0; }
.streuung figure:nth-child(7n+1) { grid-column: 1 / span 4; }
.streuung figure:nth-child(7n+2) { grid-column: 8 / span 4; margin-top: 28vh; }
.streuung figure:nth-child(7n+3) { grid-column: 4 / span 6; margin-top: 16vh; }
.streuung figure:nth-child(7n+4) { grid-column: 9 / span 4; margin-top: 22vh; }
.streuung figure:nth-child(7n+5) { grid-column: 2 / span 4; margin-top: 10vh; }
.streuung figure:nth-child(7n+6) { grid-column: 6 / span 6; margin-top: 24vh; }
.streuung figure:nth-child(7n+7) { grid-column: 1 / span 4; margin-top: 18vh; }
.streuung figcaption, .serie figcaption { margin-top: 12px; font-size: var(--klein); }
.streuung figcaption a { text-decoration: none; }
.streuung figcaption a:hover { text-decoration: underline; }

/* Abschnitte mit Text und Bild */
.abschnitt {
  padding: clamp(100px, 12vw, 200px) var(--rand) 0;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end;
}
.abschnitt > figure { grid-column: 1 / span 5; margin: 0; }
.abschnitt > div { grid-column: 7 / span 5; }
.abschnitt h2 { margin: 0 0 0.7em; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.15; }
.abschnitt p { margin: 0 0 1em; }
.verweis { font-size: var(--klein); }

/* Großer zentrierter Verweis */
.naechste, .grossverweis {
  margin-top: clamp(100px, 12vw, 200px);
  padding: clamp(60px, 7vw, 110px) var(--rand);
  text-align: center;
}
.naechste p, .grossverweis p { margin: 0 0 10px; font-size: var(--klein); }
.naechste a, .grossverweis a {
  font-weight: 300; font-size: clamp(34px, 4.2vw, 68px); line-height: 1.15; letter-spacing: -0.01em;
  text-decoration: none;
}
.naechste a:hover, .grossverweis a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.grossverweis .klein { max-width: 30em; margin: 22px auto 0; font-size: inherit; }
.grossverweis .klein a { font: inherit; letter-spacing: normal; text-decoration: underline; }

/* Unterseiten */
.seitenkopf {
  padding: clamp(150px, 16vw, 240px) var(--rand) clamp(60px, 8vw, 120px);
  text-align: center;
}
.seitenkopf h1 { margin: 0; font-size: clamp(44px, 6vw, 96px); line-height: 1.05; letter-spacing: -0.015em; }
.angaben {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 32px;
  margin: 28px 0 0; padding: 0; list-style: none; font-size: var(--klein);
}
.angaben b { font-weight: 400; margin-right: 6px; }
.angaben b::after { content: ":"; }
.einleitung { max-width: 32em; margin: 36px auto 0; }

/* Serie: zwei versetzte Spalten */
.serie {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 6vw, 96px);
  padding: 0 clamp(var(--rand), 8vw, 140px);
}
.serie .spalte { display: flex; flex-direction: column; gap: clamp(60px, 9vw, 150px); }
.serie .spalte.rechts { padding-top: clamp(80px, 14vw, 240px); align-items: center; }
.serie .spalte.rechts figure { width: 72%; }
.serie .spalte.links figure.klein { width: 72%; align-self: center; }
.serie figure { margin: 0; }
.serie .zwischentext { margin: 0; max-width: 22em; }
.serie .zwischentext h2 { font-size: 24px; margin: 0 0 0.5em; }

/* Übersicht der Hochzeiten */
.liste { padding: 0 var(--rand); display: flex; flex-direction: column; gap: clamp(100px, 12vw, 200px); }
.liste article { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.liste article figure { margin: 0; grid-column: 1 / span 7; }
.liste article .titel { grid-column: 9 / span 4; }
.liste article:nth-child(even) figure { grid-column: 6 / span 7; grid-row: 1; }
.liste article:nth-child(even) .titel { grid-column: 1 / span 4; grid-row: 1; }
.liste h2 { margin: 0 0 8px; font-size: clamp(30px, 3vw, 50px); line-height: 1.1; }
.liste h2 a { text-decoration: none; }
.liste h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.liste .ort { font-size: var(--klein); margin: 0; }

/* Fließtext-Seiten */
.text { padding: 0 var(--rand); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.text > * { grid-column: 4 / span 6; }
.text h2 { margin: 2.2em 0 0.4em; font-size: 26px; }
.text h2:first-child { margin-top: 0; }
.text p { margin: 0 0 1em; }
.text .gross { font-size: clamp(24px, 2.1vw, 34px); line-height: 1.35; font-weight: 300; }

.zwei-personen { padding: clamp(80px, 10vw, 160px) var(--rand) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.zwei-personen article:first-child { grid-column: 2 / span 4; }
.zwei-personen article:last-child { grid-column: 8 / span 4; margin-top: 20vh; }
.zwei-personen figure { margin: 0 0 20px; }
.zwei-personen h2 { font-size: 26px; margin: 0 0 0.3em; }

/* Platzhalter für offene Angaben */
.fehlt { background: #ffff00; font-size: 0.85em; padding: 0 4px; }

/* Fuß: zentriert, drei ruhige Zeilen */
.fuss {
  margin-top: clamp(140px, 16vw, 260px);
  padding: 0 var(--rand) 56px;
  text-align: center; font-size: var(--klein); line-height: 1.6;
}
.fuss .logo { display: inline-block; font-size: 26px; line-height: 1; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px; }
.fuss nav { margin-top: 28px; }
.fuss .rechtliches { margin-top: 10px; font-size: 13px; }
.fuss a { text-decoration: none; }
.fuss a:hover { text-decoration: underline; }

/* Bilder blenden ein */
.einblenden { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.einblenden.da { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .einblenden { opacity: 1; transform: none; transition: none; }
  .aufdecken .wort { opacity: 1; transition: none; }
  .menue { transition: none; }
}

/* Schmale Bildschirme */
@media (max-width: 760px) {
  .titelbild { width: calc(100vw - 2 * var(--rand)); }
  .streuung { display: flex; flex-direction: column; gap: 56px; }
  .streuung figure, .streuung figure[class] { margin-top: 0 !important; }
  .streuung figure:nth-child(odd) { width: 78%; }
  .streuung figure:nth-child(even) { width: 78%; align-self: flex-end; }
  .streuung figure:nth-child(3n) { width: 100%; }
  .abschnitt > div, .abschnitt > figure, .text > * { grid-column: 1 / -1; }
  .abschnitt > figure { margin-bottom: 32px; }
  .serie { grid-template-columns: 1fr; padding: 0 var(--rand); }
  .serie .spalte { gap: 56px; }
  .serie .spalte.rechts { padding-top: 56px; }
  .serie .spalte.rechts figure { width: 80%; align-self: flex-end; }
  .liste article figure, .liste article:nth-child(even) figure { grid-column: 1 / -1; grid-row: 1; }
  .liste article .titel, .liste article:nth-child(even) .titel { grid-column: 1 / -1; grid-row: 2; margin-top: 18px; }
  .zwei-personen article:first-child, .zwei-personen article:last-child { grid-column: 1 / -1; margin-top: 0; }
  .zwei-personen article:last-child { margin-top: 64px; }
}
