/* =====================================================================
   Helmut Witzke Bestattungen – Frontend
   Ruhig, gut lesbar, mobil zuerst. Keine externen Abhängigkeiten.
   ===================================================================== */

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-latin-italic.woff2') format('woff2');
}

:root {
  --bg: #f6f3ed;
  --surface: #ffffff;
  --surface-alt: #ece7dd;
  --ink: #1f2933;
  --ink-soft: #4a5560;
  --ink-muted: #5c6670;
  --accent: #2f4f6f;
  --accent-dark: #22394f;
  --accent-soft: #dfe7ee;
  --brass: #9a7b3c;
  --line: #d9d2c5;
  --ok: #2e7d4f;
  --error: #a3392e;
  --error-bg: #fbe9e6;
  --ok-bg: #e4f2ea;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 41, 51, .06), 0 8px 24px rgba(31, 41, 51, .06);
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --wrap: 72rem;
  --text: 46rem;
  /* Bereichsfarben – im Backend unter Einstellungen › Farben überschreibbar (uploads/theme.css) */
  --topbar-bg: var(--accent-dark); --topbar-text: #dfe7ee; --topbar-phone: #fff;
  --header-bg: var(--surface); --nav-link: var(--ink); --nav-active: var(--accent);
  --btn-bg: var(--accent); --btn-text: #fff; --btn-hover-bg: var(--accent-dark);
  --hero-card-bg: var(--accent-dark);
  --cta-bg: var(--accent-dark); --cta-text: #dfe7ee; --cta-title: #fff; --cta-btn-bg: var(--brass); --cta-btn-hover-bg: #7f6530;
  --notice-bg: var(--brass); --notice-text: #fff;
  --footer-bg: var(--surface); --footer-text: var(--ink-soft); --footer-title: var(--ink); --footer-muted: var(--ink-muted); --footer-link: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
/* Reduzierte Bewegung: als eigene Regel (verschachtelte Regeln gelten nicht für Pseudo-Elemente wie ::before) */
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { transition: none !important; animation: none !important; } }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  @media (prefers-reduced-motion: reduce) { scroll-behavior: auto; }
}

body { margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  @media print { background: #fff; color: #000; font-size: 11pt; }
}
body.nav-open { overflow: hidden; }

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .15em;
  @media print { color: #000; text-decoration: underline; }
}
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 3px;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); margin-top: 1.5em; }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); margin-top: 1.4em; }
h4 { font-size: 1.1rem; margin-top: 1.2em; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink-soft); max-width: var(--text); }
.eyebrow { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: .75rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: .5rem; }

/* --------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.btn-primary:hover { background: var(--btn-hover-bg); border-color: var(--btn-hover-bg); color: var(--btn-text); }
.btn-secondary { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); background: var(--surface); }
.btn-large { font-size: 1.1rem; padding: .9rem 1.6rem; }
.btn-small { font-size: .95rem; padding: .5rem 1rem; min-height: 40px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }

/* --------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.preview-bar { background: #fff3cd; color: #5c4400; text-align: center; padding: .5rem 1rem; font-size: .95rem; }
.notice-bar { background: var(--notice-bg); color: var(--notice-text); text-align: center; padding: .55rem 0; font-size: 1rem; }
.topbar { background: var(--topbar-bg); color: var(--topbar-text); font-size: .95rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.5rem; }
.topbar-text { display: none;
  @media (min-width: 640px) { display: inline; }
}
.topbar-phone { color: var(--topbar-phone); font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; padding: .35rem 0; }
.topbar-phone:hover { color: var(--topbar-phone); text-decoration: underline; }

.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; flex-wrap: wrap;
  @media (min-width: 960px) { flex-wrap: nowrap; }
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--accent-dark); flex: 1 1 0; min-width: 0;
  @media (min-width: 960px) { flex: 0 1 auto; }
}
.brand-mark { color: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.05rem, .9rem + .8vw, 1.3rem); }
.brand-claim { font-size: .85rem; color: var(--ink-muted); }
/* Eigenes Logo (Einstellungen › Logo): feste Höhe, Breite folgt dem Seitenverhältnis */
.brand-logo { flex: none; width: auto; height: var(--logo-h, 56px); max-width: min(100%, 22rem); object-fit: contain; object-position: left center; }
.brand-logo-s { --logo-h: 44px; } .brand-logo-m { --logo-h: 56px; } .brand-logo-l { --logo-h: 72px; } .brand-logo-xl { --logo-h: 90px; }
@media (max-width: 639px) { .brand-logo-l, .brand-logo-xl { --logo-h: 60px; } }

