/* Tom Egger Bestattungen – Entwurf Seetalwebsites */

:root {
  --papier: #f5f0e8;
  --sand: #ebe3d6;
  --tinte: #2b2622;
  --tinte-weich: #5f574e;
  --holz: #7a5634;
  --linie: rgba(43, 38, 34, 0.14);
  --nacht: #221f1c;
  --nacht-2: #2c2824;
  --nacht-text: #eee6da;
  --nacht-weich: #b9ae9f;
  --messing: #cfae84;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --weich: cubic-bezier(0.22, 1, 0.36, 1);
  --kopf-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font: 400 1.125rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* leichte Papierkörnung */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 350; letter-spacing: -0.012em; }
h1 em, h2 em, blockquote em { font-style: italic; color: var(--holz); }
h2 { font-size: clamp(2rem, 3.6vw, 3.05rem); line-height: 1.1; text-wrap: balance; }
h3 { font-size: 1.45rem; line-height: 1.25; font-weight: 400; }
p { margin: 0 0 1em; text-wrap: pretty; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--holz); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--tinte); color: var(--papier); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }

.rahmen { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.etikett {
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--holz);
}
.etikett-hell { color: var(--messing); }

/* ---------- Knöpfe ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1.02rem;
  text-decoration: none;
  transition: background-color 0.4s var(--weich), color 0.4s var(--weich), border-color 0.4s var(--weich);
}
.knopf svg { width: 19px; height: 19px; flex: none; }
.knopf-voll { background: var(--tinte); color: var(--papier); }
.knopf-voll:hover { background: var(--holz); }
.knopf-rand { border: 1px solid rgba(43, 38, 34, 0.35); color: var(--tinte); }
.knopf-rand:hover { border-color: var(--tinte); background: rgba(43, 38, 34, 0.05); }

.pfeil-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--holz);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--weich);
}
.pfeil-link svg { width: 18px; height: 18px; transition: transform 0.5s var(--weich); }
.pfeil-link:hover { background-size: 100% 1px; }
.pfeil-link:hover svg { transform: translateX(4px); }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--kopf-h);
  background: rgba(245, 240, 232, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--weich), border-color 0.5s var(--weich);
}
.kopf.gescrollt {
  background: rgba(245, 240, 232, 0.9);
  border-bottom-color: var(--linie);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marke-bogen { width: 30px; height: 30px; color: var(--holz); stroke-width: 1.3; }
.marke-name { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1; letter-spacing: -0.01em; }
.marke-zusatz { display: block; white-space: nowrap; margin-top: 4px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tinte-weich); }

.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--tinte-weich);
  padding: 6px 0;
  background: linear-gradient(var(--tinte), var(--tinte)) 0 100% / 0 1px no-repeat;
  transition: color 0.4s var(--weich), background-size 0.5s var(--weich);
}
.nav a:hover { color: var(--tinte); background-size: 100% 1px; }

.kopf-tel { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.2; }
.kopf-tel-etikett { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--holz); }
.kopf-tel-zahl { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-family: var(--serif); font-size: 1.3rem; }
.kopf-tel-zahl svg { width: 17px; height: 17px; color: var(--holz); }
.kopf-tel:hover .kopf-tel-zahl { color: var(--holz); }

/* ---------- Einstieg ---------- */
.held { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.held-raster { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.held-titel {
  font-size: clamp(2.7rem, 5.6vw, 4.8rem);
  line-height: 1.04;
  font-weight: 320;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.held-titel .zeile { display: block; }
.held-lead { max-width: 33em; font-size: 1.2rem; color: var(--tinte-weich); }

.held-bild { position: relative; }
.bogen {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 50% 50% 6px 6px / 40% 40% 6px 6px;
  background: var(--sand);
  position: relative;
  z-index: 1;
}
.bogen img { width: 100%; height: 100%; object-fit: cover; }
.held-licht {
  position: absolute;
  inset: -12% -18% auto;
  height: 80%;
  background: radial-gradient(closest-side, rgba(207, 174, 132, 0.38), transparent);
  filter: blur(10px);
  z-index: 0;
}

.fakten {
  list-style: none;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--linie);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fakten strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.fakten span { color: var(--tinte-weich); font-size: 1rem; }

/* ---------- Im Todesfall ---------- */
.todesfall { background: var(--nacht); color: var(--nacht-text); padding: clamp(72px, 10vw, 128px) 0; }
.todesfall h2 em { color: var(--messing); }
.todesfall-raster { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.todesfall-lead { max-width: 32em; margin-top: 1.4rem; font-size: 1.2rem; color: var(--nacht-weich); }

.schritte { --f: 0; list-style: none; margin: 3rem 0 0; padding: 0; position: relative; }
.schritte::before,
.schritte::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 30px;
  width: 1px;
  background: rgba(238, 230, 218, 0.16);
}
.schritte::after { background: var(--messing); transform-origin: top; transform: scaleY(var(--f)); }
.schritt { display: grid; grid-template-columns: 44px 1fr; gap: 22px; padding-bottom: 2.2rem; position: relative; z-index: 1; }
.schritt:last-child { padding-bottom: 0; }
.schritt-nr {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(238, 230, 218, 0.28);
  background: var(--nacht);
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--nacht-weich);
  transition: border-color 0.8s var(--weich), color 0.8s var(--weich), background-color 0.8s var(--weich);
}
.schritt.erreicht .schritt-nr { border-color: var(--messing); color: var(--messing); background: #2e2923; }
.schritt h3 { margin: 0.35rem 0 0.4rem; }
.schritt p { color: var(--nacht-weich); margin: 0; max-width: 34em; }

.ruf {
  position: sticky;
  top: calc(var(--kopf-h) + 24px);
  background: var(--nacht-2);
  border: 1px solid rgba(238, 230, 218, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.ruf-bild { margin: 0; position: relative; aspect-ratio: 9 / 6.4; overflow: hidden; }
.ruf-bild img { width: 100%; height: 100%; object-fit: cover; }
.ruf-glut {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 60%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 190, 120, 0.22), transparent);
  mix-blend-mode: screen;
}
.ruf-text { padding: 28px 30px 30px; }
.ruf-etikett { margin-bottom: 0.2rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--messing); }
.ruf-zahl {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
  font-weight: 350;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: linear-gradient(var(--messing), var(--messing)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--weich), color 0.4s var(--weich);
}
.ruf-zahl:hover { color: var(--messing); background-size: 100% 1px; }
.ruf-text p { color: var(--nacht-weich); font-size: 1.02rem; }
.ruf-klein { margin: 0; font-size: 0.95rem !important; }
.ruf-klein a { color: var(--nacht-text); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(80px, 10vw, 136px) 0; }
.kopfzeile { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.kopfzeile h2 { margin-bottom: 1rem; }
.kopfzeile p:last-child { color: var(--tinte-weich); font-size: 1.15rem; }

.liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 72px); }
.liste li {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 12px;
  padding: 30px 0 28px;
  border-top: 1px solid var(--linie);
  position: relative;
}
.liste li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--holz);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--weich);
}
.liste li:hover::before { transform: scaleX(1); }
.liste-nr { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--holz); padding-top: 4px; }
.liste h3 { margin-bottom: 0.45rem; }
.liste p { margin: 0; color: var(--tinte-weich); }

