/* ==========================================================================
   Tierbestattung Niebuhr — Design System
   Schlankes, handgeschriebenes CSS (kein Page-Builder-Ballast)
   ========================================================================== */

@font-face {
  font-family: 'Laila';
  src: url('/assets/fonts/laila/Laila-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Laila';
  src: url('/assets/fonts/laila/Laila-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Laila';
  src: url('/assets/fonts/laila/Laila-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Laila';
  src: url('/assets/fonts/laila/Laila-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Carlito';
  src: url('/assets/fonts/carlito/Carlito-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Carlito';
  src: url('/assets/fonts/carlito/Carlito-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Farben */
  --c-primary: #B2D175;      /* helles Limette-Grün (Elementor "primary") */
  --c-secondary: #C62F41;    /* Korallrot (Buttons/CTA), WCAG-AA-konform abgedunkelt */
  --c-green: #5F6F3E;        /* Oliv-Grün (Eyebrow/Subtitle-Text), WCAG-AA-konform abgedunkelt */
  --c-link: #B4C408;         /* Lindgrün-Akzent (Icons, Hover-Flächen, Deko - NICHT für Fließtext) */
  --c-link-text: #6C7504;    /* Lindgrün-Akzent als lesbarer Text (Preise, Links), WCAG-AA-konform */
  --c-link-hover: #A9B805;
  --c-text: #6B6E71;         /* Fließtext (echte Absatzfarbe) */
  --c-text-dark: #051829;    /* echte Überschriften-/Nav-Farbe (dunkles Navy, kein Schwarz) */
  --c-text-muted: #5B6A76;   /* gedämpfter Text */
  --c-bg: #F5F9FA;           /* Seiten-Hintergrund */
  --c-border: #DBE3E5;
  --c-white: #FFFFFF;
  --c-black: #111111;

  /* Typografie */
  --font-heading: 'Laila', Georgia, serif;
  --font-body: 'Carlito', Arial, sans-serif;

  /* Abstände */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-width: 1374px; /* ergibt ~1320px Inhaltsbreite inkl. Innenabstand, wie im Original */
  --radius: 12px;
}

/* ==========================================================================
   Reset & Grundlagen
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; overflow-x: hidden; }
@media (max-width: 600px) { html { font-size: 16px; } }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 var(--space-sm);
  color: var(--c-text-dark);
  overflow-wrap: break-word;
}
a h1, a h2, a h3, a h4, a h5, a h6 { color: var(--c-text-dark); }
h1 { font-size: clamp(2.2rem, 4vw, 3.167rem); line-height: 1.088; letter-spacing: -1px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.611rem); line-height: 1.106; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.944rem); }
h4 { font-size: 1.556rem; }
p { margin: 0 0 var(--space-sm); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.833rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: var(--space-xs);
}

/* ==========================================================================
   Layout-Hilfsklassen
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}
.section--tight { padding: var(--space-2xl) 0; }
.section--white { background: var(--c-white); }
.section--dark {
  background: var(--c-green);
  color: var(--c-white);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--c-white); }
.section--photo {
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--c-white);
}
.section--photo::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
}
.section--photo.section--photo-dark::before { background: rgba(0,0,0,.62); }
.section--photo .container { position: relative; z-index: 1; }
.section--photo h2, .section--photo p { color: var(--c-white); }
.section--photo-left .container { text-align: left; max-width: 640px; margin: 0; }
.section--photo-left .eyebrow { color: var(--c-primary); }

/* Hintergrundbilder der .section--photo-Abschnitte (statt Inline-Style) */
.bg-frau-mit-hund-herbstwanderung { background-image: url('/assets/img/content/frau-mit-hund-herbstwanderung.webp'); }
.bg-haende-halten-hundepfote { background-image: url('/assets/img/content/haende-halten-hundepfote.webp'); }
.bg-hund-katze-kuscheln-sonnenuntergang { background-image: url('/assets/img/content/hund-katze-kuscheln-sonnenuntergang.webp'); }
.bg-hund-laeuft-durch-herbstlaub-wald { background-image: url('/assets/img/content/hund-laeuft-durch-herbstlaub-wald.webp'); }
.bg-hund-schaut-aufmerksam-in-kamera { background-image: url('/assets/img/content/hund-schaut-aufmerksam-in-kamera.webp'); }
.bg-kerze-moos-ruhiger-abschied { background-image: url('/assets/img/content/kerze-moos-ruhiger-abschied-hintergrund.webp'); }
.bg-welpe-katze-urne-kerze-moos { background-image: url('/assets/img/content/welpe-katze-urne-kerze-moos.webp'); }
.bg-standort-peine { background-image: url('/assets/img/standorte/tierbestattung-niebuhr-standort-peine.webp'); }

.grid {
  display: grid;
  gap: var(--space-lg);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.text-center { text-align: center; }
.text-muted { color: var(--c-text-muted); }
.text-sm { font-size: 0.85rem; }
.m-0 { margin: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-xl { margin-bottom: var(--space-xl); }
.mx-auto { margin-inline: auto; }
.order-first { order: -1; }
.sr-only { position: absolute; left: -9999px; }

/* Zentrierter, breitenbegrenzter Fliesstext unter Ueberschriften */
.lede { max-width: 760px; margin-inline: auto; }
.lede--sm { max-width: 640px; }
.lede--md { max-width: 820px; }
.lede--lg { max-width: 940px; }

.container--w820 { max-width: 820px; }
.container--w860 { max-width: 860px; }
.container--w1100 { max-width: 1100px; }

.pt-section-lg { padding-top: calc(var(--space-2xl) + var(--space-lg)); }
.pb-section-xl { padding-bottom: calc(var(--space-2xl) + var(--space-xl)); }
.section--photo-lg { padding-top: calc(var(--space-2xl) + var(--space-lg)); padding-bottom: calc(var(--space-2xl) + var(--space-lg)); }
.section--photo-band { margin: var(--space-2xl) 0; padding: calc(var(--space-2xl) + var(--space-md)) 0; }
.section--photo-pos-low { background-position: center 75%; }

.grid--flush { gap: 0; align-items: stretch; }
.img-cover-fill { width: 100%; height: 100%; object-fit: cover; }

.location-card--solo { max-width: 665px; margin-inline: auto; }

.callout-text { color: var(--c-link-text); font-weight: 700; }

.hp-field { position: absolute; left: -9999px; }

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 13px 40px;
  border-radius: 5px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--c-secondary);
  color: var(--c-white);
}
.btn--primary:hover { background: #A82636; }
.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--lime {
  background: var(--c-link);
  color: var(--c-text-dark);
}
.btn--lime:hover { background: var(--c-link-hover); }

/* ---- Fehlerseite (404) ---- */
.error-page { padding: 120px 20px; text-align: center; }
.error-page h1 { font-size: 4rem; margin-bottom: 0; }
.error-page p { font-size: 1.25rem; }

/* "Pfoten-CTA": Textlink mit Pfoten-Silhouette als Hintergrund (statt Button-Pille),
   entspricht dem Original (foot.png hinter zentriertem Text). Als Maske (statt
   background-image) eingebunden, damit die Pfote beim Hover einfaerben kann. */
.btn-decor {
  position: relative;
  display: inline-block;
  padding: 34px 0 10px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  transition: transform .18s ease;
}
.btn-decor::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-mask-image: url('/assets/img/branding/pfotenabdruck-icon.webp');
  mask-image: url('/assets/img/branding/pfotenabdruck-icon.webp');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center top;
  mask-position: center top;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: rgba(5,24,41,.09);
  transition: background-color .25s ease, transform .25s ease;
}
.btn-decor--light::before { background-color: rgba(255,255,255,.4); }
.btn-decor:hover { transform: translateY(-2px); }
.btn-decor--light { color: var(--c-white); }
.btn-decor--muted { color: var(--c-text-muted); font-size: 1.125rem; }
.btn-decor--green { color: var(--c-green); }
.btn-decor:hover::before,
.btn-decor.is-merged::before { background-color: var(--c-link); transform: scale(1.1); }
.btn-decor.is-merged::before { transform: scale(1.16); }

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
  background: var(--c-bg);
  font-size: 16px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  flex-wrap: wrap;
  gap: var(--space-sm);
  max-width: none;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
.topbar-info { display: flex; gap: var(--space-md); flex-wrap: wrap; color: var(--c-text-muted); }
.topbar-info a { color: inherit; }
.topbar-info span { display: inline-flex; align-items: center; gap: 0.4em; }
.topbar-info i { font-size: 16px; margin: 0; }
.topbar-social { display: flex; gap: 1rem; align-items: center; }
.topbar-social a {
  display: flex; align-items: center; justify-content: center;
  color: var(--c-black);
  transition: color .18s ease;
}
.topbar-social a:hover { color: var(--c-link-text); }
.topbar-social i { font-size: 20px; margin: 0; }

.site-header {
  background: var(--c-white);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(5,24,41,.08); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 30px;
  gap: var(--space-xl);
  max-width: none;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
.logo img { width: auto; height: auto; max-height: 70px; }

.main-nav { display: flex; flex: 1; justify-content: center; min-width: 0; }
.main-nav ul { display: flex; gap: 1.75rem; align-items: center; flex-wrap: nowrap; }
.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  color: var(--c-text-dark);
  position: relative;
  padding: 0.4em 0;
  white-space: nowrap;
  transition: color .18s ease;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--c-text-dark);
  transition: right .2s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: var(--space-md); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--c-black); }

.main-nav__social { display: none; }
.main-nav__mobile-only { display: none; }

@media (max-width: 1300px) {
  .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: #EEEEEE;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px var(--space-lg) var(--space-lg);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 200;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0;
    width: 100%;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    padding: 0.6em 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: #2B2B2B;
  }
  .main-nav__social {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(5,24,41,.12);
  }
  .main-nav__social a { color: #535353; font-size: 20px; }
  .main-nav__mobile-only { display: list-item; }
  .nav-toggle { display: flex; z-index: 210; }
  .header-actions .btn--primary { display: none; }
  body.nav-open .logo { position: relative; z-index: 210; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar-info { display: none; }
}

/* ==========================================================================
   Hero (Video)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--c-white);
}
@media (max-width: 700px) { .hero { min-height: 70vh; } }
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; text-align: center; }
.hero h1 { color: var(--c-white); }
.hero p { font-family: var(--font-heading); font-size: 23px; font-weight: 400; line-height: 1.3; max-width: 820px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Karten & Icon-Items
   ========================================================================== */

.card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: var(--space-lg);
}
.card--soft { background: #eef2ee; }

.icon-item { text-align: center; }
.icon-item .icon-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-sm);
}
.icon-item .icon-badge img,
.icon-item .icon-badge svg { width: 30px; height: 30px; }
.icon-item h3, .icon-item h4 { margin-bottom: 0.3em; }
.icon-item p { color: var(--c-text-muted); font-size: 0.95rem; }

.step-item { display: flex; gap: var(--space-md); align-items: flex-start; }
.step-item .icon-badge {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
}
.step-item .icon-badge img { width: 24px; height: 24px; }

.image-duo { position: relative; max-width: 460px; margin-left: auto; }
.image-duo__main { position: relative; }
.image-duo__main > img { width: 100%; object-fit: cover; }
.image-duo__overlap {
  position: absolute;
  right: -7%; bottom: -14%;
  width: 62%;
  box-shadow: 0 16px 34px rgba(5,24,41,.18);
  z-index: 2;
}

.team-card { text-align: left; }
.team-card__media { position: relative; overflow: hidden; }
.team-card__media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform .5s ease; }
.team-card:hover .team-card__media img { transform: scale(1.08); }
.team-card__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--space-md);
  background: linear-gradient(180deg, rgba(223,63,82,0) 15%, rgba(223,63,82,.94) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.team-card h4 { color: var(--c-white); margin-bottom: 0.15em; font-size: 1.333rem; }
.team-card__overlay span { display: block; color: var(--c-white); opacity: .9; font-size: 0.9rem; margin-bottom: 0.7em; }
.team-card__contacts { display: flex; gap: 0.6em; }
.team-card__contacts a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.2); color: var(--c-white);
  transition: background .18s ease;
}
.team-card__contacts a:hover { background: var(--c-white); color: var(--c-secondary); }
.team-card__contacts i { font-size: 15px; margin: 0; }
@media (hover: hover) {
  .team-card__overlay { opacity: 0; }
  .team-card:hover .team-card__overlay,
  .team-card:focus-within .team-card__overlay { opacity: 1; }
}
@media (hover: none) {
  .team-card__overlay { opacity: 1; background: linear-gradient(180deg, rgba(223,63,82,0) 55%, rgba(223,63,82,.94) 100%); }
}

