/* ============================================================
   Landingpage "Webdesigner Schweiz"
   Aktionsband, interaktive Schweizer Karte, Ortsliste.
   Feste Farbwerte, damit die Seite auch mit einer älteren
   styles.css auf dem Server korrekt aussieht.
   ============================================================ */

/* ---------- Aktionsband im Hero ---------- */
.promo-flag {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px;
  padding: 9px 9px 9px 16px; border: 1px solid rgba(87, 227, 178, .38); border-radius: 999px;
  background: linear-gradient(120deg, rgba(87, 227, 178, .16), rgba(81, 222, 244, .08));
  color: #eaf6f1; font-size: .84rem; font-weight: 650; letter-spacing: .01em; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.promo-flag b {
  display: inline-grid; place-items: center; padding: 5px 11px; border-radius: 999px;
  color: #04120c; background: #57e3b2; font-size: .8rem; font-weight: 800; letter-spacing: .02em;
}
.promo-flag i { font-style: normal; color: #9fd6c4; font-size: .78rem; font-weight: 600; }

/* ---------- Aktionsabschnitt ---------- */
.promo-panel {
  position: relative; overflow: hidden; padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(87, 227, 178, .3); border-radius: 26px;
  background:
    radial-gradient(circle at 88% 0%, rgba(87, 227, 178, .14), transparent 46%),
    linear-gradient(150deg, rgba(11, 32, 46, .95), rgba(6, 17, 31, .97));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .38);
}
.promo-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: radial-gradient(rgba(122, 207, 255, .26) .7px, transparent .7px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.promo-panel > * { position: relative; }
.promo-head { display: grid; gap: 12px; max-width: 62ch; }
.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.promo-card {
  display: flex; flex-direction: column; gap: 4px; padding: 22px;
  border: 1px solid rgba(178, 207, 237, .16); border-radius: 18px; background: rgba(255, 255, 255, .026);
  transition: transform .25s cubic-bezier(.22, .61, .36, 1), border-color .25s, box-shadow .25s;
}
.promo-card:hover { transform: translateY(-4px); border-color: rgba(87, 227, 178, .4); box-shadow: 0 20px 46px rgba(0, 0, 0, .3); }
.promo-card--best { border-color: rgba(87, 227, 178, .42); background: rgba(87, 227, 178, .07); }
.promo-card__tag { color: #9fd6c4; font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.promo-card h3 { margin: 6px 0 0; font-size: 1.15rem; font-weight: 650; }
.promo-card__old { color: #7f93aa; font-size: .95rem; text-decoration: line-through; }
.promo-card__new { color: #fff; font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.promo-card__save { color: #57e3b2; font-size: .84rem; font-weight: 700; }
.promo-card p { margin: 10px 0 0; color: #a9bacd; font-size: .88rem; line-height: 1.55; }
.promo-terms { display: grid; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.promo-terms li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 11px; color: #c3d2e2; font-size: .9rem; }
.promo-terms li::before {
  content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  color: #04120c; background: #57e3b2; font-size: .64rem; font-weight: 800;
}
.promo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Interaktive Karte ---------- */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 16px; align-items: start; }
.map-shell {
  position: relative; overflow: hidden; border: 1px solid rgba(178, 207, 237, .2); border-radius: 22px;
  background: #071322; box-shadow: 0 26px 70px rgba(0, 0, 0, .4);
}
.map-canvas { height: clamp(420px, 58vh, 640px); background: #071322; }
.map-consent {
  position: absolute; z-index: 1000; inset: 0; display: grid; place-content: center; gap: 12px;
  padding: clamp(24px, 6vw, 64px); text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(81, 222, 244, .15), transparent 48%),
    linear-gradient(150deg, rgba(5, 16, 29, .97), rgba(8, 28, 43, .98));
}
.map-consent.is-hidden { display: none; }
.map-consent strong { color: #fff; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.map-consent > span { max-width: 54ch; color: #b9c9da; line-height: 1.65; }
.map-consent__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.map-consent__actions a { color: #9edfea; font-size: .88rem; font-weight: 650; }
.map-consent__actions a:hover { color: #fff; }
.map-consent [disabled] { cursor: not-allowed; opacity: .55; }
.map-canvas .leaflet-tile-pane {
  filter: invert(1) hue-rotate(188deg) brightness(1.02) contrast(.8) saturate(.5);
}
.map-canvas .leaflet-container { background: #071322; font: inherit; }
.map-canvas .leaflet-control-attribution {
  background: rgba(4, 11, 20, .78); color: #7f93aa; font-size: .64rem; backdrop-filter: blur(6px);
}
.map-canvas .leaflet-control-attribution a { color: #9db3c9; }
.map-canvas .leaflet-bar a {
  border-bottom-color: rgba(178, 207, 237, .18); color: #dbe7f4;
  background: rgba(9, 24, 42, .94); font-weight: 700;
}
.map-canvas .leaflet-bar a:hover { background: rgba(16, 40, 66, .96); color: #fff; }
.map-canvas .leaflet-popup-content-wrapper, .map-canvas .leaflet-popup-tip {
  border: 1px solid rgba(178, 207, 237, .22); color: #eaf1f9; background: rgba(8, 22, 38, .97);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
.map-canvas .leaflet-popup-content { margin: 13px 15px; font-size: .86rem; line-height: 1.5; }
.map-canvas .leaflet-popup-content strong { display: block; margin-bottom: 3px; color: #fff; font-size: .96rem; }
.map-canvas .leaflet-popup-content a { color: #51def4; font-weight: 650; }
.map-canvas .leaflet-popup-close-button { color: #8fa4ba !important; }

.map-pin { position: relative; }
.map-pin span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #50a8f8; background: rgba(80, 168, 248, .32);
  box-shadow: 0 0 0 4px rgba(80, 168, 248, .1), 0 4px 12px rgba(0, 0, 0, .4);
  transition: transform .2s cubic-bezier(.22, .61, .36, 1), box-shadow .2s;
}
.map-pin--page span { border-color: #51def4; background: rgba(81, 222, 244, .42); box-shadow: 0 0 0 5px rgba(81, 222, 244, .13), 0 4px 14px rgba(0, 0, 0, .45); }
.map-pin--base span { border-color: #57e3b2; background: rgba(87, 227, 178, .55); box-shadow: 0 0 0 6px rgba(87, 227, 178, .16), 0 4px 16px rgba(0, 0, 0, .5); }
.map-pin--base::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(87, 227, 178, .5);
  animation: map-ping 2.6s cubic-bezier(.2, .6, .35, 1) infinite;
}
@keyframes map-ping { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.map-pin:hover span, .map-pin.is-active span { transform: scale(1.35); box-shadow: 0 0 0 7px rgba(81, 222, 244, .18), 0 6px 18px rgba(0, 0, 0, .5); }

.map-legend {
  position: absolute; z-index: 500; left: 14px; bottom: 14px; display: grid; gap: 7px;
  padding: 12px 14px; border: 1px solid rgba(178, 207, 237, .2); border-radius: 14px;
  background: rgba(4, 11, 20, .82); backdrop-filter: blur(10px);
}
.map-legend span { display: flex; align-items: center; gap: 9px; color: #c3d2e2; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.map-legend i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #50a8f8; background: rgba(80, 168, 248, .32); }
.map-legend i.page { border-color: #51def4; background: rgba(81, 222, 244, .42); }
.map-legend i.base { border-color: #57e3b2; background: rgba(87, 227, 178, .55); }
.map-hint {
  position: absolute; z-index: 500; right: 14px; top: 14px; padding: 8px 13px;
  border: 1px solid rgba(178, 207, 237, .2); border-radius: 999px;
  background: rgba(4, 11, 20, .82); color: #9db3c9; font-size: .72rem; font-weight: 600; white-space: nowrap;
  backdrop-filter: blur(10px); transition: opacity .4s ease;
}
.map-hint.is-gone { opacity: 0; }

.map-side { display: grid; gap: 12px; }
.map-detail {
  display: grid; gap: 8px; padding: 20px; border: 1px solid rgba(81, 222, 244, .26); border-radius: 18px;
  background: linear-gradient(155deg, rgba(81, 222, 244, .09), rgba(255, 255, 255, .022));
}
.map-detail__eyebrow { color: #51def4; font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.map-detail h3 { margin: 0; font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; }
.map-detail p { margin: 0; color: #a9bacd; font-size: .88rem; line-height: 1.55; }
.map-detail__meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.map-detail__meta span {
  padding: 5px 10px; border: 1px solid rgba(178, 207, 237, .18); border-radius: 999px;
  color: #c3d2e2; background: rgba(255, 255, 255, .03); font-size: .74rem; font-weight: 650;
}
.map-detail .btn { margin-top: 6px; }
.map-search { display: grid; gap: 9px; }
.map-search input {
  min-height: 46px; padding: 12px 15px; border: 1px solid rgba(178, 207, 237, .22); border-radius: 12px;
  color: #eaf1f9; background: rgba(3, 10, 19, .62); font: inherit; font-size: .92rem;
}
.map-search input::placeholder { color: #7f93aa; }
.map-search input:focus-visible { outline: 2px solid #51def4; outline-offset: 2px; }
.map-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.map-filter {
  min-height: 34px; padding: 7px 12px; border: 1px solid rgba(178, 207, 237, .2); border-radius: 999px;
  color: #c3d2e2; background: rgba(255, 255, 255, .026); font: inherit; font-size: .78rem; font-weight: 650;
  cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.map-filter:hover { transform: translateY(-1px); border-color: rgba(81, 222, 244, .4); color: #fff; }
.map-filter.is-on { color: #04101b; border-color: transparent; background: linear-gradient(140deg, #51def4, #50a8f8); }
.map-count { color: #7f93aa; font-size: .76rem; font-weight: 600; }
.map-list {
  display: grid; gap: 5px; max-height: 336px; overflow-y: auto; margin: 0; padding: 4px; list-style: none;
  border: 1px solid rgba(178, 207, 237, .14); border-radius: 16px; background: rgba(255, 255, 255, .016);
  scrollbar-width: thin; scrollbar-color: rgba(178, 207, 237, .3) transparent;
}
.map-list::-webkit-scrollbar { width: 8px; }
.map-list::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: rgba(178, 207, 237, .3); background-clip: content-box; }
.map-list button {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 11px; align-items: center; width: 100%;
  padding: 10px 12px; border: 1px solid transparent; border-radius: 11px; background: transparent;
  color: #dbe7f4; font: inherit; font-size: .86rem; text-align: left; cursor: pointer;
  transition: background .18s, border-color .18s;
}
.map-list button:hover, .map-list button.is-active { border-color: rgba(81, 222, 244, .3); background: rgba(81, 222, 244, .08); }
.map-list button i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #50a8f8; background: rgba(80, 168, 248, .32); }
.map-list button i.page { border-color: #51def4; background: rgba(81, 222, 244, .42); }
.map-list button i.base { border-color: #57e3b2; background: rgba(87, 227, 178, .55); }
.map-list button em { color: #7f93aa; font-style: normal; font-size: .74rem; font-weight: 600; }
.map-empty { padding: 16px; color: #7f93aa; font-size: .84rem; text-align: center; }

/* ---------- Leistungsraster ---------- */
.wd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wd-card {
  display: flex; flex-direction: column; gap: 9px; padding: 24px;
  border: 1px solid rgba(178, 207, 237, .16); border-radius: 20px; background: rgba(255, 255, 255, .022);
  transition: transform .25s cubic-bezier(.22, .61, .36, 1), border-color .25s, box-shadow .25s;
}
.wd-card:hover { transform: translateY(-4px); border-color: rgba(81, 222, 244, .34); box-shadow: 0 22px 52px rgba(0, 0, 0, .32); }
.wd-card__num { color: #51def4; font-size: .74rem; font-weight: 780; letter-spacing: .1em; }
.wd-card h3 { margin: 0; font-size: 1.08rem; font-weight: 650; }
.wd-card p { margin: 0; color: #a9bacd; font-size: .9rem; line-height: 1.6; }

@media (max-width: 1000px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map-list { max-height: 260px; }
  .promo-grid, .wd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .promo-flag { font-size: .8rem; gap: 9px; }
}
@media (max-width: 620px) {
  .map-canvas { height: 400px; }
  .map-consent { padding: 24px; }
  .map-legend { left: 10px; bottom: 10px; padding: 10px 12px; }
  .map-hint { display: none; }
  .promo-flag { flex-wrap: wrap; white-space: normal; padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin--base::after { animation: none; }
}