.nav-toggle { display: inline-flex; align-items: center; gap: .6rem; background: none; border: 2px solid var(--line); border-radius: 999px; padding: .5rem .9rem; font: inherit; font-weight: 600; color: var(--nav-active); cursor: pointer; min-height: 44px;
  @media (min-width: 960px) { display: none; }
}
.nav-toggle-bars { position: relative; width: 20px; height: 2px; background: currentColor; display: block; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform .2s; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; width: 100%; flex-basis: 100%; order: 3;
  @media (min-width: 960px) { display: block; width: auto; flex-basis: auto; order: 0; }
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line);
  @media (min-width: 960px) { flex-direction: row; gap: .1rem; margin: 0; border: 0; }
}
.site-nav a { display: block; padding: .85rem .25rem; text-decoration: none; color: var(--nav-link); font-weight: 600; border-bottom: 1px solid var(--line);
  @media (min-width: 960px) { padding: .55rem .8rem; border: 0; border-radius: 6px; font-size: 1rem; }
}
.site-nav a:hover { color: var(--nav-active);
  @media (min-width: 960px) { background: color-mix(in srgb, var(--nav-active) 12%, transparent); }
}
.site-nav a[aria-current="page"] { color: var(--nav-active); box-shadow: inset 4px 0 0 var(--brass); padding-left: .85rem;
  @media (min-width: 960px) { box-shadow: inset 0 -3px 0 var(--brass); padding-left: .8rem; background: none; border-radius: 0; }
}