.location-card { background: var(--c-bg); overflow: hidden; }
.location-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.location-card__body { padding: var(--space-md); }
.location-card .eyebrow { margin-top: 0.4em; margin-bottom: 0; }
.location-card__phone { margin-top: var(--space-sm); color: var(--c-text-muted); }
.location-card__phone a { color: var(--c-link-text); font-weight: 700; }

.location-card--large { background: #F0F0F0; }
.location-card--large img { aspect-ratio: 4/3; }
.location-card--large .location-card__body { padding: var(--space-lg) var(--space-md); }
.location-card--large h3 { margin-bottom: 0.15em; }
.location-card--large .eyebrow { font-size: 0.889rem; }
.location-card--large p { color: var(--c-text-dark); margin-top: var(--space-md); }
.location-card--large p strong { font-weight: 700; }
.location-card--large p + p { margin-top: 1em; }

/* ==========================================================================
   Preise
   ========================================================================== */

.price-card {
  background: var(--c-white);
  border-radius: 0;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(5,24,41,.08); }
.price-card .icon-badge {
  width: auto; height: auto; margin: 0 auto var(--space-sm);
  display: flex; align-items: center; justify-content: center;
}
.price-card .icon-badge [class^="icon-"] { font-size: 44px; color: var(--c-link); }
.price-card .icon-badge .icon-truck-1 { margin-left: -0.08em; }
.price-card h4 { font-size: 1.333rem; margin-bottom: 0.5em; }
.price-card .price { display: inline-flex; align-items: baseline; gap: .2em; font-size: 2.2rem; font-weight: 700; color: var(--c-link-text); font-family: var(--font-heading); line-height: 1; }
.price-card .price .price-prefix { font-size: 0.9rem; font-weight: 600; color: var(--c-text-dark); }
.price-card .price-note { color: var(--c-text-muted); font-size: 0.875rem; margin-top: var(--space-sm); }
.price-card p { color: var(--c-text-muted); font-size: 0.9rem; }

/* Tarif-Karten (Einzel- vs. Gemeinschaftseinäscherung) */
.tier-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-border);
  padding: var(--space-xl) var(--space-lg);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-left-color .3s ease;
  min-width: 0;
}
.tier-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(5,24,41,.08); }
.tier-card--featured { border-left-color: var(--c-link); }
.tier-card__top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.tier-card__icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tier-card__icon [class^="icon-"] { font-size: 44px; color: var(--c-link); }
.tier-card__badge {
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  color: var(--c-green); background: var(--c-bg);
  padding: .4em 1em;
}
.tier-card__title { font-size: 1.444rem; margin-bottom: .4em; }
.tier-card__desc { color: var(--c-text-muted); font-size: 0.944rem; line-height: 1.6; }
.tier-card__price-row {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .5em;
  margin-top: var(--space-lg); padding-top: var(--space-lg);
  border-top: 1px solid var(--c-border);
}
.tier-card__price-prefix { font-size: 0.9rem; font-weight: 600; color: var(--c-text-dark); }
.tier-card__price-value { font-size: 2.4rem; font-weight: 700; color: var(--c-link-text); font-family: var(--font-heading); line-height: 1; }
.tier-card__price-note { flex-basis: 100%; color: var(--c-text-muted); font-size: 0.85rem; margin-top: .2em; }

