[hidden] { display: none !important; }
:root {
  --paper: #f8f5ef;
  --paper-soft: #f1ece3;
  --ink: #2e3731;
  --muted: #6e746e;
  --green: #536052;
  --green-dark: #39463d;
  --sage: #8a9685;
  --gold: #b99b69;
  --line: rgba(83, 96, 82, 0.18);
  --shadow: 0 26px 70px rgba(49, 55, 49, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .7rem 1rem;
  color: white;
  background: var(--green-dark);
  border-radius: .35rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 245, 239, .93);
  border-bottom: 1px solid rgba(83, 96, 82, .12);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1160px, calc(100% - 3rem));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: .98rem;
  letter-spacing: .03em;
}
.brand svg {
  width: 43px;
  height: 31px;
  fill: rgba(83, 96, 82, .12);
  stroke: var(--green);
  stroke-width: 1.8;
}
nav { display: flex; gap: 2rem; }
nav a {
  position: relative;
  text-decoration: none;
  color: #4b514c;
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.45rem;
  height: 1px;
  background: var(--gold);
  transition: right .25s ease;
}
nav a:hover::after,
nav a:focus-visible::after { right: 0; }

.hero {
  min-height: 720px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 7rem 1.5rem 6.5rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.96) 0 18%, rgba(248,245,239,.84) 50%, rgba(236,231,220,.72) 100%),
    linear-gradient(120deg, #e5e0d4, #faf7f1 55%, #e2e7df);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, 92vw);
  text-align: center;
}
.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .27em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 7.8rem);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.045em;
}
h1 span { font-size: .73em; letter-spacing: -.035em; }
.ornament {
  width: min(290px, 72vw);
  margin: 2.6rem auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  color: var(--gold);
}
.ornament span { height: 1px; flex: 1; background: currentColor; opacity: .6; }
.ornament b { font-size: .72rem; font-weight: 400; }
.lead {
  width: min(650px, 100%);
  margin: 0 auto;
  color: #555c56;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.15vw, 1.42rem);
  line-height: 1.8;
}
.soft-button {
  display: inline-flex;
  margin-top: 2.5rem;
  padding: .88rem 1.5rem;
  border: 1px solid rgba(83, 96, 82, .34);
  border-radius: 999px;
  text-decoration: none;
  color: var(--green-dark);
  background: rgba(255,255,255,.42);
  font-size: .78rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.soft-button:hover,
.soft-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255,255,255,.8);
  border-color: var(--gold);
}
.botanical {
  position: absolute;
  z-index: 1;
  color: var(--sage);
  opacity: .38;
  pointer-events: none;
  stroke-width: 3;
}
.botanical-left { left: -4rem; bottom: -8rem; width: min(43vw, 510px); transform: rotate(-4deg); }
.botanical-right { right: -3rem; top: -4rem; width: min(38vw, 430px); transform: rotate(3deg); opacity: .28; }
.botanical .flowers { opacity: .9; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 241, 202, .42);
  filter: blur(1px);
  box-shadow: 0 0 55px rgba(255, 232, 174, .38);
}
.hero-glow-one { width: 130px; height: 130px; right: 16%; top: 16%; }
.hero-glow-two { width: 72px; height: 72px; left: 18%; top: 24%; }
.candle-scene {
  position: absolute;
  z-index: 2;
  left: clamp(2rem, 8vw, 9rem);
  bottom: 2.8rem;
  width: 100px;
  height: 175px;
  opacity: .93;
}
.candle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 74px;
  height: 105px;
  transform: translateX(-50%);
  border: 1px solid rgba(135, 107, 73, .36);
  border-radius: 7px 7px 12px 12px;
  background: linear-gradient(90deg, rgba(255,255,255,.24), rgba(164,118,69,.14), rgba(255,255,255,.22));
  box-shadow: inset 0 0 24px rgba(255, 224, 155, .35), 0 20px 35px rgba(77, 62, 44, .18);
}
.wax {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 70px;
  border-radius: 4px 4px 9px 9px;
  background: linear-gradient(#f0ddac, #d9ba76);
  box-shadow: inset 0 4px 8px rgba(255,255,255,.65);
}
.wick {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 77px;
  width: 2px;
  height: 16px;
  transform: translateX(-50%);
  background: #46382d;
}
.flame {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 91px;
  width: 22px;
  height: 43px;
  transform: translateX(-50%) rotate(2deg);
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 65%, #fff9d6 0 16%, #ffd275 38%, #e08b32 74%, transparent 76%);
  filter: drop-shadow(0 0 13px rgba(255, 183, 67, .9));
  animation: flicker 3.2s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}
@keyframes flicker {
  0% { transform: translateX(-50%) rotate(-2deg) scale(.96, 1); }
  40% { transform: translateX(-50%) rotate(2deg) scale(1.03, .96); }
  100% { transform: translateX(-50%) rotate(-1deg) scale(.98, 1.04); }
}

.section-inner {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}
.section-inner.narrow { width: min(800px, calc(100% - 3rem)); }
.remembrance {
  padding: 8.2rem 0;
  text-align: center;
  background: #fffdf9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  font-weight: 400;
  line-height: 1.1;
}
.ornament-dark { color: var(--sage); width: 220px; margin: 1.9rem auto 2rem; }
.remembrance blockquote {
  margin: 0 auto 2rem;
  color: #4d554e;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-style: italic;
  line-height: 1.65;
}
.remembrance p:last-child {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.04rem;
}

.card-section {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 9rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(141, 153, 134, .11), transparent 31%),
    var(--paper-soft);
}
.card-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -170px;
  bottom: -160px;
  border: 1px solid rgba(83, 96, 82, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(83, 96, 82, .025), 0 0 0 84px rgba(83, 96, 82, .02);
}
.section-heading {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-heading p:last-child { margin: 1.4rem auto 0; color: var(--muted); }
.memorial-card-shell {
  width: min(780px, 100%);
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.1rem);
  border: 1px solid rgba(185, 155, 105, .44);
  border-radius: 4px;
  background: rgba(255,255,255,.52);
  box-shadow: var(--shadow);
  position: relative;
}
.memorial-card-shell::before,
.memorial-card-shell::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(185, 155, 105, .25);
  pointer-events: none;
}
.memorial-card-shell::after { inset: 18px; border-color: rgba(83, 96, 82, .1); }
.card-open {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.card-open img {
  max-height: 1050px;
  width: auto;
  margin: 0 auto;
  box-shadow: 0 18px 44px rgba(53, 57, 52, .17);
}
.zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%) translateY(8px);
  padding: .55rem .85rem;
  border-radius: 999px;
  color: white;
  background: rgba(48, 58, 50, .82);
  font-size: .74rem;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.card-open:hover .zoom-hint,
