/* FEWO – Basis-Layout (Card-first, responsive)
   Stand: konsolidierte app.css (Navigation + Forms + Gallery + Kalender) */

/* =========================================================
   Design Tokens
   ========================================================= */
:root {
  /* Hauptfarben */
  --primary-color: #2f3e2f;
  --accent-color:  #66874F;

  /* Statusfarben */
  --success-color: #6fa36a;
  --error-color:   #c94a3a;

  /* Flächen */
  --bg-light: #f7f8f5;
  --white:    #ffffff;

  /* Schatten */
  --shadow: 0 4px 15px rgba(0,0,0,0.1);

  /* Header-Farben */
  --header-bg:       #4f6b3a;
  --header-bg-light: #66874F;

  /* System */
  --radius: 16px;
  --radius-sm: 12px;
  --border: rgba(47, 62, 47, 0.14);

  --text: #1e251e;
  --muted: rgba(30, 37, 30, 0.70);

  --focus: rgba(102, 135, 79, 0.35);

  --container: 1180px;

  /* Spacing */
  --s-1: 6px;
  --s-2: 10px;
  --s-3: 14px;
  --s-4: 18px;
  --s-5: 24px;
  --s-6: 32px;

  /* Typografie */
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-lg: 1.15rem;
  --fs-xl: 1.45rem;
  --fs-2xl: 1.9rem;

  --lh: 1.55;
}

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }
html, body { height: 100%; }

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg-light);
}

/* Container */
.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* Links */
a { color: inherit; }
.link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
}
.link:hover { text-decoration: underline; }

/* =========================================================
   Header + Navigation
   ========================================================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--header-bg), var(--header-bg-light));
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  font-weight: 900;
}
.brand-text strong { display: block; font-size: 1.05rem; letter-spacing: 0.2px; }
.brand-text small { display: block; opacity: 0.9; font-size: 0.85rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255,255,255,0.95);
  font-weight: 750;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,0.14); }
.nav-links a.active {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.nav-admin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

/* Mobile menu button (hidden on desktop) */
.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 18px;
  cursor: pointer;

  padding: 0;
  line-height: 1;
  display: none;
  place-items: center;
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer .drawer-inner {
  padding: 10px 0 16px;
  display: grid;
  gap: 10px;
}
.mobile-drawer .nav-links {
  border-radius: 16px;
  padding: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  background: rgba(255,255,255,0.10);
}

/* =========================================================
   Main Layout
   ========================================================= */
.main {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-5) 0 var(--s-6);
}

/* Page header */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
}
.page-title {
  margin: 0;
  font-size: var(--fs-2xl);
  letter-spacing: -0.3px;
  color: var(--primary-color);
}
.page-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--fs-base);
}
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: var(--s-5);
  border-bottom: 1px solid rgba(47,62,47,0.10);
  background: linear-gradient(180deg, rgba(102,135,79,0.08), rgba(255,255,255,0));
}
.card-title {
  margin: 0;
  font-size: var(--fs-lg);
  color: var(--primary-color);
}
.card-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.card-body { padding: var(--s-5); }

/* Typografie in Cards vereinheitlichen */
.card-body > *:first-child { margin-top: 0; }
.card-body > *:last-child  { margin-bottom: 0; }

/* Grids */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}

/* Media */
.image {
  width: 100%;
  height: auto !important;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(47,62,47,0.10);
  max-height: 420px;
  object-fit: contain;
  background: rgba(247,248,245,0.7);
}
.image-cover { object-fit: cover; background: transparent; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus { outline: none; box-shadow: 0 0 0 4px var(--focus); }

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47,62,47,0.22);
}
.btn-primary:hover { background: #273327; }

.btn-secondary {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.26);
}
.btn-secondary:hover { background: rgba(255,255,255,0.24); }

.btn-soft {
  background: rgba(102,135,79,0.14);
  color: var(--primary-color);
  border-color: rgba(102,135,79,0.25);
}
.btn-soft:hover { background: rgba(102,135,79,0.20); }

/* =========================================================
   Forms (systemweit)
   ========================================================= */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }

.label {
  display: block;
  font-weight: 750;
  color: var(--primary-color);
  font-size: var(--fs-sm);
  margin: 0;
}

