
:root {
  --background: #f4efe6;
  --surface: #fffdf9;
  --surface-muted: #ebe3d7;
  --text: #2f312d;
  --muted: #6f716b;
  --accent: #67715f;
  --accent-dark: #4e5748;
  --line: rgba(47, 49, 45, 0.14);
  --shadow: 0 18px 45px rgba(60, 52, 42, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--background); font-family: "Inter", system-ui, sans-serif; font-size: 17px; line-height: 1.7; }
a { color: inherit; }
.hero { position: relative; min-height: 74vh; display: grid; place-items: center; text-align: center; padding: 48px 24px; background: linear-gradient(rgba(46,48,42,.22),rgba(46,48,42,.38)), url("bilder/stefan.jpg") center 35% / cover no-repeat, linear-gradient(135deg,#9a9c8f,#62675d); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom,rgba(20,22,19,.08),rgba(20,22,19,.45)); }
.hero__content { position: relative; z-index: 1; width: min(900px,100%); color: white; text-shadow: 0 2px 18px rgba(0,0,0,.32); }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; }
h1,h2,blockquote { font-family: "Cormorant Garamond", Georgia, serif; }
h1 { margin: 0; font-size: clamp(3.3rem,9vw,6.8rem); line-height: .98; font-weight: 600; }
.dates { margin: 22px 0 0; font-size: 1.1rem; letter-spacing: .13em; }
.hero__note { max-width: 650px; margin: 36px auto 0; font-size: 1rem; }
.section { padding: 88px 24px; }
.section__inner { width: min(1160px,100%); margin: 0 auto; }
.section__inner--narrow { width: min(790px,100%); }
.intro { background: var(--surface); text-align: center; }
blockquote { margin: 0 0 34px; font-size: clamp(2rem,5vw,3.4rem); line-height: 1.18; color: var(--accent-dark); }
.intro p { margin: 0 auto; max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: white; background: var(--accent); }
.button--primary:hover { background: var(--accent-dark); }
.button--secondary { color: var(--accent-dark); background: transparent; border-color: var(--accent); }
.button--secondary:hover { background: rgba(47,79,159,.08); }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(2.7rem,6vw,4.4rem); line-height: 1; font-weight: 600; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--muted); }
.memory-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.memory-card { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.memory-card__text { margin: 0; font-family: "Cormorant Garamond",Georgia,serif; font-size: 1.65rem; line-height: 1.35; }
.memory-card__footer { display: flex; flex-direction: column; margin-top: 28px; color: var(--muted); font-size: .92rem; }
.memory-card__name { color: var(--text); font-weight: 600; }
.share { background: var(--surface); }
.guestbook-form { display: grid; gap: 22px; padding: 34px; background: var(--background); border: 1px solid var(--line); border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
label { display: grid; gap: 8px; font-size: .95rem; font-weight: 600; }
label span { color: var(--muted); font-weight: 400; }
input,textarea { width: 100%; padding: 14px 15px; border: 1px solid rgba(47,49,45,.22); border-radius: 11px; background: white; color: var(--text); font: inherit; }
textarea { resize: vertical; }
input:focus,textarea:focus { outline: 2px solid rgba(47,79,159,.24); border-color: var(--accent); }
.checkbox { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 11px; font-weight: 400; }
.checkbox input { width: 18px; height: 18px; margin-top: 4px; }
.form-note { margin: 0; color: var(--muted); font-size: .88rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gallery-placeholder { min-height: 290px; display: grid; place-items: center; border-radius: var(--radius); background: linear-gradient(135deg,rgba(47,79,159,.12),rgba(235,227,215,.8)); border: 1px solid var(--line); color: var(--muted); }
.gallery-action { margin-top: 30px; }
footer { padding: 70px 24px; text-align: center; background: #3f443c; color: rgba(255,255,255,.88); }
.footer__small { margin-top: 22px; font-family: "Cormorant Garamond",Georgia,serif; font-size: 1.5rem; }
.section-photo { position: fixed; top: 24px; right: 24px; z-index: 1000; width: 104px; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97); transition: opacity .4s ease, transform .4s ease, visibility .4s ease; pointer-events: none; }
.section-photo.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.section-photo__frame { position: relative; padding: 5px; background: #fffdf9; border: 1px solid rgba(47,49,45,.12); border-radius: 9px; box-shadow: 0 14px 34px rgba(35,38,48,.16),0 3px 9px rgba(35,38,48,.08); transform: rotate(1deg); }
.section-photo__frame::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255,255,255,.55); border-radius: 5px; pointer-events: none; }
.section-photo img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center; border-radius: 4px; opacity: 1; transition: opacity .22s ease; }
.section-photo img.is-changing { opacity: 0; }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { min-height: 68vh; background-position: center; }
  .section { padding: 68px 18px; }
  .memory-grid,.gallery-grid,.form-row { grid-template-columns: 1fr; }
  .guestbook-form { padding: 24px 18px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .gallery-placeholder { min-height: 230px; }
  .section-photo { top: 12px; right: 12px; width: 72px; }
  .section-photo__frame { padding: 4px; border-radius: 7px; }
}
