/* =============================================
   FERIENWOHNUNGEN REHEFELD-ZAUNHAUS
   Design System – Mai 2026
   ============================================= */

/* ── Lucide Icons ─────────────────────────────
   Inline SVG icons created by lucide.createIcons()
   All icons inherit currentColor from parent.
   ─────────────────────────────────────────── */
.lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
/* Navigation */
.nav-link .lucide            { width: 15px; height: 15px; margin-right: 4px; margin-top: -2px; }
/* Hero badges */
.hero-badge .lucide          { width: 14px; height: 14px; margin-right: 4px; margin-top: -2px; }
/* Section kicker chips */
.kicker .lucide              { width: 14px; height: 14px; margin-right: 4px; margin-top: -2px; }
.hero-kicker .lucide         { width: 15px; height: 15px; margin-right: 5px; margin-top: -2px; }
/* Highlight strip (hi-icon) */
.hi-icon .lucide             { width: 24px; height: 24px; }
/* Activity / season tags */
.act-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--forest-mid);
  background: var(--sage);
  border: 1px solid var(--forest-light);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.act-tag .lucide             { width: 14px; height: 14px; margin-right: 4px; margin-top: -2px; }
/* Apartment meta tags */
.meta-tag .lucide            { width: 14px; height: 14px; margin-right: 4px; margin-top: -2px; }
/* Feature cards large icon box */
.card-feature .icon .lucide  { width: 28px; height: 28px; stroke: var(--forest); }
/* Info-box items */
.ib-icon .lucide             { width: 16px; height: 16px; margin-top: -2px; }
/* Footer links */
footer .lucide               { width: 14px; height: 14px; margin-right: 4px; margin-top: -2px; }
/* Sidebar quick-facts */
.sidebar-fact .lucide        { width: 16px; height: 16px; margin-right: 5px; margin-top: -2px; }

:root {
  --forest:       #317c54; /* #1a3d2b; */
  --forest-mid:   #2b5c42;
  --forest-light: #ddeee4;
  --sage:         #eef6f1;
  --amber:        #b8722a;
  --amber-light:  #fdf0e0;
  --cream:        #f9f6f0;
  --white:        #ffffff;
  --text:         #1a2e22;
  --text-mid:     #3b5c48;
  --text-muted:   #6e8878;
  --border:       rgba(26,61,43,0.12);
  --shadow-sm:    0 2px 10px rgba(26,61,43,0.08);
  --shadow-md:    0 6px 24px rgba(26,61,43,0.11);
  --shadow-lg:    0 16px 48px rgba(26,61,43,0.14);
  --r:            14px;
  --r-lg:         22px;
  --r-xl:         32px;
}

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-mid); }
a:hover { color: var(--forest); }

/* ── Navigation ───────────────────────────── */
.navbar {
  background: rgba(26, 61, 43, 0.96) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--white) !important;
}
.navbar-brand span { color: #9ecfb3; }
.nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem !important;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--white) !important;
  background: rgba(255,255,255,0.12);
}
.nav-cta {
  background: var(--amber) !important;
  color: var(--white) !important;
  border-radius: 8px;
  padding: 0.4rem 1rem !important;
  font-weight: 600;
}
.nav-cta:hover { background: #a0621f !important; }
.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon { filter: invert(1); }

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
}

/* Carousel als Hero-Hintergrund */
.hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0; /* eigener Stacking-Context für carousel-fade */
}
/* Indicators innerhalb des Carousels */
.hero-carousel .carousel-indicators {
  z-index: 10;
  pointer-events: auto;
}
/* Controls als direkte Kinder von .hero (per HTML-Struktur außerhalb hero-carousel) */
.hero > .carousel-control-prev,
.hero > .carousel-control-next {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 20; /* über hero-content (z:2) und overlay (z:1) */
  pointer-events: auto;
  width: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: #fff;
  opacity: 0.7;
  transition: opacity .15s ease;
}
.hero > .carousel-control-prev { left: 0; }
.hero > .carousel-control-next { right: 0; }
.hero > .carousel-control-prev:hover,
.hero > .carousel-control-next:hover { opacity: 1; }
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}
.hero-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.98;          /* ↑ erhöht (war 0.62) */
  transition: opacity 0.8s ease;
}
/* Fallback für altes .hero-img */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.98;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20,50,35,0.25) 0%, /* 0.88 */
    rgba(26,61,43,0.2) 60%, /* 0.70 */
    rgba(30,70,50,0.15) 100% /* 0.50 */
  );
  pointer-events: none; /* Klicks auf Carousel-Indicators durchlassen */
  z-index: 1;           /* Zwischen Carousel (z:0) und Hero-Content (z:2) */
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  pointer-events: none; /* Klicks auf Carousel-Indicators/Controls durchlassen */
}
/* Interaktive Elemente innerhalb hero-content bleiben klickbar */
.hero-content a,
.hero-content button,
.hero-content input,
.hero-content [role="button"] {
  pointer-events: auto;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ecfb3;
  margin-bottom: 1rem;
}
.hero-kicker::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: #9ecfb3;
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Hero Card */
.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  color: var(--white);
}
.hero-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.2rem;
}
.hero-card-value {
  font-size: 1.05rem;
  font-weight: 600;
}
.hero-card hr { border-color: rgba(255,255,255,0.15); }