/* Preisstaffel nach Gewicht: immer sichtbare Tabelle statt Aufklappmenü */
.tier-table { margin-top: var(--space-lg); }
.tier-table__head {
  display: flex; justify-content: space-between;
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-muted);
  padding: 0 var(--space-sm) .6em;
  border-bottom: 1px solid var(--c-border);
}
.tier-table__row { display: flex; justify-content: space-between; align-items: center; padding: .75em var(--space-sm); }
.tier-table__row:nth-child(even) { background: var(--c-bg); }
.tier-table__label { color: var(--c-text-dark); font-size: 0.944rem; }
.tier-table__value { font-family: var(--font-heading); font-weight: 700; color: var(--c-text-dark); font-size: 0.944rem; }

.section--sage { background: #EAEFE1; }

/* Zusatzleistungen: horizontale Service-Karten (Abhol-/Bring-Service) */
.service-row-card {
  display: flex; align-items: center; gap: var(--space-md);
  background: var(--c-white); border-radius: 0;
  padding: var(--space-md) var(--space-lg); text-align: left;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.service-row-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(5,24,41,.08); }
.service-row-card .icon-badge {
  width: 56px; height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.service-row-card .icon-badge [class^="icon-"] { font-size: 34px; color: var(--c-link); }
.service-row-card .icon-badge--flip [class^="icon-"] { font-size: 42px; transform: scaleX(-1); }
.service-row-card__body { flex: 1; min-width: 0; }
.service-row-card__body h4 { font-size: 1.111rem; margin-bottom: .15em; }
.service-row-card__body p { margin: 0; }
.service-row-card__price { margin-left: auto; text-align: right; flex-shrink: 0; }
.service-row-card__price .price { display: inline-flex; align-items: baseline; gap: .2em; font-size: 1.5rem; font-weight: 700; color: var(--c-link-text); font-family: var(--font-heading); line-height: 1; }
.service-row-card__price .price-prefix { font-size: 0.75rem; font-weight: 600; color: var(--c-text-dark); }
.service-row-card__price .price-note { display: block; color: var(--c-text-muted); font-size: 0.778rem; margin-top: .35em; }
@media (max-width: 560px) {
  .service-row-card { flex-direction: column; align-items: flex-start; }
  .service-row-card__price { margin-left: 0; text-align: left; }
}

/* Sonstige Zusatzleistungen: gruppierte Listen statt Kachel-Raster */
.addon-group {
  background: var(--c-white);
  border-radius: 0;
  padding: var(--space-lg);
  min-width: 0;
}
.addon-group h4 { font-size: 1.222rem; margin-bottom: .2em; }
@media (min-width: 1300px) {
  .addon-group h4 { white-space: nowrap; }
}
.addon-group__intro { color: var(--c-text-muted); font-size: 0.889rem; margin-bottom: var(--space-sm); }
.addon-list { margin-top: var(--space-xs); }
.addon-list__row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2em var(--space-md);
  padding: .8em 0; border-bottom: 1px solid var(--c-bg);
}
.addon-list__row:last-child { border-bottom: none; padding-bottom: 0; }
.addon-list__label { color: var(--c-text-dark); font-weight: 600; flex: 1 1 auto; }
.addon-list__label small { display: block; color: var(--c-text-muted); font-weight: 400; font-size: 0.833rem; margin-top: .15em; }
.addon-list__price {
  display: inline-flex; align-items: baseline; gap: .2em;
  flex-shrink: 0; font-family: var(--font-heading); font-weight: 700; color: var(--c-link-text);
  white-space: nowrap;
}
.addon-list__price .price-prefix { font-size: 0.8rem; font-weight: 600; color: var(--c-text-dark); }
.addon-list__price--free {
  font-family: var(--font-body); font-size: 0.833rem; font-weight: 700;
  background: #EEF3D9; color: var(--c-green); padding: .3em .75em; border-radius: 0;
}

/* Gestaffeltes Einblenden der Preis-Karten innerhalb eines Abschnitts */
@media (prefers-reduced-motion: no-preference) {
  [data-animate].is-animating .grid > :is(.price-card, .service-row-card, .addon-group) {
    animation: fade-up .5s ease both;
  }
  [data-animate].is-animating .grid > :is(.price-card, .service-row-card, .addon-group):nth-child(2) { animation-delay: 90ms; }
  [data-animate].is-animating .grid > :is(.price-card, .service-row-card, .addon-group):nth-child(3) { animation-delay: 180ms; }
}

/* ==========================================================================
   Akkordeon (FAQ)
   ========================================================================== */

.accordion { border-top: 1px solid var(--c-border); }
.accordion-item { border-bottom: 1px solid var(--c-border); transition: border-color .2s ease; }
.accordion-item.is-open { border-bottom-color: var(--c-text-dark); }
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none;
  padding: 1.4em 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  color: var(--c-text-dark);
  transition: color .2s ease;
}
.accordion-item.is-open .accordion-trigger { color: var(--c-green); }
.accordion-trigger .plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; margin-left: var(--space-md); }
.accordion-trigger .plus::before, .accordion-trigger .plus::after {
  content: ''; position: absolute; background: var(--c-text-dark);
  transition: transform .25s ease, background-color .2s ease;
}
.accordion-trigger .plus::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.accordion-trigger .plus::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.accordion-item.is-open .plus::before, .accordion-item.is-open .plus::after { background: var(--c-green); }
.accordion-item.is-open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.accordion-panel__inner { padding-bottom: 1.4em; color: var(--c-text-muted); }

