/* =====================
   CSS VARIABLES & THEMES
===================== */
:root {
  --orange: #f97316;
  --orange-dark: #ea6c0a;
  --orange-glow: rgba(249,115,22,0.15);
  --orange-border: rgba(249,115,22,0.3);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --bg: #0f0f0f;
  --bg2: #161616;
  --bg3: #1f1f1f;
  --bg4: #252525;
  --border: #2a2a2a;
  --text: #f1f1f1;
  --text-muted: #888;
  --text-faint: #555;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 32px rgba(0,0,0,0.5);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.3);
  --transition: 0.18s ease;
}

[data-theme="light"] {
  --bg: #f9f9f9;
  --bg2: #ffffff;
  --bg3: #f0f0f0;
  --bg4: #e8e8e8;
  --border: #e0e0e0;
  --text: #111111;
  --text-muted: #666;
  --text-faint: #aaa;
  --shadow: 0 4px 32px rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
}

/* =====================
   RESET & BASE
===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =====================
   UTILITIES
===================== */
.hidden { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-dark { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.4rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 1.4rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none;
  transition: all var(--transition); white-space: nowrap; outline: none;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,0.4); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: 0.85; }
.btn-large { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-small { padding: 0.45rem 0.85rem; min-height: 36px; font-size: 0.78rem; background: var(--bg3); border: 1px solid var(--border); color: var(--text-muted); border-radius: 6px; cursor: pointer; transition: all var(--transition); }
.btn-small:hover { border-color: var(--orange); color: var(--orange); }
.btn-small-danger { border-color: #ef4444 !important; color: #ef4444 !important; }
.btn-small-danger:hover { background: #ef4444 !important; color: #fff !important; }
.btn-cancel-small { padding: 0.35rem 0.75rem; min-height: 36px; font-size: 0.75rem; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red); border-radius: 6px; cursor: pointer; margin-left: 0.5rem; display: inline-flex; align-items: center; }
.btn-cancel-small:hover { background: var(--red); color: #fff; }

/* =====================
   THEME TOGGLE
===================== */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: all var(--transition); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--orange); }

/* =====================
   GATE SCREEN
===================== */
.gate-screen {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 2rem;
  background: var(--bg); position: relative;
}
.gate-screen .theme-toggle { position: absolute; top: 1.5rem; right: 1.5rem; }
.gate-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem; width: 100%; max-width: 400px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.gate-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 700; justify-content: center; }
.gate-sub { color: var(--text-muted); font-size: 0.9rem; text-align: center; }
.gate-input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); padding: 0.75rem 1rem;
  font-size: 1rem; outline: none; transition: border-color var(--transition);
}
.gate-input:focus { border-color: var(--orange); }
.gate-credit { color: var(--text-faint); font-size: 0.82rem; margin-top: 2rem; }

/* =====================
   HEADER
===================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,15,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  padding-top: env(safe-area-inset-top, 0);
}
[data-theme="light"] .header { background: rgba(255,255,255,0.88); }
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  height: 60px; display: flex; align-items: center; gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; font-weight: 700; flex-shrink: 0; }
.logo-icon { color: var(--orange); display: flex; align-items: center; }
.logo-icon svg { width: 32px; height: 24px; }
.nav { display: flex; gap: 0.25rem; flex: 1; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 0.55rem 0.85rem; min-height: 44px; border-radius: var(--radius-sm); cursor: pointer;
  color: var(--text-muted); font-size: 0.88rem; font-weight: 500; white-space: nowrap;
  transition: all var(--transition); border: none; background: transparent;
  display: inline-flex; align-items: center;
}
.nav-link:hover { color: var(--text); background: var(--bg3); }
.nav-link.active { color: var(--orange); background: var(--orange-glow); }
.header-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; margin-left: auto; }
.user-badge {
  display: flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 20px;
  font-size: 0.82rem; color: var(--text-muted);
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

/* =====================
   PUBLIC / HERO
===================== */
.public-screen { min-height: 100vh; display: flex; flex-direction: column; }
.public-main { flex: 1; }
.hero {
  min-height: 70vh; display: flex; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem; gap: 3rem;
}
.hero-content { flex: 1; position: relative; z-index: 1; }

/* Hero Hintergrund-Collage */
.hero-with-bg { position: relative; overflow: hidden; min-height: 70vh; }

