/* Bestattungsinstitut Casteleijn */

:root {
  --gold: #ccab44;
  --gold-hell: #e2c874;
  --gold-dunkel: #9d8231;
  --gold-verlauf: linear-gradient(290deg, #a8892f, #ffe9af);

  --schwarz: #000000;
  --schwarz-weich: #101010;
  --anthrazit: #1c1c1c;
  --grau-linie: #2b2b2b;

  --creme: #faf8f4;
  --creme-tief: #f2ede4;
  --weiss: #ffffff;

  --text: #23211d;
  --text-leise: #5f594e;
  --text-invers: #f4f1ea;
  --text-invers-leise: #b8b2a6;

  --wrap: 1600px;
  --gutter: 32px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 2px;
  --schatten: 0 18px 48px -28px rgba(50, 35, 29, .55);
  --uebergang: .25s cubic-bezier(.25, .46, .45, .94);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-dunkel); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  color: var(--text);
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.75rem); }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: .01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-schmal { max-width: 900px; margin: 0 auto; }
.wrap-mittel { max-width: 1180px; margin: 0 auto; }

@media (min-width: 2650px) {
  .wrap { max-width: 60vw; }
  body { font-size: 20px; }
}

section { padding: clamp(64px, 8vw, 128px) 0; }
.sektion-creme { background: var(--creme); }
.sektion-creme-tief { background: var(--creme-tief); }
.sektion-dunkel { background: var(--schwarz-weich); color: var(--text-invers); }
.sektion-dunkel h2, .sektion-dunkel h3 { color: var(--text-invers); }
.sektion-eng { padding: clamp(48px, 5vw, 80px) 0; }

/* Auszeichnungen */

.augenbrauen {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dunkel);
  margin-bottom: 1.1rem;
}
.sektion-dunkel .augenbrauen { color: var(--gold); }

.gold-text {
  background: var(--gold-verlauf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: var(--text-leise);
  line-height: 1.65;
}
.sektion-dunkel .lead { color: var(--text-invers-leise); }

.trenner-gold {
  width: 64px;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.8rem;
}
.trenner-gold.mitte { margin-left: auto; margin-right: auto; }

.mitte { text-align: center; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 17px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--uebergang), color var(--uebergang), border-color var(--uebergang);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-gold { background: var(--gold); color: #16130a; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hell); border-color: var(--gold-hell); }

.btn-dunkel { background: var(--schwarz); color: var(--text-invers); border-color: var(--schwarz); }
.btn-dunkel:hover { background: var(--anthrazit); border-color: var(--anthrazit); }

.btn-linie { background: transparent; color: var(--text); border-color: rgba(35, 33, 29, .28); }
.btn-linie:hover { border-color: var(--gold); color: var(--gold-dunkel); }

.sektion-dunkel .btn-linie, .hero .btn-linie, .band .btn-linie { color: var(--text-invers); border-color: rgba(244, 241, 234, .3); }
.sektion-dunkel .btn-linie:hover, .hero .btn-linie:hover, .band .btn-linie:hover { border-color: var(--gold); color: var(--gold); }

.btn-reihe { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-reihe.mitte { justify-content: center; }

/* Notfallleiste */

.notleiste {
  background: var(--gold);
  color: #16130a;
  font-size: .95rem;
  font-weight: 500;
}
.notleiste .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  padding-top: 11px;
  padding-bottom: 11px;
  text-align: center;
}
.notleiste a { color: #16130a; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(22, 19, 10, .4); }
.notleiste a:hover { border-color: #16130a; text-decoration: none; }

/* Kopfbereich */

.kopf {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--schwarz);
  border-bottom: 1px solid var(--grau-linie);
}
.kopf .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  position: relative;
}
.marke { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.marke img { height: 54px; width: auto; }
.marke-text { display: flex; flex-direction: column; line-height: 1.2; }
.marke-name { font-family: var(--serif); font-size: 1.35rem; color: var(--text-invers); letter-spacing: .01em; }
.marke-zusatz { font-size: .68rem; letter-spacing: .19em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-invers);
  padding: 10px 14px;
  border-bottom: 1px solid transparent;
  transition: color var(--uebergang), border-color var(--uebergang);
}
.nav a:hover { color: var(--gold); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

.kopf-tel {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-left: 10px;
  padding: 12px 22px;
  background: var(--gold);
  color: #16130a;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius);
}
.kopf-tel:hover { background: var(--gold-hell); text-decoration: none; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--grau-linie);
  color: var(--text-invers);
  width: 48px; height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span { display: block; width: 20px; height: 1px; background: currentColor; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1px; background: currentColor; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .kopf .wrap { min-height: 72px; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--schwarz);
    border-bottom: 1px solid var(--grau-linie);
    padding: 10px var(--gutter) 22px;
    gap: 0;
    display: none;
  }
  .nav.offen { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--grau-linie); }
  .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .kopf-tel { margin: 16px 0 0; justify-content: center; }
  .marke-name { font-size: 1.15rem; }
  .marke img { height: 44px; }
}

/* Hero */

.hero {
  position: relative;
  background: var(--schwarz);
  color: var(--text-invers);
  padding: clamp(72px, 10vw, 148px) 0;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 78% 12%, rgba(204, 171, 68, .16), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
}
.hero h1 { color: var(--text-invers); margin-bottom: .35em; }
.hero p { color: var(--text-invers-leise); }
.hero-bild { border: 1px solid var(--grau-linie); }
.hero-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.85); }

