:root {
  --ink: #221b2a;
  --ink-soft: #584760;
  --paper: rgba(255, 246, 249, 0.76);
  --paper-strong: rgba(255, 250, 252, 0.92);
  --line: rgba(255, 255, 255, 0.58);
  --rose-1: #ffd7e8;
  --rose-2: #f59ac2;
  --rose-3: #df4a84;
  --rose-4: #912455;
  --leaf: #295c58;
  --leaf-soft: #8fbeaa;
  --shadow: 0 20px 50px rgba(56, 21, 43, 0.22);
  --shadow-hover: 0 28px 64px rgba(56, 21, 43, 0.32);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 220, 233, 0.94), transparent 28%),
    radial-gradient(circle at bottom right, rgba(148, 194, 177, 0.85), transparent 32%),
    linear-gradient(145deg, #fbf2f5 0%, #f7eff4 42%, #f2f7f5 100%);
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10; /* Reduziert von 300 → kein Einfluss auf backdrop-filter Stacking */
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 246, 249, 0.16), transparent 30%),
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.34), transparent 18%),
    radial-gradient(circle at 92% 8%, rgba(255, 214, 230, 0.18), transparent 16%);
}

#map {
  position: fixed;
  inset: 0;
  z-index: 1;
}

/* ─── UI Shell ─────────────────────────────────────────────── */

.ui-shell {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 500;
  width: min(390px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
}

.ui-shell__content {
  flex: 1 1 auto;
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 48px);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(223, 74, 132, 0.28) transparent;
}

.ui-shell__content::-webkit-scrollbar {
  width: 4px;
}

.ui-shell__content::-webkit-scrollbar-track {
  background: transparent;
}

.ui-shell__content::-webkit-scrollbar-thumb {
  background: rgba(223, 74, 132, 0.28);
  border-radius: 4px;
}

.ui-shell > * {
  pointer-events: auto;
}

/* ─── Panels ────────────────────────────────────────────────── */

.panel {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0)),
    rgba(255, 246, 249, 0.55); /* Alpha 0.76 → 0.55: Glassmorphismus sichtbarer */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%); /* Safari support */
  isolation: isolate; /* Eigener Stacking Context für backdrop-filter */
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.32s ease,
    border-color 0.32s ease;
  animation: panel-enter 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.82);
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 25%;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 196, 220, 0.42), transparent 62%);
  pointer-events: none;
}

/* Staggered panel entry */
.hero-panel     { animation-delay: 0ms; }
.controls-panel { animation-delay: 90ms; }
.info-panel     { animation-delay: 180ms; }

/* ─── Mobile Sheet ─────────────────────────────────────────── */

.mobile-floating-actions,
.mobile-info-modal,
.mobile-sheet-toggle,
.mobile-info-chip {
  display: none;
}

.mobile-sheet-toggle__label,
.mobile-info-chip__label {
  display: block;
  white-space: nowrap;
}

.mobile-info-modal[hidden] {
  display: none;
}

.mobile-info-modal__backdrop,
.mobile-info-modal__close {
  border: 0;
  font: inherit;
}

/* ─── Hero Panel ────────────────────────────────────────────── */

.hero-panel h1 {
  margin: 8px 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--rose-4);
}

.hero-copy {
  margin: 0;
  max-width: 32ch;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.97rem;
}

/* ─── Metric Grid ───────────────────────────────────────────── */

.metric-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  position: relative;
  padding: 14px 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.58);
  cursor: default;
  transition:
    transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.26s ease,
    border-color 0.26s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(143, 33, 77, 0.15);
  border-color: rgba(245, 154, 194, 0.45);
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  will-change: transform;
}