.hero-bg-collage {
  position: absolute; inset: 0;
  display: grid;
  gap: 0;
}
.hero-bg-img {
  background-size: cover;
  background-position: center;
}

/* 1 Bild: volle Breite */
.hero-bg-collage[data-count="1"] {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

/* 2 Bilder: links + rechts */
.hero-bg-collage[data-count="2"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

/* 3 Bilder: oben-links + unten-links + rechts */
.hero-bg-collage[data-count="3"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.hero-bg-collage[data-count="3"] .hero-bg-img:nth-child(1) { grid-column: 1; grid-row: 1; }
.hero-bg-collage[data-count="3"] .hero-bg-img:nth-child(2) { grid-column: 1; grid-row: 2; }
.hero-bg-collage[data-count="3"] .hero-bg-img:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }

.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,15,15,0.80) 0%, rgba(15,15,15,0.55) 100%);
}
[data-theme="light"] .hero-bg-overlay {
  background: linear-gradient(135deg, rgba(249,249,249,0.88) 0%, rgba(249,249,249,0.65) 100%);
}
.hero-tag {
  display: inline-block; padding: 0.3rem 1rem; background: var(--orange-glow);
  color: var(--orange); border: 1px solid var(--orange-border); border-radius: 20px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 1.25rem;
}
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.highlight { color: var(--orange); }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 440px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =====================
   GALLERY
===================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg3); border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-del {
  position: absolute; top: 0.5rem; right: 0.5rem; background: rgba(0,0,0,0.75);
  border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-del { opacity: 1; }
.gallery-empty {
  grid-column: 1/-1; text-align: center; padding: 4rem 1rem; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.upload-label-btn { cursor: pointer; }

/* =====================
   INFO CARDS
===================== */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 500px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color var(--transition), transform var(--transition);
}
.info-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.info-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.info-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.info-card p { color: var(--text-muted); font-size: 0.88rem; }

/* =====================
   APP SCREEN
===================== */
.app-screen { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; }

/* =====================
   FORMS
===================== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 0.65rem 0.9rem; font-size: 0.9rem;
  transition: border-color var(--transition); outline: none; width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; }
.error-msg {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #f87171; padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); font-size: 0.85rem;
}
.success-msg {
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80; padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); font-size: 0.85rem;
}

/* =====================
   MODAL
===================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 1rem; animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; width: 100%; max-width: 460px; position: relative;
  animation: slideUp 0.2s ease; max-height: 90vh; overflow-y: auto;
}
.modal-wide { max-width: 640px; }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem; background: var(--bg3);
  border: 1px solid var(--border); color: var(--text-muted); width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex;
  align-items: center; justify-content: center; transition: all var(--transition);
}
.modal-close:hover { color: var(--text); border-color: var(--text-muted); }
.modal-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.3rem; }
.modal-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.5rem; }

/* =====================
   ROLE CARDS
===================== */
.role-cards { display: grid; gap: 0.6rem; }
.role-card {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem;
  background: var(--bg3); border: 2px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; text-align: left; color: var(--text); transition: all var(--transition); width: 100%;
}
.role-card:hover { border-color: var(--orange); background: var(--orange-glow); }
.role-icon { font-size: 1.6rem; flex-shrink: 0; }
.role-name { font-weight: 700; font-size: 0.95rem; }
.role-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }
.back-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.88rem; padding: 0 0 0.8rem; display: block; transition: color var(--transition); }
.back-btn:hover { color: var(--text); }

/* =====================
   CALENDAR
===================== */
.cal-wrap { max-width: 700px; margin: 0 auto; }
.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; padding: 0 0.5rem;
}
.cal-nav-btn {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text);
  width: 44px; height: 44px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.cal-nav-btn:hover { border-color: var(--orange); color: var(--orange); }