.input, .select, .textarea {
  width: 100%;
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(47,62,47,0.18);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
  appearance: none;
}
.textarea { resize: vertical; min-height: 110px; }

.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(102,135,79,0.65);
  box-shadow: 0 0 0 4px var(--focus);
}

.form-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px) {
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   Kontaktformular – Footer (Captcha + Datenschutz + Button)
   ========================================================= */
.contact-form-footer{
  display: grid;
  gap: 12px;
}

/* Datenschutztext: kein extra Absatz-Abstand, lesbare Zeilenlänge */
.form-privacy{
  margin: 0;
  max-width: 75ch;
}

/* Button sauber in einer Zeile ausrichten */
.contact-form-actions{
  display: flex;
  justify-content: flex-start;
}

/* Mobile: Button volle Breite */
@media (max-width: 560px){
  .contact-form-actions .btn{ width: 100%; }
}

/* =========================================================
   Buchungsformular (Kalender) – Footer (Preis + Datenschutz + Button)
   ========================================================= */
.booking-form-summary-card{
  box-shadow: none;
  border-color: rgba(47,62,47,0.10);
}

.booking-form-summary-body{
  padding: var(--s-3); /* entspricht 14px */
  display: grid;
  gap: 12px;
}

.booking-form-actions{
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 560px){
  .booking-form-actions .btn{ width: 100%; }
}

/* Radio/Checkbox */
.radio-group { display: grid; gap: 10px; margin-top: 8px; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(47,62,47,0.12);
  background: rgba(255,255,255,0.7);
  font-weight: 750;
}
.radio-label input[type="radio"]{
  width: auto;
  margin: 0;
  accent-color: var(--accent-color);
}

/* Auth helper */
.auth-card { max-width: 560px; margin-inline: auto; }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.auth-actions .btn { flex: 1 1 200px; }


/* =========================================================
   Alerts / Messages (inkl. legacy .message)
   ========================================================= */
.alert, .message{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(47,62,47,0.18);
  background: rgba(247,248,245,0.85);

  margin: 0 0 var(--s-3);
}
.alert.success, .message.success{
  border-color: rgba(111,163,106,0.45);
  background: rgba(111,163,106,0.18);
}
.alert.error, .message.error{
  border-color: rgba(201,74,58,0.45);
  background: rgba(201,74,58,0.16);
}
.is-hidden { display: none !important; }

/* Zusätzliche Alert-Variante */
.alert.info{
  border-color: rgba(102,135,79,0.25);
  background: rgba(102,135,79,0.10);
  color: var(--primary-color);
}

/* =========================================================
   Dismissible Messages (wegklickbare Meldungen)
   ========================================================= */

.alert.is-dismissible,
.message.is-dismissible{
  position: relative;
  padding-right: 44px; /* Platz für den X-Button */
  transition: opacity .22s ease, transform .22s ease;
}

.message-close{
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  opacity: .65;
}

.message-close:hover{
  opacity: 1;
  background: rgba(0,0,0,0.08);
}

/* =========================================================
   Gallery (Übersicht immer Querformat)
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gallery-item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(47,62,47,0.12);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  background: #fff;
  aspect-ratio: 4 / 3;
  position: relative;
}
.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .2s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.02); }

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,0.72);
  z-index: 100;
}
.lightbox.is-open { display: flex; }

#lightbox-img {
  max-width: min(980px, 92vw);
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* =========================================================
   Kalender (Belegung)
   ========================================================= */
#calendar { scroll-margin-top: 90px; }

.calendar-main-card {
  border: 1px solid rgba(47,62,47,0.12);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: rgba(247,248,245,0.55);
  box-shadow: none;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.calendar-nav-title {
  font-weight: 900;
  color: var(--primary-color);
}

.calendar-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.calendar-month {
  background: #fff;
  border: 1px solid rgba(47,62,47,0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.calendar-title {
  margin: 0;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary-color);
  background: linear-gradient(180deg, rgba(102,135,79,0.10), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(47,62,47,0.10);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 12px;
}

.day-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(47,62,47,0.75);
  text-align: center;
  padding: 6px 0;
}

.day {
  border-radius: 12px;
  text-align: center;
  padding: 10px 0;
  font-weight: 800;
  user-select: none;
  border: 1px solid rgba(47,62,47,0.10);
  background: rgba(247,248,245,0.85);
}
.day[data-selectable="true"],
.day[data-selectable-end="true"] { cursor: pointer; }

/* Statusfarben */
.day.is-free {
  background: #79c26b;
  border-color: #4b9a3e;
  color: #103010;
}
.day.is-busy {
  background: #e45a4f;
  border-color: #b8372e;
  color: #ffffff;
}
.day.is-pending {
  background: #d6d9dc;
  border-color: #9aa0a6;
  color: #2b2b2b;
}

/* Gesperrte Tage – weiß + diagonaler Sperrstrich */
.day.is-blocked {
  position: relative;
  background: #ffffff;
  border-color: #b0b0b0;
  color: #666666;
  cursor: not-allowed;
  overflow: hidden;
}

/* diagonale Sperrlinie über das ganze Feld */
.day.is-blocked::after{
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
      135deg,
      rgba(180,180,180,0.0) 0px,
      rgba(180,180,180,0.0) 10px,
      rgba(180,180,180,0.9) 10px,
      rgba(180,180,180,0.9) 12px
  );
  pointer-events: none;
}


/* Wechseltag diagonal */
.day.is-change {
  background: linear-gradient(135deg,
    #79c26b 0%,
    #79c26b 50%,
    #e45a4f 50%,
    #e45a4f 100%
  );
  border-color: rgba(47,62,47,0.30);
}

/* Auswahlbereich (dunkleres Blau) */
.day.is-selected,
.day.is-selected-start,
.day.is-selected-end{
  outline: 3px solid rgba(70, 140, 255, 0.40);
  border-color: rgba(70, 140, 255, 0.75);
  background: rgba(70, 140, 255, 0.22);
}
.day.is-range-bookable{
  background: rgba(70, 140, 255, 0.16);
  border-color: rgba(70, 140, 255, 0.45);
}
.day.is-range-edge-bookable{
  background: rgba(70, 140, 255, 0.22);
  border-color: rgba(70, 140, 255, 0.65);
}

/* Legend */
.calendar-legend-small {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: rgba(47,62,47,0.8);
  font-weight: 750;
  font-size: 0.95rem;
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 12px; height: 12px; border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(47,62,47,0.16);
  background: rgba(247,248,245,0.85);
}
.dot.is-free { background: #79c26b; }
.dot.is-busy { background: #e45a4f; }
.dot.is-pending { background: #9aa0a6; }
.dot.is-change{
  background: linear-gradient(135deg,
    #79c26b 0%,
    #79c26b 50%,
    #e45a4f 50%,
    #e45a4f 100%
  );
  border-color: rgba(47,62,47,0.22);
}
.dot.is-blocked{
  background-color: #fff;

  /* exakt zwei diagonale Linien per inline-SVG */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cline x1='-2' y1='10' x2='10' y2='-2' stroke='%239b9b9b' stroke-width='2'/%3E%3Cline x1='2' y1='14' x2='14' y2='2' stroke='%239b9b9b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;

  border-color: #b0b0b0;
}

/* Options / calculator */
.calculator-card-structured {
  border: 1px solid rgba(47,62,47,0.12);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: rgba(247,248,245,0.55);
  box-shadow: none;
  margin-top: 12px;
}
.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.calc-label { font-weight: 900; color: var(--primary-color); }
.calc-value { font-weight: 900; font-size: 1.2rem; color: var(--primary-color); }

.price-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(47,62,47,0.10);
  color: rgba(47,62,47,0.85);
}

/* ===== Kalender: Preis-Aufschlüsselung (Beträge rechts bündig, tabellarische Ziffern) ===== */
.price-breakdown { margin-top: 12px; }
.price-breakdown-table { width: 100%; border-collapse: collapse; }
.price-breakdown-table td { padding: 6px 0; vertical-align: top; }
.price-breakdown-table .price-breakdown-head td { padding-top: 10px; }
.price-breakdown-table .price-breakdown-sep td { padding-top: 10px; border-top: 1px solid rgba(47,62,47,0.10); }
.price-breakdown-table .price-breakdown-total td { padding-top: 10px; border-top: 1px solid rgba(47,62,47,0.12); }
.td-right {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Leere Meldungsboxen nie anzeigen (fix für JS clearCalendarError) */
.alert:empty,
.message:empty {
  display: none !important;
  padding: 0 !important;
  border: 0 !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: stretch; }

  /* Hide ONLY desktop nav links in header */
  .header-inner .nav-links { display: none; }
  .header-inner .nav-admin { display: none; }
  .icon-btn { display: grid; }
  .mobile-drawer .nav-links { display: flex; }

  .calendar-duo { grid-template-columns: 1fr; }
  .calendar-grid { gap: 5px; }
  .day { padding: 9px 0; }
}

/* =========================================================
   Footer
   ========================================================= */
.app-footer {
  border-top: 1px solid rgba(47,62,47,0.12);
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(8px);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 750;
}
.footer-nav a:hover { text-decoration: underline; }

/* =========================================================
  Utilities
   ========================================================= */

.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: 12px; }

/* Page actions (rechts ausrichten, volle Breite wenn gewünscht) */
.page-actions-right{
  justify-content: flex-end;
  width: 100%;
}
.page-actions.page-actions-right{
  width: 100%;
}

/* Buttons: Links und echte Buttons identisch behandeln */
a.btn,
button.btn{
  display: inline-flex;
  align-items: center;
  font: inherit;
  line-height: 1.2;
  padding-top: 10px;
  padding-bottom: 10px;
}

button.btn{
  -webkit-appearance: none;
  appearance: none;
}

/* Mobile: Tabelle innerhalb der Card scrollbar */
.table-scroll{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll .price-breakdown-table{
  min-width: 720px;
}

/* =========================================================
   Admin (Buchungsverwaltung) – Ergänzungen (minimal)
   ========================================================= */

/* Formular + Kalender nebeneinander */
.admin-manual-split{
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
.admin-calendar-side .booking-calendar{
  font-size: 0.82rem;
}
.admin-calendar-side .card{ margin: 0; }
.admin-calendar-side .booking-calendar .calendar-duo{
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.admin-calendar-side .booking-calendar .calendar-month{ width: 100%; }
.admin-calendar-side .booking-calendar .calendar-month table{ width: 100%; }
.admin-calendar-side .booking-calendar .calendar-nav{
  flex-wrap: wrap;
  gap: 8px;
}
.admin-calendar-side .booking-calendar .calendar-nav a{
  white-space: nowrap;
}

.admin-price-note{
  margin-top: 10px;
}

/* Table: kompakt, ohne globales th-Card-Styling */
.admin-table-compact{
  width: 100%;
  border-collapse: collapse;
  min-width: 980px; /* sorgt dafür, dass mobile horizontal scrollt */
}
.admin-table-compact th,
.admin-table-compact td{
  padding: 10px 12px;
  border-top: 1px solid rgba(47,62,47,0.10);
  vertical-align: top;
  text-align: left;
}
.admin-table-compact thead th{
  border-top: 0;
  font-weight: 900;
  color: var(--primary-color);
  white-space: nowrap;
}
.admin-table-compact tbody tr:first-child td{ border-top: 0; }

.row-delete-highlight {
  background-color: #fff3cd;
  transition: background-color 0.2s ease;
}

/* Status-Pills (klein, unaufdringlich) */
.status-pill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 850;
  font-size: var(--fs-sm);
  border: 1px solid rgba(47,62,47,0.14);
  background: rgba(247,248,245,0.85);
}
.status-pill.is-success{
  border-color: rgba(111,163,106,0.45);
  background: rgba(111,163,106,0.18);
}
.status-pill.is-warning{
  border-color: rgba(47,62,47,0.20);
  background: rgba(47,62,47,0.10);
}

/* Danger button (für Storno/Löschen) */
.btn-danger{
  background: var(--error-color);
  color: #fff;
  box-shadow: 0 8px 18px rgba(201,74,58,0.18);
}
.btn-danger:hover{ background: #b24134; }

/* Klickbarer Preis wie Link, aber Button (für A11y + kein <a href="#">) */
.link-like{
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent-color);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.link-like:hover{ text-decoration: underline; }

/* Preisdetails-Box */
.details-box{
  display: none;
  margin-top: 10px;
}
.details-box.is-open{ display: block; }

/* Gastzeile im Table-Cell */
.admin-guestline{
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-dog img,
.admin-bed img{
  display:block;
}

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
}
.modal.is-open{ display: flex; }
.modal-card{
  width: min(560px, 94vw);
}

/* Filterbar */
.admin-filterbar{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: rgba(0,0,0,.02);
}
.admin-filterbar-group{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-filterbar-label{
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #666;
}
.admin-filterbar-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-filterbar .btn{ margin: 0; }

/* Mobile-Karten für Buchungen */
.admin-mobile-bookings{
  display: none;
}
.admin-booking-card{
  border: 1px solid rgba(47,62,47,0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  overflow: hidden;
}
.admin-booking-card__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(47,62,47,0.10);
  background: linear-gradient(180deg, rgba(102,135,79,0.08), rgba(255,255,255,0));
}
.admin-booking-card__title{
  margin: 0;
  font-size: 1rem;
  color: var(--primary-color);
}
.admin-booking-card__icons{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.admin-booking-card__body{
  display: grid;
  gap: 14px;
  padding: 16px;
}
.admin-booking-card__section{
  display: grid;
  gap: 6px;
}
.admin-booking-card__label{
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(47,62,47,0.68);
}
.admin-booking-card__text{
  color: var(--text);
}
.admin-booking-card__meta{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-booking-card__actions{
  display: grid;
  gap: 8px;
}
.admin-booking-card__actions .page-actions{
  gap: 8px;
}
.admin-booking-card__actions .page-actions > *{
  margin: 0;
}
.admin-booking-card__details .details-box{
  margin-top: 8px;
}

@media (max-width: 980px) {
  .admin-manual-split{
    grid-template-columns: 1fr;
  }

  .admin-filterbar{
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .admin-filterbar-group{
    display: grid;
    gap: 8px;
    align-items: stretch;
  }

  .admin-filterbar-links{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .admin-filterbar .btn{
    white-space: nowrap;
    padding: 9px 12px;
    border-radius: 12px;
  }

  .table-scroll--desktop{
    display: none;
  }

  .admin-mobile-bookings{
    display: grid;
    gap: 14px;
  }

  .admin-booking-card__meta{
    grid-template-columns: 1fr;
  }

  .admin-booking-card__actions .page-actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-booking-card__actions .btn,
  .admin-booking-card__actions form{
    width: 100%;
  }

  .admin-booking-card__actions form .btn{
    width: 100%;
  }
}

@media (max-width: 640px){
  .footer-inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}

/* =========================================================
   Admin – Sperrzeiten (Inline-Bearbeitung)
   ========================================================= */

/* Panel außerhalb der scrollbaren Tabelle (mobil-sicher) */
.inline-panel-outside{
  max-width: 560px;
  margin: 14px auto 0;
  border: 1px solid rgba(47,62,47,0.12);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  scroll-margin-top: 110px;
}

.inline-panel-outside .form{ gap: 10px; }
.inline-panel-outside .form-row{ gap: 10px; }
.inline-panel-outside .page-actions{ justify-content:flex-end; }

/* aktive Tabellenzeile hervorheben (Bearbeiten/Löschen) */
tr.is-active-row td{
  outline: 2px solid rgba(102,135,79,0.25);
  background: rgba(102,135,79,0.06);
}

/* ===========================
   Google Maps 2-Klick-Lösung
   (Einwilligung + Widerruf)
   =========================== */

.map-consent__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.map-consent__toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fafafa;
}

/* Optional: etwas kompaktere Buttons in der Toolbar */
.map-consent__toolbar .btn {
  padding-top: 10px;
  padding-bottom: 10px;
}
.map-consent__toolbar[hidden]{
  display: none !important;
}

/* Google Maps Aktiv-Hinweis */
.map-consent__active-hint{
  margin: 12px 16px 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(102,135,79,0.12);
  border: 1px solid rgba(102,135,79,0.25);
  font-size: 0.9rem;
  color: var(--primary-color);
}

.map-consent__active-hint a{
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: underline;
}

@media (max-width: 980px) {

  /* HERO: Bild vor Text */
  .card-body > .grid > div:first-child {
    order: 2;
  }

  .card-body > .grid > div:last-child {
    order: 1;
  }

}