/* Interaktive Deutschlandkarte (Reinigungs-Übersichtsseiten) */
.de-map {
  --dm-brand: var(--brand, #6558e8);
  --dm-brand-dark: var(--brand-dark, #4f43cf);
  --dm-soft: var(--brand-soft, #efedff);
  --dm-text: var(--text, #25233a);
  --dm-muted: var(--text-soft, #646178);
  --dm-border: var(--border, #e3e1ea);
  --dm-land: #6558e8;
  --dm-other: #e7e5ee;
  width: min(calc(100% - 40px), 1200px);
  margin: 18px auto 8px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--dm-border);
  border-radius: var(--radius-lg, 24px);
  color: var(--dm-text);
}
.de-map h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 4px 0 6px; line-height: 1.2; }
.de-map .cleaning-kicker { margin: 0; }

.de-map__head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.de-map__pfad { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .92rem; color: var(--dm-muted); min-height: 1.5rem; }
.de-map__pfad button { color: var(--dm-brand); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.de-map__pfad button:hover { text-decoration: underline; }
.de-map__pfad .is-aktuell { color: var(--dm-text); font-weight: 600; }


.de-map__layout { display: block; }
@media (max-width: 860px) { .de-map__layout { grid-template-columns: 1fr; } }

.de-map__box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #ebe8f6;
  background:
    radial-gradient(circle at 1px 1px, rgba(101, 88, 232, .09) 1px, transparent 0) 0 0 / 18px 18px,
    radial-gradient(120% 90% at 70% 20%, #f3f1ff 0%, #fbfaff 55%, #ffffff 100%);
  box-shadow: 0 18px 50px -28px rgba(55, 45, 140, .35);
}
.de-map__svg { width: 100%; height: auto; display: block; touch-action: manipulation; max-height: 72vh; filter: drop-shadow(0 10px 14px rgba(70, 58, 170, .16)); }
.de-map__laden { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--dm-muted); }
.de-map__box.is-loading { cursor: progress; }
.de-map__box.is-loading .de-map__svg { opacity: .6; }
/* Navigation direkt in der Karte */
.de-map__hud { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; pointer-events: none; z-index: 3; }
.de-map__hud > * { pointer-events: auto; }
.de-map__zurueck { display: none; width: 36px; height: 36px; flex: none; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid #e3e0f3; background: #fff; color: var(--dm-brand-dark); cursor: pointer; box-shadow: 0 4px 14px rgba(37, 35, 58, .08); transition: background .15s, transform .15s; }
.de-map__zurueck:hover { background: var(--dm-soft); transform: translateX(-2px); }
.de-map__box.is-zoomed .de-map__zurueck { display: inline-flex; }
.de-map__pfad--hud { min-height: 36px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .92); border: 1px solid #e3e0f3; box-shadow: 0 4px 14px rgba(37, 35, 58, .08); font-size: .85rem; gap: 4px; backdrop-filter: blur(6px); max-width: 100%; overflow: hidden; white-space: nowrap; flex-wrap: nowrap; }
.de-map__pfad--hud .is-aktuell { overflow: hidden; text-overflow: ellipsis; }
.de-map__trenner { color: #b7b2cc; margin: 0 2px; }
.de-map__hinweischip { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid #e3e0f3; color: var(--dm-muted); font-size: .78rem; display: inline-flex; align-items: center; gap: 6px; pointer-events: none; z-index: 3; max-width: calc(100% - 24px); }
.de-map__hinweischip:empty { display: none; }
.de-map__hinweischip i { color: var(--dm-brand); }

.de-map__land { fill: #e4e0fd; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .2s ease; outline: none; }
.de-map__land:nth-child(3n+1) { fill: #dcd7fc; }
.de-map__land:nth-child(3n+2) { fill: #e9e6fe; }
.de-map__land:hover, .de-map__land:focus-visible { fill: #8f85f0; }
.de-map__box:not(.is-zoomed) .de-map__laender:hover .de-map__land:not(:hover) { fill: #ebe9f7; }
.de-map__box.is-zoomed .de-map__land { fill: #eceaf3; stroke: #fff; }
.de-map__box.is-zoomed .de-map__land:hover { fill: #dcd8f0; }
.de-map__box.is-zoomed .de-map__land.is-aktiv { fill-opacity: 0; pointer-events: none; }

.de-map__kreis { stroke: #fff; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; transition: filter .15s, opacity .3s; }
.de-map__kreis.has-seite { stroke: var(--dm-brand); stroke-width: 2; }
.de-map__kreis:hover, .de-map__kreis.is-hover { filter: brightness(.9) saturate(1.25); }
.de-map__box.is-kreis .de-map__kreis { opacity: .35; }
.de-map__box.is-kreis .de-map__kreis.is-aktiv { opacity: 1; cursor: default; filter: none; }
.de-map__rb { fill: none; stroke: #5a5480; stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; opacity: .7; }
.de-map__box.is-kreis .de-map__rb { opacity: .2; }

.de-map__stadt { cursor: pointer; }
.de-map__stadtpunkt { fill: #3b3753; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .15s; }
.de-map__stadtpunkt.has-seite { fill: var(--dm-brand); stroke-width: 1.6; }
.de-map__stadt:hover .de-map__stadtpunkt, .de-map__stadtpunkt.is-hover { fill: #e0582a; }
.de-map__klick { fill: transparent; }
.de-map__stadtpunkt.is-aktuell { fill: #e0582a; stroke-width: 2; }
.de-map__stadtring { fill: rgba(224, 88, 42, .15); stroke: #e0582a; stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; animation: de-map-puls 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes de-map-puls { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .de-map__stadtring { animation: none; } }

.de-map__label { fill: var(--dm-text); pointer-events: none; paint-order: stroke; stroke: #fafafe; stroke-linejoin: round; }
.de-map__label--stadt { font-weight: 600; }
.de-map__label--haupt { font-weight: 700; }
.de-map__punkt { fill: var(--dm-text); pointer-events: none; }
.de-map__box.is-zoomed .de-map__ue { display: none; }
.de-map__label--kreis { fill: #5f5c70; stroke: rgba(255, 255, 255, .75); font-style: italic; }
.de-map__label--rb { font-weight: 700; letter-spacing: .02em; fill: #1f1d2e; stroke: rgba(255, 255, 255, .85); }
.de-map__label--ort { fill: #1f1d2e; stroke: rgba(255, 255, 255, .85); }
.de-map__label--ort.is-gross { font-weight: 700; }
.de-map__label--ort.has-seite { fill: var(--dm-brand-dark); font-weight: 700; }
.de-map__label--ort.is-aktuell { fill: #c2410c; font-weight: 800; }

.de-map__tooltip { position: absolute; pointer-events: none; z-index: 5; background: #25233a; color: #fff; border-radius: 10px; padding: 8px 11px; font-size: .84rem; box-shadow: 0 10px 24px rgba(37, 35, 58, .25); white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.de-map__tooltip.is-sichtbar { transform: none; }
.de-map__tooltip.is-sichtbar { opacity: 1; }
.de-map__tooltip small { color: #c9c5dc; display: block; margin-top: 2px; }

.de-map__quelle { color: #8a879c; font-size: .72rem; line-height: 1.45; margin: 10px 2px 0; }
.de-map__quelle i { color: #b2aecb; margin-right: 3px; }
@media (prefers-reduced-motion: reduce) { .de-map__land, .de-map__tooltip, .de-map__zurueck { transition: none; } }
.de-map__seite { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dm-brand); box-shadow: 0 0 0 2px #fff; vertical-align: middle; }
@media (max-width: 600px) {
  .de-map__hinweischip { display: none; }
  .de-map__hud { top: 8px; left: 8px; right: 8px; }
  .de-map__pfad--hud { min-height: 32px; padding: 0 10px; font-size: .78rem; }
  .de-map__zurueck { width: 32px; height: 32px; border-radius: 10px; }
  .de-map__quelle { font-size: 11px; }
}