.cal-month-title { font-size: 1.3rem; font-weight: 700; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal-day-header {
  text-align: center; font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted); padding: 0.5rem 0;
}
.cal-day {
  aspect-ratio: 1; border-radius: var(--radius-sm); display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 0.88rem; font-weight: 500;
  position: relative; gap: 2px;
  background: var(--bg3); border: 1px solid var(--border);
}
.cal-day-empty { background: transparent; border-color: transparent; }
.cal-day-past { opacity: 0.35; }
.cal-day-today { border-color: var(--orange) !important; }
.cal-day-clickable { cursor: pointer; transition: all var(--transition); }
.cal-day-clickable:hover { border-color: var(--orange); transform: scale(1.05); z-index: 1; }
.cal-day-free { background: var(--bg3); }
.cal-day-mine { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.4); color: #4ade80; }
.cal-day-others { background: rgba(249,115,22,0.15); border-color: rgba(249,115,22,0.4); color: var(--orange); }
.cal-day-partial { background: rgba(139,92,246,0.15); border-color: rgba(139,92,246,0.4); color: #a78bfa; }
.cal-day-mixed { background: linear-gradient(135deg, rgba(34,197,94,0.15) 50%, rgba(249,115,22,0.15) 50%); border-color: rgba(249,115,22,0.4); }
.cal-day-num { font-size: 0.85rem; line-height: 1; }
.cal-booking-dot {
  font-size: 0.65rem; background: var(--orange); color: #fff;
  width: 16px; height: 16px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
}
.cal-legend { display: flex; gap: 1.5rem; margin-top: 1.25rem; justify-content: center; flex-wrap: wrap; }
.cal-legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--text-muted); }
.cal-legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.dot-free    { background: var(--bg4); border: 1px solid var(--border); }
.dot-mine    { background: rgba(34,197,94,0.3); border: 1px solid rgba(34,197,94,0.5); }
.dot-partial { background: rgba(139,92,246,0.3); border: 1px solid rgba(139,92,246,0.5); }
.dot-others  { background: rgba(249,115,22,0.3); border: 1px solid rgba(249,115,22,0.5); }
.dot-blocked { background: rgba(239,68,68,0.3);  border: 1px solid rgba(239,68,68,0.5); }

/* Gesperrte Tage */
.cal-day-blocked { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.35); }
.cal-lock-icon   { font-size: 0.65rem; line-height: 1; }
.cal-block-reason {
  display: block;
  font-size: 0.55rem;
  line-height: 1.2;
  color: #f87171;
  margin-top: 0.15rem;
  word-break: break-word;
  text-align: center;
  opacity: 0.9;
}
.cal-day-block-sel {
  background: rgba(251,191,36,0.18) !important;
  border-color: rgba(251,191,36,0.7) !important;
}
.cal-block-sel-icon {
  font-size: 0.9rem;
  line-height: 1;
  color: #fbbf24;
  font-weight: 700;
}

