/* =========================================================
   wasmachen.ch – Styles (BEREINIGT / vereinheitlicht)
   - Ziel: gleiche Darstellung, weniger Duplikate, stabile Filter-Logik
   ========================================================= */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Balsamiq+Sans:wght@400;700&display=swap');

/* =========================================================
   1) Design Tokens / Base
   ========================================================= */
:root {
  --bg: #fff;
  --text: #0f1a2b;
  --muted: #6b778c;
  --placeholder: #9aa7bd;

  --primary: #5A9BF1;
  /* Blau */
  --accent: #D98C44;
  /* Orange */
  --highlight: #FFC18A;
  /* Apricot */

  --highlight-glow: 0 8px 22px rgba(255, 193, 138, .45);

  --border: #e6e9f0;
  --card: #f6f8fc;

  --shadow-sm: 0 1px 6px rgba(0, 0, 0, .06);
  --shadow: 0 2px 12px rgba(0, 0, 0, .1);

  --radius: 12px;
  --pad: 1.25rem;
  --gutter: 1.5rem;

  /* Tile Buttons (CTA + Video) */
  --tile-btn-h: 36px;
  --tile-btn-pad-x: 12px;
}

/* Base reset */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Balsamiq Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Utilities */
[hidden] {
  display: none !important;
}

/* =========================================================
   2) Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem var(--gutter);
  position: relative;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  height: 44px;
  cursor: pointer;
}

/* =========================================================
   2a) Header Claim – Brand Look (einheitlich, ohne Doppel-Override)
   ========================================================= */
.site-header .header-claim {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;

  /* Mitte im Header */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  padding: 0 1rem;
}

.site-header .claim-main {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
  opacity: .95;
  white-space: nowrap;
  color: #fff;
}

.site-header .claim-sub {
  font-size: .9rem;
  font-weight: 600;
  opacity: .88;
  letter-spacing: .04em;
  color: #fff;
}

@media (max-width: 900px) {
  .site-header .claim-main {
    font-size: 1.05rem;
    letter-spacing: .12em;
    white-space: normal;
  }

  .site-header .claim-sub {
    font-size: .85rem;
  }
}

@media (max-width: 600px) {
  .site-header .header-claim {
    display: none;
  }
}

/* =========================================================
   3) Header Account Button + Dropdown
   ========================================================= */
.header-account-wrapper {
  position: relative;
}

.btn-account {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .10);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.btn-account:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
  transform: translateY(1px);
}

.account-icon {
  width: 22px;
  height: 22px;
  filter: invert(100%);
  opacity: .95;
  transition: opacity .15s ease;
}

.btn-account:hover .account-icon {
  opacity: 1;
}

/* Tooltip (global) */
.tooltip {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  background: #ffffff;
  color: #10213a;
  border-radius: 12px;
  padding: .48rem .8rem;
  font-size: .85rem;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: opacity .14s ease, transform .14s ease;
  z-index: 50;
}

.has-tooltip:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-tooltip-left .tooltip {
  left: 0;
  right: auto;
}

/* Dropdown */
.account-menu {
  position: absolute;
  right: 0;
  min-width: 190px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.17);
  padding: 0.4rem 0;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
  font-family: "Balsamiq Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: .9rem;
  line-height: 1.3;
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  color: #10213a;
  cursor: pointer;
  white-space: nowrap;

  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  border-radius: 999px;
}

.account-menu-item:hover {
  background: #f3f7ff;
}

.account-menu-separator {
  height: 1px;
  margin: .35rem .5rem;
  background: #e2e6f2;
}

.account-menu-item.logout {
  color: #c0392b;
  font-weight: 500;
}

.account-menu-item.logout:hover {
  background: #fff1f0;
}

.header-account-wrapper:hover .account-menu,
.header-account-wrapper.open .account-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-account-wrapper.no-dropdown .account-menu {
  display: none;
}

/* =========================================================
   4) Header CTA Button
   ========================================================= */
.btn-erfassen {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: .55rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s;
}

.btn-erfassen:hover {
  filter: brightness(1.07);
}

/* =========================================================
   5) Buttons (global)
   ========================================================= */
.btn,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .58rem .9rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  border: 1px solid transparent;
  transition: filter .15s, transform .05s;
  min-height: 44px;
}

.btn {
  background: var(--primary);
  color: #fff;
}

.btn:hover {
  filter: brightness(1.02);
}

.btn-secondary {
  background: #ffffff;
  color: var(--accent);
  border: 2px solid var(--accent);
  font-weight: 600;
  box-shadow: none;
  transition: background-color .15s, color .15s, border-color .15s;
}

.btn-secondary:hover {
  background: rgba(217, 140, 68, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:active {
  transform: translateY(1px);
  background: rgba(217, 140, 68, 0.15);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline[aria-expanded="true"] {
  box-shadow: 0 0 0 3px rgba(90, 155, 241, .18);
}

.btn:active,
.btn-outline:active {
  transform: translateY(1px);
}

/* =========================================================
   6) Filter Head + Reset
   ========================================================= */
.filters-wrap {
  position: relative;
}

.filters-wrap>#btn-reset {
  top: 12px;
  right: 12px;
  z-index: 5;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.filters-head__title {
  font-weight: 900;
  color: #0e2a58;
  font-size: 1.05rem;
}

.link-reset {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  color: rgba(0, 0, 0, .55);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.link-reset:hover {
  color: rgba(0, 0, 0, .8);
  background: rgba(0, 0, 0, .04);
}

.link-reset:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .35);
  outline-offset: 2px;
}

/* =========================================================
   7) Hero
   ========================================================= */
.hero {
  margin: 18px auto 28px;
}

.hero-card-tile {
  margin: 0;
}

.card--hero {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 193, 138, .4);
  box-shadow:
    0 0 0 2px rgba(255, 193, 138, 0.55),
    0 8px 22px rgba(255, 193, 138, 0.35),
    0 16px 36px rgba(255, 193, 138, 0.25);
  padding: 0;
}

.hero-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 18px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 80%);
  color: #fff;
}

