/* =========================================================================
   Beate Berdel-Mantz – Trauerrednerin
   Stylesheet  ·  modern, barrierearm, sehr gut lesbar (auch für ältere
   Nutzer:innen und auf dem Smartphone), ohne externe Requests (DSGVO).
   ========================================================================= */

/* ---------- Selbst gehostete Schriften (DSGVO-konform, kein Google-CDN) --- */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/lora-v37-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/lora-v37-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/lora-v37-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/lora-v37-latin_latin-ext-700.woff2') format('woff2');
}

/* ---------- Design-Tokens ------------------------------------------------- */
:root {
  /* Vier seriöse, klar unterscheidbare Rottöne (Menü + Sektionen) */
  --rot-home:    #A72F2A; /* Ziegelrot   – klares, warmes Tiefrot */
  --rot-ablauf:  #8E3B2F; /* Kupfer/Kastanie – dunkles Warmrot    */
  --rot-angebot: #B85C42; /* Terrakotta  – warmes Rostrot         */
  --rot-ueber:   #7B2C3F; /* Bordeaux    – dunkles Weinrot        */
  --rot-kontakt: #94454C; /* Altrot      – gedämpftes Rosé-Rot    */

  --rot-home-d:    #8a231f;
  --rot-ablauf-d:  #732e24;
  --rot-angebot-d: #9c452e;
  --rot-ueber-d:   #641f30;
  --rot-kontakt-d: #78333b;

  --rot-tief:  #4d1414; /* sehr dunkles Rot – Footer / Overlays   */
  --rot-logo:  #b23a32; /* Rot der Logo-Marke                     */

  --text:      #2b2521; /* warmes Beinahe-Schwarz, hoher Kontrast */
  --muted:     #574f49;
  --bg:        #ffffff;
  --bg-soft:   #faf5f1; /* warmes Off-White                       */
  --line:      #e7ddd4;

  --maxw: 1120px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --radius: 10px;
  --shadow: 0 6px 24px rgba(60, 30, 20, .10);

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:  'Source Sans 3', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- Reset / Grundlagen ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 112.5%;          /* 1rem = 18px – große, lesbare Basis */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;   /* Platz für die sticky Navigation    */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.75;          /* großzügiger Zeilenabstand          */
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot-ueber); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--rot-angebot);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.22; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0 0 .5em; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin: 0 0 .4em; }
p  { margin: 0 0 1.1em; max-width: 66ch; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--rot-home); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 8px 8px; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ---------- Kopfbereich mit Marke ---------------------------------------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.brand {
  display: flex; flex-direction: column; align-items: center;
  gap: .6rem; padding: 1.6rem 1rem .4rem; text-align: center;
}
.brand__mark { width: clamp(88px, 16vw, 118px); height: auto; }
.brand__name { width: clamp(230px, 52vw, 420px); height: auto; }
.brand a { display: inline-flex; flex-direction: column; align-items: center; gap: .6rem; }

/* ---------- Navigation mit 4 Rottönen ------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(60,30,20,.05);
}
.nav__inner {
  width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem; justify-content: center;
}
.nav__toggle { display: none; }
.nav__list {
  list-style: none; margin: 0; padding: 0; flex: 1 1 auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.6rem;
}
.nav__link {
  display: block; padding: 1rem .4rem; margin-top: 3px;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500;
  text-decoration: none; color: var(--text);
  border-bottom: 5px solid var(--nav-color, var(--rot-home));
  transition: color .15s, background .15s;
}
.nav__link:hover, .nav__link:focus-visible,
.nav__link[aria-current="page"] { color: var(--nav-color); }
.nav__item--home    { --nav-color: var(--rot-home); }
.nav__item--ueber   { --nav-color: var(--rot-ueber); }
.nav__item--angebot { --nav-color: var(--rot-angebot); }
.nav__item--kontakt { --nav-color: var(--rot-kontakt); }

/* Hamburger nur auf kleinen Bildschirmen */
.nav__burger {
  display: none; align-items: center; gap: .6rem;
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 1.1rem; font-weight: 600; color: var(--text);
  padding: .9rem .4rem; width: 100%; justify-content: center;
}
.nav__burger svg { width: 26px; height: 26px; }