.metric-card:hover strong {
  background: linear-gradient(135deg, #d63878, #7e1f51);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

/* ─── Controls Panel ────────────────────────────────────────── */

.controls-panel,
.info-panel {
  padding-top: 18px;
}

.field-block + .field-block {
  margin-top: 14px;
}

.field-block label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.field-block input,
.field-block select {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(123, 81, 103, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
  outline: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

/* Custom dropdown arrow for select */
.field-block select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23584760' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Suppress native browser × in search inputs (we have our own) */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* Placeholder text — truncate gracefully */
.field-block input::placeholder {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-block input:focus,
.field-block select:focus {
  border-color: rgba(223, 74, 132, 0.65);
  box-shadow: 0 0 0 5px rgba(245, 154, 194, 0.16);
  transform: translateY(-1px);
}

/* Search wrapper with inline clear button */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrapper input {
  padding-right: 46px;
}

.search-clear {
  position: absolute;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(100, 50, 80, 0.09);
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-clear.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.search-clear:hover {
  background: rgba(214, 56, 120, 0.12);
  color: var(--rose-4);
  transform: scale(1.12);
}

.search-clear:active {
  transform: scale(0.92);
}

/* ─── Buttons ───────────────────────────────────────────────── */

.button-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.button {
  border: 0;
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s ease,
    opacity 0.22s ease;
}

.button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(70, 23, 49, 0.18);
}

.button:not(:disabled):active {
  transform: scale(0.96) translateY(0);
  box-shadow: none;
}

.button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.button-primary {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #d63878 0%, #7e1f51 100%);
}

.button-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transform: translateX(-110%);
  transition: none;
}

.button-primary:not(:disabled):hover::after {
  transform: translateX(120%);
  transition: transform 0.58s ease;
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

/* ─── Status & Detail Lines ─────────────────────────────────── */

.status-line,
.detail-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.status-line {
  color: var(--ink);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #f95d96, #b62b64);
  box-shadow: 0 0 0 4px rgba(249, 93, 150, 0.14);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

.detail-line {
  margin-top: 10px;
  color: var(--ink-soft);
}

.detail-line strong {
  color: var(--ink);
}

.detail-line-muted {
  margin-top: 12px;
  font-size: 0.82rem;
}

.detail-line-muted a {
  color: var(--rose-4);
  font-weight: 700;
  text-decoration: none;
}

.detail-line-muted a:hover {
  text-decoration: underline;
}

.detail-line-muted code {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

/* ─── Loading Badge ─────────────────────────────────────────── */

.loading-badge {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 650;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(30, 20, 38, 0.92);
  color: white;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 32px rgba(19, 10, 22, 0.22);
  transform: translateY(16px);
  opacity: 0;
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loading-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Leaflet / Map Overrides ───────────────────────────────── */

.leaflet-container {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(145deg, #f3f4f5 0%, #e4e8eb 48%, #d8dde1 100%);
  font: inherit;
}

.basemap-grayscale .leaflet-tile {
  filter: grayscale(1) saturate(0.08) contrast(0.88) brightness(1.08);
}

.leaflet-top.leaflet-right .leaflet-control {
  margin-top: 24px;
  margin-right: 24px;
}

.leaflet-control-layers {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  background: rgba(255, 250, 252, 0.82);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.leaflet-control-layers-toggle {
  width: 42px;
  height: 42px;
}

.leaflet-control-layers-expanded {
  padding: 14px 16px;
  min-width: 168px;
}

.leaflet-control-layers-base label,
.leaflet-control-layers-overlays label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.leaflet-control-layers-selector {
  accent-color: var(--rose-3);
}

.leaflet-control-zoom {
  border: 0;
  box-shadow: var(--shadow);
  margin-bottom: 8px !important; /* Attribution nicht überlappen */
}

.leaflet-control-zoom a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 250, 252, 0.86);
  color: var(--ink);
  backdrop-filter: blur(16px);
  transition:
    background 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.leaflet-control-zoom a:hover {
  background: rgba(255, 250, 252, 0.96);
  transform: scale(1.08);
}

.leaflet-control-attribution {
  padding: 4px 8px;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 250, 252, 0.7);
  backdrop-filter: blur(10px);
}

.leaflet-control-attribution,
.leaflet-control-attribution a {
  color: rgba(34, 27, 42, 0.82);
}

/* ─── Popup ─────────────────────────────────────────────────── */

.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 24px;
  background: rgba(26, 16, 36, 0.97);
  color: white;
  box-shadow: 0 28px 56px rgba(10, 4, 14, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.leaflet-popup-content {
  margin: 0;
  min-width: 260px;
}

.leaflet-popup-tip {
  background: rgba(26, 16, 36, 0.97);
}

.popup-card {
  padding: 20px 20px 18px;
}

.popup-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  font-weight: 800;
  color: #f9bfd8;
}

.popup-card h3 {
  margin: 0 0 2px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.38rem;
  line-height: 1.06;
}

.popup-meta {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.popup-meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 7px 6px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.popup-meta li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.popup-meta li:hover {
  background: rgba(255, 255, 255, 0.06);
}

.popup-meta span:first-child {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
  flex-shrink: 0;
}

/* ─── Markers ───────────────────────────────────────────────── */

.blossom-icon {
  border: 0;
  background: transparent;
}

.blossom-icon__svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 10px 14px rgba(143, 33, 77, 0.22));
  transform-origin: center;
  transition:
    transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.26s ease;
}

.leaflet-marker-icon:hover .blossom-icon__svg {
  transform: scale(1.18) rotate(-12deg);
  filter: drop-shadow(0 16px 22px rgba(143, 33, 77, 0.32));
}

.cluster-icon {
  background: transparent;
  border: 0;
}

.cluster-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 16px 22px rgba(124, 29, 67, 0.18));
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.marker-cluster:hover .cluster-shell {
  transform: scale(1.08);
  animation: cluster-pulse 1.6s ease-in-out infinite;
}

.cluster-shell svg {
  width: 100%;
  height: 100%;
}

.cluster-count {
  position: absolute;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 251, 252, 0.96);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.03em;
  box-shadow: 0 2px 8px rgba(100, 30, 60, 0.14);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: transparent;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: transparent;
}

/* ─── Keyframes ─────────────────────────────────────────────── */

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes dot-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(249, 93, 150, 0.14);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(249, 93, 150, 0.2);
    transform: scale(1.12);
  }
}

@keyframes cluster-pulse {
  0%, 100% {
    filter: drop-shadow(0 16px 22px rgba(124, 29, 67, 0.18));
  }
  50% {
    filter: drop-shadow(0 20px 32px rgba(124, 29, 67, 0.32));
  }
}

@keyframes metric-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.16); }
  100% { transform: scale(1); }
}