.hero-text h2 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}

.hero-sub {
  margin: 4px 0 0;
  font-size: 1.15rem;
  opacity: .96;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.hero-actions .hero-cta,
.hero-actions .btn-video-hero {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.4rem;
  min-height: 48px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  border: 0;
}

.hero-actions .hero-cta {
  background: var(--primary);
  color: #fff;
}

.hero-actions .btn-video-hero {
  background: var(--accent);
  color: #fff;
}

.hero-actions .btn-video-hero::before {
  content: "▶";
  font-size: 1.05rem;
  opacity: .95;
  transform: translateY(1px);
}

.hero .card {
  border-radius: 18px;
}

/* =========================================================
   8) Results / Topbar
   ========================================================= */
.results-info {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0 4px;
  font-size: 1.20rem;
  color: var(--muted);
  padding-top: 20px;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .48rem .9rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
}

.btn-nav-primary {
  background: var(--primary);
  color: #fff;
}

.btn-nav-accent {
  background: var(--accent);
  color: #fff;
}

.btn-nav-outline {
  background: #f6f8fb;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-nav-logout {
  background: #fff5f5;
  color: #c0392b;
  border: 1px solid #f0c4c0;
}

.page-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.2rem;
}

.page-topbar-left,
.page-topbar-right {
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* =========================================================
   9) Filterbar / Inputs / Selects
   ========================================================= */
.filterbar {
  margin-top: 16px;
}

.filterbar--location {
  margin-top: 24px;
}

.filterbar.filterbar--location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
}

.filterbar--main {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.filter-group {
  position: relative;
}

.filter-group label {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin: 0 0 .35rem;
  color: #0e2a58;
}

.filter-group input[type="text"],
.filter-group select {
  width: 100%;
  padding: .64rem .9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  line-height: 1.2;
  outline: none;
  transition: border-color .15s, box-shadow .15s, color .15s;
  min-height: 44px;
}

.filter-group input[type="text"]:focus,
.filter-group select:focus {
  border-color: #b9c6ff;
  box-shadow: 0 0 0 3px rgba(90, 155, 241, .18);
}

/* Select Styling */
.filter-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23112233' d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 16px;
  padding-right: 2rem;
}

.filter-group select.is-empty {
  color: var(--placeholder);
}

.filter-group select option {
  color: var(--text);
}

/* Clearable Select */
.select-wrap .select-clear {
  position: absolute;
  right: 2.1rem;
  top: calc(50% + 0.55rem);
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(17, 34, 51, .08);
  color: #112233;
  font-size: 16px;
  display: none;
  align-items: center;
  justify-content: center;
}

.select-wrap.has-value .select-clear {
  display: inline-flex;
}

.select-wrap .select-clear:hover {
  background: rgba(17, 34, 51, .15);
}

/* Range */
.filter-group.range input[type="range"] {
  width: 100%;
  cursor: pointer;
  accent-color: var(--primary);
}

.radius-disabled {
  opacity: .5;
  pointer-events: none;
}

/* Autocomplete */
.suggestions {
  position: absolute;
  z-index: 15;
  list-style: none;
  margin: .25rem 0 0;
  padding: 0;
  width: clamp(280px, 100%, 520px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.suggestions li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: .5rem .75rem;
  cursor: pointer;
  font-size: .98rem;
}

.suggestions li:hover,
.suggestions li.active {
  background: #eef4ff;
}

.suggestions .ort {
  font-weight: 700;
}

.suggestions .plz {
  color: var(--muted);
}

/* =========================================================
   9a) Filter Actions + Advanced Toggle (einheitlich)
   ========================================================= */
.filter-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}

.filterbar--actions {
  margin-top: 14px;
}

.filterbar--actions .filter-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.filterbar--advanced-toggle {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.toggle-advanced {
  margin-left: auto;
  border: 1px solid rgba(90, 155, 241, .28);
  background: transparent;
  color: #626f87;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 180px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .58rem .9rem;
  border-radius: 10px;
  transition: color .15s, border-color .15s, background-color .15s, transform .08s;
  min-height: 44px;
}



.toggle-advanced::after {
  content: "▾";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(90, 155, 241, .10);
  color: currentColor;
  font-size: .72rem;
  transform: rotate(0deg);
  transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
  opacity: .85;
}

.toggle-advanced:hover {
  color: #0e2a58;
  border-color: rgba(90, 155, 241, .45);
  background: rgba(90, 155, 241, .06);
}

.toggle-advanced:active {
  transform: translateY(1px);
}

.toggle-advanced:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(90, 155, 241, .16);
}

.toggle-advanced[aria-expanded="true"] {
  color: #0e2a58;
  border-color: rgba(90, 155, 241, .55);
  background: rgba(90, 155, 241, .08);
}

.toggle-advanced[aria-expanded="true"]::after {
  transform: rotate(180deg);
  background: rgba(90, 155, 241, .14);
}

/* NUR "Erweiterte Optionen" in der Advanced-Toggle-Zeile */
.filterbar--advanced-toggle .toggle-advanced {
  min-height: 38px;
  padding: .45rem .75rem;
  min-width: 160px;
  font-size: .80rem;
  font-weight: 600;
  color: #6b778c;
  border: 1px solid rgba(230,233,240,.95);
  background: transparent;
}