/* ==========================================================================
   Formular
   ========================================================================== */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.form-grid .full { grid-column: 1 / -1; }
.field {
  width: 100%;
  padding: 0.9em 1em;
  border: 1px solid #d7dee0;
  border-radius: 8px;
  background: var(--c-white);
  font: inherit;
  color: var(--c-black);
}
textarea.field { resize: vertical; min-height: 140px; }
.field::placeholder { color: #9aa5a8; }
.checkbox-field { display: flex; align-items: flex-start; gap: 0.6em; font-size: 0.9rem; color: var(--c-text-muted); }
.checkbox-field a { color: var(--c-secondary); text-decoration: underline; }
.checkbox-field input { margin-top: 0.3em; }

.site-form { display: flex; flex-direction: column; gap: var(--space-md); }
.form-image-wrap { margin-top: var(--space-lg); overflow: hidden; }
.form-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .form-image-wrap { height: auto !important; aspect-ratio: 1/1; } }
.form-field {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 0.8em;
  transition: border-color .2s ease;
}
.form-field:focus-within { border-bottom-color: var(--c-link); }
.form-field i { font-size: 18px; color: var(--c-text-muted); flex-shrink: 0; }
.form-field--textarea { align-items: flex-start; }
.form-field--textarea i { margin-top: 0.25em; }
.form-field input, .form-field textarea {
  flex: 1;
  width: 100%;
  border: none;
  background: none;
  font: inherit;
  color: var(--c-black);
  padding: 0.3em 0;
}
.form-field input:focus, .form-field textarea:focus { outline: none; }
.form-field textarea { resize: vertical; min-height: 70px; }
.form-field ::placeholder { color: #9aa5a8; }
.form-status { font-size: 0.9rem; color: var(--c-text-muted); min-height: 1.2em; }
.form-status--success { color: var(--c-green); font-weight: 600; }
.form-status--error { color: var(--c-secondary); font-weight: 600; }
.site-form button[disabled] { opacity: .6; cursor: not-allowed; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.contact-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--space-sm); padding: var(--space-xl) var(--space-lg);
  color: var(--c-text);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.contact-tile--mail { background: #FAFBEE; }
.contact-tile--mail:hover { background: #F3F6D9; }
.contact-tile--phone { background: #FDF1F3; }
.contact-tile--phone:hover { background: #FBE3E7; }
.contact-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(5,24,41,.1); }
.contact-tile strong { display: block; font-family: var(--font-heading); font-size: 1.1rem; color: var(--c-text-dark); }
.contact-tile .icon-badge {
  width: auto; height: auto; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-tile .icon-badge img { width: 22px; height: 22px; }
.contact-tile .icon-badge [class^="icon-"] { font-size: 38px; color: var(--c-text-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--c-green); color: var(--c-white); }
.site-footer .container { max-width: none; padding-left: var(--space-lg); padding-right: var(--space-lg); }
.site-footer h2 { color: var(--c-white); }
.site-footer a { color: var(--c-white); transition: color .18s ease; }
.site-footer a:hover { color: var(--c-primary); }
.eyebrow--light { color: var(--c-white); opacity: .90; }
.footer-top {
  padding: var(--space-xl) 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.footer-top__headline { flex: 1 1 320px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); flex: 1 1 480px; max-width: 560px; }
.footer-cols h3 { color: var(--c-white); font-family: var(--font-heading); font-size: 1rem; font-weight: 600; margin-bottom: var(--space-sm); }
.footer-cols ul { display: flex; flex-direction: column; gap: 0.6em; }
.footer-social { display: flex; gap: 0.75rem; margin-top: var(--space-sm); }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; transition: background .18s ease, color .18s ease; }
.footer-social a:hover { background: var(--c-white); color: var(--c-green); }
.footer-social i { font-size: 15px; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  padding: var(--space-sm) 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-sm);
  font-size: 0.85rem;
}
.footer-bottom ul { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.footer-note { font-size: 0.8rem; opacity: .90; padding-bottom: var(--space-sm); }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr; max-width: none; margin-left: 0; } }

/* ==========================================================================
   Scroll-Animation
   ========================================================================== */

/* Inhalt ist immer sichtbar (kein Abhaengen von JS/Scroll-Timing fuer Lesbarkeit).
   JS ergaenzt bei Bedarf nur eine kurze Einblend-Klasse, siehe app.js. */
[data-animate] { opacity: 1; }
[data-animate].is-animating { animation: fade-up .5s ease both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Skip Link
   ========================================================================== */

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-secondary); color: var(--c-white);
  padding: 1em 1.5em; z-index: 1000;
}
.skip-link:focus { left: var(--space-md); top: var(--space-sm); }

/* ==========================================================================
   Icon-Item mit echter Icon-Schrift (fontello, siehe fonts.css) +
   Nummerierung "01/02/03" im Hintergrund
   ========================================================================== */

.icon-item { text-align: center; position: relative; }
.icon-item--linked {
  display: block;
  cursor: pointer;
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  margin: calc(var(--space-lg) * -1) calc(var(--space-md) * -1);
  transition: background .2s ease, box-shadow .2s ease;
}
.icon-item--linked:hover {
  background: var(--c-white);
  box-shadow: 0 20px 40px rgba(5,24,41,.08);
}
.icon-item--linked:hover .more-link .link-label { opacity: 1; }
.icon-item--linked:hover .more-link .link-icon { background: var(--c-link); color: var(--c-white); }
.icon-item__number {
  position: absolute; top: -0.1em; left: 50%; transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 7.5rem;
  font-weight: 600;
  color: var(--c-text-dark);
  opacity: 0.03;
  z-index: 0;
  user-select: none;
  white-space: nowrap;
}
.icon-item__header {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.5em;
  margin: 0 auto;
}
.icon-item-stack { display: flex; flex-direction: column; gap: var(--space-lg); max-width: 720px; margin: 0 auto; }
.icon-item .icon-badge {
  width: 80px; height: 88px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border-radius: 0;
}
.icon-item .icon-badge [class^="icon-"], .icon-item .icon-badge [class^="fx_icon-"] {
  font-size: 68px; color: var(--c-link);
}
.icon-item .icon-badge [class^="icon-"]:before, .icon-item .icon-badge [class^="fx_icon-"]:before {
  margin: 0;
}
.icon-item h3, .icon-item h4 { margin: 0; font-size: 1.556rem; text-align: left; }
.icon-item p { position: relative; z-index: 1; color: var(--c-text-muted); font-size: 0.944rem; line-height: 1.6; margin-top: var(--space-sm); }
.icon-item .more-link {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.5em;
  margin-top: var(--space-sm);
  color: var(--c-text-dark);
  font-size: 0.833rem;
  font-weight: 600;
}
.icon-item .more-link .link-label {
  opacity: 0;
  transition: opacity .25s ease;
}
.icon-item .more-link:hover .link-label { opacity: 1; }
.icon-item .more-link .link-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-bg); color: var(--c-text-dark);
  transition: background .18s ease, color .18s ease;
}
.icon-item .more-link:hover .link-icon { background: var(--c-link); color: var(--c-white); }

