/* ===========================
   EINSATZGEBIETE – seitenspezifisch (Präfix .eg-)
   Nutzt Tokens aus global.css; verändert keine gemeinsamen Klassen.
   =========================== */

.eg [hidden] { display: none !important; }
.eg-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.eg a:focus-visible,
.eg button:focus-visible,
.eg input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.eg-ico { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal); }

/* ----- A HERO ----- */
.eg-hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--white);
  padding: 28px 0 72px;
  background: linear-gradient(165deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
}
.eg-hero::before { /* feines Punktraster */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 100%);
          mask-image: linear-gradient(100deg, transparent 20%, #000 100%);
}
.eg-hero::after { /* weicher Teal-Schein */
  content: ""; position: absolute; z-index: -1;
  width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 159, 154, 0.42) 0%, rgba(35, 159, 154, 0) 68%);
}
.eg-crumbs { margin-bottom: 44px; font-size: 14px; }
.eg-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255, 255, 255, 0.65); }
.eg-crumbs li + li::before { content: "›"; margin-right: 8px; opacity: 0.6; }
.eg-crumbs a:hover { color: var(--white); text-decoration: underline; }
.eg-crumbs [aria-current] { color: var(--white); }
.eg-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--teal); margin-bottom: 16px;
}
.eg-hero__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--teal); border-radius: 2px; }
.eg-hero__title {
  font-size: clamp(34px, 5.4vw, 54px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 18px;
}
.eg-hero__text {
  max-width: 560px; font-size: 18px; line-height: 1.65;
  color: rgba(255, 255, 255, 0.8); margin-bottom: 32px;
}
.eg-hero__cta { box-shadow: 0 10px 28px rgba(35, 159, 154, 0.35); }
.eg-hero__cta .btn__icon { transition: transform 0.2s; }
.eg-hero__cta:hover .btn__icon { transform: translateY(3px); }

/* ----- Section-Köpfe ----- */
.eg-head { text-align: center; margin-bottom: 36px; }
.eg-h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 12px;
}
.eg-lead { max-width: 560px; margin: 0 auto; color: var(--text-muted); line-height: 1.7; }

/* ----- B + C FINDER ----- */
.eg-finder { padding: 72px 0 80px; background: var(--light-bg); }
.eg-finder__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Panels (Verzeichnis + Karte) */
.eg-dir,
.eg-mapwrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.eg-dir { padding: 28px; }

/* Suche */
.eg-search { position: relative; margin-bottom: 12px; }
.eg-search__ico {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--teal); pointer-events: none;
}
.eg-search__input {
  width: 100%; height: 56px; padding: 0 20px 0 52px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--light-bg);
  border: 1.5px solid transparent; border-radius: 40px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.eg-search__input::placeholder { color: var(--text-muted); }
.eg-search__input:hover { border-color: var(--border); }
.eg-search__input:focus { outline: none; background: var(--white); border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-light); }
.eg-status { font-size: 13px; color: var(--text-muted); padding-left: 20px; margin-bottom: 22px; }

