:root{--bg:#f6f7fb;--card:#fff;--muted:#6b7280;--border:#e5e7eb;--accent:#111827;}
*{box-sizing:border-box} body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:#111}
header{background:#fff;padding:14px 20px;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}
main{max-width:1000px;margin:20px auto;background:var(--card);padding:20px;border-radius:14px;box-shadow:0 6px 20px rgba(0,0,0,.06)}
h1,h2,h3{margin:0 0 10px}
.grid{display:grid;gap:12px}
.grid-2{grid-template-columns:1fr 1fr}
input,button,select{width:100%;padding:10px;border:1px solid var(--border);border-radius:10px;font-size:16px}
button{background:var(--accent);color:#fff;border:none;cursor:pointer}
button:hover{filter:brightness(.95)}
.muted{color:var(--muted)}
.card{background:#fafafa;border:1px solid #eee;border-radius:10px;padding:12px}
table{width:100%;border-collapse:collapse}
th,td{padding:8px;border-bottom:1px solid #eee;text-align:left}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;border:1px solid var(--border);background:#fff}
.success{color:#065f46;background:#ecfdf5;padding:10px;border-radius:8px;border:1px solid #a7f3d0}
.error{color:#7f1d1d;background:#fef2f2;padding:10px;border-radius:8px;border:1px solid #fecaca}
.calendar{user-select:none}
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.cal-cell{border:1px solid #e5e7eb;border-radius:8px;min-height:58px;padding:6px;position:relative;background:#fff}
.cal-cell.muted{background:#f9fafb;color:#9ca3af}
.cal-cell .d{position:absolute;top:6px;right:8px;font-size:12px;color:#9ca3af}
.cal-cell.sel{outline:2px solid #111827;background:#eef2ff}
.cal-cell.booked{background:#fee2e2;border-color:#fecaca}
.cal-legend{display:flex;gap:8px;margin:6px 0}
.cal-legend > span{display:inline-flex;align-items:center;gap:6px}
.dot{width:12px;height:12px;border-radius:4px;display:inline-block;border:1px solid #e5e7eb}
.dot.free{background:#fff}
.dot.booked{background:#fecaca}
.dot.sel{background:#eef2ff;border-color:#111827}
footer{max-width:1000px;margin:12px auto;color:#6b7280;font-size:14px;text-align:center}
/* -----------------------------------------
   iOS Quickfix für Buchungsseite (Checkboxen)
   Überschreibt Inline-Styles in booking.ejs
   ----------------------------------------- */

/* Verhindert, dass ein Grid-Item (2. Checkbox) "wegklappt" */
.grid2,
.grid-2 {
  min-width: 0 !important;
  grid-auto-rows: minmax(min-content, auto) !important;
  align-items: flex-end !important; /* statt 'end' → stabiler in Safari */
}

/* Sichert die Breite der einzelnen Optionszeilen */
.inline-opt {
  min-width: 0 !important;
}

/* Stellt sicher, dass die Checkboxen in iOS sichtbar sind */
.inline-opt input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  vertical-align: middle;
  margin-right: 6px;
}
/* -----------------------------------------
   Mobile Fix: Kalender-Header (Monatsnavigation)
   ----------------------------------------- */

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap; /* erlaubt Umbruch bei kleinen Screens */
}

/* Buttons kompakter gestalten */
.cal-head button {
  padding: 6px 8px;
  font-size: 14px;
  flex: 1 1 auto; /* gleichm��ige Verteilung, vermeidet �berlappung */
  min-width: 0;   /* Safari-Schutz */
  white-space: nowrap; /* kein Zeilenumbruch im Buttontext */
}

/* Monatsname in der Mitte automatisch umbrechen oder kleiner */
.cal-head h3,
.cal-head .month-title {
  font-size: 16px;
  text-align: center;
  flex: 1 1 100%;
  margin: 4px 0;
}

/* Auf gr��eren Bildschirmen wieder in eine Reihe */
@media (min-width: 480px) {
  .cal-head {
    flex-wrap: nowrap;
  }
  .cal-head h3,
  .cal-head .month-title {
    flex: 0 1 auto;
    margin: 0;
  }
}

/* =========================================================
   Natur-Theme (Stellplatz im Grünen) – überschreibt Grau
   ========================================================= */
:root{
  --bg:#eaf3e2; --card:#ffffff; --muted:#5c6b5e; --border:#d6e2cf;
  --accent:#2e7d46; --accent-dark:#24603a;
}
body{
  background:linear-gradient(180deg,#e3f0d8 0%, #eef4ea 55%, #f3f1e7 100%);
  color:#213021; min-height:100vh;
}
header{
  background:linear-gradient(90deg,#2e7d46 0%, #4aa368 100%);
  color:#fff; border-bottom:none; box-shadow:0 2px 12px rgba(31,81,48,.15);
}
header strong{ color:#fff; font-size:19px; letter-spacing:.2px; }
header strong::before{ content:"🌲 "; }
main{ border:1px solid #e3efdb; box-shadow:0 10px 30px rgba(31,81,48,.10); }
h1,h2,h3{ color:#1f5130; }
h1{ font-size:1.7rem; }
a{ color:#2e7d46; }
a:hover{ color:#24603a; }
button{ background:var(--accent); font-weight:600; }
button:hover{ background:var(--accent-dark); filter:none; }
.muted{ color:var(--muted); }
.success{ color:#1f5130; background:#e8f6ea; border-color:#bfe3c6; }
.hero img{ box-shadow:0 12px 34px rgba(31,81,48,.20); }
.hero h1{ font-size:2rem; }
footer{ color:#5c6b5e; }
#content a{ color:#2e7d46; }
/* „Zur Buchung"-Button in der Info-Seite grün + einladend */
.actions .btn, a.btn{
  background:#2e7d46 !important; border-color:#2e7d46 !important; color:#fff !important;
  padding:.7rem 1.3rem !important; font-size:1.05rem; border-radius:10px;
}
.actions .btn:hover, a.btn:hover{ background:#24603a !important; filter:none; }
