/* Grundlayout */
:root {
  --color-background: #f7f4ef;
  --color-surface: #ffffff;
  --color-text: #403b36;
  --color-muted: #756f68;
  --color-accent: #8b7c6b;
  --color-border: #ded8d1;
  --max-width: 1120px;
  --shadow-soft: 0 18px 50px rgba(64, 59, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

.memorial-page {
  overflow: hidden;
}

.content-wrapper {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.memorial-section {
  padding: 90px 0;
}

/* Kopfbereich */
.hero-section {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 80px 20px;
  text-align: center;
  background:
    linear-gradient(rgba(247, 244, 239, 0.84), rgba(247, 244, 239, 0.96)),
    radial-gradient(circle at top, #e8dfd4, transparent 55%);
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.person-name {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
}

.life-dates {
  margin: 24px 0 0;
  color: var(--color-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

/* Portrait und Biografie */
.profile-section {
  background: var(--color-surface);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: center;
}

.portrait-frame {
  padding: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  box-shadow: var(--shadow-soft);
}

.portrait-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(100%);
}

.profile-text {
  max-width: 620px;
}

.section-title {
  margin: 0 0 26px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
}

.body-text {
  margin: 0 0 20px;
  color: var(--color-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
}

/* Zitat */
.quote-section {
  padding: 110px 0;
  text-align: center;
}

.quote-wrapper {
  max-width: 900px;
}

.memorial-quote {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}

.quote-caption {
  margin: 28px 0 0;
  color: var(--color-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
}

/* Erinnerungen */
.memories-section {
  background: var(--color-surface);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.memory-card {
  min-height: 250px;
  padding: 34px;
  border: 1px solid var(--color-border);
  background: var(--color-background);
}

.memory-title {
  margin: 0 0 18px;
  font-size: 1.6rem;
  font-weight: 400;
}

.memory-text {
  margin: 0;
  color: var(--color-muted);
  font-family: Arial, Helvetica, sans-serif;
}

/* Abschied */
.farewell-section {
  text-align: center;
}

.farewell-content {
  max-width: 850px;
}

.farewell-text {
  max-width: 700px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  padding: 34px 20px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-text {
  margin: 0;
  color: var(--color-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 820px) {
  .memorial-section {
    padding: 70px 0;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .profile-text {
    max-width: none;
  }

  .memory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .content-wrapper {
    width: min(100% - 28px, var(--max-width));
  }

  .hero-section {
    min-height: 52vh;
  }

  .memory-card {
    padding: 26px;
  }
}
