/*
  samsiki.de
  Erste Gedenkseite für Sammy Samson Samuel Kiss

  Die Farben kannst du später hier zentral ändern.
*/
:root {
  --background: #f3eee6;
  --surface: #fffaf3;
  --text: #2c2926;
  --muted: #736c65;
  --accent: #9a654f;
  --accent-dark: #714737;
  --cream: #eadfce;
  --line: rgba(44, 41, 38, 0.14);
  --shadow: 0 22px 60px rgba(50, 38, 29, 0.15);
  --content-width: 1120px;
  --reading-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.75;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-200%);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: white;
  color: black;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  isolation: isolate;
  color: white;
  background-color: #494039;
  background-image: url("bilder/sammy.jpg");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(24, 20, 18, 0.86) 0%,
      rgba(24, 20, 18, 0.54) 48%,
      rgba(24, 20, 18, 0.16) 100%
    ),
    linear-gradient(0deg, rgba(24, 20, 18, 0.62) 0%, transparent 48%);
}

.navigation {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 2rem), var(--content-width));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.logo {
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.logo span {
  opacity: 0.62;
}

.nav-links {
  display: flex;
  gap: 1.35rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.93rem;
  opacity: 0.86;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.36rem;
}

.hero-content {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
  padding: 9rem 0 5rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c7b3;
}

h1,
h2,
h3,
blockquote {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(3.35rem, 8.5vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-wrap: balance;
}

.lifetime {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 1.65rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.91rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lifetime span {
  color: #f0c7b3;
}

.hero-text {
  max-width: 640px;
  margin: 1.7rem 0 2.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.07rem, 2vw, 1.34rem);
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  background: white;
  color: #2c2926;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.section {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 8vw, 7rem);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.intro-text {
  max-width: 720px;
}

.intro-text p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.intro-text .lead {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.36;
}

.story-section {
  padding: clamp(5rem, 10vw, 9rem) 1rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(154, 101, 79, 0.12), transparent 34%),
    var(--surface);
}

.story {
  width: min(100%, 980px);
  margin-inline: auto;
}

.story-header {
  max-width: 820px;
  margin: 0 auto clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}

.story-number {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.story-header h2 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.story-subtitle {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.story-body {
  width: min(100%, var(--reading-width));
  margin-inline: auto;
}

.story-body p {
  margin: 0 0 1.45rem;
  color: #514b46;
  font-size: clamp(1.04rem, 1.7vw, 1.14rem);
}

.story-body .opening {
  margin-bottom: 2rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  line-height: 1.25;
}

.story-body .highlight {
  margin: 2.4rem 0;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-style: italic;
  line-height: 1.35;
}

.story-body blockquote {
  margin: clamp(3rem, 7vw, 5.5rem) calc(50% - 50vw);
  padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100vw - var(--reading-width)) / 2));
  background: var(--accent-dark);
  color: white;
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.055em;
  line-height: 1;
  text-align: center;
}

.story-body h3 {
  margin: clamp(3.7rem, 7vw, 5.5rem) 0 1.4rem;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.learning-steps {
  display: grid;
  gap: 1rem;
  margin: 2.7rem 0;
}

.learning-steps p {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 0.8rem;
  align-items: center;
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 10px 28px rgba(50, 38, 29, 0.07);
}

.learning-steps span {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 850;
}

.learning-steps strong {
  color: var(--accent);
  font-size: 1.3rem;
}

.story-body .ending {
  margin-top: 3.2rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.4;
}

.story-body .continuation {
  margin: 3.3rem 0 0;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-section {
  background: #e9dfd2;
}

.gallery-inner {
  padding-top: clamp(5rem, 9vw, 8rem);
}

.gallery-heading {
  max-width: 760px;
}

.gallery-heading > p:last-child {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1.15rem;
  margin-top: 3rem;
}

.photo-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 1.1rem;
  background: #cbbbaa;
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 400ms ease;
}

.photo-card:hover img {
  transform: scale(1.025);
}

.photo-card-large {
  grid-row: span 2;
}

.photo-card-large img {
  aspect-ratio: 4 / 10;
}

.photo-card-wide {
  grid-column: span 2;
}

.photo-card-wide img {
  aspect-ratio: 8 / 5;
}

.photo-card figcaption {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(27, 23, 20, 0.55);
  color: white;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.remembrance {
  display: grid;
  place-items: center;
  min-height: 72vh;
  text-align: center;
}

.remembrance-inner {
  max-width: 940px;
}

.heart {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 1.2rem;
}

.remembrance blockquote {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6.3rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.signature {
  margin-top: 2rem;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

footer {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  margin: 0;
}

footer a {
  white-space: nowrap;
  text-underline-offset: 0.3rem;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 100svh;
    background-position: 58% center;
  }

  .hero-content {
    align-self: end;
    padding-bottom: 5.5rem;
  }

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

  .learning-steps p {
    grid-template-columns: auto 1fr;
  }

  .learning-steps strong {
    display: none;
  }

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

  .photo-card-large,
  .photo-card-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .photo-card img,
  .photo-card-large img,
  .photo-card-wide img {
    min-height: 300px;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 560px) {
  .lifetime {
    display: grid;
    gap: 0.1rem;
  }

  .lifetime span {
    display: none;
  }

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

  .photo-card img,
  .photo-card-large img,
  .photo-card-wide img {
    min-height: 0;
    aspect-ratio: 4 / 4.7;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
