/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  /* Farbskalen + Tokens vom Gurp-Forum uebernommen (Design-Angleichung):
     dunkelgruene Buttons, sandige Neutral-Flaechen, orange CTA, 25px-Radien. */
  --green-50: #f2f4ef;  --green-100: #e6eae1; --green-200: #d2d9cb; --green-300: #b5bfab; --green-400: #97a28a;
  --green-500: #56604c; --green-600: #48513f; --green-700: #3a4233; --green-800: #2c3227; --green-900: #1e221b;
  --orange-50: #fbf3ef; --orange-100: #f4e1d8; --orange-200: #e9c4b3; --orange-300: #dda48c; --orange-400: #c9805f;
  --orange-500: #a4502f; --orange-600: #934628; --orange-700: #7a3a21; --orange-800: #5e2d1a; --orange-900: #432013;
  --neutral-50: #f3eee6;  --neutral-100: #ede6db; --neutral-200: #e0d7ca; --neutral-300: #d6ccbd; --neutral-400: #afa091;
  --neutral-500: #8e8072; --neutral-600: #6b5e51; --neutral-700: #4b3e33; --neutral-800: #3a322b; --neutral-900: #2d2d2d;

  --accent:        #66725a;
  --accent-dark:   #48513f;
  --accent-light:  #e6eae1;
  --button-color:  var(--green-500);
  --danger:        #a63a2a;
  --danger-light:  #f6e3de;
  --text-primary:  #2d2d2d;
  --text-secondary:var(--text-primary);
  --text-muted:    var(--text-primary);
  --border:        var(--neutral-200);
  --border-focus:  #66725a;
  --bg-surface:    var(--neutral-50);
  --bg-subtle:     var(--neutral-100);
  --bg-map:        #ede6db;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  --radius-sm:     25px;
  --radius-md:     25px;
  --radius-lg:     25px;
  --radius-pill:   25px;
}

/* =============================================
   FONTS (self-hosted, siehe public/libs/fonts/)
   ============================================= */