.filterbar--advanced-toggle .toggle-advanced:hover {
  color: #0e2a58;
  background: rgba(90,155,241,.05);
  border-color: rgba(90,155,241,.25);
}

.filterbar--advanced-toggle .toggle-advanced::after {
  background: rgba(90,155,241,.07);
  opacity: .75;
}


/* Buttons Reihenfolge + Breite (einmalig, ohne Duplikate) */
#btn-more {
  order: 1;
}

#btn-apply {
  order: 2;
  min-width: 200px;
}

/* =========================================================
   9b) QUICK TOGGLES – Design + Visibility (WICHTIG)
   ========================================================= */
/* Visibility:
   Standard: verstecken
   Nur zeigen, wenn #main-panel offen ist UND direkt davor steht */
/* Visibility (NEU):
   Toggles sind jetzt IN #main-panel (dein neues HTML).
   => deshalb nicht mehr mit "+", sondern als Kind-Selektor */
/* Toggles sind IN #main-panel => sie müssen über alle Grid-Spalten gehen */
#main-panel .filterbar--toggles {
  grid-column: 1 / -1;
  margin-top: 14px;     /* statt 12px (gleich wie filterbar--main) */
  padding-top: 0;       /* statt 10px */
}

/* Optional: falls du sie NUR zeigen willst, wenn main-panel offen ist:
   (eigentlich nicht nötig, weil main-panel selbst hidden ist)
*/
/*
#main-panel[hidden] .filterbar--toggles { display: none; }
*/


/* Layout: 4 / 2 / 1 Spalten */
.filterbar--toggles .filter-toggles,
.filter-toggles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: stretch;
}

/* Schnellfilter Titel – exakt wie andere Filter-Labels */
.filterbar--toggles > label {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin: 0 0 .35rem;
  color: #0e2a58;
}

@media (max-width: 920px) {

  .filterbar--toggles .filter-toggles,
  .filter-toggles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {

  .filterbar--toggles .filter-toggles,
  .filter-toggles {
    grid-template-columns: 1fr;
  }
}

/* Toggle-Style (einheitlich) */
label.filter-toggle,
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;

  color: var(--muted);
  font-weight: 500;
  font-size: .92rem;  
  cursor: pointer;
  user-select: none;

  transition: border-color .15s, background .15s, box-shadow .15s;
}


label.filter-toggle:hover,
.filter-toggle:hover {
  border-color: rgba(90, 155, 241, .35);
  background: rgba(90, 155, 241, .04);
}

/* Checkbox als State */
label.filter-toggle input[type="checkbox"],
.filter-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* aktiv */
label.filter-toggle:has(input:checked),
.filter-toggle:has(input:checked) {
  border-color: rgba(90, 155, 241, .55);
  background: rgba(90, 155, 241, .08);
  box-shadow: 0 0 0 3px rgba(90, 155, 241, .10);
}

/* QUICK TOGGLES – weniger dominant */
label.filter-toggle,
.filter-toggle {
  font-weight: 300;              /* war 600 */
  font-size: .92rem;             /* optional: minimal kleiner */
  color: 9AA7BD;           /* statt dunklem Blau */
  background: #fff;
  border-color: rgba(230,233,240,.9); /* etwas softer */
}

/* Hover weniger auffällig */
label.filter-toggle:hover,
.filter-toggle:hover {
  background: rgba(90,155,241,.03);
  border-color: rgba(90,155,241,.22);
}

/* Aktiv: darf klar sein (aber nicht so “boxy”) */
label.filter-toggle:has(input:checked),
.filter-toggle:has(input:checked) {
  color: #0e2a58;
  font-weight: 400;              /* aktiv wieder etwas kräftiger */
  background: rgba(90,155,241,.06);  /* war .08 */
  border-color: rgba(90,155,241,.40);/* war .55 */
  box-shadow: 0 0 0 2px rgba(90,155,241,.10); /* war 3px */
}


/* =========================================================
   10) Advanced Search (Text) + Clearable Input
   ========================================================= */
.adv-search {
  max-width: 100%;
}

.adv-search label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.adv-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.adv-search-row input[type="search"] {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e6e8f0;
  padding: 0 14px;
  outline: none;
}

.adv-search-row input[type="search"]:focus {
  border-color: #c8cdef;
}

.adv-search-clear {
  height: 42px;
  width: 42px;
  border-radius: 12px;
  border: 1px solid #e6e8f0;
  background: white;
  cursor: pointer;
}

.adv-search-hint {
  display: block;
  margin-top: 6px;
  opacity: 0.7;
  font-size: 12px;
}

.adv-search>label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0e2a58;
  margin-bottom: 0.25rem;
  display: inline-block;
}

/* Clear-Button im Input */
.input-wrap--clearable {
  position: relative;
  width: 100%;
}

.input-wrap--clearable input {
  width: 100%;
  padding-right: 40px;
}

.input-wrap--clearable .input-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

/* =========================================================
   11) Advanced Panel
   ========================================================= */
.advanced-panel {
  margin: 10px 0 2px;
  padding: 10px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.advanced-panel fieldset {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: none;
  border-radius: 12px;
  margin: 0;
  padding: 10px 12px;
}

.adv-grid {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.advanced-panel legend {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1f2a44;
  letter-spacing: 0.02em;
}

.advanced-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 0.9rem;
  color: var(--text);
}

.advanced-panel input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

#advanced-panel {
  transition: opacity .18s ease, transform .18s ease;
}

#advanced-panel[hidden] {
  opacity: 0;
  transform: translateY(-4px);
}

#advanced-panel:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   12) Filters Wrap (final, einzige Definition)
   ========================================================= */
