/* Les Palmiers in Les Issambres — eigene Stile (ergänzt Tailwind) */

.pin-box {
  width: 3.25rem;
  height: 3.75rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  border: 2px solid #cbd5e1;
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pin-box:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

/* Monatskalender: 7-Spalten-Grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.cal-cell {
  position: relative;
  min-height: 104px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Obere Wohnung oben, untere Wohnung unten in der Kachel */
.cal-top { display: flex; flex-direction: column; }
.cal-bot { margin-top: auto; display: flex; flex-direction: column; }
/* Familienbelegung: dezent grau, leicht abgesetzt */
.cal-bar-fam { font-style: italic; opacity: 0.92; }
.cal-cell.is-other-month {
  background: #f8fafc;
  color: #cbd5e1;
}
.cal-cell.is-today {
  outline: 2px solid #0ea5e9;
  outline-offset: -2px;
}
.cal-daynum {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}
.cal-bar {
  font-size: 0.7rem;
  line-height: 1.25;
  color: #fff;
  border-radius: 5px;
  padding: 2px 6px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Touch-Ziele auf Mobile vergrößern */
@media (max-width: 640px) {
  .cal-cell { min-height: 70px; }
  .cal-bar { font-size: 0.62rem; padding: 1px 4px; }
}

.badge-incident {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
}

/* Einheitliche Formular-Stile (Buchungsformular) */
.lp-field {
  width: 100%;
  min-width: 0;          /* erlaubt Schrumpfen in Grid/Flex (sonst Überlappen) */
  min-height: 2.6rem;    /* konsistente Höhe; verhindert Kollaps der iOS-Datumsfelder */
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  padding: 0.55rem 0.75rem;
  /* 16px: verhindert iOS-Auto-Zoom beim Fokussieren von Feldern (< 16px zoomt) */
  font-size: 1rem;
  background: #fff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
/* iOS: native date/time/number-Felder respektieren width:100% nur mit
   appearance:none — sonst behalten sie ihre Eigenbreite und laufen über die
   Kachel / überlappen (Anreise/Abreise, Frühester Putzbeginn). Nur auf Touch,
   damit Desktop sein Kalender-Icon behält. */
@media (pointer: coarse) {
  .lp-field[type="date"],
  .lp-field[type="time"],
  .lp-field[type="number"] {
    -webkit-appearance: none;
    appearance: none;
  }
}
.lp-field:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.lp-label {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.lp-section {
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.9rem;
}
.lp-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

/* Hightech-Karten */
.lp-clean-card,
.lp-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1.1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 36px -20px rgba(15, 23, 42, 0.28);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.lp-card:hover,
.lp-clean-card:hover {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06), 0 22px 50px -22px rgba(15, 23, 42, 0.34);
  border-color: #d6e0ec;
}
.lp-card:active { transform: translateY(1px); }

/* Schöne runde Navigationsbuttons (Kalender / Jahr) */
.cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.cal-nav:hover { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; }
.cal-nav:active { transform: scale(0.94); }
.cal-nav svg { width: 1.15rem; height: 1.15rem; }

/* Header-Glocke (Vorfall-Notification) */
@keyframes lp-bell-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.lp-bell-on { animation: lp-bell-pulse 1.6s ease-in-out infinite; }

/* Luxuriöser Markentitel — geschwungene Schrift mit warmem Goldverlauf.
   inline-block + Zeilenhöhe/Innenabstand verhindern, dass Ober-/Unterlängen
   der Schreibschrift oben/unten abgeschnitten werden. */
.brand-script {
  display: inline-block;
  font-family: 'Great Vibes', 'Segoe Script', cursive;
  font-weight: 400;
  line-height: 1.3;
  padding: 0.12em 0.18em 0.06em;
  background: linear-gradient(135deg, #7a5d12 0%, #c9a227 42%, #e7c66b 55%, #a8801f 70%, #6b5214 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* warmer Bronze-Schatten für Tiefe (gut auf hellem Header-Hintergrund) */
  filter: drop-shadow(0 1px 1px rgba(74, 55, 12, 0.32)) drop-shadow(0 3px 7px rgba(120, 90, 20, 0.18));
}

/* Infos-Kacheln: edler Goldrahmen mit Eck-Verzierungen */
.lp-info-card {
  position: relative;
  background: linear-gradient(180deg, #fffdf8, #fffaf0);
  border: 1px solid #e7d6a3;
  border-radius: 1.1rem;
  box-shadow: 0 1px 2px rgba(140, 105, 20, 0.06), 0 18px 42px -24px rgba(140, 105, 20, 0.30);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.lp-info-card:hover {
  box-shadow: 0 4px 10px rgba(140, 105, 20, 0.08), 0 26px 54px -26px rgba(140, 105, 20, 0.38);
}
.lp-info-card .lp-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid #c9a227;
  pointer-events: none;
}
.lp-info-card .lp-corner-tl { top: 7px; left: 7px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 7px; }
.lp-info-card .lp-corner-tr { top: 7px; right: 7px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 7px; }
.lp-info-card .lp-corner-bl { bottom: 7px; left: 7px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 7px; }
.lp-info-card .lp-corner-br { bottom: 7px; right: 7px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 7px; }
.lp-gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e7d6a3 18%, #c9a227 50%, #e7d6a3 82%, transparent);
  margin: 0.3rem 0 0.8rem;
}

/* Modale auf iOS nicht abschneiden: dynamische Viewport-Höhe (dvh) statt vh.
   .lp-modal-overlay deckt exakt den sichtbaren Bereich ab (für korrekte
   Zentrierung), .lp-modal-box begrenzt die Modalhöhe. vh als Fallback. */
.lp-modal-overlay {
  height: 100vh;
  height: 100dvh;
}
.lp-screen {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Wetter im Header: auf Mobile nur die Temperatur (spart Platz für die Palme),
   ab sm die volle Kachel (Icon + Temperatur + Wind). */
.lp-weather { color: #0284c7; }
@media (min-width: 640px) {
  .lp-weather {
    color: #fff;
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    border-radius: 0.75rem;
    padding: 0.25rem 0.75rem 0.25rem 0.625rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  }
}
.lp-modal-box {
  max-height: 92vh;
  max-height: 92dvh;
}

/* Gästebuch-Aushang (A4-Poster) */
.poster { width: 210mm; max-width: 100%; border-radius: 0.5rem; }
.poster-inner { padding: 16mm 14mm; }
/* Goldschrift im Poster „flach" (solid statt Verlauf-Clip), damit sie auch
   bei der PDF-Erzeugung via html2canvas korrekt erscheint. */
.poster .brand-script {
  -webkit-text-fill-color: #b8902a;
  color: #b8902a;
  background: none;
  filter: none;
}
@media print {
  @page { size: A4; margin: 0; }
  .no-print { display: none !important; }
  body { background: #fff !important; }
  .poster-wrap { padding: 0 !important; }
  .poster { width: auto; box-shadow: none !important; border-radius: 0; }
}

/* Schöne Tooltips — nur auf Geräten mit Maus/Hover (Desktop), nicht auf Touch */
@media (hover: hover) and (pointer: fine) {
  .lp-tip { position: relative; }
  .lp-tip::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    transform: translate(-50%, -4px);
    background: #0f172a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    padding: 0.36rem 0.6rem;
    border-radius: 0.55rem;
    box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 60;
  }
  .lp-tip::before {
    content: "";
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    transform: translate(-50%, -4px);
    border: 5px solid transparent;
    border-bottom-color: #0f172a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 60;
  }
  .lp-tip:hover::after,
  .lp-tip:hover::before,
  .lp-tip:focus-visible::after,
  .lp-tip:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Chart-Tooltip — gleiche Optik wie die Menü-Tooltips (.lp-tip), folgt dem Cursor */
.lp-chart-tip {
  position: fixed;
  z-index: 70;
  background: #0f172a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  padding: 0.36rem 0.6rem;
  border-radius: 0.55rem;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.12s ease;
}
.lp-chart-tip.is-on { opacity: 1; }
.lp-chart-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0f172a;
}