/* Karten mit Pfeil-Indikator (z.B. "Was interessiert dich am meisten?"):
   im Ruhezustand kein Kasten, erst bei Hover erscheint der Karten-Hintergrund */
.card--ghost {
  display: block;
  background: transparent;
  transition: background .2s ease, box-shadow .2s ease;
}
.card--ghost:hover {
  background: var(--c-white);
  box-shadow: 0 20px 40px rgba(5,24,41,.08);
}
.card .arrow-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-bg); color: var(--c-text-dark);
  margin-top: var(--space-sm);
  transition: background .18s ease, color .18s ease;
}
.card:hover .arrow-link { background: var(--c-link); color: var(--c-white); }
.card .icon-badge [class^="icon-"] { font-size: 56px; color: var(--c-link); }
.card h3 { font-size: 1.556rem; }

/* ==========================================================================
   Rotierendes Badge ("Wir sind Tierbestattung Niebuhr seit ...")
   ========================================================================== */

.spin-badge-wrap {
  position: absolute;
  top: -2.5rem; right: -2.5rem;
  width: 170px; height: 170px;
  z-index: 3;
}
.spin-badge-wrap .label-bg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 16px rgba(0,0,0,.12)); }
.spin-badge-wrap .spin-slow {
  position: absolute; top: 50%; left: 50%;
  width: 82%; height: 82%;
  transform: translate(-50%, -50%);
  animation: spin-slow 16s linear infinite;
}
.spin-badge-wrap .spin-slow--small { width: 72%; height: 72%; }
@keyframes spin-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================================================
   Cursor-Trail-Effekt: Pfotenabdruck folgt dem Mauszeiger (wie im Original)
   ========================================================================== */

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48.839 48.839'%3E%3Cg%3E%3Cpath fill='%23FFFFFF' d='M39.041,36.843c2.054,3.234,3.022,4.951,3.022,6.742c0,3.537-2.627,5.252-6.166,5.252 c-1.56,0-2.567-0.002-5.112-1.326c0,0-1.649-1.509-5.508-1.354c-3.895-0.154-5.545,1.373-5.545,1.373 c-2.545,1.323-3.516,1.309-5.074,1.309c-3.539,0-6.168-1.713-6.168-5.252c0-1.791,0.971-3.506,3.024-6.742 c0,0,3.881-6.445,7.244-9.477c2.43-2.188,5.973-2.18,5.973-2.18h1.093v-0.001c0,0,3.698-0.009,5.976,2.181 C35.059,30.51,39.041,36.844,39.041,36.843z M16.631,20.878c3.7,0,6.699-4.674,6.699-10.439S20.331,0,16.631,0 S9.932,4.674,9.932,10.439S12.931,20.878,16.631,20.878z M10.211,30.988c2.727-1.259,3.349-5.723,1.388-9.971 s-5.761-6.672-8.488-5.414s-3.348,5.723-1.388,9.971C3.684,29.822,7.484,32.245,10.211,30.988z M32.206,20.878 c3.7,0,6.7-4.674,6.7-10.439S35.906,0,32.206,0s-6.699,4.674-6.699,10.439C25.507,16.204,28.506,20.878,32.206,20.878z M45.727,15.602c-2.728-1.259-6.527,1.165-8.488,5.414s-1.339,8.713,1.389,9.972c2.728,1.258,6.527-1.166,8.488-5.414 S48.455,16.861,45.727,15.602z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 99999;
  transform: translate(5px, 25px);
  transition: width .2s ease, height .2s ease, opacity .2s ease;
}
.cursor-dot.is-hover { width: 32px; height: 32px; }
.cursor-dot.is-merging { width: 48px; height: 48px; opacity: 0; }
@media (hover: none) { .cursor-dot { display: none; } }