.hero-fakten {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--grau-linie);
  font-size: .95rem;
  color: var(--text-invers-leise);
}
.hero-fakten span { display: inline-flex; align-items: center; gap: .55rem; }
.hero-fakten span::before { content: ""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

.seitenkopf {
  background: var(--schwarz);
  color: var(--text-invers);
  padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 88px);
}
.seitenkopf h1 { color: var(--text-invers); }
.seitenkopf p { color: var(--text-invers-leise); max-width: 760px; }

/* Karten */

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 26px;
}
@media (min-width: 1100px) {
  .karten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.karte {
  background: var(--weiss);
  border: 1px solid rgba(35, 33, 29, .12);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--uebergang), box-shadow var(--uebergang), transform var(--uebergang);
}
.karte:hover { border-color: var(--gold); box-shadow: var(--schatten); transform: translateY(-3px); }
.karte img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.karte-inhalt { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.karte h3 { margin-bottom: .35em; }
.karte-claim { color: var(--gold-dunkel); font-size: .92rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 1rem; }
.karte p { color: var(--text-leise); font-size: .97rem; }
.karte-link {
  margin-top: auto;
  padding-top: 1.4rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.karte-link::after { content: "\2192"; color: var(--gold); transition: transform var(--uebergang); }
.karte:hover .karte-link::after { transform: translateX(4px); }

/* Schrittfolge */

.schritte { counter-reset: schritt; display: grid; gap: 22px; }
.schritt {
  position: relative;
  padding: 30px 32px 32px 92px;
  background: var(--weiss);
  border: 1px solid rgba(35, 33, 29, .12);
  border-radius: var(--radius);
}
.schritt::before {
  counter-increment: schritt;
  content: counter(schritt);
  position: absolute;
  left: 30px; top: 30px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold-dunkel);
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.schritt h3 { font-size: 1.25rem; margin-bottom: .3em; }
.schritt p { color: var(--text-leise); font-size: .98rem; }

@media (max-width: 640px) {
  .schritt { padding: 74px 24px 26px; }
  .schritt::before { left: 24px; top: 24px; }
}

/* Merkmale */

.merkmale { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px 40px; }
.merkmal h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; margin-bottom: .45em; }
.merkmal p { color: var(--text-leise); font-size: .97rem; }
.sektion-dunkel .merkmal p { color: var(--text-invers-leise); }
.merkmal-strich { width: 34px; height: 2px; background: var(--gold); margin-bottom: 1.1rem; }

/* Zweispalter */

.zweispalt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.zweispalt-bild img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }

/* Listen */

.liste-gold { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.liste-gold li { position: relative; padding-left: 30px; color: var(--text-leise); }
.liste-gold li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 9px; height: 9px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.sektion-dunkel .liste-gold li { color: var(--text-invers-leise); }

.liste-breit { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 13px 40px; }

/* Aufklapper */

.aufklapper { border-top: 1px solid rgba(35, 33, 29, .14); }
.aufklapper details { border-bottom: 1px solid rgba(35, 33, 29, .14); }
.aufklapper summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 46px 24px 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  position: relative;
}
.aufklapper summary::-webkit-details-marker { display: none; }
.aufklapper summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
}
.aufklapper details[open] summary::after { content: "\2013"; }
.aufklapper details > div { padding: 0 0 28px; color: var(--text-leise); max-width: 900px; }

/* Zitat */

.zitat {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.35;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.zitat-quelle {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Kontaktbereich */

.kontakt-raster {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 940px) { .kontakt-raster { grid-template-columns: 1fr; } }

.kontakt-block { display: grid; gap: 26px; margin: 0; }
.kontakt-zeile { display: flex; gap: 16px; align-items: flex-start; }
.kontakt-zeile .punkt { width: 8px; height: 8px; background: var(--gold); margin-top: .7em; flex: none; transform: rotate(45deg); }
.kontakt-zeile dt { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dunkel); margin-bottom: .25rem; }
.sektion-dunkel .kontakt-zeile dt { color: var(--gold); }
.kontakt-zeile dd { margin: 0; font-size: 1.08rem; }
.kontakt-zeile dd a { color: inherit; }
.kontakt-zeile dd span { display: block; font-size: .92rem; color: var(--text-leise); }

/* Formular */

.formular {
  background: var(--weiss);
  border: 1px solid rgba(35, 33, 29, .14);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 46px);
}
.feld-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .feld-raster { grid-template-columns: 1fr; } }
.feld { display: flex; flex-direction: column; gap: .45rem; }
.feld.voll { grid-column: 1 / -1; }
.feld label { font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--text); }
.feld input, .feld select, .feld textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--creme);
  border: 1px solid rgba(35, 33, 29, .16);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  transition: border-color var(--uebergang), background var(--uebergang);
}
.feld textarea { min-height: 148px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--weiss);
}
.pflicht-hinweis { font-size: .85rem; color: var(--text-leise); margin-top: 1.2rem; }

