/*
 * Fritzen-Karte ([fritzen_karte]). Alles haengt unter .fk, damit sich Theme
 * und Karte nicht gegenseitig umstylen. .fk-narrow setzt karte.js, sobald
 * der Kartenbereich schmaler als 640 px ist - gemessen am Container, nicht
 * am Fenster, weil die Karte im Seiteninhalt sitzt.
 */
.fk {
  --fk-pink: #e6336b;
  --fk-ink: #1f2430;
  --fk-muted: #5d6475;
  --fk-panel: rgba(255, 255, 255, 0.96);
  --fk-line: #e3e5ea;
  --fk-pauschal: #e6336b;
  --fk-lastminute: #f08c00;
  --fk-shadow: 0 2px 10px rgba(20, 25, 40, 0.16);
  position: relative;
  height: var(--fk-h, 72vh);
  min-height: 460px;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f5f7;
  color: var(--fk-ink);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: left;
}
.fk *, .fk *::before, .fk *::after { box-sizing: border-box; }
.fk .fk-map { position: absolute; inset: 0; }

.fk .fk-panel { position: absolute; background: var(--fk-panel); border-radius: 10px;
  box-shadow: var(--fk-shadow); z-index: 2; }
.fk button { font: inherit; color: inherit; margin: 0; text-transform: none; letter-spacing: normal;
  box-shadow: none; min-height: 0; }

/* Monatsauswahl oben mittig */
.fk .fk-month { top: 12px; left: 50%; transform: translateX(-50%); display: flex;
  align-items: center; padding: 4px; gap: 2px; }
.fk .fk-arrow { width: 36px; height: 36px; font-size: 20px; line-height: 1; border: 0; padding: 0;
  background: transparent; cursor: pointer; border-radius: 7px; color: var(--fk-ink); }