.card-open:focus-visible .zoom-hint { opacity: 1; transform: translateX(-50%) translateY(0); }
.card-placeholder {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(83, 96, 82, .35);
  background: rgba(255,255,255,.4);
}
.card-placeholder svg {
  width: 105px;
  fill: none;
  stroke: var(--sage);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-placeholder h3 {
  margin: 1.4rem 0 .3rem;
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}
.card-placeholder p { margin: 0; }
.card-placeholder code {
  display: inline-block;
  margin: .3rem 0;
  padding: .25rem .45rem;
  border-radius: .25rem;
  color: var(--green-dark);
  background: rgba(83, 96, 82, .08);
  overflow-wrap: anywhere;
}

.closing {
  padding: 6.4rem 0 5.8rem;
  color: rgba(255,255,255,.9);
  text-align: center;
  background: var(--green);
}
.closing-leaf {
  width: 76px;
  fill: rgba(255,255,255,.07);
  stroke: rgba(255,255,255,.65);
  stroke-width: 1.8;
}
.closing p {
  margin: 1.4rem 0 .5rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: .06em;
}
.closing span { color: rgba(255,255,255,.67); }
footer {
  padding: 1.7rem 1rem;
  text-align: center;
  color: #848b84;
  background: #303b33;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
footer p { margin: 0; }

.lightbox {
  width: min(96vw, 1200px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 3px;
  overflow: visible;
  background: transparent;
}
.lightbox::backdrop {
  background: rgba(23, 28, 24, .88);
  backdrop-filter: blur(5px);
}
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  margin: auto;
  object-fit: contain;
  box-shadow: 0 24px 90px rgba(0,0,0,.45);
}
.lightbox-close {
  position: fixed;
  top: 1.1rem;
  right: 1.2rem;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: white;
  background: rgba(29,35,30,.72);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 820px) {
  .header-inner { min-height: 64px; width: min(100% - 2rem, 1160px); }
  .brand span { display: none; }
  nav { gap: 1rem; }
  nav a { font-size: .72rem; }
  .hero { min-height: 650px; padding-top: 6rem; }
  .botanical-left { width: 70vw; left: -13rem; }
  .botanical-right { width: 62vw; right: -13rem; }
  .candle-scene { left: 1.1rem; bottom: 1.2rem; transform: scale(.8); transform-origin: bottom left; }
  .remembrance, .card-section { padding-top: 6rem; padding-bottom: 6rem; }
}

@media (max-width: 540px) {
  .header-inner { justify-content: center; }
  .brand { display: none; }
  nav { width: 100%; justify-content: center; gap: 1.25rem; }
  .hero { min-height: 610px; padding: 5.5rem 1.2rem 5rem; }
  .eyebrow { letter-spacing: .2em; font-size: .72rem; }
  h1 { font-size: clamp(3.5rem, 19vw, 5.1rem); }
  .lead { font-size: 1.05rem; line-height: 1.72; }
  .candle-scene { opacity: .65; }
  .section-inner, .section-inner.narrow { width: min(100% - 2rem, 1120px); }
  .memorial-card-shell { min-height: 400px; padding: 1.5rem .8rem; }
  .memorial-card-shell::before { inset: 7px; }
  .memorial-card-shell::after { display: none; }
  .card-placeholder { min-height: 360px; padding: 2.2rem 1rem; }
  .zoom-hint { display: none; }
}

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


/* Lebensgeschichte und Gedicht */
.story-layout { max-width: 940px; }
.story-heading { margin-bottom: 2.5rem; }
.story-text {
  max-width: 820px;
  margin: 0 auto;
  columns: 2 320px;
  column-gap: 3.5rem;
  text-align: left;
  color: var(--muted);
}
.story-text p {
  margin: 0 0 1.35rem;
  break-inside: avoid;
}
.story-text p:first-child::first-letter {
  float: left;
  margin: .12rem .45rem 0 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 3.8rem;
  line-height: .78;
}
.poem-section {
  padding: 8rem 0;
  text-align: center;
  background: linear-gradient(180deg, #f2eee7, #faf7f1);
  border-bottom: 1px solid var(--line);
}
.poem {
  max-width: 680px;
  margin: 0 auto;
  color: #4d554e;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.9;
}
.poem p { margin: 0 0 1.8rem; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: .7rem;
  margin-top: .45rem;
  text-transform: none;
  letter-spacing: .04em;
}
.footer-links a:hover, .footer-links a:focus-visible { color: white; }
.legal-page { min-height: 100vh; background: var(--paper); }
.legal-main { width: min(820px, calc(100% - 2rem)); margin: 0 auto; padding: 5rem 0 7rem; }
.legal-main h1 { font-size: clamp(3rem, 9vw, 5.5rem); line-height: 1; }
.legal-main h2 { margin-top: 2.5rem; font-size: 2rem; }
.legal-main h3 { margin-top: 2rem; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--green-dark); }
.legal-main p, .legal-main li { color: var(--muted); }
.legal-main a { color: var(--green-dark); }
.legal-back { display: inline-block; margin-bottom: 2rem; text-decoration: none; }
@media (max-width: 820px) {
  .story-text { columns: 1; }
}
@media (max-width: 540px) {
  .poem-section { padding: 6rem 0; }
}

/* Überarbeitete Reihenfolge und ausführlicher Lebensbericht */
.life-story {
  padding: 8.5rem 0 9rem;
  background: #fffdf9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.life-story .section-heading {
  max-width: 900px;
}
.life-story h2 {
  font-size: clamp(2.35rem, 5vw, 4.15rem);
}
.life-story .story-text {
  max-width: 860px;
  columns: 1;
  color: #606861;
  font-size: 1.045rem;
  line-height: 1.86;
}
.life-story .story-text p {
  margin-bottom: 1.55rem;
}
.life-story .story-text strong {
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: 1.08em;
}
.story-ending {
  margin-top: 2.8rem !important;
  padding-top: 2rem;
  border-top: 1px solid rgba(185, 155, 105, .36);
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.8;
}
.poem-finale {
  margin-top: 3rem !important;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(185, 155, 105, .42);
  color: var(--green-dark);
  font-size: 1.12em;
}

@media (max-width: 820px) {
  .life-story { padding-top: 6.5rem; padding-bottom: 6.5rem; }
}

@media (max-width: 540px) {
  .life-story { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .life-story .story-text { font-size: 1rem; line-height: 1.78; }
  .life-story h2 br { display: none; }
}

@media (max-width: 540px) {
  nav { gap: .65rem; flex-wrap: wrap; row-gap: .25rem; }
  nav a { font-size: .64rem; letter-spacing: .035em; }
}

.story-text .story-quote {
  margin: 2rem auto;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-style: italic;
  color: var(--green-dark, #445044);
}