@font-face {
  font-family: 'Maven Pro';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('libs/fonts/maven-pro/maven-pro-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Maven Pro';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('libs/fonts/maven-pro/maven-pro-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('libs/fonts/baloo-2/baloo-2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('libs/fonts/baloo-2/baloo-2-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =============================================
   BASE
   ============================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Maven Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  background: var(--bg-map);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: var(--text-primary);
}

/* Form controls don't inherit font-family/font-size by default in browsers
   (they use the OS UI font, typically Arial) — force them to match the page. */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.ap-title, .cal-title, .ep-title, .fc-title, .geo-block-title,
.modal-title, .pf-group-title, .price-box-title, .rp-title,
.sb-title, .section-title {
  font-family: 'Baloo 2', 'Maven Pro', system-ui, sans-serif;
}

/* =============================================
   LAYOUT
   ============================================= */
.main {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

.map-and-panels {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* =============================================
   MAP
   ============================================= */
.map-wrap {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-map);
  overflow: hidden;
  z-index: 1;
}
#leaflet-map { width: 100%; height: 100%; background: var(--bg-map); position: relative; z-index: -1; }
.leaflet-container { font-family: inherit; }
.road-tooltip { font-size: 0.8125rem; padding: 2px 6px; }

/* Attribution/Copyright-Hinweis an das Seitendesign angleichen, freischwebend mit Abstand zum Rand */
.leaflet-container .leaflet-control-attribution {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 2px 8px;
  margin: 0 14px 14px 0 !important;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.leaflet-control-attribution a { color: var(--text-secondary); }
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus { color: var(--accent-dark); }
.map-wrap.adding-pin #leaflet-map,
.map-wrap.adding-marker #leaflet-map,
.map-wrap.calib-mode #leaflet-map { cursor: crosshair !important; }
.toolbar { display: none; }

.left-panel {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 30;
  width: 220px;
}

.lp-logo-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  /*box-shadow: 0 -2px 8px rgba(0,0,0,.08), 2px 0 8px rgba(0,0,0,.06);*/
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.lp-logo-img {
  height: auto;
  width: 100%;
  object-fit: contain;
}
.lp-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}
.mobile-only { display: none; }

.lp-expanded {
  background: var(--bg-surface);
  /*box-shadow: var(--shadow-md);*/
  padding: 0 12px;
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: max-height .3s ease, padding .3s ease;
}
.lp-expanded.open { max-height: 600px; padding: 12px; }

.lp-collapse-btn {
  width: 100%;
  background: var(--button-color);
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: #fff;
  font-size: 0.8125rem;
  transition: background .15s;
}
.lp-collapse-btn:hover { background: #234331; }
.lp-collapse-btn i { transition: transform .2s; }
.lp-collapse-btn:not(.open) i { transform: rotate(180deg); }

.lp-date-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-date-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lp-date-field label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-left: 3px;
}
.lp-date-field input[type=date] {
  width: 100%;
  font-size: 0.875rem;
  padding: 6px 8px;
}

.lp-split-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lp-info-link {
  align-self: center;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.8125rem;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s;
}
.lp-info-link:hover { color: var(--text-secondary); }

.lp-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.lp-filters-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-left: 3px;
}

.lp-info-wrap { position: relative; }
.lp-info-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 170px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 50;
}
.lp-info-dropdown.open { display: flex; }

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  cursor: pointer;
  color: var(--text-secondary);
  transition: background .15s, border-color .15s;
  width: 100%;
}
.filter-btn:hover { background: var(--bg-surface); }
.filter-btn.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Dezente Eigenfarbe je Filter/Aktion, solange nicht aktiv */
#split-btn:not(.active) { background: #d6ddf7; border-color: transparent; color: #33409c; }
#split-btn:not(.active):hover { background: #c7d0f3; }
#elec-filter:not(.active) { background: #f9e3a6; border-color: transparent; color: #7a5600; }
#elec-filter:not(.active):hover { background: #f6d97f; }
#no-elec-filter:not(.active) { background: #bfe6cb; border-color: transparent; color: #1f5c34; }
#no-elec-filter:not(.active):hover { background: #a9dcb9; }

/* Aktiver Zustand: je Button kräftiger in der eigenen Farbfamilie statt generischem Grün */
#split-btn.active { background: #33409c; border-color: transparent; color: #fff; }
#split-btn.active:hover { background: #2a3480; }
#elec-filter.active { background: #f0b429; border-color: transparent; color: #4a3600; }
#elec-filter.active:hover { background: #dba01e; }
#no-elec-filter.active { background: #1f8a45; border-color: transparent; color: #fff; }
#no-elec-filter.active:hover { background: #19733a; }

.lp-legend {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.leg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.ld { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.ld-free   { background: #2e563d; }
.ld-elec   { background: #e6a817; border: 2px solid #c8920e; }
.ld-booked { background: #a0a09a; }
body.style-hybrid .ld-free { background: #7ed957; }

@media (max-width: 767px) {
  /* Breite bleibt wie auf Desktop (220px) — nur der Teil unter dem Logo
     wird ein-/ausklappbar, siehe .lp-collapse-btn (Toggle-Logik und
     Icon-Rotation gelten breitenunabhängig, siehe Basisregeln oben). */
  .mobile-only { display: block; cursor: pointer; font-size: 0.8125rem; color: var(--text-muted); }
  .lp-logo-card { border-radius: var(--radius-lg); }
  .lp-expanded { border-radius: var(--radius-lg); margin-top: 4px; }
  .lp-collapse-btn { border-radius: var(--radius-lg); border-top: none; margin-top: 4px; }
}


/* =============================================
   RIGHT PANEL – Auth/Profile
   ============================================= */
.right-ui {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

/* Auth buttons compact */
#auth-buttons {
  display: flex;
  gap: 6px;
}

.auth-btn {
  font-size: 0.875rem;
  font-weight: 500;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}
.auth-btn:hover { background: var(--bg-subtle); }
.auth-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(22,163,74,.25);
}
.auth-btn.primary:hover { background: var(--accent-dark); }

/* User badge – gleiche Breite wie Dropdown */
.user-menu-wrap { position: relative; }
.user-badge {
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  color: var(--accent-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
  white-space: nowrap;
}
.user-badge:hover { background: var(--bg-subtle); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 210px;
  z-index: 50;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}
.user-dropdown.open { display: flex; }

.ud-item {
  padding: 10px 16px;
  font-size: 0.9375rem;
  cursor: pointer;
  color: var(--text-primary);
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  transition: background .12s;
}
.ud-item:hover { background: var(--bg-subtle); }
.ud-item.danger { color: var(--danger); }
.ud-sep { border: none; border-top: 1px solid var(--border); margin: 2px 0; }

/* =============================================
   PINS
   ============================================= */
.pin { cursor: pointer; }
.pin .pc { transition: transform .1s; }
.pin:hover .pc { transform: scale(1.4); }
.pin:hover { z-index: 1000 !important; }

.pc {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 0px solid rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,.28);
}
.pin.free .pc        { background: #2e563d; color: #fff; }
.pin.free.elec .pc   { background: #e6a817; border-color: #c8920e; color: #000; }
body.style-hybrid .pin.free:not(.elec) .pc { background: #7ed957; color: #143d1f; }
.pin.booked .pc      { background: #eaeaea; border-color: rgba(255,255,255,.8); color: #000; opacity:0.3; }
.pin.booked.elec .pc { background: #eaeaea; color: #000; opacity:0.3; }
.pin.selected .pc    { outline: 3px solid red; outline-offset: 2px}


/* =============================================
   MAP MARKERS
   ============================================= */
.map-marker { cursor: default; }
.map-marker.admin-mode { cursor: pointer; }

.marker-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  border: 0px solid rgba(255,255,255,.9);
  transform: scale(var(--marker-zoom-scale, 1));
  transition: transform .15s;
}
.map-marker.admin-mode:hover .marker-icon { transform: scale(1.25); }
.marker-icon i { margin-bottom: -1px; }

.marker-text {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) scale(var(--marker-zoom-scale, 1));
  white-space: nowrap;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-primary);
  background: rgba(250,249,247,.92);
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}

.map-marker-text { cursor: default; }
.map-marker-text.admin-mode { cursor: pointer; }
.mtx-label {
  display: inline-block;
  transform: translate(-50%, -50%) scale(var(--marker-zoom-scale, 1));
  white-space: nowrap;
  font-size: 0.9375rem; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: .04em;
  text-shadow: 0 1px 3px rgba(250,249,247,.9);
  transition: transform .15s;
}
.map-marker-text.admin-mode .mtx-label {
  outline: 1px dashed rgba(0,0,0,.3);
  outline-offset: 3px;
}
.map-marker:hover { z-index: 1000 !important; }

/* =============================================
   TOOLTIP
   ============================================= */
.map-tooltip {
  position: fixed;
  background: #2d2d2d;
  color: #faf9f7;
  font-size: 0.875rem;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  /* Unter allen Panels (max z-index 40) und Modals (100) — sie liegt
     sonst über allem, egal was gerade offen ist. */
  z-index: 15;
  white-space: nowrap;
  display: none;
  box-shadow: var(--shadow-md);
}
.map-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #2d2d2d;
}

/* =============================================
   ZOOM BUTTONS
   ============================================= */
.zoom-btns {
  position: absolute;
  bottom: 24px; left: 14px;
  display: flex; flex-direction: column;
  z-index: 5;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.zb {
  width: 40px; height: 40px;
  background: var(--bg-surface);
  border: none;
  border-top: 1px solid var(--border);
  font-size: 1.375rem; font-weight: 300;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background .12s;
}
.zb:first-child { border-top: none; }
.zb:hover { background: var(--bg-subtle); }

.map-style-switch {
  position: absolute;
  bottom: 114px; left: 14px;
  z-index: 5;
}
.ms-toggle {
  width: 40px; height: 40px;
  padding: 3px;
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform .12s;
}
.ms-toggle:hover { transform: scale(1.05); }
.ms-thumb {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  border-radius: 3px;
  overflow: hidden;
}
.ms-thumb::after {
  font-family: "Font Awesome 5 free";
  font-size: 18px;
  color: var(--text-secondary);
}
/* Kartensymbol (outline) */
.ms-thumb.map::after { content: "\f279"; font-weight: 400; }
/* Globus-Symbol Europa (Hybrid/Satellit) */
.ms-thumb.sat::after { content: "\f7a2"; font-weight: 900; }

/* =============================================
   ADMIN
   ============================================= */
.add-hint {
  position: absolute;
  top: 70px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 0.9375rem; font-weight: 500;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  pointer-events: none; z-index: 15; display: none;
  box-shadow: 0 2px 8px rgba(22,163,74,.35);
}
.add-hint.show { display: block; }

.admin-toggle {
  position: absolute;
  top: 14px; left: 245px;
  z-index: 20;
  font-size: 0.875rem; font-weight: 500;
  padding: 5px 14px;
  border: none; border-radius: var(--radius-pill);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  cursor: pointer; display: none;
  transition: background .12s;
}
.admin-toggle.visible { display: block; }
.admin-toggle.on { background: var(--accent-light); color: var(--accent-dark); }

.admin-panel {
  position: absolute;
  top: 46px; left: 245px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 14px; z-index: 20;
  display: none; flex-direction: column; gap: 8px;
  width: 224px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.admin-panel.open { display: flex; }

.ap-view { display: none; flex-direction: column; gap: 8px; }
.ap-view.active { display: flex; }
.ap-view-edit.active { gap: 12px; }

.ap-title {
  font-size: 0.9375rem; font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.ap-section-label {
  font-size: 0.8rem; color: var(--text-muted);
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.ap-btn {
  font-size: 0.9375rem; padding: 7px 12px;
  border: none; border-radius: var(--radius-sm);
  background: var(--bg-subtle); cursor: pointer;
  text-align: left; color: var(--text-primary);
  transition: background .12s;
}
.ap-btn:hover { background: #e0d7ca; }
.ap-btn.active-mode { background: var(--accent-light); color: var(--accent-dark); }
.ap-btn.danger { background: var(--danger-light); color: var(--danger); }
.ap-btn.danger:hover { background: #f5c6c2; }
.ap-sep { border: none; border-top: 1px solid var(--border); }

.marker-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mtype-btn {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-subtle); cursor: pointer;
  padding: 6px 2px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 0.8rem; color: var(--text-secondary);
  transition: background .12s, border-color .12s;
}
.mtype-btn:hover { background: var(--accent-light); border-color: var(--accent); }
.mtype-btn.selected { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.mtype-btn i { font-size: 0.9375rem; }

.geo-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.geo-panel.open { display: flex; }
.geo-block { display: flex; flex-direction: column; gap: 6px; }
.geo-block-title { font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); }
.geo-hint { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4; }
.calib-wizard { display: none; flex-direction: column; gap: 6px; margin-top: 4px; }
.calib-wizard.open { display: flex; }
.calib-wizard select {
  font-size: 0.875rem; padding: 6px 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-surface); color: var(--text-primary);
}
.calib-marker-icon {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.ep-title {
  font-size: 1rem; font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.ep-field { display: flex; flex-direction: column; gap: 4px; }
.ep-field label { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; margin-left: 3px; }
.ep-check { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--text-primary); }
.ep-check input { accent-color: var(--accent); }
.ep-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.ep-actions-row { display: flex; gap: 8px; }
.ep-actions-row button, .ep-cancel {
  flex: 1; padding: 8px; border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 500; cursor: pointer; border: none; transition: background .12s;
}
.ep-save { background: var(--accent); color: #fff; }
.ep-save:hover { background: var(--accent-dark); }
.ep-delete { background: var(--danger-light); color: var(--danger); }
.ep-delete:hover { background: #f5c6c2; }
.ep-cancel { background: var(--bg-subtle); color: var(--text-primary); }
.ep-cancel:hover { background: #e0d7ca; }

/* =============================================
   SIDEBAR – floating card links
   ============================================= */
.sidebar {
  position: absolute;
  top: 95px; right: 14px;
  max-height: calc(100vh - 95px - 14px);
  width: 320px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow-y: auto;
  display: none; flex-direction: column;
  z-index: 25;
}
.sidebar.open { display: flex; }

.sb-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start;
  position: sticky; top: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1;
}
.sb-title { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }

.close-btn {
  background: none; border: none;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 1.375rem; cursor: pointer;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.close-btn:hover { background: var(--bg-subtle); }

.sb-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.875rem; padding: 3px 10px;
  border-radius: var(--radius-pill); font-weight: 500;
}
.badge.free { background: var(--accent-light); color: var(--accent-dark); }
.badge.booked { background: var(--danger-light); color: var(--danger); }

.pano {
  background: #1a2e1f; border-radius: var(--radius-md);
  height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); font-size: 0.875rem; gap: 5px;
  overflow: hidden; position: relative;
}
.pano-icon { font-size: 1.75rem; opacity: .45; }

/* Vollbild-Overlay für den 360°-Viewer: Schließen-Button, Platz-Info */
.pano-fs-ui {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
#pano-wrap:fullscreen .pano-fs-ui,
#pano-wrap:-webkit-full-screen .pano-fs-ui { display: block; }
/* Pannellums eigene Steuerelemente (Zoom/Vollbild-Button) werden durch unseren
   Schließen-Button ersetzt; ganzen Controls-Container ausblenden statt nur den
   einzelnen Button, da der Button-Fix allein nicht griff. */
#pano-wrap:fullscreen .pnlm-controls-container { display: none !important; }
#pano-wrap:-webkit-full-screen .pnlm-controls-container { display: none !important; }

.pano-fs-top {
  position: absolute;
  top: 20px; left: 20px; right: 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.pano-fs-info {
  background: rgba(20,20,18,.55);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 1rem; font-weight: 600;
  pointer-events: none;
}
.pano-fs-close {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(20,20,18,.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  pointer-events: auto;
  transition: background .15s;
}
.pano-fs-close:hover { background: rgba(20,20,18,.85); }

.price-box {
  background: var(--bg-subtle); border-radius: var(--radius-md);
  padding: 12px; display: flex; flex-direction: column; gap: 12px;
}
.price-box-title {
  font-size: 1rem; color: var(--text-primary);
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding-bottom: 5px; border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.price-box-head { padding-bottom: 5px; border-bottom: 1px solid var(--border); margin-bottom: 2px; }
.price-box-head .price-box-title { padding-bottom: 0; border-bottom: none; margin-bottom: 0; }
.price-box-subtitle {
  font-weight: 400; text-transform: none; letter-spacing: normal;
  color: var(--text-secondary); font-size: 0.8125rem; margin-top: 2px;
}
.pr { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 10px; font-size: 0.9375rem; color: var(--text-primary); }
.pr > span:last-child { text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.pr-name { display: block; font-weight: 600; }
.pr-desc { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--text-secondary); }
.pr-sub { font-weight: 600; }
.pr-unit { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--text-secondary); margin-top: 1px; }
.pr-total {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px;
  font-size: 1.0625rem; font-weight: 700;
  border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px;
  color: var(--text-primary);
}

.book-btn {
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-pill); padding: 11px;
  font-size: 1rem; font-weight: 600; cursor: pointer; width: 100%;
  box-shadow: 0 2px 8px rgba(22,163,74,.25);
  transition: background .15s;
}
.book-btn:hover { background: var(--accent-dark); }
.book-btn:disabled { background: #b0b0aa; box-shadow: none; cursor: not-allowed; }

.cal-title {
  font-size: 0.9375rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.cal-nav {
  background: none; border: none; cursor: pointer;
  font-size: 1.125rem; color: var(--text-muted);
  padding: 2px 6px; border-radius: 50%; transition: background .12s;
}
.cal-nav:hover { background: var(--bg-subtle); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day-name { font-size: 0.8rem; color: var(--text-muted); text-align: center; padding: 2px 0; }
.cal-day { font-size: 0.8125rem; text-align: center; padding: 4px 2px; border-radius: 4px; }
.cal-day.booked   { background: #f5cdc7; color: var(--danger); font-weight: 500; }
.cal-day.arrival  { background: linear-gradient(to bottom right, #b8ecc9 50%, #f5cdc7 50%); font-weight: 500; }
.cal-day.departure{ background: linear-gradient(to bottom right, #f5cdc7 50%, #b8ecc9 50%); font-weight: 500; }
.cal-day.open     { background: #b8ecc9; color: var(--accent-dark); }
.cal-day.open.high-season { background: var(--accent); color: #fff; font-weight: 700; }
.cal-day.free     { color: var(--text-muted); }
.cal-day.other    { color: var(--border); }
.cal-day.today    { font-weight: 700; outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.cal-legend { display: flex; flex-direction: row; justify-content: center; gap: 20px; margin-top: -2px; }
.ld-cal-low  { background: #b8ecc9; }
.ld-cal-high { background: var(--accent); }

.section-title {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
  margin-top: 14px;
}
.section-hint {
  font-size: 0.8rem; color: var(--text-secondary); margin-top: -4px;
}
.section-hint:empty { display: none; }
.book-login-required {
  display: none; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: var(--radius-md);
  background: var(--bg-subtle); border: 1px solid var(--border);
  font-size: 0.875rem; color: var(--text-secondary); text-align: center;
}
.guest-form { display: flex; flex-direction: column; gap: 8px; }
.gf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gf-input { width: 100%; }

.traveler-list { display: flex; flex-direction: column; gap: 5px; }
.traveler-check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.9375rem; color: var(--text-primary);
  padding: 6px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}
.traveler-check input { cursor: pointer; accent-color: var(--accent); margin-top: 3px; }
.tc-sub { color: var(--text-secondary); font-size: 0.8rem; font-style: italic; }

.add-inline-btn {
  font-size: 0.9375rem; padding: 6px 12px;
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  background: none; color: var(--accent); cursor: pointer; width: 100%; text-align: left;
  transition: background .12s;
}
.add-inline-btn:hover { background: var(--accent-light); }
.manage-inline-btn i { margin-right: 4px; }

.inline-form {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px;
  flex-direction: column; gap: 8px; display: none;
}
.inline-form.open { display: flex; }
.if-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.if-label { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; margin-left: 3px; }
.if-check { display: flex; align-items: center; gap: 6px; font-size: 1rem; color: var(--text-primary); }
.if-check input { accent-color: var(--accent); }
.if-check-qty { justify-content: space-between; }
.qty-stepper {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  overflow: hidden; background: var(--bg-surface);
}
.qty-btn {
  width: 26px; height: 26px; border: none; background: var(--bg-subtle);
  color: var(--accent-dark); font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.qty-btn:hover { background: var(--accent-light); }
.qty-stepper input[type=number] {
  width: 34px; text-align: center; border: none; padding: 0;
  font-size: 0.875rem; font-weight: 600; color: var(--text-primary);
  background: transparent; -moz-appearance: textfield;
}
.qty-stepper input[type=number]::-webkit-inner-spin-button,
.qty-stepper input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.if-actions { display: flex; gap: 8px; }
.if-actions button {
  flex: 1; padding: 7px; border-radius: var(--radius-pill);
  font-size: 0.9375rem; font-weight: 500; cursor: pointer; border: none; transition: background .12s;
}
.if-save { background: var(--accent); color: #fff; }
.if-save:hover { background: var(--accent-dark); }
.if-cancel { background: var(--bg-subtle); color: var(--text-secondary); }
.if-cancel:hover { background: #e0d7ca; }

/* =============================================
   RIGHT SIDE PANEL (Buchungen / Profil)
   ============================================= */
.right-panel {
  position: absolute;
  top: 95px; right: 14px; bottom: 14px;
  width: 360px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow-y: auto;
  display: none; flex-direction: column;
  z-index: 25;
}
.right-panel.open { display: flex; }

.rp-head {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0; position: sticky; top: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1;
}
.rp-title { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }
.rp-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }

.rp-tabs { display: flex; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.rp-tab {
  flex: 1; padding: 10px 6px;
  font-size: 0.875rem; font-weight: 500;
  border: none; background: none; cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s;
}
.rp-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.rp-section { display: none; flex-direction: column; gap: 12px; }
.rp-section.active { display: flex; }

.pf-group { display: flex; flex-direction: column; gap: 8px; }
.pf-group-title {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-top: 14px;
}
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-row.phone-row { grid-template-columns: minmax(120px, auto) 1fr; }
.pf input, .pf select { width: 100%; }

.person-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-subtle);
}
.person-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.person-info { display: flex; flex-direction: column; gap: 2px; }
.person-name { font-size: 1rem; font-weight: 500; color: var(--text-primary); }
.person-sub { font-size: 0.875rem; color: var(--text-secondary); }
.person-actions { display: flex; gap: 6px; flex-shrink: 0; }

.icon-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--bg-surface); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.icon-btn:hover { background: var(--bg-subtle); }
.icon-btn.danger:hover { background: var(--danger-light); border-color: #f5c6c2; }

.person-edit-form {
  background: var(--bg-subtle); border-radius: var(--radius-sm);
  padding: 10px; display: none; flex-direction: column; gap: 7px;
}
.person-edit-form.open { display: flex; }
.pe-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.add-card-btn {
  border: 1px dashed var(--border); border-radius: var(--radius-md);
  padding: 10px; font-size: 0.9375rem; color: var(--accent);
  background: none; cursor: pointer; width: 100%; text-align: center;
  transition: background .12s;
}
.add-card-btn:hover { background: var(--accent-light); }

.booking-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-subtle);
}
.booking-top { display: flex; justify-content: space-between; align-items: flex-start; cursor: pointer; }
.booking-pitch { font-size: 1.0625rem; font-weight: 700; color: var(--text-primary); }
.booking-status {
  font-size: 0.8125rem; padding: 3px 10px; border-radius: var(--radius-pill);
  font-weight: 600; background: var(--accent-light); color: var(--accent-dark);
}
.booking-elec { font-size: 0.8125rem; display: flex; align-items: center; gap: 4px; }
.booking-dates { font-size: 0.9375rem; color: var(--text-muted); cursor: pointer; }
.bd-toggle-icon i { color: var(--text-muted); font-size: 0.8125rem; transition: transform .2s; }
.booking-card.open .bd-toggle-icon i { transform: rotate(180deg); }
.booking-details {
  display: none; flex-direction: column; gap: 10px;
  margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border);
}
.booking-card.open .booking-details { display: flex; }
.bd-pano.pano { height: 140px; }
.bd-info-box {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.booking-details .price-box { background: var(--bg-surface); border: 1px solid var(--border); }
.bd-row {
  font-size: 1rem; color: var(--text-secondary); display: flex; gap: 12px; align-items: baseline;
  padding: 9px 10px; border-bottom: 1px solid var(--border);
}
.bd-row:last-child { border-bottom: none; }
.bd-row i { color: var(--text-muted); width: 14px; flex-shrink: 0; }
.bd-row-stack { align-items: flex-start; }
.bd-row-stack i { margin-top: 3px; }
.bd-person + .bd-person { margin-top: 8px; }
.bd-person-name { font-weight: 600; color: var(--text-primary); }
.bd-person-sub { color: var(--text-secondary); font-style: italic; font-size: 0.8rem; }
.bd-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.bd-map-btn {
  font-size: 0.875rem; font-weight: 500; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--bg-surface); color: var(--accent-dark);
  cursor: pointer; transition: background .12s;
}
.bd-map-btn:hover { background: var(--accent-light); }
.booking-cancel {
  font-size: 0.9375rem; font-weight: 500; padding: 6px 14px;
  border: none; border-radius: var(--radius-pill);
  background: var(--danger-light); color: var(--danger);
  cursor: pointer; align-self: flex-start; transition: background .12s;
}
.booking-cancel:hover { background: #f5c6c2; }
.no-items { font-size: 0.9375rem; color: var(--text-muted); text-align: center; padding: 20px 0; }

#traveler-cards, #dog-cards, #vehicle-cards {
	display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =============================================
   GLOBAL INPUTS
   ============================================= */
input[type=text], input[type=email], input[type=password],
input[type=date], input[type=tel], select, textarea {
  font-family: inherit;
  font-size: 0.9375rem; color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 8px 11px; outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%; box-sizing: border-box;
}
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus,
input[type=date]:focus, input[type=tel]:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(22,163,74,.15);
}

/* =============================================
   MODALS
   ============================================= */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  display: none; align-items: center; justify-content: center; z-index: 100;
}
.overlay.open { display: flex; }
#auth-overlay.open { flex-direction: column; gap: 12px; }

.demo-creds-banner {
  background: var(--accent-light); color: var(--accent-dark);
  padding: 10px 16px; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 600; text-align: center;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}

.modal {
  background: var(--bg-surface); border-radius: var(--radius-lg);
  padding: 28px 24px; width: 360px; max-width: calc(100vw - 28px);
  display: flex; flex-direction: column; gap: 14px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
/* Preise/FAQ/Platzregeln brauchen mehr Platz als die schmalen Formular-Modals; auf großen Monitoren breiter */
#info-overlay .modal { width: clamp(360px, 50vw, 720px); }

.pl-table-scroll { overflow-x: auto; }
.pl-table-header, .pl-table-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 84px 84px 84px;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  min-width: 420px;
}
.pl-table-header span:not(:first-child),
.pl-table-row span:not(:first-child) { text-align: right; }
.pl-table-header {
  font-size: 0.8rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .03em;
  border-bottom: 2px solid var(--border);
}
.pl-table-row { font-size: 0.8125rem; }
.pl-table-row:last-child { border-bottom: none; }
.pl-table-row span:first-child { color: var(--text-secondary); }
.pl-table-row span:not(:first-child) { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: none; text-align: left; font: inherit; font-weight: 600;
  padding: 10px 0; cursor: pointer; color: var(--text-primary);
}
.faq-caret { flex-shrink: 0; color: var(--text-muted); transition: transform .2s; }
.faq-item.open .faq-caret { transform: rotate(180deg); }
.faq-a { display: none; color: var(--text-secondary); font-size: 0.875rem; padding: 0 0 10px; }
.faq-item.open .faq-a { display: block; }
.modal-title { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.modal-head .modal-title { flex: 1; }
.modal-head .close-btn { flex-shrink: 0; margin: -4px -6px 0 0; }
.modal-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 2px; }
.modal-tab {
  flex: 1; padding: 10px; font-size: 0.9375rem; font-weight: 500;
  border: none; background: none; cursor: pointer; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s;
}
.modal-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.modal-section { display: none; flex-direction: column; gap: 12px; }
.modal-section.active { display: flex; }

.mf { display: flex; flex-direction: column; gap: 4px; }
.mf label { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; margin-left: 3px; }
.mf-subtle { color: var(--text-muted) !important; }
.mf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.m-btn {
  padding: 10px; border-radius: var(--radius-pill);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  border: none; background: var(--accent); color: #fff; width: 100%;
  transition: background .15s;
}
.m-btn:hover { background: var(--accent-dark); }
.m-btn.secondary { background: var(--bg-subtle); color: var(--text-secondary); }
.m-btn.secondary:hover { background: #e0d7ca; }

.m-err {
  font-size: 0.9375rem; color: var(--danger); background: var(--danger-light);
  padding: 8px 12px; border-radius: var(--radius-sm); display: none;
}
.m-err.show { display: block; }
.m-ok {
  font-size: 0.9375rem; color: var(--accent-dark); background: var(--accent-light);
  padding: 8px 12px; border-radius: var(--radius-sm); display: none;
}
.m-ok.show { display: block; }

.form-card {
  background: var(--bg-surface); border-radius: var(--radius-lg);
  padding: 24px; width: 290px; max-width: calc(100vw - 28px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.fc-title { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }

.ff { display: flex; flex-direction: column; gap: 4px; font-size: 0.9375rem; }
.ff label { color: var(--text-muted); font-size: 0.8125rem; font-weight: 500; margin-left: 3px; }

.fcheck { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; }
.fcheck input { accent-color: var(--accent); }

.fa { display: flex; gap: 8px; padding-top: 2px; }
.fa button {
  flex: 1; padding: 9px; border-radius: var(--radius-pill);
  font-size: 0.9375rem; font-weight: 600; cursor: pointer; border: none; transition: background .12s;
}
.fa .save { background: var(--accent); color: #fff; }
.fa .save:hover { background: var(--accent-dark); }
.fa .cancel { background: var(--bg-subtle); color: var(--text-secondary); }
.fa .cancel:hover { background: #e0d7ca; }

/* =============================================
   CUSTOM SCROLLBARS
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: #c8c3bc; }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

/* =============================================
   SPLIT-BOOKING PIN STATES
   ============================================= */
.pin.split-partner .pc {
  background: #224373  !important;
  border-color: unset !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(29,78,216,.25);
  opacity:1!important;
}
.pin.split-selected .pc {
  background: #224373 !important;
  border-color: #fff !important;
  outline: 3px solid red;
  outline-offset: 2px;
  opacity:1!important;
  color:#fff!important;
}
.pin.split-partner-selected .pc {
  background: #224373 !important;
  border-color: #fff !important;
  outline: 3px solid red;
  outline-offset: 2px;
  opacity: 1 !important;
  color: #fff !important;
}
.pin.split-none .pc {
  background: #d1d5db !important;
  border-color: rgba(255,255,255,.5) !important;
  color: #9ca3af !important;
  opacity: .3;
}

/* Split-Booking Details */
.split-segs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.split-seg {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.split-seg-pin {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1d4ed8;
}
.split-seg-dates {
  font-size: 0.875rem;
  color: #3b82f6;
}

/* Split-filter-btn active state (blau statt grün) */
.filter-btn#split-btn.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

/* =============================================
   LANGUAGE SWITCHER
   ============================================= */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  box-sizing: border-box;
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
  padding: 0 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  opacity: .45;
  transition: opacity .15s, background .15s;
  line-height: 1;
  display: flex;
  align-items: center;
}
.lang-btn:hover { opacity: .8; }
.lang-btn.active { opacity: 1; background: var(--bg-subtle); }
.flag-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  display: block;
  overflow: hidden;
}

/* =============================================
   RESPONSIVE / MOBILE
   Ergänzt die Regeln oben (linkes Panel hat bereits eine eigene
   @media (max-width: 767px)-Anpassung) um alles, was auf schmalen
   Screens sonst fixe Desktop-Breiten/-Positionen behalten und dadurch
   über den Viewport hinausragen oder abgeschnitten würde
   (body hat overflow:hidden, also kein Notausgang durch Scrollen).
   ============================================= */
@media (max-width: 767px) {
  /* Infos/Sprache/Login: statt nebeneinander umzubrechen (unterschiedlich
     viele pro Zeile, schwer vorhersehbar) lieber sauber untereinander
     stapeln. top/right bleiben bei 14px wie das linke Panel — keine
     eigenen Werte mehr, damit beide Seiten den gleichen Abstand nach
     oben haben. */
  .right-ui {
    flex-direction: column; align-items: flex-end; gap: 6px;
    /* Ohne Deckelung ist die Breite der Spalte durch ihre breiteste Zeile
       (Anmelden+Registrieren nebeneinander) bestimmt; auf schmalen Handys
       reicht das über den freien Platz rechts vom linken Panel (220px +
       14px+14px Ränder) hinaus und legt sich über das Logo. Deckeln und
       die Auth-Buttons bei Bedarf umbrechen lassen (siehe #auth-buttons
       unten), statt die Überlappung zu riskieren. */
    max-width: calc(100vw - 258px);
  }
  /* Mobile Reihenfolge: Sprache, Info, Profil/Login (DOM-Reihenfolge ist Info/Sprache/Profil) */
  .lang-switcher { order: 1; }
  .lp-info-wrap { order: 2; }
  #auth-buttons, .user-menu-wrap { order: 3; }
  #auth-buttons { flex-wrap: wrap; justify-content: flex-end; }
  /* Etwas schmaler, damit "Registrieren" auch als alleinige Zeile (nach dem
     Umbruch oben) noch in die verbleibende Restbreite neben dem linken
     Panel passt. */
  #auth-buttons .auth-btn { padding: 0 12px; }

  /* Stellplatz-Sidebar & rechtes Profil-Panel: volle Breite statt fixer
     Desktop-Breite (320px/360px passen nicht auf ein Handy). Ihr Inhalt
     (Foto, Kalender, Preistabelle bzw. Buchungsliste) ist auf dem Handy
     oft höher als der Platz unter Logo/Auth-Buttons — deshalb oben
     anpinnen statt darunter einzuordnen: z-index über linkem Panel und
     rechter Button-Spalte (beide 30), damit sie Logo/Anmelden/Registrieren
     bei geöffnetem Panel überdeckt, statt darunter abgeschnitten zu
     werden, mit gleichmäßigem Außenabstand auf allen Seiten. */
  .sidebar, .right-panel {
    left: 14px; right: 14px; width: auto;
    top: 14px; bottom: 14px; max-height: none;
    z-index: 40;
  }

  /* Admin-Werkzeuge sitzen auf Desktop bewusst neben dem linken Panel
     (left: 245px); auf schmalen Screens würde das mit der rechten
     Button-Spalte kollidieren, da beide bei top: 14px anfangen.
     Admin-Toggle + Admin-Panel unten anpinnen. */
  .admin-toggle { top: auto; bottom: 14px; left: 14px; }
  .admin-panel {
    left: 14px; right: 14px; width: auto;
    top: auto; bottom: 60px; max-height: 45vh; overflow-y: auto;
  }
}

/* Pin während Drag nicht vergrößern */
.pin.dragging,
.pin.dragging:hover {
  transform: translate(-50%, -50%) scale(1) !important;
  cursor: grabbing !important;
}
.map-marker.dragging,
.map-marker.dragging:hover .marker-icon,
.map-marker-text.dragging {
  transform: translate(-50%, -50%) scale(1) !important;
  cursor: grabbing !important;
}