/* Gruppen & Einträge */
.eg-group + .eg-group { margin-top: 26px; }
.eg-group__title {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--navy); margin-bottom: 12px;
}
.eg-group__title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.eg-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.eg-item {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.eg-item:hover,
.eg-item:focus-within { border-color: var(--teal); background: var(--teal-lighter); }
.eg-item__name {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; line-height: 1.3;
  font-size: 14.5px; font-weight: 500; color: var(--navy);
}
.eg-item__name .eg-ico {
  box-sizing: content-box; width: 16px; height: 16px; padding: 6px;
  border-radius: 50%; background: var(--teal-light); color: var(--teal-dark);
}
a.eg-item__name:hover { color: var(--teal-dark); }

/* Leerzustand */
.eg-empty {
  padding: 22px; margin-top: 4px; text-align: center;
  background: var(--light-bg); border-radius: var(--radius-md);
  color: var(--text); line-height: 1.6;
}
.eg-empty p + p { margin-top: 6px; color: var(--text-muted); font-size: 14px; }
.eg-empty a { color: var(--teal-dark); font-weight: 500; text-decoration: underline; }

/* Karte */
.eg-mapwrap { position: sticky; top: calc(var(--header-h) + 16px); padding: 10px; }
.eg-map {
  position: relative; height: 500px; overflow: hidden;
  background: var(--teal-lighter);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.eg-map--none { display: grid; place-items: center; padding: 24px; text-align: center; color: var(--text-muted); height: 240px; }
.eg-map__consent {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 28px; text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(35, 159, 154, 0.16), rgba(35, 159, 154, 0) 55%),
    var(--teal-lighter);
}
.eg-map__consent .eg-ico {
  box-sizing: content-box; width: 30px; height: 30px; padding: 16px;
  border-radius: 50%; background: var(--white); box-shadow: var(--shadow-md);
}
.eg-map__consent p { max-width: 400px; font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.eg-map__consent a { color: var(--teal-dark); text-decoration: underline; }
.eg-map__error {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1000;
  padding: 10px 14px; font-size: 14px; border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy); box-shadow: var(--shadow-md);
}
.eg-map__note { padding: 12px 10px 4px; font-size: 13px; color: var(--text-muted); }

/* Leaflet-Feinschliff (Marker / Popup) */
.eg-pin { background: none; border: 0; }
.eg-pin svg { display: block; filter: drop-shadow(0 2px 3px rgba(12, 31, 64, 0.35)); }
.eg-map .leaflet-popup-content-wrapper { border-radius: var(--radius-md); }
.eg-map .leaflet-popup-content { margin: 14px 16px; font-family: var(--font); color: var(--text); line-height: 1.5; }
.eg-pop__name { display: block; font-size: 16px; font-weight: 700; color: var(--navy); }
.eg-pop__group { display: block; font-size: 13px; color: var(--text-muted); }
.eg-pop__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.eg-pop__links a {
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 40px;
  background: var(--teal); color: var(--white) !important; text-decoration: none;
}
.eg-pop__links a:hover { background: var(--teal-dark); }

/* ----- E CTA ----- */
.eg-cta-sec { padding: 72px 0 80px; background: var(--white); }
.eg-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap;
  padding: 44px 48px;
  color: var(--white);
  background: linear-gradient(165deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
.eg-cta::before {
  content: ""; position: absolute; z-index: -1;
  width: 380px; height: 380px; right: -100px; top: -190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 159, 154, 0.4) 0%, rgba(35, 159, 154, 0) 68%);
}
.eg-cta::after { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; background: var(--teal); border-radius: 0 4px 4px 0; }
.eg-cta__text h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin-bottom: 10px; }
.eg-cta__text p { max-width: 520px; color: rgba(255, 255, 255, 0.8); line-height: 1.65; }
.eg-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.eg-cta__link { font-weight: 500; color: var(--white); border-bottom: 1.5px solid var(--teal); padding-bottom: 2px; transition: color 0.2s; }
.eg-cta__link:hover { color: var(--teal-light); }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .eg-finder__grid { grid-template-columns: 1fr; }
  .eg-mapwrap { position: static; }
  .eg-map { height: 380px; }
}
@media (max-width: 640px) {
  .eg-hero { padding-bottom: 52px; }
  .eg-crumbs { margin-bottom: 32px; }
  .eg-hero__text { font-size: 16px; }
  .eg-hero__cta { width: 100%; justify-content: center; }
  .eg-finder { padding: 52px 0 56px; }
  .eg-dir { padding: 18px; }
  .eg-list { grid-template-columns: 1fr; }
  .eg-cta-sec { padding: 52px 0 56px; }
  .eg-cta { padding: 32px 24px 32px 28px; }
  .eg-cta__actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .eg * { transition: none !important; }
}