/* Block-Panel unter Kalender */
.block-panel {
  margin-top: 2rem;
  background: var(--bg2);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.bp-idle { margin-bottom: 1rem; }
.bp-active { margin-bottom: 1rem; }
.bp-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
}
.bp-selected-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fbbf24;
  white-space: nowrap;
  align-self: flex-end;
  padding-bottom: 0.55rem;
}
.bp-form { margin-bottom: 1.25rem; }
.bp-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.bp-row .form-group { min-width: 130px; }
.bp-list { display: flex; flex-direction: column; gap: 0.5rem; }
.bp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  gap: 0.75rem;
}
.bp-item-left { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.bp-date { font-weight: 700; font-size: 0.9rem; color: #f87171; }
.bp-reason { font-size: 0.8rem; color: var(--text-muted); }
.bp-no-reason { font-style: italic; opacity: 0.6; }
.bp-empty { font-size: 0.85rem; color: var(--text-faint); margin: 0; }

/* Sperr-Bereich im Modal */
.block-info {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1.25rem;
}
.block-badge { font-size: 0.9rem; font-weight: 700; color: #f87171; display: block; margin-bottom: 0.35rem; }
.block-reason { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.2rem; }
.block-form {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1.25rem;
}

/* Booking Modal Content */
.booking-existing { margin-bottom: 1.25rem; padding: 0.9rem; background: var(--bg3); border-radius: var(--radius-sm); }
.booking-existing h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.booking-existing ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.booking-existing li { font-size: 0.85rem; display: flex; align-items: center; }
.booking-own { color: #4ade80; }
.booking-other { color: var(--orange); }
.booking-blocked { text-align: center; color: var(--text-muted); padding: 1.5rem 0; }
.radio-group { display: flex; flex-direction: column; gap: 0.5rem; }
.radio-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; padding: 0.5rem 0; }
.radio-label input[type="radio"] { accent-color: var(--orange); width: 16px; height: 16px; }
.price-hint { color: var(--orange); font-size: 0.78rem; font-weight: 600; }

/* =====================
   DAMAGE REPORTS
===================== */
.damage-form { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.severity-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.severity-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 0.85rem; background: var(--bg3); border: 2px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem; font-weight: 600;
  transition: all var(--transition); text-align: center;
}
.severity-card input { display: none; }
.severity-card:has(input:checked) { border-color: var(--orange); background: var(--orange-glow); }
.severity-leicht .severity-icon { color: var(--green); font-size: 1.2rem; }
.severity-mittel .severity-icon { color: var(--yellow); font-size: 1.2rem; }
.severity-stark .severity-icon { color: var(--red); font-size: 1.2rem; }
.damage-list { display: flex; flex-direction: column; gap: 0.75rem; }
.damage-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem; }
.damage-resolved { opacity: 0.55; }
.damage-card-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.damage-severity { padding: 0.2rem 0.65rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.damage-user { font-size: 0.82rem; color: var(--text-muted); }
.damage-date { font-size: 0.78rem; color: var(--text-faint); margin-left: auto; }
.damage-badge-resolved { font-size: 0.75rem; color: var(--green); background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); padding: 0.15rem 0.5rem; border-radius: 20px; }
.damage-desc { font-size: 0.88rem; color: var(--text-muted); }

/* =====================
   ADMIN / MANAGEMENT
===================== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.stat-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.25rem; text-align: center;
}
.stat-user { font-weight: 700; margin-bottom: 0.3rem; }
.stat-days { font-size: 1.3rem; font-weight: 800; color: var(--orange); }
.stat-cost { font-size: 0.82rem; color: var(--text-muted); }
.bookings-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.bookings-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.bookings-table th { background: var(--bg3); padding: 0.75rem 1rem; text-align: left; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; }
.bookings-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.bookings-table tr:last-child td { border-bottom: none; }
.bookings-table tr:hover td { background: var(--bg3); }
.bookings-table input[type="checkbox"] { accent-color: var(--orange); width: 16px; height: 16px; cursor: pointer; }
.empty-row { text-align: center; color: var(--text-muted); padding: 2.5rem !important; }

/* =====================
   PROFILE & USERS
===================== */
.profile-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.profile-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.user-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.user-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.user-table th { background: var(--bg4); padding: 0.65rem 0.9rem; text-align: left; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.user-table td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--border); }
.user-table tr:last-child td { border-bottom: none; }
.role-tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.role-haushalt { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.role-manager { background: rgba(99,102,241,0.1); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }
.role-admin { background: var(--orange-glow); color: var(--orange); border: 1px solid var(--orange-border); }
.pw-display { font-family: monospace; font-size: 0.85rem; background: var(--bg4); padding: 0.2rem 0.5rem; border-radius: 4px; color: var(--text-muted); }
.pw-log { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.pw-log li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.pw-log li:last-child { border-bottom: none; }
.pw-log small { color: var(--text-faint); font-size: 0.75rem; margin-left: auto; }
.info-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* =====================
   ADMIN – neue Ansicht
===================== */
.au-totals {
  display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.au-total-card {
  flex: 1; min-width: 140px; border-radius: var(--radius-sm);
  padding: 1.25rem; text-align: center;
}
.au-total-open  { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3); }
.au-total-paid  { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.3); }
.au-total-label  { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.au-total-amount { font-size: 2rem; font-weight: 800; }
.au-total-open  .au-total-amount { color: #ef4444; }
.au-total-paid  .au-total-amount { color: #22c55e; }

.au-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden;
}
.au-card-done { opacity: 0.55; }
.au-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; background: var(--bg3);
  border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 0.5rem;
}
.au-name { font-weight: 700; font-size: 1rem; margin-right: 0.4rem; }
.au-role-tag { font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 20px; vertical-align: middle; }
.au-role-tag.role-haushalt { background: rgba(34,197,94,0.1);  color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.au-role-tag.role-manager  { background: rgba(99,102,241,0.1); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }
.au-role-tag.role-admin    { background: var(--orange-glow);   color: var(--orange); border: 1px solid var(--orange-border); }
.au-header-right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.au-open { font-size: 0.9rem; font-weight: 700; color: #ef4444; }
.au-paid-badge { font-size: 0.85rem; color: #22c55e; font-weight: 600; }

.au-list { list-style: none; }
.au-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border);
  gap: 0.5rem; flex-wrap: wrap;
}
.au-item:last-child { border-bottom: none; }
.au-item-label { font-size: 0.88rem; color: var(--text); }
.au-item-paid .au-item-label { color: var(--text-faint); text-decoration: line-through; }

.au-paid-section { border-top: 1px solid var(--border); }
.au-paid-toggle {
  width: 100%; text-align: left; padding: 0.6rem 1.25rem;
  background: none; border: none; color: var(--text-faint);
  font-size: 0.8rem; cursor: pointer; font-family: inherit;
  transition: color var(--transition);
}
.au-paid-toggle:hover { color: var(--text-muted); }
.au-paid-list { border-top: 1px solid var(--border); }

/* =====================
   FOOTER
===================== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; }

/* =====================
   TOAST
===================== */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--bg3);
  border: 1px solid var(--border); color: var(--text); padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm); font-size: 0.88rem; z-index: 999; box-shadow: var(--shadow);
  animation: slideUp 0.2s ease; border-left: 3px solid var(--orange);
  max-width: calc(100vw - 3rem);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .section { padding: 2rem 0; }
  .container { padding: 0 1rem; }
  .hero { flex-direction: column; min-height: auto; padding: 2rem 1rem; }
  .hero-content h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .hero-sub { font-size: 1rem; }
  .nav { gap: 0; }
  .nav-link { padding: 0.55rem 0.6rem; font-size: 0.82rem; }
  .form-row, .info-edit-grid { grid-template-columns: 1fr; }
  .severity-group { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .header-inner { padding: 0 0.75rem; gap: 0.75rem; }
  .user-badge span:not(.badge-dot) { display: none; }
  .cal-day { font-size: 0.75rem; }
  .modal { padding: 1.5rem 1.25rem; }
  .modal-wide { max-width: 100%; }
  .section-header h2 { font-size: 1.5rem; }
  .bp-row { flex-direction: column; align-items: stretch; }
  .bp-row .btn { align-self: flex-start; }

  /* Buchungs-Zeilen: auf Handy nicht quetschen */
  .booking-row { flex-wrap: wrap; gap: 0.6rem; }
  .booking-row-main { flex-wrap: wrap; gap: 0.4rem; row-gap: 0.3rem; }
  .au-item { flex-wrap: wrap; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 1.25rem 1rem; }
  .toast { bottom: 1rem; right: 1rem; left: 1rem; max-width: 100%; }
  .cal-grid { gap: 3px; }
  .cal-day { font-size: 0.7rem; }
  .cal-day-num { font-size: 0.75rem; }
  .cal-nav-btn { width: 40px; height: 40px; }
  .cal-month-title { font-size: 1.1rem; }

  /* Buchungs-Zeilen auf Handy: vertikal stapeln */
  .booking-row { padding: 0.75rem 0.9rem; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .booking-row-main { flex-direction: column; align-items: flex-start; gap: 0.35rem; width: 100%; }
  .booking-row-date { font-size: 1rem; }
  .booking-row-type { font-size: 0.85rem; }
  .booking-row-status { margin-left: 0; }
  .booking-row-paid { margin-left: 0; }
  .btn-cancel-small { align-self: flex-start; margin-left: 0; }

  /* Admin-Buchungsliste: Label und Button stapeln */
  .au-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .au-item .btn-small,
  .au-item .btn-cancel-small { align-self: flex-start; margin-left: 0; }

  /* Tabellen: kleinere Schrift + mehr Platz */
  .bookings-table { font-size: 0.78rem; }
  .bookings-table th, .bookings-table td { padding: 0.6rem 0.6rem; }
  .user-table { font-size: 0.78rem; }
  .user-table th, .user-table td { padding: 0.5rem 0.5rem; }
}

/* Nav-Labels: langer Text versteckt sich auf kleinen Screens */
.nav-label-short { display: none; }
@media (max-width: 480px) {
  .nav-label-long  { display: none; }
  .nav-label-short { display: inline; }
}

/* =====================
   HAMBURGER MENÜ (nur Handy)
===================== */
.hamburger-btn {
  display: none;
  width: 44px; height: 44px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  flex-shrink: 0; transition: border-color var(--transition);
}
.hamburger-btn:hover { border-color: var(--orange); }
.hamburger-line {
  width: 20px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.2s ease; display: block;
}

.mobile-nav-overlay {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 98;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-menu {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 0.5rem; display: flex; flex-direction: column; gap: 0.2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.mobile-nav-menu .nav-link {
  width: 100%; text-align: left; font-size: 1rem;
  padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger-btn { display: flex; }
}

@media (max-width: 375px) {
  .nav-link { padding: 0.55rem 0.45rem; font-size: 0.78rem; }
  .header-inner { gap: 0.5rem; }
  .logo span { display: none; }
}

/* =====================
   TIME PICKER v2
===================== */
.tp-v2 { display: flex; flex-direction: column; gap: 0.9rem; }

/* Schritt-Anzeige */
.tp-step-bar {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem; font-weight: 500;
}
.tp-step-item {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text-faint); transition: color var(--transition);
}
.tp-step-active { color: var(--orange); font-weight: 700; }
.tp-step-done   { color: var(--green); }
.tp-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg4); border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.tp-step-sep { color: var(--text-faint); font-size: 1rem; }

/* Hinweis-Text */
.tp-hint {
  font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.5rem;
}
.tp-hint strong { color: var(--text); }

/* Zeit-Buttons Grid */
.tp-time-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tp-time-btn {
  padding: 0.6rem 0.85rem;
  min-height: 48px; min-width: 72px;
  background: var(--bg4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  font-size: 0.92rem; font-weight: 600;
  font-family: inherit;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
  user-select: none;
}
.tp-time-btn:hover:not(.tp-disabled) {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-glow);
  transform: translateY(-1px);
}
.tp-time-btn:active:not(.tp-disabled) { transform: translateY(0); }
.tp-disabled {
  opacity: 0.3; cursor: not-allowed;
  text-decoration: line-through;
}

/* Zusammenfassung */
.tp-summary {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--orange-glow);
  border: 1.5px solid var(--orange-border);
  border-radius: var(--radius-sm);
}
.tp-summary.hidden { display: none; }
.tp-summary-text {
  font-size: 1.05rem; font-weight: 700;
  color: var(--orange); flex: 1;
}
.tp-summary-text::before { content: '🕐 '; }

/* Responsive */
@media (max-width: 480px) {
  .tp-time-btn { min-width: 64px; font-size: 0.85rem; padding: 0.55rem 0.7rem; }
  .tp-time-grid { gap: 6px; }
}

/* =====================
   MEINE BUCHUNGEN
===================== */

/* Header-Zeile: Titel links, Export-Button rechts – bricht auf Mobile um */
.mybookings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.mybookings-export-btn {
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .mybookings-export-btn { width: 100%; justify-content: center; }
}

/* Unterzeile: "Kommende Buchungen" + "+ Jetzt buchen" */
.mybookings-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

/* Logout-Button: Text sichtbar ab 481px, Icon darunter */
.logout-icon { display: none; }
@media (max-width: 480px) {
  .logout-label { display: none; }
  .logout-icon  { display: inline; }
  .btn-logout   { padding: 0.5rem 0.65rem; min-width: 36px; }
}

.booking-list { display: flex; flex-direction: column; gap: 0.6rem; }
.booking-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.85rem 1.1rem;
  gap: 0.75rem; flex-wrap: wrap; transition: border-color var(--transition);
}
.booking-row-confirmed { border-left: 3px solid var(--green); }
.booking-row-past      { border-left: 3px solid var(--border); opacity: 0.7; }
.booking-row-cancelled { border-left: 3px solid var(--red); opacity: 0.6; }
.booking-row-main { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; flex: 1; }
.booking-row-date { font-weight: 700; font-size: 0.95rem; min-width: 85px; }
.booking-row-type { font-size: 0.85rem; color: var(--text-muted); }
.booking-row-status {
  font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem;
  border-radius: 20px; margin-left: auto; white-space: nowrap;
}
.status-confirmed { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.status-past      { background: var(--bg4); color: var(--text-faint); border: 1px solid var(--border); }
.status-cancelled { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.booking-row-paid { font-size: 0.75rem; color: var(--green); font-weight: 600; white-space: nowrap; }