/* ==========================================================================
   Unterseiten: Page-Intro (Titel + Bild-Duo ohne Hero-Video)
   ========================================================================== */

.page-intro { padding: var(--space-2xl) 0 calc(var(--space-2xl) + var(--space-lg)); }

/* ==========================================================================
   Werte-/Value-Karten (z.B. "Unsere Philosophie & Werte")
   ========================================================================== */

.value-card {
  background: var(--c-white);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  text-align: center;
}
.value-card .icon-badge { width: auto; height: auto; margin: 0 auto var(--space-md); }
.value-card .icon-badge [class^="icon-"] { font-size: 72px; color: var(--c-link); }
.value-card h4 { font-size: 1.222rem; margin-bottom: 0.4em; }
.value-card p { color: var(--c-text-muted); font-size: 0.944rem; line-height: 1.6; }

/* Kicker-Label (kurzes Label ÜBER einer Überschrift, z.B. "Schritt 1", "Unsere Haltung") */
.eyebrow--kicker { color: var(--c-link-text); }

/* ==========================================================================
   Schritt-Reihen (Text-Box + Bild, ohne Abstand dazwischen)
   ========================================================================== */

.step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  max-width: var(--container-width);
  margin: 0 auto;
}
.step-row__text {
  background: var(--c-white);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.step-row__text .eyebrow { margin-bottom: var(--space-xs); }
.step-row img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) {
  .step-row { grid-template-columns: 1fr; }
  .step-row img { order: -1; aspect-ratio: 16/10; }
}

