/* Schottlandtaxi – Abschiedsseite (HEO, V1, November 2026)
   Keine fremden Server: Systemschriften, alle Bilder lokal. */

:root {
  --nacht: #121a2c;
  --nacht-weich: #1d2842;
  --saltire: #0065bd;
  --gold: #e8b45f;
  --gold-hell: #f3d9a4;
  --papier: #fbf7ef;
  --papier-rand: #ebe2d0;
  --tinte: #2a2621;
  --tinte-weich: #5a5249;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nacht);
  color: var(--tinte);
  font: 400 1.125rem/1.7 var(--serif);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.nur-vorleser {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Kopf mit Sonnenuntergang ---------- */
.held {
  position: relative;
  /* Kurz genug, dass der Brief schon auf dem ersten Bildschirm beginnt (Werner, 03.11.2026) */
  min-height: 62vh;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.held__bild {
  position: absolute; inset: 0; z-index: -2;
}
.held__bild img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  transform-origin: 60% 60%;
  animation: langsam 28s ease-out both;
}
.held::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,26,44,.55) 0%, rgba(18,26,44,0) 28%),
    linear-gradient(0deg, var(--nacht) 0%, rgba(18,26,44,.82) 26%, rgba(18,26,44,.15) 62%);
}
.held__logo {
  position: absolute;
  top: clamp(20px, 4vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, 70vw);
  /* Logo ist ein JPG mit weißem Grund: so wird die blaue Schrift hell und der Grund verschwindet */
  filter: grayscale(1) invert(1) brightness(1.6);
  mix-blend-mode: screen;
  opacity: .95;
}
.held__inhalt {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(96px, 14vh, 140px) 24px clamp(100px, 13vh, 140px);
  text-align: center;
  animation: auftauchen 1.6s .3s ease-out both;
}
.held__vorzeile {
  margin: 0 0 .9rem;
  font: 600 .8rem/1.4 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-hell);
}
.held h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.held__unterzeile {
  margin: 1.2rem auto 0;
  max-width: 34em;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-style: italic;
  color: #f1ebe0;
}

/* ---------- Brief ---------- */
.brief {
  position: relative;
  max-width: 760px;
  margin: clamp(-90px, -10vh, -60px) auto 0;
  padding: 0 16px;
}
.brief__blatt {
  background: var(--papier);
  border-radius: 4px;
  padding: clamp(32px, 7vw, 72px) clamp(24px, 7vw, 80px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.55), 0 0 0 1px var(--papier-rand) inset;
}
.brief__logo {
  width: min(400px, 100%);
  margin: 0 auto;
  /* Original-JPG mit weißem Grund: der Grund verschmilzt mit dem Papier */
  mix-blend-mode: multiply;
}
.brief__trenner {
  width: 64px; height: 1px;
  margin: 1.6rem auto 2rem;
  background: var(--papier-rand);
}
.brief p { margin: 0 0 1.15em; }
.brief__erster::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: .82;
  padding: .06em .1em 0 0;
  color: var(--saltire);
}
.brief__hinweis {
  margin: 1.8em 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--saltire);
  background: #eef3fa;
  font: 600 1.05rem/1.5 var(--sans);
  color: #1b2b48;
}
.brief__gruss { margin-top: 2em; }
.brief__unterschrift {
  display: block;
  margin-top: .3em;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--nacht-weich);
}

/* ---------- Erinnerungen ---------- */
.erinnerungen {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(72px, 12vw, 128px) 16px 0;
  color: #fff;
  text-align: center;
}
.erinnerungen h2, .abschied h2 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.2;
}
.erinnerungen__einleitung {
  margin: .6rem auto 2.6rem;
  max-width: 32em;
  color: #c9c3b8;
  font-style: italic;
}
.erinnerungen__raster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.erinnerungen figure { margin: 0; }
.erinnerungen__bild {
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 3 / 4;
  background: var(--nacht-weich);
}
.erinnerungen__bild img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.erinnerungen li:hover .erinnerungen__bild img { transform: scale(1.05); }
.erinnerungen figcaption {
  margin-top: .7rem;
  font: 500 .85rem/1.4 var(--sans);
  letter-spacing: .04em;
  color: #c9c3b8;
}

/* ---------- Abschiedsgruß ---------- */
.abschied {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(80px, 13vw, 140px) 24px clamp(64px, 10vw, 110px);
  text-align: center;
  color: #fff;
}
.abschied__linie {
  width: 64px; height: 1px;
  margin: 0 auto 2.2rem;
  background: var(--gold);
}
.abschied h2 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-style: italic;
  color: var(--gold-hell);
}
.abschied__uebersetzung {
  margin: .5rem 0 0;
  font: 500 .85rem/1.4 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #a9a296;
}
.abschied__kontakt {
  margin: 0 auto;
  max-width: 30em;
  color: #d8d2c7;
  font-size: 1.02rem;
}
.abschied__kontakt a {
  color: var(--gold-hell);
  text-underline-offset: 3px;
}

/* ---------- Fuß ---------- */
.fuss {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 28px 16px 36px;
  text-align: center;
  font: 400 .9rem/1.6 var(--sans);
  color: #a9a296;
}
.fuss nav { margin-bottom: .4rem; }
.fuss a {
  display: inline-block;
  padding: 10px 12px;
  color: #e7e1d6;
  text-decoration: none;
}
.fuss a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fuss p { margin: 0; }

/* ---------- Rechtsseiten ---------- */
.recht-kopf {
  padding: 28px 16px 0;
  text-align: center;
}
.recht-kopf a { display: inline-block; }
.recht-kopf img {
  width: min(280px, 64vw);
  filter: grayscale(1) invert(1) brightness(1.6);
  mix-blend-mode: screen;
}
.recht {
  max-width: 760px;
  margin: 28px auto 64px;
  padding: 0 16px;
}
.recht .brief__blatt { font-size: 1.02rem; }
.recht h1 {
  margin: 0 0 1.2rem;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  color: var(--nacht);
}
.recht h2 {
  margin: 2em 0 .5em;
  font: 700 1.05rem/1.4 var(--sans);
  color: var(--nacht);
}
.recht p, .recht ul { margin: 0 0 1em; }
.recht ul { padding-left: 1.2em; }
.recht a { color: #0b4f96; text-underline-offset: 3px; }
.recht__zurueck {
  display: inline-block;
  margin-top: 1.6rem;
  font: 600 .95rem/1.4 var(--sans);
}
.heo-karte {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 2.4rem;
  padding: 18px 20px;
  border-radius: 6px;
  background: #366560;
  color: #fff;
  font: 400 .95rem/1.5 var(--sans);
}
.heo-karte__logo { flex: 0 0 auto; display: block; line-height: 0; }
.heo-karte__logo img { width: 96px; height: auto; border-radius: 4px; }
.heo-karte strong { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #f4b6c9; }
.heo-karte a { color: #fff; }

/* Platzhalter, die vor dem Livegang ersetzt werden */
.platzhalter {
  background: #fff3a8;
  outline: 1px dashed #b38f00;
  padding: 0 .2em;
}

/* ---------- Bewegung ---------- */
@keyframes langsam { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes auftauchen { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .held__bild img, .held__inhalt { animation: none; }
  .erinnerungen__bild img { transition: none; }
}

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  .erinnerungen__raster { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 1.06rem; }
  .held__inhalt { padding-top: 84px; padding-bottom: 96px; }
  .erinnerungen__raster { gap: 10px; }
  .heo-karte { flex-direction: column; align-items: flex-start; }
}