.filters-wrap {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(230, 233, 240, .95);
  border-radius: 16px;
  background: #fff;
}

.filters-wrap.has-advanced {
  background: #fafcff;
}

@media (max-width: 540px) {
  .filters-wrap {
    padding: 12px .75rem;
  }

  .filterbar--actions .filter-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #btn-more,
  #btn-apply {
    width: 100%;
    min-width: 0;
  }
}

/* Results/Grid: Flush wie vorher */
.card-grid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 10px;
  padding-bottom: 60px;
}

/* =========================================================
   13) Grid & Cards
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 10px 0 60px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}

.card--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.card--highlight {
  outline: 2px solid var(--highlight);
  box-shadow: var(--highlight-glow);
}

.card--highlight:hover {
  box-shadow: 0 10px 28px rgba(255, 193, 138, .6);
}

.media {
  position: relative;
}

.tile-image {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* Favoriten */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

.fav-heart {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  transition: fill .2s ease, stroke .2s ease, transform .15s ease;
  opacity: 0.95;
}

.fav-btn.active .fav-heart {
  fill: #ff3b3b;
  stroke: #ff3b3b;
  transform: scale(1.06);
}

/* Highlight Badge */
.badge--highlight {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: .28rem .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 140, 68, 0.751);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: white;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 999px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .20);
  z-index: 4;
}

.badge--highlight::before {
  content: "✨";
  margin-right: .35rem;
  font-size: .9rem;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: .75rem .9rem;

  /* Platz für Buttons unten */
  padding-bottom: calc(10px + var(--tile-btn-h) + 10px);

  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .45) 80%);
  color: #fff;
  z-index: 2;
}

.overlay .title {
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.overlay .subtitle {
  font-size: .95rem;
  opacity: .95;
}

/* CTA-Row unten links pinnen */
.overlay .cta-row {
  position: absolute;
  left: 10px;
  bottom: 10px;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: var(--tile-btn-h);
  min-height: var(--tile-btn-h);
  padding: 0 var(--tile-btn-pad-x);

  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;

  cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.cta:hover {
  background: #498DE4;
  box-shadow: 0 3px 10px rgba(90, 155, 241, .45);
}

.cta:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

/* Video Button Tile (unten rechts) */
.btn-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: var(--tile-btn-h);
  min-height: var(--tile-btn-h);
  padding: 0 var(--tile-btn-pad-x);

  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;

  border: 0;
  cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.btn-video:hover {
  background: #c65a36;
  box-shadow: 0 3px 10px rgba(217, 140, 68, .45);
}

.btn-video:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.btn-video-tile {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

/* Saison */
.card--season-closed .tile-image {
  filter: grayscale(.25) brightness(.96);
}

.season-strip.top-strip {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: .28rem .85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  background: rgba(15, 26, 43, 0.55);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .20);
  z-index: 4;
}

.season-strip__text {
  color: white;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

/* Deal Badge */
.badge--deal {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: .26rem .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 190, 65, 0.897);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #ffffff;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 999px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .20);
  z-index: 4;
}

/* Kombinationen */
.badge--highlight+.badge--deal {
  top: 42px;
}

.badge--highlight+.season-strip.top-strip {
  top: 42px;
}

.badge--deal+.season-strip.top-strip {
  top: 42px;
}

.badge--highlight+.badge--deal+.season-strip.top-strip {
  top: 74px;
}

.card--deal.card--clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 199, 89, 0.35);
}

.empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
}

/* =========================================================
   14) Lightbox
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lb-media {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

.lb-video {
  width: min(540px, 90vw);
  aspect-ratio: 9/16;
  object-fit: cover;
}

.lb-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 22px;
}

.lb-close:hover {
  background: rgba(255, 255, 255, .22);
}

/* =========================================================
   15) Footer (legacy footer styles)
   ========================================================= */
.footer {
  background: linear-gradient(180deg, var(--primary) 0%, #3f86e8 100%);
  color: #fff;
  margin-top: 8px;
}

.f-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  padding: 24px 1.5rem;
}

.f-logo {
  height: 36px;
  margin-bottom: 8px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .15));
}

.f-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.f-links li {
  margin: .35rem 0;
}

.f-links a {
  color: #fff;
  opacity: .9;
}

.f-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.f-icons {
  display: flex;
  gap: .5rem;
}

.f-ic {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.f-bottom {
  padding: 12px 1.5rem;
  background: var(--accent);
  color: #fff;
  text-align: center;
}

/* =========================================================
   16) Inputs Placeholder (global)
   ========================================================= */
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  font-style: normal;
  opacity: 0.7;
  font-size: .95rem;
  font-weight: 400;
}

input::-webkit-input-placeholder {
  color: var(--muted);
  opacity: 0.7;
}

input:-moz-placeholder {
  color: var(--muted);
  opacity: 0.7;
}

select option[disabled] {
  color: var(--primary);
  font-style: normal;
  background: #ffffff;
}

/* =========================================================
   17) Responsive (Breakpoints, bereinigt)
   ========================================================= */