/* ==========================================================================
   Testimonial-Slider
   ========================================================================== */

.testimonial-slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-quote-icon { font-size: 2.2rem; color: var(--c-link); margin-bottom: var(--space-sm); }
.testimonial-quote-icon i { margin: 0; }
.testimonial-track { display: grid; }
.testimonial-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s ease;
}
.testimonial-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.testimonial-slide p { font-size: 24px; font-weight: 400; font-style: normal; line-height: 1.5; }
.testimonial-slide .stars { color: var(--c-link); font-size: 1.4rem; letter-spacing: 0.2em; margin: var(--space-md) 0 0.5em; }
.testimonial-slide strong { display: block; font-family: var(--font-heading); }
.testimonial-slide span { display: block; font-size: 0.85rem; opacity: .75; }

.testimonial-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15); color: var(--c-white);
  border: 1px solid rgba(255,255,255,.35);
  font-size: 18px;
  transition: background .18s ease, color .18s ease;
}
.testimonial-arrow:hover { background: var(--c-link); border-color: var(--c-link); color: var(--c-white); }
.testimonial-arrow--prev { left: -64px; }
.testimonial-arrow--next { right: -64px; }
@media (max-width: 900px) {
  .testimonial-slider { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .testimonial-quote-icon { order: 0; flex: 0 0 100%; }
  .testimonial-track { order: 1; flex: 0 0 100%; }
  .testimonial-dots { order: 2; flex: 0 0 100%; }
  .testimonial-arrow {
    position: static;
    transform: none;
    order: 3;
    margin-top: var(--space-md);
  }
}

.testimonial-dots { display: flex; justify-content: center; gap: 0.7rem; margin-top: var(--space-md); }
.testimonial-dots button {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; padding: 0;
  transition: background .18s ease;
}
.testimonial-dots button.is-active { background: var(--c-link); }

/* ==========================================================================
   Team-Karten
   ========================================================================== */

.team-card img { aspect-ratio: 3/4; }

/* ==========================================================================
   Partner-Karten
   ========================================================================== */

.partner-card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.partner-card img { max-height: 48px; width: auto; margin: 0 auto var(--space-sm); object-fit: contain; }
.partner-card h4 { font-size: 1.111rem; margin-bottom: 0.4em; }
.partner-card a { color: var(--c-link-text); font-weight: 700; font-size: 0.889rem; }

/* ==========================================================================
   Callout-Box (grüne Hervorhebung mit Liste, z.B. Vorsorge-Vorteile)
   ========================================================================== */

.callout-box {
  background: var(--c-green);
  color: var(--c-white);
  padding: var(--space-lg);
}
.callout-box h4 { color: var(--c-white); margin-bottom: var(--space-xl); }
.callout-box ul { list-style: disc; padding-left: 1.5em; margin-bottom: var(--space-sm); }
.callout-box li { margin-bottom: 0.5em; }
.callout-box li:last-child { margin-bottom: 0; }
.callout-box p:last-child { margin-top: var(--space-sm); font-weight: 600; }

/* ==========================================================================
   Rechtstexte (Impressum, Datenschutz)
   ========================================================================== */

.legal-content { max-width: 860px; }
.legal-content h2 { font-size: 1.556rem; margin-top: var(--space-xl); margin-bottom: 0.5em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.222rem; margin-top: var(--space-lg); margin-bottom: 0.4em; }
.legal-content p { color: var(--c-text-muted); line-height: 1.7; }
.legal-content a { color: var(--c-link-text); text-decoration: underline; }
.legal-content ul { list-style: disc; padding-left: 1.3em; color: var(--c-text-muted); margin-bottom: var(--space-sm); }
.legal-content li { margin-bottom: 0.4em; }

/* ==========================================================================
   Scroll-to-Top-Button
   ========================================================================== */

.scroll-to-top {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--c-text-dark);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background-color .2s ease, visibility .25s;
}
.scroll-to-top i { font-size: 18px; margin: 0; }
.scroll-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { background: var(--c-green); }
@media (max-width: 700px) { .scroll-to-top { right: var(--space-md); bottom: var(--space-md); width: 42px; height: 42px; } }