/* ---------- Werkstatt ---------- */
.holz { background: var(--sand); padding: clamp(80px, 10vw, 136px) 0; }
.holz-raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.holz-bild { margin: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 6 / 5; }
.holz-bild img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--weich); }
.holz-bild.sichtbar img { transform: scale(1); }
.holz-text h2 { margin-bottom: 1.4rem; }
.holz-text p { color: var(--tinte-weich); }
.holz-notiz { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--linie); font-size: 1rem; }
.holz-notiz .pfeil-link { margin-top: 0.4rem; }

/* ---------- Vorsorge ---------- */
.vorsorge-raster { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.vorsorge h2 { margin-bottom: 1.4rem; }
.vorsorge p { color: var(--tinte-weich); max-width: 34em; }
.haken { list-style: none; margin: 1.6rem 0 2rem; padding: 0; }
.haken li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--linie); }
.haken li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 14px;
  height: 1px;
  background: var(--holz);
}
.vorsorge-bild { margin: 0; aspect-ratio: 9 / 11; overflow: hidden; border-radius: 50% 50% 6px 6px / 36.8% 36.8% 6px 6px; }
.vorsorge-bild img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Über uns ---------- */
.ueber { padding-top: 0; }
.ueber-raster { max-width: 900px; text-align: center; padding-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--linie); }
.zitat { margin: 0 0 3rem; }
.zitat p { font-family: var(--serif); font-weight: 320; font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.personen { display: inline-flex; align-items: center; gap: 22px; text-align: left; max-width: 560px; }
.portraet {
  flex: none;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px dashed rgba(43, 38, 34, 0.3);
  background: var(--sand);
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: center;
  color: var(--tinte-weich);
}
.personen h3 { margin-bottom: 0.3rem; }
.personen p { margin: 0; color: var(--tinte-weich); font-size: 1.02rem; }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--sand); padding: clamp(80px, 10vw, 128px) 0; }
.kontakt-raster { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.kontakt h2 { margin-bottom: 1.6rem; }
.kontakt address { font-style: normal; margin-bottom: 1.6rem; }
.kontakt-liste { margin: 0; }
.kontakt-liste div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--linie); }
.kontakt-liste dt { color: var(--tinte-weich); font-size: 0.95rem; padding-top: 2px; }
.kontakt-liste dd { margin: 0; overflow-wrap: anywhere; }
.kontakt-liste a { text-decoration-color: rgba(43, 38, 34, 0.3); text-underline-offset: 3px; }
.kontakt-liste a:hover { color: var(--holz); }
.karte { min-height: 380px; border-radius: 8px; overflow: hidden; border: 1px solid var(--linie); }
.karte iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(0.55) sepia(0.12); }