@media (max-width:1180px) {
  .filterbar--main {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .adv-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width:920px) {
  .hero-image {
    height: 300px;
  }

  .hero-text h2 {
    font-size: 2.1rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .filterbar.filterbar--location {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filterbar--main {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .adv-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:540px) {
  .hero-image {
    height: 200px;
  }

  .hero-overlay {
    padding: 10px 10px 14px;
    gap: .6rem;
  }

  .hero-text h2 {
    font-size: 1.45rem;
  }

  .hero-sub {
    font-size: .9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .45rem;
    width: 100%;
  }

  .hero-actions .hero-cta,
  .hero-actions .btn-video-hero {
    width: 100%;
    min-height: 42px;
    padding: .55rem 1rem;
    font-size: .95rem;
  }

#main-panel .filterbar--toggles {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 0;
}


  .filterbar--main {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .filter-group label {
    font-size: .8rem;
    margin-bottom: .25rem;
  }

  .filter-group input[type="text"],
  .filter-group select {
    min-height: 40px;
    padding: .5rem .75rem;
    font-size: .9rem;
  }

  .filter-actions {
    justify-content: stretch;
    gap: 6px;
  }

  .filter-actions .btn,
  .filter-actions .btn-secondary {
    flex: 1 1 auto;
    min-height: 40px;
    font-size: .9rem;
    padding: .45rem .5rem;
  }

  .adv-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
    padding: 18px .75rem 40px;
    gap: 14px;
  }
}

/* =========================================================
   18) Mobile Header – App Vibes (bereinigt, ohne nested @media)
   ========================================================= */
@media (max-width: 720px) {
  .site-header .header-inner.container.header-new {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;

    padding: 14px 16px !important;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .site-header .header-inner.container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .site-header .header-claim {
    display: none !important;
  }

  .site-header .header-logo {
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 12px;
  }

  .site-header .header-logo img {
    height: 34px;
  }

  .site-header #btn-erfassen-link {
    display: none !important;
  }

  .site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 8px;
  }

  /* Hover-open auf Touch vermeiden */
  .header-account-wrapper:hover .account-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
  }

  /* Dropdown als Screen-Popover */
  .header-account-wrapper .account-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 92px;

    min-width: 0;
    max-width: none;

    max-height: calc(100vh - 110px - env(safe-area-inset-bottom));
    overflow-y: auto;

    z-index: 9999;
    border-radius: 16px;
    padding: .55rem 0;
  }

  .header-account-wrapper.open .account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header-account-wrapper .account-menu-item {
    padding: .55rem 1rem;
    font-size: .95rem;
  }

  .header-account-wrapper .account-menu-separator {
    margin: .45rem .75rem;
  }

  /* Actions auf Mobile full width (Filterbereich) */
  .filterbar--actions .filter-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #btn-apply,
  #btn-more {
    width: 100%;
    min-width: 0;
  }

  .filterbar--advanced-toggle {
    justify-content: stretch;
  }

  #btn-advanced {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .site-header .header-inner.container.header-new {
    padding: 12px 14px !important;
  }

  .site-header .header-inner.container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .site-header .header-logo img {
    height: 32px;
  }

  .header-account-wrapper .account-menu {
    left: 12px;
    right: 12px;
    top: 88px;
    max-height: calc(100vh - 104px - env(safe-area-inset-bottom));
  }
}

/* =========================================================
   TABLET HEADER FIX (iPad / Tablets)
   - verhindert Überlappungen durch absolute Center-Claim
   - sauber: Logo | Claim | Actions
   ========================================================= */
@media (min-width: 721px) and (max-width: 1024px) {

  /* 3-Spalten Layout statt absolute Claim */
  .site-header .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
  }

  /* Claim nicht mehr absolut zentrieren -> kein Overlap */
  .site-header .header-claim {
    position: static;
    left: auto;
    transform: none;
    padding: 0;
    justify-self: center;
    max-width: 420px;
  }

  /* Typo etwas kompakter + darf umbrechen */
  .site-header .claim-main {
    font-size: 1.0rem;
    letter-spacing: .10em;
    white-space: normal;
    line-height: 1.15;
  }

  .site-header .claim-sub {
    font-size: .82rem;
    line-height: 1.15;
  }

  /* Logo + Actions minimal kompakter */
  .site-header .header-logo img {
    height: 40px;
  }

  .site-header .header-actions {
    justify-self: end;
    gap: 10px;
  }

  .site-header .btn-erfassen {
    padding: .5rem .85rem;
    font-size: .95rem;
  }
}


/* =========================================================
   19) Form Styles (Aktivität erfassen etc.)
   ========================================================= */
.page-form .topbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: .9rem;
  margin-bottom: .5rem;
}

.page-form .back {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: .48rem .8rem;
  border-radius: 10px;
  font-weight: 700;
}

.form-intro {
  margin: 1rem 0 1.2rem;
}

.form-intro h1 {
  margin: 0 0 .3rem;
}

.form-intro p {
  margin: 0;
  color: var(--muted);
}

.form-card {
  background: #f3f8fe;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.3rem 1.4rem;
  margin-bottom: 2rem;
}

.activity-form h2 {
  margin: 1.1rem 0 .6rem;
  font-size: 1.15rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: #0e2a58;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: .96rem;
  padding: .55rem .75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  outline: none;
  min-height: 40px;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #b9c6ff;
  box-shadow: 0 0 0 3px rgba(90, 155, 241, .18);
}

.help {
  font-size: .8rem;
  color: var(--muted);
  margin: .25rem 0 0;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
}

.checkbox-group label {
  font-weight: 400;
  font-size: .9rem;
}

.checkbox-group input[type="checkbox"] {
  margin-right: .4rem;
  accent-color: var(--primary);
}

.checkbox-group span {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  font-size: .9rem;
}

.form-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.page-form .activity-form .form-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.page-form .activity-form .form-actions--single-right {
  justify-content: flex-end;
}

@media (max-width:920px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   20) Gutschein Modal (global)
   ========================================================= */
.voucher-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.voucher-modal.open {
  display: flex;
}

.voucher-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}

.voucher-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  max-width: 520px;
  width: 100%;
  z-index: 1;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.voucher-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.voucher-header {
  text-align: center;
  margin-bottom: 1rem;
}

.voucher-logo {
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: .2rem;
}