/* --------------------------------------------------------------------
   Hero (Startseite)
   ------------------------------------------------------------------ */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); padding: 2.5rem 0 3rem; border-bottom: 1px solid var(--line);
  @media (min-width: 880px) { padding: 4rem 0; }
}
.hero-grid { display: grid; gap: 2rem; align-items: start;
  @media (min-width: 880px) { grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
}
.hero-text h1 { max-width: 20ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-card { background: var(--hero-card-bg); color: #e6edf3; padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card p { margin-bottom: .6rem; }
.hero-card a { color: #fff; }
.hero-card-title { color: #fff; font-size: 1.1rem; margin: 0 0 .5rem; }
.hero-card-phone { font-family: var(--font-head); font-size: clamp(1.7rem, 1.4rem + 1.5vw, 2.3rem); font-weight: 600; text-decoration: none; display: block; margin-bottom: .5rem; }
.hero-card-address { color: #c9d5df; }

/* --------------------------------------------------------------------
   Abschnitte
   ------------------------------------------------------------------ */
.section { padding: 3rem 0;
  @media (min-width: 880px) { padding: 4rem 0; }
}
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: var(--text); margin-bottom: 1.5rem; }
.section-head h2 { margin-top: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem;
  @media (min-width: 760px) { grid-template-columns: repeat(3, 1fr); }
}
.steps li { counter-increment: step; position: relative; padding: 1.1rem 1.25rem 1.1rem 4rem; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--font-head); }

.about-grid { display: grid; gap: 2rem;
  @media (min-width: 800px) { grid-template-columns: 1fr 400px; align-items: start; }
}
.about-figure { margin: 0; max-width: 400px; }
.about-figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-figure figcaption { font-size: .9rem; color: var(--ink-muted); margin-top: .6rem; }
@media (min-width: 800px) {  .about-text h2 { margin-top: 0; } }

.card-grid { display: grid; gap: 1rem;
  @media (min-width: 600px) { grid-template-columns: repeat(2, 1fr); }
  @media (min-width: 960px) { grid-template-columns: repeat(4, 1fr); }
}
.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.section-alt .card, .tpl-bestattungsarten .card { background: var(--surface); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); color: var(--ink); }
.card-title { margin: 0 0 .5rem; font-size: 1.2rem; color: var(--accent-dark); }
.card p { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.card-more { color: var(--accent); font-weight: 600; text-decoration: none; }
.card-more::after { content: ' →'; }
.card-media { margin: -1.25rem -1.25rem 1rem; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 4 / 3; background: var(--surface-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 960px) {  .card-grid-large { grid-template-columns: repeat(3, 1fr); } }

.services-grid { display: grid; gap: 2rem; align-items: center;
  @media (min-width: 800px) { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
}
.services-figure { margin: 0; }
.services-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.services-grid h2 { margin-top: 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .5rem; }
.check-list li::before { content: ''; position: absolute; left: .2rem; top: .55rem; width: .55rem; height: .95rem; border: solid var(--ok); border-width: 0 3px 3px 0; transform: rotate(45deg); }

.teaser-grid { display: grid; gap: 1rem;
  @media (min-width: 760px) { grid-template-columns: repeat(3, 1fr); }
}
.teaser { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.teaser h3 { margin-top: 0; }
.teaser h3 a { text-decoration: none; color: var(--accent-dark); }
.teaser p { color: var(--ink-soft); }
.teaser-contact { background: var(--accent-soft); }

/* --------------------------------------------------------------------
   Seitenkopf, Inhalt, Seitenleiste
   ------------------------------------------------------------------ */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.5rem 0 2rem; }
.page-head h1 { max-width: 24ch; }
.page-head .lead { margin-bottom: 0; }
.breadcrumbs { font-size: .9rem; margin-bottom: 1rem; color: var(--ink-muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li + li::before { content: '›'; margin-right: .35rem; color: var(--ink-muted); }
.breadcrumbs a { color: var(--ink-soft); }

.content-grid { display: grid; gap: 2.5rem; padding: 2.5rem 0 3rem; }
.content-main { min-width: 0; max-width: var(--text); }
.content-aside { min-width: 0; }
@media (min-width: 900px) { .content-grid.has-aside { grid-template-columns: minmax(0, 1fr) 18rem; } }

.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.8rem); }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brass); }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 4px solid var(--brass); background: var(--surface); font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; font-style: normal; font-size: .9rem; color: var(--ink-muted); margin-top: .5rem; font-family: var(--font-body); }
.prose img { border-radius: var(--radius); margin: 1rem 0; }
/* Bildgröße und -ausrichtung aus dem Editor (Klassen img-w-*, img-left/center/right).
   Nur die Breite wird gesetzt, die Höhe folgt automatisch – das Seitenverhältnis bleibt erhalten. */
.prose { display: flow-root; }
.prose img[class*="img-w-"] { height: auto; }
.prose .img-w-10 { width: 10%; } .prose .img-w-15 { width: 15%; } .prose .img-w-20 { width: 20%; } .prose .img-w-25 { width: 25%; }
.prose .img-w-30 { width: 30%; } .prose .img-w-33 { width: 33.333%; } .prose .img-w-35 { width: 35%; } .prose .img-w-40 { width: 40%; }
.prose .img-w-45 { width: 45%; } .prose .img-w-50 { width: 50%; } .prose .img-w-55 { width: 55%; } .prose .img-w-60 { width: 60%; }
.prose .img-w-65 { width: 65%; } .prose .img-w-66 { width: 66.666%; } .prose .img-w-70 { width: 70%; } .prose .img-w-75 { width: 75%; }
.prose .img-w-80 { width: 80%; } .prose .img-w-85 { width: 85%; } .prose .img-w-90 { width: 90%; } .prose .img-w-95 { width: 95%; }
.prose .img-w-100 { width: 100%; }
.prose .img-center { margin-left: auto; margin-right: auto; }
.prose .img-left { float: left; margin: .3rem 1.5rem 1rem 0; }
.prose .img-right { float: right; margin: .3rem 0 1rem 1.5rem; }
/* Smartphones: kein Textumfluss, umflossene Bilder in voller Breite */
@media (max-width: 599px) {
  .prose .img-left, .prose .img-right { float: none; width: 100%; margin: 1rem 0; }
}
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th, .prose table tr:first-child td { color: var(--accent-dark); font-weight: 600; }
.prose .hinweis, .prose .info-box { background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0; }
.prose .hinweis p:last-child, .prose .info-box p:last-child { margin-bottom: 0; }
.prose-wide { max-width: var(--text); margin-bottom: 2rem; }
.prose :target { scroll-margin-top: 1rem; }
.prose dfn, .prose strong.begriff { font-style: normal; font-weight: 700; color: var(--accent-dark); }
/* Schriftarten aus dem Editor (Klassen ql-font-*) – alle Schriften selbst gehostet, Laden nur bei Verwendung */
@font-face { font-family: 'Arimo'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/arimo-latin.woff2') format('woff2'); }
@font-face { font-family: 'Tinos'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/tinos-latin.woff2') format('woff2'); }
@font-face { font-family: 'Cousine'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/cousine-latin.woff2') format('woff2'); }
@font-face { font-family: 'Gelasio'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/gelasio-latin.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/playfair-latin.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/garamond-latin.woff2') format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/merriweather-latin.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/cormorant-latin.woff2') format('woff2'); }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/baskerville-latin.woff2') format('woff2'); }
@font-face { font-family: 'Crimson Text'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/crimson-latin.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/cinzel-latin.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/montserrat-latin.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/raleway-latin.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/opensans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/lato-latin.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/nunito-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/poppins-latin.woff2') format('woff2'); }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/josefin-latin.woff2') format('woff2'); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/quicksand-latin.woff2') format('woff2'); }
@font-face { font-family: 'Dancing Script'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/dancing-script-latin.woff2') format('woff2'); }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/great-vibes-latin.woff2') format('woff2'); }
@font-face { font-family: 'Parisienne'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/parisienne-latin.woff2') format('woff2'); }
@font-face { font-family: 'Sacramento'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/sacramento-latin.woff2') format('woff2'); }
@font-face { font-family: 'Alex Brush'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/alexbrush-latin.woff2') format('woff2'); }
@font-face { font-family: 'Pinyon Script'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/pinyon-latin.woff2') format('woff2'); }
@font-face { font-family: 'Satisfy'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/satisfy-latin.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/caveat-latin.woff2') format('woff2'); }
.ql-font-serif { font-family: 'Lora', Georgia, serif; }
.ql-font-playfair { font-family: 'Playfair Display', Georgia, serif; }
.ql-font-garamond { font-family: 'EB Garamond', Garamond, serif; font-size: 1.08em; }
.ql-font-merriweather { font-family: 'Merriweather', Georgia, serif; }
.ql-font-cormorant { font-family: 'Cormorant Garamond', Garamond, serif; font-size: 1.12em; }
.ql-font-baskerville { font-family: 'Libre Baskerville', Georgia, serif; }
.ql-font-crimson { font-family: 'Crimson Text', Georgia, serif; font-size: 1.08em; }
.ql-font-cinzel { font-family: 'Cinzel', Georgia, serif; }
.ql-font-montserrat { font-family: 'Montserrat', Arial, sans-serif; }
.ql-font-raleway { font-family: 'Raleway', Arial, sans-serif; }
.ql-font-opensans { font-family: 'Open Sans', Arial, sans-serif; }
.ql-font-lato { font-family: 'Lato', Arial, sans-serif; }
.ql-font-nunito { font-family: 'Nunito', Arial, sans-serif; }
.ql-font-poppins { font-family: 'Poppins', Arial, sans-serif; }
.ql-font-josefin { font-family: 'Josefin Sans', Arial, sans-serif; }
.ql-font-quicksand { font-family: 'Quicksand', Arial, sans-serif; }
.ql-font-hand { font-family: 'Dancing Script', cursive; font-size: 1.3em; line-height: 1.3; }
.ql-font-vibes { font-family: 'Great Vibes', cursive; font-size: 1.45em; line-height: 1.3; }
.ql-font-parisienne { font-family: 'Parisienne', cursive; font-size: 1.35em; line-height: 1.3; }
.ql-font-sacramento { font-family: 'Sacramento', cursive; font-size: 1.45em; line-height: 1.3; }
.ql-font-alexbrush { font-family: 'Alex Brush', cursive; font-size: 1.45em; line-height: 1.3; }
.ql-font-pinyon { font-family: 'Pinyon Script', cursive; font-size: 1.45em; line-height: 1.3; }
.ql-font-satisfy { font-family: 'Satisfy', cursive; font-size: 1.3em; line-height: 1.3; }
.ql-font-caveat { font-family: 'Caveat', cursive; font-size: 1.3em; line-height: 1.3; }
.ql-font-arial { font-family: Arial, 'Arimo', Helvetica, sans-serif; }
.ql-font-verdana { font-family: Verdana, Geneva, sans-serif; }
.ql-font-tahoma { font-family: Tahoma, Geneva, sans-serif; }
.ql-font-trebuchet { font-family: 'Trebuchet MS', Helvetica, sans-serif; }
.ql-font-georgia { font-family: Georgia, 'Gelasio', 'Times New Roman', serif; }
.ql-font-times { font-family: 'Times New Roman', 'Tinos', Times, serif; }
.ql-font-palatino { font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif; }
.ql-font-courier { font-family: 'Courier New', 'Cousine', Courier, monospace; }
.content-figure { margin: 0 0 1.5rem; }
.content-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.content-figure figcaption { font-size: .9rem; color: var(--ink-muted); margin-top: .5rem; }
@media (min-width: 700px) { .content-figure-inline { float: right; max-width: 300px; margin: 0 0 1rem 1.5rem; } }
/* Seitenbild mit Position/Breite aus dem Backend; steht in .prose, damit der Text darum herum
   und unterhalb des Bildes wieder über die volle Spaltenbreite läuft */
.prose .content-figure img { width: 100%; height: auto; margin: 0; }
.prose .content-figure.fig-top { margin: 0 auto 1.5rem; }
.content-figure.fig-w-25 { width: 25%; } .content-figure.fig-w-33 { width: 33.333%; } .content-figure.fig-w-40 { width: 40%; }
.content-figure.fig-w-50 { width: 50%; } .content-figure.fig-w-60 { width: 60%; } .content-figure.fig-w-66 { width: 66.666%; }
.content-figure.fig-w-75 { width: 75%; } .content-figure.fig-w-100 { width: 100%; }
.content-figure.fig-right { float: right; margin: .3rem 0 1rem 1.75rem; }
.content-figure.fig-left { float: left; margin: .3rem 1.75rem 1rem 0; }
@media (max-width: 599px) {
  .content-figure.fig-right, .content-figure.fig-left { float: none; width: 100%; margin: 0 0 1.5rem; }
}
.stand { font-size: .9rem; color: var(--ink-muted); margin-top: 2rem; border-top: 1px solid var(--line); padding-top: .75rem; }

.arten-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 1rem; }
.arten-nav-title { font-size: 1.05rem; margin: 0 0 .75rem; }
.arten-nav-title a { text-decoration: none; color: var(--accent-dark); }
.arten-nav ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.arten-nav li a { display: block; padding: .45rem .5rem; text-decoration: none; color: var(--ink); border-radius: 6px; font-size: 1rem; }
.arten-nav li a:hover { background: var(--accent-soft); }
.arten-nav li a[aria-current="page"] { background: var(--accent); color: #fff; }
.arten-nav-contact { border-top: 1px solid var(--line); padding-top: 1rem; font-size: .95rem; }
.arten-nav-contact p { margin-bottom: .75rem; }

/* --------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------ */
.faq { margin: 2.5rem 0 1rem; max-width: var(--text); }
.faq h2 { margin-top: 0; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: .6rem; }
.faq-item summary { cursor: pointer; padding: .9rem 2.6rem .9rem 1.1rem; font-weight: 600; list-style: none; position: relative; font-family: var(--font-head); font-size: 1.1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.1rem; top: .75rem; font-size: 1.5rem; color: var(--brass); line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-answer { padding: 0 1.1rem 1rem; color: var(--ink-soft); }
.faq-answer > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------
   CTA
   ------------------------------------------------------------------ */
.cta { background: var(--cta-bg); color: var(--cta-text); padding: 2.5rem 0; margin-top: 1rem; }
.cta-inner { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; display: grid; gap: 1.5rem; align-items: center;
  @media (min-width: 800px) { grid-template-columns: 1fr auto; }
}
.cta-title { color: var(--cta-title); margin: 0 0 .4rem; }
.cta p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta .btn-primary { background: var(--cta-btn-bg); border-color: var(--cta-btn-bg); }
.cta .btn-primary:hover { background: var(--cta-btn-hover-bg); border-color: var(--cta-btn-hover-bg); }
.cta .btn-ghost { color: var(--cta-title); border-color: rgba(255,255,255,.4); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* --------------------------------------------------------------------
   Kontakt
   ------------------------------------------------------------------ */
.contact-grid { display: grid; gap: 2rem; padding: 2.5rem 0 1rem;
  @media (min-width: 900px) { grid-template-columns: 1fr 1.2fr; gap: 3rem; }
}

.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h2, .contact-form-wrap h2 { margin-top: 0; }
.contact-card address { font-style: normal; margin-bottom: 1rem; }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0 0 1.25rem; }
.contact-list dt { font-weight: 600; color: var(--accent-dark); }
.contact-list dd { margin: 0; }
.contact-list small { color: var(--ink-muted); }

.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"], .form-row textarea {
  width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); min-height: 48px;
}
.form-row textarea { resize: vertical; }
.form-row input[aria-invalid="true"], .form-row textarea[aria-invalid="true"] { border-color: var(--error); }
.form-row-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; }
.form-check input { width: 1.3rem; height: 1.3rem; margin-top: .3rem; }
.form-check label { font-weight: 400; }
.form-check .form-error { grid-column: 2; }
.form-error { color: var(--error); font-size: .95rem; margin: .35rem 0 0; }
.form-note { font-size: .9rem; color: var(--ink-muted); }
.form-actions { margin: 1.25rem 0 .75rem; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.alert-success { background: var(--ok-bg); color: #1d4d33; border: 1px solid #b7dcc6; }
.alert-error { background: var(--error-bg); color: #6d2119; border: 1px solid #efc3bd; }

.map-section { padding-bottom: 3rem; }
.consent-embed { background: var(--surface); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 1.5rem; margin: 1rem 0 1.5rem; }
.consent-embed-inner p:last-child { margin-bottom: 0; }
.consent-embed-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.consent-embed.is-loaded { padding: 0; border: 1px solid var(--line); overflow: hidden; }
.consent-embed iframe { width: 100%; border: 0; display: block; }

/* --------------------------------------------------------------------
   Online-Services
   ------------------------------------------------------------------ */
.services-hero { display: grid; gap: 1.5rem; margin: 2rem 0 1rem; align-items: center;
  @media (min-width: 900px) { grid-template-columns: 1.2fr 1fr; gap: 2.5rem; }
}
.services-hero-figure { margin: 0; }
.services-hero-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.services-hero-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.services-hero-text h2 { margin-top: 0; }

.tpl-online-services .content-grid { padding-top: 1rem; }

/* --------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); margin-top: 0; font-size: 1rem; }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0 2rem;
  @media (min-width: 700px) { grid-template-columns: repeat(2, 1fr); }
  @media (min-width: 1000px) { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-title { color: var(--footer-title); font-size: 1.05rem; margin: 0 0 .75rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .35rem; }
.footer-list a { color: var(--footer-text); text-decoration: none; }
.footer-list a:hover { color: var(--accent); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--footer-text); }
.site-footer address a, .footer-bottom a { color: var(--footer-link); }
.footer-hours { color: var(--footer-text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 0 1.5rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--footer-muted); }
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------
   Druck
   ------------------------------------------------------------------ */
/* Textformate aus dem Editor: Groesse, Farbe, Ausrichtung (CSS-Klassen statt Inline-Styles) */
.ql-size-small { font-size: .85em; } .ql-size-large { font-size: 1.25em; } .ql-size-huge { font-size: 1.6em; }
.ql-align-center { text-align: center; } .ql-align-right { text-align: right; } .ql-align-justify { text-align: justify; }
.ql-color-black { color: #000; } .ql-color-ink { color: var(--ink); } .ql-color-muted { color: var(--ink-muted); } .ql-color-accent { color: var(--accent); } .ql-color-brass { color: var(--brass); }
.ql-color-blue { color: #1f4e79; } .ql-color-green { color: #2e6b45; } .ql-color-red { color: #8a1c1c; } .ql-color-violet { color: #5b3a7a; }
h1 .ql-size-small { font-size: .7em; } h1 .ql-size-large { font-size: 1.15em; } h1 .ql-size-huge { font-size: 1.3em; }
/* Einleitung mit mehreren Absaetzen (aus dem Editor) */
.lead p { margin: 0 0 .6em; } .lead p:last-child { margin-bottom: 0; }

@media print {
  .topbar, .nav-toggle, .site-nav, .cta, .back-to-top, .consent-embed, .contact-form-wrap, .arten-nav-contact { display: none !important; }
  
  
  .page-head, .site-header, .site-footer { border: 0; }
}
