/* ==========================================================
   Bestattungen Serk & Co. – Stylesheet
   Farben und Schrift zentral hier oben anpassen.
   ========================================================== */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }

:root {
  --sand: #a68c74;        /* Grundfarbe Seite */
  --sand-dark: #98795f;   /* Akzent */
  --cream: #f6f1ea;       /* Kopfzeile, Panels */
  --ink: #252525;         /* Text */
  --dark: #171717;        /* Fußzeile */
  --red: #7d1416;         /* Logo-Rot, Links */
  --white: #fff;
  --radius: 36px;
  --header-h: 76px;
  --wrap: 1140px;
  --font: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text: clamp(1.15rem, 0.95rem + 0.6vw, 1.45rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text);
  line-height: 1.55;
  font-weight: 500;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--red); }
h1, h2, h3 { font-weight: 500; line-height: 1.08; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cream); padding: .5em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.center { text-align: center; }

/* Überschriften-Größen */
h1 { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.125rem); }        /* „Wir sind für Sie da“ – max. 50px */
h2 { font-size: clamp(2.6rem, 1.2rem + 5.4vw, 6.25rem); }        /* große Abschnittstitel – max. 100px wie bisher */
.h2-small { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.125rem); }
h3 { font-size: 1.35em; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(246, 241, 234, .97);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.header-inner {
  height: var(--header-h);
  width: min(1280px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; gap: 1.25rem;
}
.brand img { width: auto; height: 52px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
.call {
  display: inline-flex; align-items: center; gap: .45em;
  background: var(--red); color: var(--white); text-decoration: none;
  padding: .45em .95em; border-radius: 999px; font-weight: 600; font-size: 1.1rem; white-space: nowrap;
}
.call:hover { color: var(--white); background: #5f0f10; }
.call svg { width: 1.05em; height: 1.05em; fill: currentColor; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--ink); }
.bars, .bars::before, .bars::after { display: block; width: 26px; height: 2px; background: currentColor; margin-inline: auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -8px; } .bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1180px) {
  :root { --header-h: 64px; }
  .brand img { height: 42px; }
  .menu-toggle { display: block; }
  .call { margin-left: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--cream); box-shadow: 0 10px 20px rgba(0,0,0,.12);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem 0 1rem; }
  .main-nav a { display: block; padding: .7rem 24px; font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .call span { display: none; }
  .call { padding: .6em; }
  .call svg { width: 1.35em; height: 1.35em; }
}

main { padding-top: var(--header-h); }

/* ---------- Bildbänder mit Hintergrundfoto ---------- */
.band {
  position: relative; color: var(--white);
  background-color: #3a3028; background-size: cover; background-position: center;
  padding: clamp(56px, 8vw, 75px) 0;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.band > * { position: relative; }
.band--bruecke { background-image: url("../img/bruecke-900.webp"); }
.band--abend  { background-image: url("../img/abend-900.webp"); }
.band--ufer   { background-image: url("../img/ufer-900.webp"); }
.band--sund   { background-image: url("../img/sund-900.webp"); }
@media (min-width: 901px) {
  .band--bruecke { background-image: url("../img/bruecke-1920.webp"); }
  .band--abend  { background-image: url("../img/abend-1920.webp"); }
  .band--ufer   { background-image: url("../img/ufer-1920.webp"); }
  .band--sund   { background-image: url("../img/sund-1920.webp"); }
}
/* Parallax-Effekt nur auf großen Bildschirmen mit Maus (auf Handys ruckelt er) */
@media (min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .band { background-attachment: fixed; }
}

.hero { min-height: 400px; display: grid; place-items: center; text-align: center; }
.hero::before { background: rgba(0,0,0,.3); }
.band-content { width: min(var(--wrap), 100% - 32px); }
.quote-mark { width: 44px; height: 33px; fill: var(--white); margin: 0 auto 1.2rem; display: block; }
.hero-author { margin: 1em 0 0; font-style: italic; font-weight: 400; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); opacity: .9; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero-quote { font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem); font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.35); margin: 0; }

/* ---------- Fotos ---------- */
.photo { border-radius: var(--radius); object-fit: cover; aspect-ratio: 2 / 3; width: 100%; background: rgba(0,0,0,.08); }

/* ---------- Intro ---------- */
.intro { padding: clamp(40px, 6vw, 75px) 0; }
.intro-grid {
  width: min(1280px, 100% - 32px); margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); align-items: stretch;
}
/* Bilder exakt so hoch wie der Textkasten */
.intro-img { height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center; }
.panel { background: rgba(246, 241, 234, .55); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); text-align: center; }
.intro-text p { margin-bottom: .9em; }
@media (min-width: 901px) {
  .intro-grid { width: min(1400px, 100% - 32px); }
  .intro-text { font-size: clamp(1rem, .7rem + .55vw, 1.2rem); line-height: 1.5; padding: clamp(24px, 2.4vw, 36px); }
  .intro-text h1 { font-size: clamp(2.2rem, 1.2rem + 1.6vw, 3.125rem); }
  .intro-img--rechts { object-position: 40% center; }
}
.signature { font-weight: 600; margin: 1.4em 0 0 !important; }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; max-width: 680px; }
  .intro-img { display: none; }
}