.voucher-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.voucher-activity {
  margin: .3rem 0 0;
  color: #555;
  font-size: .95rem;
}

.voucher-main {
  border-radius: 14px;
  background: linear-gradient(135deg, #0f9d58, #34c27a);
  color: #fff;
  padding: 1rem 1.2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.voucher-discount {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: .35rem;
}

.voucher-code-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .8;
}

.voucher-code {
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  letter-spacing: .16em;
  margin-top: .2rem;
}

.voucher-meta p {
  margin: .15rem 0;
  font-size: .9rem;
}

.voucher-info {
  margin-top: .4rem;
  font-size: .8rem;
  color: #777;
}

.voucher-footer {
  margin-top: 1rem;
  text-align: right;
}

.btn-deal {
  margin-top: .75rem;
  background: #0f9d58;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .55rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.btn-deal[hidden] {
  display: none !important;
}

/* =========================================================
   21) Footer WMF4 – STRICT SCOPED (wie gehabt, unverändert)
   (dein Block ist lang, aber sauber gescoped; ich lasse ihn bewusst so)
   ========================================================= */

/* --- START WMF4 (dein Originalblock bleibt, wenn du willst, kann ich ihn im nächsten Schritt auch noch “komprimieren”) --- */

#site-footer .wmf4 {
  background: var(--primary);
  color: #fff;
  margin-top: 18px;
  position: relative;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  overflow: hidden;
}

#site-footer .wmf4::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, .16);
}

#site-footer .wmf4::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .10), rgba(0, 0, 0, 0));
  pointer-events: none;
  opacity: .22;
}

#site-footer .wmf4-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
  padding: 28px 1.5rem 24px;
  position: relative;
  z-index: 1;
}

#site-footer .wmf4-block {
  min-width: 0;
}

#site-footer .wmf4-h {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .10em;
  text-transform: uppercase;
  opacity: .92;
  line-height: 1.1;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

#site-footer .wmf4-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2px;
}

#site-footer .wmf4-logoLink {
  display: inline-flex;
  width: max-content;
  justify-content: center;
}

#site-footer .wmf4-logo {
  height: 30px;
  width: auto;
  max-width: 100%;
  display: block;
  filter: none;
}

#site-footer .wmf4-claim {
  margin: 10px 0 0;
  opacity: .92;
  line-height: 1.35;
  font-size: .98rem;
  max-width: 38ch;
  letter-spacing: .12em;
  font-weight: 900;
}

#site-footer .wmf4-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-footer .wmf4-li {
  margin: .46rem 0;
}

#site-footer .wmf4-a {
  color: #fff;
  opacity: .92;
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .45);
  transition: opacity .12s ease, text-decoration-color .12s ease, transform .12s ease, background .12s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
}

#site-footer .wmf4-a:hover {
  opacity: 1;
  text-decoration: none;
  background: rgba(255, 255, 255, .08);
}

#site-footer .wmf4-a.is-active {
  opacity: 1;
  text-decoration-color: rgba(255, 255, 255, 1);
}

#site-footer .wmf4-contactMail {
  display: inline-flex;
  font-weight: 900;
  padding: 0;
  background: transparent;
  border: none;
}

#site-footer .wmf4-mini {
  margin: 12px 0 0;
  opacity: .9;
  line-height: 1.35;
  font-size: .92rem;
  max-width: 38ch;
}

#site-footer .wmf4-news {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  border-radius: 16px;
  padding: 14px 14px 12px;
}

#site-footer .wmf4-newsHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

#site-footer .wmf4-h--news {
  margin: 0;
  flex: 1;
}

#site-footer .wmf4-newsText {
  margin: 10px 0 12px;
  opacity: .92;
  font-size: .92rem;
  line-height: 1.35;
}

#site-footer .wmf4-pill {
  font-size: .78rem;
  font-weight: 900;
  padding: .20rem .60rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .12);
  white-space: nowrap;
}

#site-footer .wmf4-pill.is-ok {
  background: rgba(217, 140, 68, .28);
  border-color: rgba(217, 140, 68, .55);
}

#site-footer .wmf4-pill.is-warn {
  background: rgba(0, 0, 0, .18);
  border-color: rgba(255, 255, 255, .30);
}

#site-footer .wmf4-pill.is-info {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .24);
}

#site-footer .wmf4-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-weight: 900;
}

#site-footer .wmf4-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#site-footer .wmf4-toggleUI {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .95);
  position: relative;
  transition: background .15s ease, border-color .15s ease;
}

#site-footer .wmf4-toggleUI::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: left .15s ease, background .15s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

#site-footer .wmf4-toggle input:checked+.wmf4-toggleUI::after {
  left: 23px;
  background: var(--accent);
}

#site-footer .wmf4-toggleLabel {
  font-size: .92rem;
  opacity: .98;
}

#site-footer .wmf4-note,
#site-footer .wmf4-msg {
  display: block;
  margin-top: 10px;
  opacity: .9;
  font-size: .82rem;
  line-height: 1.35;
}

#site-footer .wmf4-msg {
  margin-top: 8px;
  opacity: .98;
  font-weight: 900;
}

#site-footer .wmf4-bottom {
  border-top: 1px solid rgba(255, 255, 255, .16);
  position: relative;
  z-index: 1;
}

#site-footer .wmf4-bottomInner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 1.5rem 18px;
}

#site-footer .wmf4-bottomLeft {
  opacity: .9;
}

#site-footer .wmf4-bottomMid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

#site-footer .wmf4-socialBtn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  text-decoration: none;
  color: #fff;
}

#site-footer .wmf4-socialBtn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: .95;
}

#site-footer .wmf4-socialBtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .34);
}

