/* =============================================
   Pfadiheim Reservation – Frontend CSS
   ============================================= */

.phr-kalender-wrapper { max-width: 960px; margin: 0 auto; }

/* Legende */
.phr-legende { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.phr-legende-item { display: flex; align-items: center; gap: 8px; font-size: .9em; }
.phr-legende-item::before { content: ''; display: inline-block; width: 20px; height: 20px; border-radius: 4px; }
.phr-legende--verfuegbar::before { background: #d4edda; border: 1px solid #28a745; }
.phr-legende--gebucht::before    { background: #f8d7da; border: 1px solid #dc3545; }
.phr-legende--vergangen::before  { background: #e9ecef; border: 1px solid #adb5bd; }

/* Navigation */
.phr-nav { display: flex; justify-content: space-between; margin-bottom: 20px; }
.phr-nav-btn { text-decoration: none; padding: 8px 16px; background: #2d6a4f; color: #fff; border-radius: 4px; }
.phr-nav-btn:hover { background: #1e4a36; color: #fff; }

/* Monate */
.phr-monate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 24px; }
.phr-monat { border: 1px solid #dee2e6; border-radius: 8px; padding: 16px; }
.phr-monat-titel { text-align: center; margin: 0 0 12px; font-size: 1.1em; color: #2d6a4f; }

/* Kalender-Grid */
.phr-kalender-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.phr-wt { text-align: center; font-size: .75em; font-weight: bold; color: #6c757d; padding: 4px 0; }
.phr-wochenende { color: #0d6efd; }

.phr-tag { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .85em; border-radius: 4px; user-select: none; transition: background .15s; }
.phr-leer { background: transparent; }
.phr-vergangen { background: #e9ecef; color: #adb5bd; }
.phr-gebucht { background: #f8d7da; color: #721c24; font-weight: bold; }
.phr-verfuegbar { background: #d4edda; color: #155724; cursor: pointer; }
.phr-verfuegbar:hover { background: #28a745; color: #fff; }
.phr-ausgewaehlt-von  { background: #0d6efd !important; color: #fff !important; }
.phr-ausgewaehlt-bis  { background: #0a58ca !important; color: #fff !important; }
.phr-ausgewaehlt-bereich { background: #cfe2ff !important; color: #084298 !important; }

/* Auswahl-Panel */
.phr-auswahl { background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 14px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.phr-auswahl p { margin: 0; }

/* Buttons */
.phr-btn-primary { display: inline-block; padding: 10px 20px; background: #2d6a4f; color: #fff; text-decoration: none; border-radius: 4px; border: none; cursor: pointer; font-size: 1em; }
.phr-btn-primary:hover { background: #1e4a36; color: #fff; }
.phr-btn { display: inline-block; padding: 10px 20px; background: #6c757d; color: #fff; border-radius: 4px; border: none; cursor: pointer; font-size: 1em; }
.phr-direkt-btn { margin-top: 16px; }

/* Preis-Anzeige */
.phr-preis-anzeige { background: #d4edda; border: 1px solid #28a745; border-radius: 4px; padding: 8px 14px; margin-top: 6px; font-weight: bold; color: #155724; display: none; }

/* Formular */
.phr-formular-wrapper { max-width: 680px; }
.phr-fieldset { border: 1px solid #dee2e6; border-radius: 6px; padding: 16px 20px; margin-bottom: 20px; }
.phr-fieldset legend { font-weight: bold; padding: 0 6px; color: #2d6a4f; }
.phr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.phr-row--plz { grid-template-columns: 100px 1fr; }
.phr-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.phr-field label { font-weight: bold; font-size: .9em; }
.phr-field input, .phr-field textarea, .phr-field select { border: 1px solid #ced4da; border-radius: 4px; padding: 8px 10px; font-size: 1em; width: 100%; box-sizing: border-box; }
.phr-field--checkbox { margin-bottom: 16px; }
.phr-field--checkbox label { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; }
.phr-submit-btn { font-size: 1.05em; padding: 12px 28px; }

/* Meldung */
.phr-meldung { padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; font-weight: bold; }
.phr-meldung--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.phr-meldung--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

@media (max-width: 600px) {
  .phr-monate-grid, .phr-row { grid-template-columns: 1fr; }
  .phr-auswahl { flex-direction: column; align-items: flex-start; }
}

/* reCAPTCHA Hinweis */
.phr-recaptcha-hinweis {
    font-size: .8em;
    color: #6c757d;
    margin: 0 0 14px;
}