/* ── Buttons ──────────────────────────────── */
.btn-forest {
  background: var(--forest-mid);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-forest:hover { background: var(--forest); color: var(--white); transform: translateY(-1px); }

.btn-amber {
  background: var(--amber);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-amber:hover { background: #a0621f; color: var(--white); transform: translateY(-1px); }

.btn-outline-forest {
  background: transparent;
  color: var(--forest-mid);
  border: 1.5px solid var(--forest-mid);
  border-radius: 10px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-outline-forest:hover { background: var(--forest-mid); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }

/* Bootstrap override */
.btn-primary {
  background-color: var(--forest-mid) !important;
  border-color: var(--forest-mid) !important;
  font-weight: 600;
  border-radius: 10px;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--forest) !important;
  border-color: var(--forest) !important;
}
.btn-outline-primary {
  color: var(--forest-mid) !important;
  border-color: var(--forest-mid) !important;
  font-weight: 600;
  border-radius: 10px;
}
.btn-outline-primary:hover {
  background-color: var(--forest-mid) !important;
  border-color: var(--forest-mid) !important;
  color: var(--white) !important;
}

/* ── Sections ─────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-bg { background: var(--cream); }
.section-sage { background: var(--sage); }
.section-forest { background: var(--forest); color: var(--white); }

/* ── Typography Helpers ───────────────────── */
.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 0.5rem;
}
.kicker-amber { color: var(--amber); }
.text-muted-sm { color: var(--text-muted); font-size: 0.9rem; }
.lead { font-size: 1.1rem; color: var(--text-mid); line-height: 1.75; }

/* ── Cards ────────────────────────────────── */
.card-feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.card-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-feature .icon {
  width: 48px; height: 48px;
  background: var(--forest-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.card-feature p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Apartment Cards */
.card-apartment {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.card-apartment:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-apartment .img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card-apartment .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.card-apartment:hover .img-wrap img { transform: scale(1.04); }
.card-apartment .badge-apt {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--forest);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.card-apartment .body { padding: 1.5rem; }
.card-apartment h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.card-apartment .desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.card-apartment .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.card-apartment .meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--sage);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

/* ── Gallery ──────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.gallery-grid .img-main { grid-row: 1 / 3; }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
  cursor: pointer;
}
.gallery-grid img:hover { opacity: 0.9; }
.gallery-grid .show-more {
  position: relative;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.gallery-grid .show-more::after {
  content: 'Alle Fotos';
  position: absolute;
  inset: 0;
  background: rgba(20,50,35,0.6);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.gallery-grid .show-more:hover::after { background: rgba(20,50,35,0.8); }

/* Carousel override */
.carousel-img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center center;
  background: #fff;
  border-radius: var(--r-lg);
  display: block;
}
/* gallery_carousel()-Bilder: volles Bild ohne Beschnitt */
.gallery-carousel-img {
  object-fit: contain !important;
  background: #fff;
}
/* Navigation der Galerie-Carousels in Sage (#eef6f1), Hero ausgenommen */
.carousel:not(.hero-carousel) .carousel-indicators [data-bs-target] {
  background-color: #eef6f1;
  opacity: 0.9;
}
/* Sichtbarkeit der hellen Indikatoren auf weißem Letterbox sichern */
.carousel:not(.hero-carousel) .carousel-indicators {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.55));
}
.carousel:not(.hero-carousel) .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23eef6f1'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel:not(.hero-carousel) .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23eef6f1'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
/* Galerie-Grid: Bilder füllen Container passend aus */
.gallery-grid .img-main img,
.gallery-grid div img,
.gallery-grid a img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* Galerie-Einzelseiten */
.fw-gallery-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--r-lg);
}
.carousel-caption-custom {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(20,50,35,0.75);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  line-height: 1.35;
  font-size: 0.8rem;
  font-weight: 500;
  /* Nie über den Bildrand hinaus: Fallback vor JS-Positionierung
     (init.js richtet das Overlay exakt an der sichtbaren Bildfläche aus) */
  max-width: calc(100% - 24px);
  overflow-wrap: break-word;
  pointer-events: none;
}