/* ---------- Trauerfall: Listen beider Spalten auf gleicher Höhe ---------- */
.trauerfall { padding: clamp(48px, 7vw, 75px) 0; }
.two-col-aligned {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 72px);
  grid-template-areas: "ha hb" "la lb";
  align-items: start;
}
.two-col-aligned h2 { text-align: center; align-self: start; margin-bottom: .6em; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.125rem); text-wrap: balance; }
.two-col-aligned h2.col-a { grid-area: ha; }
.two-col-aligned h2.col-b { grid-area: hb; }
.two-col-aligned .list-block.col-a { grid-area: la; }
.two-col-aligned .list-block.col-b { grid-area: lb; }
.list-block ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.list-block li { margin-bottom: .35em; }
.list-block li::marker { color: var(--red); }
.list-block .label { font-weight: 600; margin-bottom: .4em; }
.phone-callout { margin-top: 1.4em; font-weight: 600; }
.phone-callout a { font-size: 1.6em; text-decoration: none; color: var(--red); white-space: nowrap; }
@media (max-width: 760px) {
  .two-col-aligned { grid-template-columns: 1fr; grid-template-areas: "ha" "la" "hb" "lb"; }
  .two-col-aligned .list-block.col-a { margin-bottom: 2.5rem; }
}

/* ---------- Zweispaltig: Bild + Text ---------- */
.split { padding: clamp(48px, 7vw, 75px) 0; }
.split-grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split-grid--rev { grid-template-columns: 1fr 380px; }
.split-text { text-align: center; max-width: 40em; margin-inline: auto; }
.split-text.lead { font-weight: 600; font-size: 1.08em; margin-block: 0; }
.band .split-text { text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.band .photo { max-width: 380px; }
@media (max-width: 900px) {
  .split-grid, .split-grid--rev { grid-template-columns: 1fr; }
  .split-grid > .photo, .split-grid > .carousel { max-width: 420px; width: 100%; margin-inline: auto; }
  .split-grid--rev > .photo { order: 2; }
}

/* ---------- Karussell ---------- */
.carousel { position: relative; }
.track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius); scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track > img { flex: 0 0 100%; scroll-snap-align: center; border-radius: 0; }
.carousel-btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(246, 241, 234, .85); color: var(--ink); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center;
}
.carousel-btn:hover { background: var(--cream); }
.carousel-btn--prev { left: 10px; } .carousel-btn--next { right: 10px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid var(--ink); background: transparent; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--ink); }
.band .dots button { border-color: var(--white); }
.band .dots button[aria-current="true"] { background: var(--white); }

/* ---------- Leistungen ---------- */
.services { list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; columns: 2 340px; column-gap: 56px; }
.services li { break-inside: avoid; padding: .5em 0 .5em 1.6em; position: relative; border-bottom: 1px solid rgba(255,255,255,.25); }
.services li::before { content: ""; position: absolute; left: 0; top: calc(.5em + .74em); width: .7em; height: 1px; background: var(--white); }