#site-footer .wmf4-top {
  justify-self: end;
  width: auto;
  height: 44px;
  padding: 0 .75rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

#site-footer .wmf4-top:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .34);
}

#site-footer a:focus-visible,
#site-footer button:focus-visible,
#site-footer input:focus-visible+.wmf4-toggleUI {
  outline: 2px solid rgba(255, 255, 255, .92);
  outline-offset: 3px;
  border-radius: 10px;
}

@media (max-width: 980px) {
  #site-footer .wmf4-inner {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  #site-footer .wmf4-bottomInner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  #site-footer .wmf4-top {
    justify-self: start;
  }
}

@media (max-width: 980px) {
  #site-footer .wmf4-bottomInner {
    grid-template-columns: 1fr;
    justify-items: center;
    /* fix: ce -> center */
  }

  #site-footer .wmf4-bottomMid {
    width: 100%;
    justify-content: center;
    /* statt flex-start */
  }
}


@media (max-width: 560px) {
  #site-footer .wmf4 {
    padding-bottom: env(safe-area-inset-bottom);
  }

  #site-footer .wmf4-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 16px 12px;
  }

  #site-footer .wmf4-block {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    padding: 14px 14px 12px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
  }

  #site-footer .wmf4-brand {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  #site-footer .wmf4-bottomInner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 16px 18px;
  }

  #site-footer .wmf4-bottomMid {
    justify-content: center;
  }

  #site-footer .wmf4-bottomLeft {
    justify-self: center;
    text-align: center;
  }

  #site-footer .wmf4-top {
    justify-self: center;
    width: 100%;
    max-width: 280px;
  }
}


/* --- END WMF4 --- */


/* ========================================================= MOBILE HERO ("Aktivität der Woche") – Typo verkleinern Ziel: Badge klein oben links, Titel/Subtext deutlich kleiner, CTA leicht kompakter – für grosse + kleine Handys ========================================================= */
/* Mobile allgemein (alles bis 720px) */
@media (max-width: 720px) {

  /* Hero-Bild: etwas kompakter, damit Text nicht so riesig wirken muss */
  .card--hero .hero-image {
    height: 220px;
    /* war 200px bei <=540, hier etwas harmonischer bis 720 */
  }

  /* Overlay: weniger Padding, weniger "Wucht" */
  .card--hero .hero-overlay {
    padding: 10px 12px 14px;
    gap: .55rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .52) 78%);
  }

  /* Badge "Aktivität der Woche": deutlich kleiner + oben links */
  .card--hero .hero-badge {
    top: 10px;
    left: 10px;
    padding: .30rem .60rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .20);
  }

  /* Titel + Subtext: stark verkleinern, trotzdem lesbar */
  .card--hero .hero-text h2 {
    font-size: clamp(1.05rem, 4.3vw, 1.45rem);
    /* klein auf Phones, etwas grösser auf grossen Phones */
    line-height: 1.10;
    margin: 0;
    max-width: 22ch;
    text-wrap: balance;
  }

  .card--hero .hero-sub {
    font-size: clamp(.78rem, 3.2vw, .95rem);
    line-height: 1.25;
    margin: 2px 0 0;
    max-width: 34ch;
    text-wrap: pretty;
    opacity: .94;
  }

  /* CTA: darf gross bleiben, aber minimal kompakter */
  .card--hero .hero-actions {
    width: 100%;
    gap: .45rem;
  }

  .card--hero .hero-actions .hero-cta {
    width: 100%;
    min-height: 44px;
    /* war 42px bei <=540 – „tappy“ aber nicht zu dick */
    padding: .60rem 1rem;
    /* leicht kompakter */
    font-size: .95rem;
    border-radius: 14px;
  }
}

/* Kleine Phones (<= 380px): noch kompakter */
@media (max-width: 380px) {
  .card--hero .hero-image {
    height: 200px;
  }

  .card--hero .hero-overlay {
    padding: 9px 10px 12px;
    gap: .45rem;
  }

  .card--hero .hero-badge {
    top: 9px;
    left: 9px;
    padding: .26rem .52rem;
    font-size: .72rem;
  }

  .card--hero .hero-text h2 {
    font-size: 1.02rem;
    max-width: 20ch;
  }

  .card--hero .hero-sub {
    font-size: .78rem;
    max-width: 30ch;
  }

  .card--hero .hero-actions .hero-cta {
    min-height: 42px;
    padding: .55rem .9rem;
    font-size: .92rem;
  }
}

/* Ende von MOBILE HERO ("Aktivität der Woche") – */

/* Kleine Phones (<= 380px): noch kompakter */
@media (max-width: 380px) {
  .card--hero .hero-image {
    height: 200px;
  }

  .card--hero .hero-overlay {
    padding: 9px 10px 12px;
    gap: .45rem;
  }

  .card--hero .hero-badge {
    top: 9px;
    left: 9px;
    padding: .26rem .52rem;
    font-size: .72rem;
  }

  .card--hero .hero-text h2 {
    font-size: 1.02rem;
    max-width: 20ch;
  }

  .card--hero .hero-sub {
    font-size: .78rem;
    max-width: 30ch;
  }

  .card--hero .hero-actions .hero-cta {
    min-height: 42px;
    padding: .55rem .9rem;
    font-size: .92rem;
  }
}

/* ---------------------------------------------------------
   Einheitlicher Abstand im #main-panel (Grid-Gap statt Margins)
--------------------------------------------------------- */
#main-panel{
  /* #main-panel ist bereits ein Grid -> wir definieren nur das Gap */
  gap: 14px 16px;              /* vertikal | horizontal */
}

#main-panel .filterbar{
  margin-top: 0 !important;    /* verhindert "doppelten" Abstand */
}