/* Immer sichtbarer Anruf-Button in der (sticky) Menüleiste */
.nav__cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem;
  background: var(--rot-home); color: #fff; text-decoration: none; white-space: nowrap;
  padding: .58rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: 1.02rem;
  transition: background .15s, transform .12s;
}
.nav__cta:hover, .nav__cta:focus-visible { background: var(--rot-tief); transform: translateY(-1px); }
.nav__cta svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Sektionen / allgemeines Layout ------------------------------- */
main { display: block; }
.section { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { margin-bottom: 1.6rem; }
.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent, var(--rot-home)); margin-bottom: .5rem;
}
.section h2 { position: relative; }
.section h2::after {
  content: ""; display: block; width: 68px; height: 5px; margin-top: .55rem;
  border-radius: 3px; background: var(--accent, var(--rot-home));
}

/* Akzentfarbe je Sektion */
.acc-home    { --accent: var(--rot-home); }
.acc-ueber   { --accent: var(--rot-ueber); }
.acc-angebot { --accent: var(--rot-angebot); }
.acc-kontakt { --accent: var(--rot-kontakt); }

/* Zwei-Spalten-Block (Bild + Text) */
.split { display: grid; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
@media (min-width: 760px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--narrow-img { grid-template-columns: 5fr 7fr; }
  .split--img-right .split__media { order: 2; }
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Hero --------------------------------------------------------- */
.hero__media { position: relative; }
.hero__img {
  width: 100%; max-height: 62vh; object-fit: cover;
  object-position: center 38%;
}
.band {
  color: #fff; padding: clamp(2rem, 5vw, 3.4rem) 0;
  --accent: rgba(255,255,255,.9);
}
.band h2, .band h1, .band h3 { color: #fff; }
.band h2::after { background: rgba(255,255,255,.85); }
.band--home    { background: var(--rot-home); }
.band--ueber   { background: var(--rot-ueber); }
.band--angebot { background: var(--rot-angebot); }
.band--kontakt { background: var(--rot-kontakt); }
.band p { color: rgba(255,255,255,.96); }
.band strong { color: #fff; }
.band .eyebrow { color: rgba(255,255,255,.85); }
.hero-sub { font-size: 1.2rem; }

/* ---------- Listen ------------------------------------------------------- */
.checklist { list-style: none; margin: 0 0 1.2rem; padding: 0; max-width: 62ch; }
.checklist li {
  position: relative; padding-left: 2.1rem; margin-bottom: .85rem; line-height: 1.6;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .12em;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--accent, var(--rot-home));
  -webkit-mask: no-repeat center/70% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
          mask: no-repeat center/70% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}
.band .checklist li::before { background: #fff;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  font-size: 1.1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s, background .15s, color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent, var(--rot-home)); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--rot-tief); }
.btn--on-color { background: #fff; color: var(--rot-tief); }
.btn--on-color:hover { background: #fff5ef; }
.btn--outline { background: transparent; color: var(--accent, var(--rot-home)); border-color: currentColor; }

/* ---------- Kontakt ------------------------------------------------------ */
.contact-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 5fr 6fr; } }
.contact-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.7rem;
}
.contact-card h3 { margin-top: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-list a { color: var(--text); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--rot-kontakt); text-decoration: underline; }
.contact-list .ico { color: var(--rot-kontakt); flex: 0 0 auto; margin-top: .2rem; }
.contact-list svg { width: 22px; height: 22px; }

form.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; }
.field input, .field textarea {
  font: inherit; padding: .8rem .9rem; border: 2px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--text); width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--rot-kontakt); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; }