.zustimmung { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-leise); line-height: 1.55; }
.zustimmung input { width: 18px; height: 18px; margin-top: .18rem; flex: none; accent-color: var(--gold-dunkel); }

.honigtopf { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-meldung { display: none; padding: 18px 20px; border-radius: var(--radius); margin-top: 1.2rem; font-size: .96rem; }
.form-meldung.gut { display: block; background: #f0f6ec; border: 1px solid #b9d5a5; color: #33501f; }
.form-meldung.schlecht { display: block; background: #fdf0f0; border: 1px solid #e3b4b4; color: #7a2020; }

/* Handlungsband */

.band {
  background: var(--schwarz);
  color: var(--text-invers);
  text-align: center;
  padding: clamp(56px, 7vw, 96px) 0;
}
.band h2 { color: var(--text-invers); }
.band p { color: var(--text-invers-leise); max-width: 620px; margin-left: auto; margin-right: auto; }

/* Rechtstexte */

.rechtstext { max-width: 900px; }
.rechtstext h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-top: 2.4em; }
.rechtstext h2:first-of-type { margin-top: 0; }
.rechtstext h3 { font-size: 1.25rem; margin-top: 1.8em; }
.rechtstext p, .rechtstext li { color: var(--text-leise); font-size: 1rem; }
.rechtstext ul { padding-left: 22px; }
.hinweis-kasten {
  border-left: 3px solid var(--gold);
  background: var(--creme-tief);
  padding: 22px 26px;
  margin-bottom: 2.4rem;
  font-size: .96rem;
  color: var(--text-leise);
}

/* Fuss */

.fuss { background: var(--schwarz); color: var(--text-invers-leise); padding: clamp(56px, 6vw, 84px) 0 0; border-top: 1px solid var(--grau-linie); }
.fuss-raster { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .fuss-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss-raster { grid-template-columns: 1fr; } }
.fuss h4 { color: var(--gold); font-size: .8rem; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 1.2rem; }
.fuss a { color: var(--text-invers-leise); }
.fuss a:hover { color: var(--gold); text-decoration: none; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; font-size: .96rem; }
.fuss-marke img { height: 96px; margin-bottom: 1.6rem; }
.fuss-marke p { font-size: .96rem; max-width: 380px; }
.fuss-unten {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--grau-linie);
  padding: 24px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-size: .88rem;
}

/* Fehlerseite */

.fehlerseite { min-height: 68vh; display: flex; align-items: center; background: var(--schwarz); color: var(--text-invers); text-align: center; padding: 90px 0; }
.fehlerseite h1 { color: var(--text-invers); }
.fehler-nummer { font-family: var(--serif); font-size: clamp(5rem, 14vw, 10rem); line-height: 1; margin-bottom: .1em; color: var(--gold); }

@media (max-width: 900px) {
  .hero-raster { grid-template-columns: 1fr; }
  .hero-bild { order: -1; max-width: 480px; }
}

@media (max-width: 700px) {
  .hero-fakten { flex-direction: column; gap: 10px; }
  .btn { width: 100%; }
  .btn-reihe { flex-direction: column; align-items: stretch; }
  .notleiste .wrap { flex-direction: column; gap: 4px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .karte-inhalt { padding: 26px 22px 28px; }
  .fuss-unten { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Einwilligungs-Hinweis. Wird von app.js erzeugt und bleibt weg, solange dort keine
   Mess-ID eingetragen ist. Ein Banner ohne Tracking wuerde nach einer Einwilligung
   fuer etwas fragen, das gar nicht stattfindet. */
#consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: none;
  max-width: 620px;
  margin: 0 auto;
  padding: 24px 26px;
  background: var(--creme);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
}

#consent p {
  margin: 0 0 18px;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text);
}

#consent a { color: var(--gold-dunkel); text-decoration: underline; }

#consent .consent-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; }

#consent button {
  flex: 1 1 0;
  min-width: 160px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background var(--uebergang), box-shadow var(--uebergang);
}

#c-ok { background: var(--gold); color: var(--schwarz); }
#c-ok:hover { background: var(--gold-hell); }

#c-no { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--gold-dunkel); }
#c-no:hover { box-shadow: inset 0 0 0 2px var(--gold-dunkel); }

@media (min-width: 700px) {
  #consent { left: auto; right: 24px; bottom: 24px; }
}