.fk .fk-arrow:hover { background: #f1f2f5; }
.fk .fk-month-name { min-width: 128px; text-align: center; font-weight: 700; font-size: 17px; line-height: 1.25; }
.fk .fk-month-name small { display: block; font-weight: 400; font-size: 11px; color: var(--fk-muted); }

/* Ebenen & Deal-Art links oben */
.fk .fk-layers { top: 12px; left: 12px; padding: 12px 14px; width: 214px; }
.fk .fk-layers h2 { margin: 0 0 8px; padding: 0; font-size: 12px; line-height: 1.3; letter-spacing: .06em;
  text-transform: uppercase; color: var(--fk-muted); font-weight: 700; }
.fk .fk-sep { height: 1px; background: var(--fk-line); margin: 10px 0; }
.fk .fk-row { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; cursor: pointer;
  user-select: none; font-size: 14px; font-weight: 400; }
.fk .fk-row input { accent-color: var(--fk-pink); width: 16px; height: 16px; margin: 0; }
.fk .fk-seg { display: flex; background: #eef0f3; border-radius: 8px; padding: 3px; gap: 3px; }
.fk .fk-seg label { flex: 1; cursor: pointer; margin: 0; }
.fk .fk-seg input { position: absolute; opacity: 0; pointer-events: none; }
.fk .fk-seg span { display: block; text-align: center; padding: 6px 4px; border-radius: 6px; font-size: 12px;
  font-weight: 600; color: var(--fk-muted); line-height: 1.2; }
.fk .fk-seg em { display: block; font-style: normal; font-weight: 400; font-size: 11px; }
.fk .fk-seg input:checked + span { background: #fff; color: var(--fk-ink); box-shadow: 0 1px 3px rgba(20,25,40,.15); }
.fk .fk-seg input[value="pauschal"]:checked + span { color: var(--fk-pauschal); }
.fk .fk-seg input[value="lastminute"]:checked + span { color: var(--fk-lastminute); }
.fk .fk-seg input:focus-visible + span { outline: 2px solid var(--fk-pink); outline-offset: 1px; }
.fk .fk-layers-toggle { display: none; }
.fk .fk-ico { width: 14px; height: 14px; vertical-align: -2px; display: inline-block; }
.fk .fk-hotel-ico { color: #2f6fb5; display: inline-flex; }

/* Legende unten links */
.fk .fk-legend { left: 12px; bottom: 28px; padding: 10px 12px 8px; }
.fk .fk-legend-title { font-size: 12px; color: var(--fk-muted); margin-bottom: 6px; }
.fk .fk-bar { display: flex; height: 12px; border-radius: 3px; overflow: hidden; }
.fk .fk-bar span { width: 11px; }
.fk .fk-ticks { position: relative; height: 16px; font-size: 11px; color: var(--fk-muted);
  font-variant-numeric: tabular-nums; }
.fk .fk-ticks span { position: absolute; transform: translateX(-50%); top: 2px; }

/* Temperatur unter dem Mauszeiger */
.fk .fk-readout { right: 12px; top: 12px; padding: 8px 12px; font-size: 13px; display: none;
  font-variant-numeric: tabular-nums; }
.fk .fk-readout b { font-size: 15px; }
.fk .fk-readout span { color: var(--fk-muted); }

.fk .fk-loading { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: var(--fk-ink); color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 12px;
  opacity: 0; transition: opacity .2s; pointer-events: none; }
.fk .fk-loading.on { opacity: .85; }

/* Klickfenster eines Deals */
.fk .maplibregl-popup-content { padding: 0; border-radius: 10px; box-shadow: var(--fk-shadow); overflow: hidden; }
.fk .maplibregl-popup-close-button { font-size: 18px; width: 28px; height: 28px; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.6); z-index: 1; background: transparent; border: 0; padding: 0; }
.fk .fk-deal { width: 220px; font-size: 12px; line-height: 1.35; }
.fk .fk-deal-img { position: relative; display: block; aspect-ratio: 16 / 9; background: #e9ebef; }
.fk .fk-deal-img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.fk .fk-deal-cat { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 700; color: #fff;
  padding: 1px 5px; border-radius: 3px; text-transform: uppercase; letter-spacing: .03em; }
.fk .fk-deal-body { padding: 7px 9px 9px; }
.fk .fk-ohne-bild .fk-deal-body { padding-top: 10px; padding-right: 26px; }
.fk .fk-ohne-bild .fk-deal-cat { position: static; display: inline-block; margin-bottom: 5px; }
.fk .fk-ohne-bild ~ .maplibregl-popup-close-button { color: var(--fk-muted); text-shadow: none; }
.fk .fk-deal h3 { margin: 0; padding: 0; font-size: 13px; line-height: 1.25; font-weight: 700; color: var(--fk-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fk .fk-deal-ort { color: var(--fk-muted); font-size: 11px; }
.fk .fk-deal-facts { display: flex; gap: 8px; margin: 5px 0 7px; color: var(--fk-muted); font-size: 11px;
  font-variant-numeric: tabular-nums; }
.fk .fk-deal-facts b { color: var(--fk-ink); font-size: 12px; }
.fk .fk-deal-foot { display: flex; align-items: center; justify-content: space-between; }
.fk .fk-deal-price { font-size: 11px; color: var(--fk-muted); }
.fk .fk-deal-price b { font-size: 15px; color: var(--fk-ink); }
.fk a.fk-btn, .fk a.fk-btn:hover { background: var(--fk-pink); color: #fff; text-decoration: none; font-weight: 700;
  padding: 5px 9px; border-radius: 6px; font-size: 11px; }

/* Hinweis, solange die Karte nur fuer Redakteure sichtbar ist */
.fk-vorab { margin: 0 0 8px; padding: 8px 12px; border-left: 4px solid #f08c00; background: #fff4e5;
  color: #5c3a00; font-size: 13px; border-radius: 4px; }

/* Platzhalter vor dem Klick ("Karte laden") */
.fk .fk-consent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: #eef0f3 center / cover no-repeat; }
.fk .fk-consent::before { content: ""; position: absolute; inset: 0; background: rgba(31, 36, 48, 0.28); }
.fk .fk-consent-card { position: relative; max-width: 420px; background: var(--fk-panel); border-radius: 12px;
  box-shadow: var(--fk-shadow); padding: 20px 22px; text-align: center; }
.fk .fk-consent-card h2 { margin: 0 0 6px; padding: 0; font-size: 20px; line-height: 1.25; font-weight: 700;
  color: var(--fk-ink); text-transform: none; letter-spacing: normal; }
.fk .fk-consent-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.45; color: var(--fk-ink); }
.fk .fk-consent-card .fk-consent-hinweis { font-size: 12px; color: var(--fk-muted); }
.fk .fk-consent-card a { color: var(--fk-pink); text-decoration: underline; }
.fk .fk-consent-btn { display: inline-block; border: 0; background: var(--fk-pink); color: #fff; font-weight: 700;
  font-size: 15px; padding: 10px 22px; border-radius: 8px; cursor: pointer; margin: 4px 0 10px; }
.fk .fk-consent-btn:hover { filter: brightness(1.06); }
.fk .fk-consent-btn:focus-visible { outline: 2px solid var(--fk-ink); outline-offset: 2px; }
.fk .fk-consent-merken { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12px;
  color: var(--fk-muted); cursor: pointer; margin: 0; font-weight: 400; }
.fk .fk-consent-merken input { accent-color: var(--fk-pink); margin: 0; width: 14px; height: 14px; }
.fk.fk-laedt .fk-consent-btn { opacity: .7; pointer-events: none; }
.fk.fk-laedt .fk-consent-btn::after { content: " …"; }
.fk .fk-reset { margin: 10px 0 0; font-size: 11px; color: var(--fk-muted); }
.fk .fk-reset button { border: 0; background: transparent; padding: 0; font-size: 11px; color: var(--fk-muted);
  text-decoration: underline; cursor: pointer; }

/* Schmaler Kartenbereich (Handy) */
.fk.fk-narrow .fk-month { top: auto; bottom: 44px; }
.fk.fk-narrow .fk-month-name { min-width: 104px; }
.fk.fk-narrow .fk-layers { width: auto; padding: 0; }
.fk.fk-narrow .fk-layers-toggle { display: block; border: 0; background: transparent; font-weight: 700;
  padding: 10px 14px; cursor: pointer; }
.fk.fk-narrow .fk-layers-body { display: none; padding: 0 14px 12px; width: 214px; }
.fk.fk-narrow .fk-layers.open .fk-layers-body { display: block; }
.fk.fk-narrow .fk-layers.open ~ .fk-legend { display: none; }
.fk.fk-narrow .fk-legend { left: auto; right: 12px; top: 12px; bottom: auto; padding: 8px 10px 4px; }
.fk.fk-narrow .fk-legend-title { display: none; }
.fk.fk-narrow .fk-bar span { width: 5px; }
.fk.fk-narrow .fk-readout { display: none !important; }

/* Lagekarte der Deal-Seiten: Standbild in der Seitenleiste */
.fk-lage { position: relative; }
.fk-lage .fk-lage-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0;
  background: #eef0f3; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 10; }
.fk-lage .fk-lage-btn img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0;
  border-radius: 0; transition: transform .25s; }
.fk-lage .fk-lage-btn:hover img { transform: scale(1.03); }
.fk-lage .fk-lage-btn:focus-visible { outline: 2px solid #e6336b; outline-offset: 2px; }
.fk-lage .fk-lage-cta { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  background: #fff; color: #1f2430; font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 8px 12px; border-radius: 16px; box-shadow: 0 2px 8px rgba(20, 25, 40, .25); white-space: nowrap; }
.fk-lage .fk-lage-quelle { margin-top: 4px; font-size: 10px; color: #8a90a0; text-align: right; }
.fk-lage .fk-lage-quelle a { color: inherit; }
.fk-lage-vorab { margin: 0 0 8px; font-size: 12px; color: #5c3a00; background: #fff4e5; border-left: 3px solid #f08c00;
  padding: 4px 8px; border-radius: 3px; }

/* Grosses Kartenfenster */
.fk-fenster { position: fixed; inset: 0; z-index: 99990; background: rgba(20, 25, 40, .55); display: flex;
  align-items: center; justify-content: center; padding: 24px; }
.fk-fenster-box { position: relative; width: min(1200px, 100%); height: min(820px, 100%); }
.fk-fenster .fk { --fk-h: 100%; min-height: 0; height: 100%; }
.fk-fenster-zu { position: absolute; top: -14px; right: -14px; z-index: 5; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: #fff; color: #1f2430; font: 400 24px/36px system-ui, sans-serif; padding: 0; cursor: pointer;
  box-shadow: 0 2px 10px rgba(20, 25, 40, .3); }
.fk-fenster-zu:focus-visible { outline: 2px solid #e6336b; outline-offset: 2px; }
@media (max-width: 640px) {
  .fk-fenster { padding: 0; }
  .fk-fenster-box { width: 100%; height: 100%; }
  .fk-fenster .fk { border-radius: 0; }
  .fk-fenster-zu { top: 10px; right: auto; left: 50%; transform: translateX(-50%); }
}

/* Modus "lage": nur Deals und Hotels */
.fk.fk-lage-modus .fk-month, .fk.fk-lage-modus .fk-legend, .fk.fk-lage-modus .fk-readout,
.fk.fk-lage-modus .fk-loading, .fk.fk-lage-modus .fk-deal-facts { display: none !important; }
.fk.fk-lage-modus .fk-layers-body > h2:first-child,
.fk.fk-lage-modus .fk-layers-body > .fk-row:has(input[data-fk="temp"]),
.fk.fk-lage-modus .fk-layers-body > .fk-row:has(input[data-fk="rings"]),
.fk.fk-lage-modus .fk-layers-body > .fk-sep { display: none; }
.fk.fk-lage-modus .fk-deal-body h3 { margin-bottom: 2px; }
.fk.fk-lage-modus .fk-deal-ort { margin-bottom: 6px; }

/* Modus "liste": nur die Angebote der Liste, ohne Ebenen-Menue */
.fk.fk-liste-modus .fk-layers { display: none; }
.fk .fk-liste-zeigen { border: 1px solid var(--fk-line); background: #fff; color: var(--fk-ink); font-size: 11px;
  font-weight: 600; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.fk .fk-liste-zeigen:hover { background: #f1f2f5; }
/* Angebotskarte in der Liste nach "In der Liste" kurz hervorheben */
.fk-markiert { outline: 3px solid #e6336b; outline-offset: 3px; transition: outline-color .3s; }