.consent input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; flex: 0 0 auto; }
.form-note { font-size: .9rem; color: var(--muted); }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--rot-tief); color: rgba(255,255,255,.9); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: auto 1fr auto; align-items: start; } }
.site-footer img.footer-mark { width: 96px; height: auto; display: block; }
.footer-top-link { display: inline-block; border-radius: 8px; transition: opacity .15s, transform .15s; }
.footer-top-link:hover, .footer-top-link:focus-visible { opacity: .78; transform: translateY(-2px); }
.site-footer h3 { color: #fff; font-size: 1.2rem; margin: 0 0 .6rem; }
.site-footer a { color: #fff; }
.footer-addr { font-style: normal; line-height: 1.9; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
/* Rot-Streifen als Wiederaufnahme der Menüfarben */
.color-strip { display: flex; height: 7px; }
.color-strip span { flex: 1; }
.color-strip .s1 { background: var(--rot-home); }
.color-strip .s2 { background: var(--rot-ueber); }
.color-strip .s3 { background: var(--rot-angebot); }
.color-strip .s4 { background: var(--rot-kontakt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18); margin-top: 2rem; padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .92rem; color: rgba(255,255,255,.75);
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ------------------------ */
.legal { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: .8rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.legal p, .legal li { max-width: none; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: .5rem; }
.placeholder {
  background: #fff4d6; color: #6a4a00; border: 1px dashed #d9a400;
  padding: .05em .45em; border-radius: 5px; font-weight: 600; white-space: nowrap;
}
.note-box {
  background: var(--bg-soft); border-left: 5px solid var(--rot-angebot);
  border-radius: 8px; padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: .98rem;
}
.back-link { display: inline-block; margin-top: 2.4rem; font-weight: 600; }

/* ---------- Responsive: Navigation als Menü ------------------------------ */
@media (max-width: 719px) {
  html { font-size: 110%; }
  /* Obere Zeile: [Menü] ........ [Anrufen]; die Menüpunkte klappen darunter auf */
  .nav__inner { flex-wrap: wrap; gap: .3rem .6rem; }
  .nav__burger { display: flex; flex: 1 1 auto; width: auto; justify-content: flex-start; padding-left: .1rem; }
  .nav__cta { order: 1; padding: .5rem .95rem; font-size: .98rem; }
  .nav__list {
    order: 2; flex: 1 1 100%;
    flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__toggle:checked ~ .nav__list { max-height: 520px; }
  .nav__link {
    margin-top: 0; padding: .95rem 1rem; text-align: center;
    border-bottom: 0; border-left: 6px solid var(--nav-color);
    background: var(--bg-soft);
  }
  .nav__item { border-top: 1px solid var(--line); }
  .hero__img { max-height: 44vh; }
}

/* Sichtbarkeit des Menü-Icons steuern (CSS-only Toggle) */
.nav__burger .icon-close { display: none; }
.nav__toggle:checked ~ .nav__burger .icon-open  { display: none; }
.nav__toggle:checked ~ .nav__burger .icon-close { display: inline; }

@media print {
  .nav, .site-footer .footer-nav, .skip-link { display: none; }
  a { color: #000; }
}

/* =========================================================================
   Ergänzungen: 5. Menüpunkt „Ablauf", Anrufen-CTA, Ablauf-Schritte
   ========================================================================= */

/* 5. Rotton in Navigation, Akzenten und Bändern */
.nav__item--ablauf { --nav-color: var(--rot-ablauf); }
.acc-ablauf   { --accent: var(--rot-ablauf); }
.band--ablauf { background: var(--rot-ablauf); }

/* Fußzeilen-Farbstreifen jetzt mit 5 Tönen (in Menü-Reihenfolge) */
.color-strip .s1 { background: var(--rot-home); }
.color-strip .s2 { background: var(--rot-ablauf); }
.color-strip .s3 { background: var(--rot-angebot); }
.color-strip .s4 { background: var(--rot-ueber); }
.color-strip .s5 { background: var(--rot-kontakt); }

/* Hero: Handlungs-Buttons nebeneinander, „Anrufen" zuerst */
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin: .4rem 0 1.7rem; }
.btn--call { display: inline-flex; align-items: center; gap: .6rem; }
.btn--call svg { width: 22px; height: 22px; fill: currentColor; }
.hero-actions .secondary-link { color: #fff; font-weight: 600; text-decoration: underline; }
.hero-actions .secondary-link:hover { text-decoration: none; }

/* Ablauf-Schritte als nummerierte Karten */
.steps { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.4rem 1.3rem 4.2rem; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.1rem; top: 1.2rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--accent, var(--rot-ablauf)); color: #fff;
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0 0 .3rem; }
.step p { margin: 0; }

/* Erfolg-/Hinweis-Meldung (Kontaktformular) */
.form-status {
  border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 600;
}
.form-status--ok  { background: #e7f4e9; border: 1px solid #b6dcbd; color: #23632f; }
.form-status--err { background: #fbe9e7; border: 1px solid #e5b8b2; color: #8a231f; }
/* Honeypot-Feld (unsichtbar für Menschen, Falle für Spam-Bots) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