/* ── Highlights Strip ─────────────────────── */
.highlights-strip {
  background: var(--forest);
  padding: 1.5rem 0;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.9);
}
.highlight-item .hi-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.highlight-item .hi-text {
  font-size: 0.85rem;
  line-height: 1.3;
}
.highlight-item .hi-title {
  font-weight: 700;
  color: var(--white);
}
.highlight-item .hi-sub {
  color: rgba(255,255,255,0.65);
}

/* ── Seasonal Tabs ────────────────────────── */
.season-tabs .nav-link {
  color: var(--text-muted) !important;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 10px !important;
  padding: 0.6rem 1.5rem !important;
  background: var(--white);
}
.season-tabs .nav-link.active {
  background: var(--forest-mid) !important;
  border-color: var(--forest-mid) !important;
  color: var(--white) !important;
}

/* ── Pricing ──────────────────────────────── */
.pricing-card {
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  background: var(--white);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pricing-card.featured {
  border-color: var(--forest-mid);
  box-shadow: var(--shadow-md);
}
.pricing-card .price-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.pricing-card .price { font-size: 2.2rem; font-weight: 800; color: var(--forest); line-height: 1; }
.pricing-card .price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-card .price-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ── Feature List ─────────────────────────── */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-mid);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '✓';
  color: var(--forest-mid);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── Reviews ──────────────────────────────── */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.review-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 0.05em; }
.review-text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; margin: 0.75rem 0; font-style: italic; }
.review-author { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* ── CTA Banner ───────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 3rem 2.5rem;
}
.cta-banner h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.cta-banner p { color: rgba(255,255,255,0.8); }

/* ── Infos-Box (sticky sidebar) ───────────── */
.info-sticky {
  position: sticky;
  top: 5.5rem;
}
.info-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.info-box-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.info-box-item:last-child { border-bottom: none; }
.info-box-item .ib-icon { font-size: 1.1rem; flex-shrink: 0; }
.info-box-item .ib-label { color: var(--text-muted); font-size: 0.78rem; }
.info-box-item .ib-value { font-weight: 600; color: var(--text); }

/* ── Accordion ────────────────────────────── */
.accordion-item { border: 1px solid var(--border) !important; border-radius: var(--r) !important; margin-bottom: 0.5rem; overflow: hidden; }
.accordion-button {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text) !important;
  background: var(--white) !important;
}
.accordion-button:not(.collapsed) {
  color: var(--forest) !important;
  background: var(--sage) !important;
  box-shadow: none !important;
}
.accordion-button::after { filter: invert(30%) sepia(50%) saturate(300%) hue-rotate(100deg); }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  background: #0d2318;
  color: #9ecfb3;
}

.footer h5 {
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

.footer a {
  color: #9ecfb3;
  text-decoration: none;
  font-size: .875rem;
  transition: color .15s;
}

.footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.01em;
}

.footer-copy {
  color: rgba(255,255,255,.35);
  font-size: .8rem;
}

.footer-copy a {
  color: rgba(255,255,255,.4);
  font-size: .8rem;
}

.footer-copy a:hover {
  color: rgba(255,255,255,.7);
}

.footer-divider {
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 0;
  opacity: 1;
  margin: 0;
}

/* ── Barrierefreiheit (WCAG 2.1 AA – Audit-Remediation) ─────────────────── */

/* Skip-Navigation (WCAG 2.4.1) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  display: block !important;
}

.sr-only.focusable:focus,
.sr-only.focusable:focus-within {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 99999;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #0d2318;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}


/* Bootstrap compatibility overrides ──────────────────────────────────────
   Bootstrap 5.3 uses vendor-prefixed properties without unprefixed counterparts.
   These overrides add the missing standard properties / correct prefix ordering.
   ─────────────────────────────────────────────────────────────────────────── */

/* text-size-adjust: Bootstrap has -webkit-text-size-adjust:100% on html;
   Chrome 54+ and Edge 79+ need the unprefixed property. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* print-color-adjust: Bootstrap uses deprecated color-adjust and omits
   -webkit-print-color-adjust needed for Chrome/Edge 17+. */
*, ::before, ::after {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* text-align match-parent: Bootstrap uses only -webkit-match-parent;
   unprefixed version required for Safari 15.4+. */
td, th {
  text-align: -webkit-match-parent;
  text-align: match-parent;
}

/* KI-Badge Tooltip: sofort erscheinend (ersetzt das verzögerte title-Attribut). */
.fw-ki-badge::after {
  content: attr(data-tip);
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  transform: translateY(-50%);
  white-space: nowrap;
  background: rgba(17, 24, 20, .92);
  color: #fff;
  font-size: .7rem;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .12s ease;
  z-index: 6;
}
.fw-ki-badge:hover::after,
.fw-ki-badge:focus-visible::after {
  opacity: 1;
  visibility: visible;
}