#main-panel .filterbar--location,
#main-panel .filterbar--main,
#main-panel .filterbar--toggles,
#main-panel .filterbar--actions,
#main-panel .filterbar--advanced-toggle{
  margin-top: 0 !important;
  padding-top: 0 !important;
}



@media (max-width: 720px){
  .card--hero .hero-sub{
    display: none; /* oder: font-size: .78rem; opacity: .88; */
  }

  .card--hero .hero-text h2{
    font-size: clamp(1.0rem, 4.0vw, 1.25rem);
    letter-spacing: .02em;
  }

  /* HERO CTA: nicht mehr wie Primary-Button */
.card--hero .hero-actions .hero-cta{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  box-shadow: none;
  font-weight: 600;
}

.card--hero .hero-actions .hero-cta:hover{
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.65);
}

}

/* =========================================================
   MOBILE TILE TUNING (Kacheln im Grid) – kompakter, ruhiger
   NUR Mobile (bis 540px) – Desktop bleibt wie er ist
   ========================================================= */
@media (max-width: 540px){

  /* Karten allgemein etwas weniger rund + weniger "Wucht" */
  .card{
    border-radius: 14px;
  }

  /* Bild etwas „stabiler“ auf Mobile */
  .tile-image{
    aspect-ratio: 16/10; /* war 3/2 -> wirkt auf Mobile oft hoch */
  }

  /* Overlay kompakter */
  .overlay{
    padding: .55rem .7rem;
    padding-bottom: calc(8px + var(--tile-btn-h) + 8px); /* weniger Reserve */
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.42) 85%);
  }

  /* Titel / Subtitle kleiner */
  .overlay .title{
    font-size: 1.0rem;      /* war 1.1rem */
    line-height: 1.15;
  }

  .overlay .subtitle{
    font-size: .86rem;      /* war .95rem */
    line-height: 1.2;
    opacity: .92;
  }

  /* CTA Row etwas enger */
  .overlay .cta-row{
    left: 8px;
    bottom: 8px;
    gap: 6px;
  }

  /* Buttons kleiner (global für Tiles) */
  :root{
    --tile-btn-h: 32px;       /* war 36px */
    --tile-btn-pad-x: 10px;   /* war 12px */
  }

  .cta,
  .btn-video{
    border-radius: 8px;     /* war 9px */
    font-size: .88rem;      /* war .95rem */
    font-weight: 700;
  }

  /* Video-Button rechts unten auch etwas näher ran */
  .btn-video-tile{
    right: 8px;
    bottom: 8px;
  }

  /* Chips/Badges kleiner */
  .badge--highlight,
  .badge--deal,
  .season-strip.top-strip{
    padding: .20rem .60rem;  /* kleiner */
    font-size: .70rem;       /* war ~.78/.8 */
    letter-spacing: .03em;
  }

  /* Abstand-Kombinationen etwas kompakter */
  .badge--highlight + .badge--deal,
  .badge--highlight + .season-strip.top-strip,
  .badge--deal + .season-strip.top-strip{
    top: 36px; /* war 42px */
  }

  .badge--highlight + .badge--deal + .season-strip.top-strip{
    top: 62px; /* war 74px */
  }

  /* Favorite-Heart minimal kleiner */
  .fav-heart{
    width: 22px;
    height: 22px;
  }
}

/* =========================================================
   MOBILE: Select / Dropdown Optimierung (nur <= 540px)
   - größere Tap-Zone
   - bessere Lesbarkeit im Dropdown
   - saubere Pfeil-Position + iOS Fixes
   ========================================================= */
@media (max-width: 540px) {

  /* Mobile Select: größer + besser lesbar */
  .filter-group select {
    min-height: 48px;                 /* größere Tap-Fläche */
    padding: .72rem 2.4rem .72rem .85rem; /* rechts Platz für Pfeil */
    font-size: 1rem;                  /* nicht zu klein */
    line-height: 1.2;
    border-radius: 12px;
    -webkit-appearance: none;         /* iOS: eigenes Styling */
    appearance: none;
    background-position: right .85rem center; /* Pfeil sauber */
    background-size: 18px;
  }

  /* iOS: Zoom verhindern (tritt bei < 16px auf) */
  .filter-group select,
  .filter-group input[type="text"] {
    font-size: 16px;
  }

  /* Dropdown-Liste (Optionen): größer + mehr Zeilenhöhe
     Hinweis: Browser begrenzen option-styling teils, aber das hilft in vielen Fällen. */
  .filter-group select option {
    font-size: 16px;
    line-height: 1.35;
    padding: 10px 12px;
  }

  /* Optional: wenn dein Clear-Button (x) beim Select zu hoch sitzt auf Mobile */
  .select-wrap .select-clear {
    top: 50%;
    transform: translateY(-50%);
    right: 2.35rem; /* etwas mehr Luft zum Pfeil */
  }

  /* Optional: Fokus-Ring etwas ruhiger auf Mobile */
  .filter-group select:focus {
    box-shadow: 0 0 0 3px rgba(90, 155, 241, .14);
  }
}

@media (max-width: 768px) {
  .select-wrap .select-clear {
    top: calc(50% + 9px);
  }
}


/* =========================================================
   DESKTOP FIX: Form-Seiten dürfen nicht "schmal" werden
   (überschreibt nur Desktop, Mobile/Tablet bleibt wie gehabt)
========================================================= */
@media (min-width: 901px) {
  main.container.page-form,
  main.container.manage-main,
  main.container.manage-main.container { /* falls doppelt */
    max-width: 1200px;   /* falls du früher breiter warst: 1280px oder 1400px */
    width: 100%;
  }
}