/* ---------- Fuss ---------- */
.fuss { background: var(--nacht); color: var(--nacht-text); padding: clamp(64px, 8vw, 96px) 0 28px; }
.fuss-oben { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; padding-bottom: 48px; border-bottom: 1px solid rgba(238, 230, 218, 0.12); }
.fuss-satz { margin: 0; font-family: var(--serif); font-weight: 320; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
.fuss-satz em { color: var(--messing); }
.fuss-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--nacht-weich); }
.fuss-links a { font-family: var(--serif); font-size: 1.6rem; color: var(--nacht-text); text-decoration: none; }
.fuss-links a:hover { color: var(--messing); }
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 0.85rem; color: var(--nacht-weich); }

/* ---------- Leiste (Handy) ---------- */
.leiste { display: none; }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .zeige { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--weich), transform 1.1s var(--weich); transition-delay: var(--d, 0s); }
  .js .zeige.sichtbar { opacity: 1; transform: none; }

  /* Einstieg: Zeilen steigen weich auf, das Bild wird langsam scharf */
  .js .held-titel .zeile > * { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(6px); transition: opacity 1.2s var(--weich), transform 1.3s var(--weich), filter 1.2s var(--weich); }
  .js .held-titel .zeile:nth-child(2) > * { transition-delay: 0.14s; }
  .js .held-teil { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--weich), transform 1.2s var(--weich); }
  .js .held-teil:nth-of-type(1) { transition-delay: 0s; }
  .js .held-lead { transition-delay: 0.32s; }
  .js .held .knoepfe { transition-delay: 0.46s; }
  .js .bogen { opacity: 0; transition: opacity 1.6s var(--weich) 0.1s; }
  .js .bogen img { transform: scale(1.1); transition: transform 3.2s var(--weich); }
  .js .held-licht { opacity: 0; transition: opacity 2.4s ease 0.6s; }

  .bereit .held-titel .zeile > * { opacity: 1; transform: none; filter: none; }
  .bereit .held-teil { opacity: 1; transform: none; }
  .bereit .bogen { opacity: 1; }
  .bereit .bogen img { transform: scale(1); }
  .bereit .held-licht { opacity: 1; animation: atmen 9s ease-in-out 3s infinite alternate; }

  .ruf-glut { animation: glut 5s ease-in-out infinite alternate; }
}

@keyframes atmen { from { opacity: 1; } to { opacity: 0.55; } }
@keyframes glut { from { opacity: 0.55; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav a { font-size: 0.93rem; }
}

@media (max-width: 940px) {
  :root { --kopf-h: 68px; }
  .nav { display: none; }
  .held-raster, .todesfall-raster, .holz-raster, .vorsorge-raster, .kontakt-raster { grid-template-columns: 1fr; }
  .held-bild { max-width: 440px; width: 100%; margin-inline: auto; }
  .ruf { position: static; }
  .vorsorge-bild { max-width: 380px; width: 100%; }
  .holz-bild { order: 2; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; padding-bottom: 76px; }
  .kopf-tel-etikett, .kopf-tel-nr { display: none; }
  .kopf-tel-zahl { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(43, 38, 34, 0.25); }
  .kopf-tel-zahl svg { width: 19px; height: 19px; }
  .marke-bogen { width: 26px; height: 26px; }
  .marke-name { font-size: 1.25rem; }
  .marke-zusatz { font-size: 0.66rem; letter-spacing: 0.1em; }
  .held-lead { font-size: 1.1rem; }
  .knopf { width: 100%; justify-content: center; }
  .fakten { grid-template-columns: 1fr; gap: 16px; }
  .liste { grid-template-columns: 1fr; }
  .liste li { grid-template-columns: 40px 1fr; }
  .schritte::before, .schritte::after { left: 19px; }
  .schritt { grid-template-columns: 40px 1fr; gap: 16px; }
  .schritt-nr { width: 40px; height: 40px; }
  .ruf-text { padding: 24px 22px 26px; }
  .personen { flex-direction: column; text-align: center; }
  .kontakt-liste div { grid-template-columns: 1fr; gap: 0; }
  .fuss-links { align-items: flex-start; }

  .leiste {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--tinte);
    color: var(--papier);
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(34, 31, 28, 0.25);
  }
  .leiste svg { width: 19px; height: 19px; color: var(--messing); }
  .leiste strong { font-weight: 600; margin-left: 4px; }
}