/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .ui-shell {
    top: 16px;
    left: 16px;
    width: min(360px, calc(100vw - 24px));
  }

  .ui-shell__content {
    max-height: calc(100vh - 32px);
  }

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

@media (max-width: 720px) {
  .ui-shell {
    --mobile-sheet-height: min(36dvh, 260px);
    --mobile-sheet-safe-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    top: auto;
    bottom: var(--mobile-sheet-safe-bottom);
    left: 10px;
    width: calc(100vw - 20px);
    max-width: none;
    height: var(--mobile-sheet-height);
    gap: 0;
    z-index: 1300;
  }

  .ui-shell__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: none;
    min-height: 0;
    padding-bottom: 0;
    scrollbar-width: none;
    transition:
      opacity 0.24s ease,
      transform 0.24s ease;
  }

  .ui-shell__content::-webkit-scrollbar {
    display: none;
  }

  .ui-shell.is-hidden {
    height: 0;
  }

  .ui-shell.is-hidden .ui-shell__content {
    max-height: 0;
    min-height: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    overflow: hidden;
  }

  .mobile-floating-actions {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: calc(var(--mobile-sheet-safe-bottom) + var(--mobile-sheet-height) + 12px);
    z-index: 1350;
    gap: 10px;
    align-items: center;
    transform: translateX(-50%);
  }

  .mobile-sheet-toggle,
  .mobile-info-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    background: rgba(255, 250, 252, 0.84);
    color: var(--ink);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(56, 21, 43, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-sheet-toggle {
    min-width: 168px;
  }

  .mobile-info-chip {
    min-width: 86px;
  }

  .ui-shell.is-hidden .mobile-floating-actions {
    bottom: calc(var(--mobile-sheet-safe-bottom) + 8px);
  }

  .controls-panel {
    order: 1;
    padding: 14px;
  }

  .info-panel {
    order: 2;
    padding: 14px 16px;
  }

  .hero-panel {
    display: none;
  }

  .controls-panel .field-block + .field-block {
    margin-top: 10px;
  }

  .controls-panel .field-block label {
    margin-bottom: 6px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .controls-panel .field-block input,
  .controls-panel .field-block select {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .controls-panel .button-row {
    margin-top: 12px;
    gap: 8px;
  }

  .controls-panel .button {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.92rem;
  }

  .controls-panel .button-primary {
    box-shadow: 0 10px 22px rgba(126, 31, 81, 0.18);
  }

  .info-panel .detail-line,
  .info-panel .detail-line-muted {
    display: none;
  }

  .info-panel .status-line {
    gap: 12px;
  }

  .info-panel #statusText {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.35;
    font-weight: 700;
  }

  .info-panel .status-dot {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 5px rgba(249, 93, 150, 0.14);
  }

  .loading-badge {
    right: 16px;
    top: 16px;
    bottom: auto;
    max-width: calc(100vw - 32px);
    z-index: 1260;
  }

  .leaflet-top.leaflet-right .leaflet-control {
    margin-top: 76px;
    margin-right: 16px;
  }

  .mobile-info-modal {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1400;
  }

  .mobile-info-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 15, 31, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
  }

  .mobile-info-modal__card {
    position: absolute;
    left: 12px;
    right: 12px;
    top: max(84px, calc(env(safe-area-inset-top, 0px) + 18px));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    padding: 18px 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 30px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
      rgba(255, 246, 249, 0.76);
    box-shadow: 0 24px 56px rgba(32, 12, 25, 0.24);
    overflow-y: auto;
  }

  .mobile-info-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }

  .mobile-info-modal__close {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(56, 21, 43, 0.08);
    cursor: pointer;
  }

  .mobile-info-modal__card h2 {
    margin: 8px 0 10px;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.9rem, 9vw, 2.7rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
  }

  .mobile-info-modal__copy {
    max-width: none;
    font-size: 1rem;
    line-height: 1.54;
  }

  .mobile-info-modal__credit {
    margin-top: 12px;
    margin-bottom: 0;
  }

  .mobile-info-modal__meta {
    margin-top: 18px;
    display: grid;
    gap: 12px;
  }

  .mobile-info-modal__meta-line {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.45;
  }

  .mobile-info-modal__meta-line a {
    color: var(--rose-4);
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-info-modal__meta-line a:hover {
    text-decoration: underline;
  }

  .mobile-info-open .ui-shell,
  .mobile-info-open .loading-badge {
    pointer-events: none;
  }
}

/* ─── Very Small Screens (< 380px) ─────────────────────────── */

@media (max-width: 380px) {
  .button-row {
    grid-template-columns: 1fr; /* Buttons untereinander auf Mini-Screens */
  }

  .ui-shell {
    --mobile-sheet-height: min(38dvh, 280px);
    height: var(--mobile-sheet-height);
  }

  .mobile-sheet-toggle {
    min-width: 152px;
    padding: 0 16px;
  }

  .mobile-info-chip {
    min-width: 78px;
    padding: 0 14px;
  }
}

/* ─── Accessibility ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