/* ---------- Team ---------- */
.team { padding: clamp(48px, 7vw, 75px) 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.member h3 { margin: .8em 0 .4em; text-align: center; }
.member p { font-size: .92em; text-align: center; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }


/* ---------- Bewertungen & Karte ---------- */
.kontakt { padding: clamp(48px, 7vw, 75px) 0; }
.kontakt-grid > * { min-width: 0; }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; column-gap: clamp(32px, 5vw, 64px); align-items: start; }
/* Überschriften und Inhalte beider Spalten jeweils auf gleicher Höhe */
@media (min-width: 901px) {
  .kontakt-grid > .reviews, .kontakt-grid > .anfahrt { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  .kontakt-grid h2 { align-self: end; }
}
.kontakt-body { min-width: 0; }
.anfahrt .map { margin-bottom: 1rem; }
.anfahrt address { margin-top: 1rem; }
@media (max-width: 900px) { .kontakt-grid { grid-template-columns: 1fr; row-gap: 48px; } }
.reviews-summary { font-weight: 600; margin: .8em 0 0; }
.stars { color: #e7b416; letter-spacing: .08em; }
.review-list {
  display: flex; gap: 16px; align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.review-list::-webkit-scrollbar { display: none; }
.review-list > * { flex: 0 0 100%; scroll-snap-align: start; }
.review { margin: 0; background: rgba(246, 241, 234, .6); border-radius: 22px; padding: 18px 22px; display: flex; flex-direction: column; }
.review figcaption { margin-top: auto !important; padding-top: .6em; }
.review .more { align-self: flex-start; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-size: .95em; white-space: pre-line; }
.review.clamped blockquote p { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review figcaption { margin-top: .6em; font-weight: 600; font-size: .9em; display: flex; flex-wrap: wrap; gap: .3em .8em; align-items: baseline; }
.review figcaption a { text-decoration: none; }
.review .meta { font-weight: 500; opacity: .75; }
.more { background: none; border: 0; padding: 0; margin-top: .4em; font: inherit; font-size: .9em; text-decoration: underline; cursor: pointer; color: var(--red); }
.review-source { font-size: .85em; opacity: .8; margin: .8em 0 0; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1rem; }
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--white); border: 1px solid var(--ink); border-radius: 999px; padding: .55em 1.3em;
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); }
address { font-style: normal; margin-bottom: 1.2rem; }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #cbbba9; display: grid; place-items: center; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-consent { max-width: 26em; text-align: center; padding: 24px; font-size: .95em; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--dark); color: #e9e4de; padding: 48px 0 24px; font-size: 1.05rem; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 24px; }
.footer-name { font-size: 1.3em; font-weight: 600; margin-bottom: .3em; }
.copyright { text-align: center; font-size: .9rem; opacity: .7; margin: 32px 16px 0; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page { padding: clamp(40px, 6vw, 72px) 0; }
.page .container { max-width: 860px; }
.page .panel { text-align: left; }
.page h1 { margin-bottom: .6em; }
.page h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); margin-top: 1.4em; }
.page h3 { font-size: 1.25em; margin-top: 1.2em; }
.page h4 { font-size: 1.05em; margin: 1em 0 .3em; }
.page p, .page li { font-size: .95em; overflow-wrap: anywhere; }

/* Handy: Team und Bewertungen als Wisch-Karussell */
@media (max-width: 700px) {
  .team-grid, .review-list {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 0 16px 4px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .team-grid::-webkit-scrollbar, .review-list::-webkit-scrollbar { display: none; }
  .team-grid > *, .review-list > * { flex: 0 0 86%; scroll-snap-align: start; }
  .review.clamped blockquote p { -webkit-line-clamp: 4; }
}
@media (min-width: 701px) { .team-grid + .swipe-nav { display: none; } }
.swipe-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.swipe-nav .dots { margin: 0; }
.swipe-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px;
}
.swipe-arrow:hover { background: var(--ink); color: var(--white); }
.swipe-arrow:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
.swipe-hint { display: none; text-align: center; font-size: .85em; opacity: .75; margin: .2em 0 0; }
@media (max-width: 700px) { .swipe-hint { display: block; } }