/* ==========================================================================
   Startseiten-Popup (Vorsorge-Hinweis, erscheint einmalig nach 25s)
   ========================================================================== */

.site-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 300;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.site-popup-overlay.is-open { opacity: 1; visibility: visible; }
.site-popup {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.97);
  width: 1050px; max-width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--c-white);
  box-shadow: 0 3px 46px rgba(0,0,0,.1);
  z-index: 301;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.site-popup.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.site-popup__close {
  position: absolute; top: var(--space-sm); right: var(--space-sm);
  width: 34px; height: 34px;
  border: none; background: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--c-text-muted);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: color .18s ease;
}
.site-popup__close:hover { color: var(--c-secondary); }
.site-popup__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.site-popup__image { background-size: cover; background-position: center; min-height: 380px; }
.site-popup__body {
  padding: var(--space-xl) var(--space-lg);
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
}
.site-popup__body h3 { font-size: 1.944rem; margin-bottom: .4em; }
.site-popup__body h4 { font-size: 1.556rem; font-weight: 500; margin-bottom: var(--space-md); }
.site-popup__body .btn-decor { margin-inline: auto; }
@media (max-width: 780px) {
  .site-popup__grid { grid-template-columns: 1fr; }
  .site-popup__image { display: none; }
  .site-popup__body { padding: var(--space-lg) var(--space-md); }
}

/* ==========================================================================
   Accessibility-Widget — an die Markenfarben angepasst
   (Farben via die vom Plugin vorgesehenen CSS Custom Properties,
   alle Kombinationen gegen WCAG 2.1 AA / 1.4.11 geprüft)
   ========================================================================== */
:root {
  --a11y-btn-bg:        var(--c-secondary);
  --a11y-btn-hover-bg:  #A82636;
  --a11y-btn-color:     var(--c-white);
  --a11y-btn-border:    transparent;

  --a11y-accent:        var(--c-text-dark);
  --a11y-accent-dark:   #000000;
  --a11y-accent-light:  #EEF3D9;
  --a11y-accent-glow:   rgba(5, 24, 41, 0.12);

  --a11y-active-bg:     #EEF3D9;
  --a11y-active-border: var(--c-green);
  --a11y-active-text:   var(--c-green);
  --a11y-active-switch: var(--c-green);
}
