:root{
  --gap:14px;
  --border:#e5e7eb;
  --muted:#6b7280;
  --ink:#111827;
  --bg:#f8fafc;
  --card:#ffffff;
  --primary:#111827;
}

/* ==========================
   LIGHT ADMIN ROOT
========================== */
body.light-admin {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin:0;
  background:var(--bg);
  color:var(--ink);
}

body.light-admin .container {
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 16px;
}

body.light-admin .topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 16px;
  border-bottom:1px solid var(--border);
  background:#fff;
  position:sticky;
  top:0;
}

body.light-admin .logo {
  width:28px;
  height:28px;
  border-radius:999px;
  background:#d1d5db;
  display:flex;
  align-items:center;
  justify-content:center;
}

body.light-admin h1 {
  font-size:28px;
  margin:16px 0;
}

body.light-admin h2 {
  font-size:18px;
  margin-bottom:10px;
}

body.light-admin .card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:18px;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}

body.light-admin .grid {
  display:grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--gap);
}

body.light-admin label {
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:14px;
}

body.light-admin input,
body.light-admin select,
body.light-admin textarea {
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  font-size:14px;
  background:#fff;
}

/* Sprachschalter */
body.light-admin .lang-switch {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 10 !important;
}

body.light-admin #langSelect {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  font-size: 14px;
}

body.light-admin textarea {
  min-height:90px;
}

body.light-admin button {
  padding:10px 16px;
  border-radius:10px;
  background:var(--primary);
  color:#fff;
  border:0;
  cursor:pointer;
  font-weight:600;
}

body.light-admin .secondary {
  border:1px solid var(--border);
  color:var(--ink);
  padding:10px 16px;
  border-radius:10px;
}

body.light-admin .lanes {
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:10px;
}

/* ==========================
   WIZARD PROGRESS
========================== */
body.light-admin .wizard-steps {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
}

body.light-admin .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}

body.light-admin .step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

body.light-admin .step.active .step-circle {
  background: #3b82f6;
  color: #fff;
}

body.light-admin .step-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

body.light-admin .step.active .step-label {
  color: #111827;
  font-weight: 600;
}

/* ==========================
   DURATION PILLS
========================== */
body.light-admin .duration-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

body.light-admin .duration-pill {
  flex: 1;
  min-width: 120px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 100px;
  justify-content: center;
}

body.light-admin .duration-icon {
  font-size: 24px;
  display: block;
}

body.light-admin .duration-label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

body.light-admin .duration-sublabel {
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}

body.light-admin .duration-pill:hover {
  border-color: #3b82f6;
  background: #f0f7ff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

body.light-admin .duration-pill.active {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
  color: #065f46 !important;
}

/* ==========================
   WEEK NAVIGATION (DATES)
========================== */
body.light-admin .week-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

body.light-admin .week-nav button {
  padding: 14px 24px;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
}

body.light-admin .week-nav button:hover {
  border-color: #3b82f6;
  background: #f0f7ff;
  color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Premium Week Navigation Buttons */
.week-nav-btn-premium {
  padding: 16px 20px !important;
  border: 2px solid var(--border) !important;
  background: #fff !important;
  color: #111827 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  font-size: 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 70px !important;
  text-align: center !important;
}

.week-nav-btn-premium:hover {
  border-color: #3b82f6 !important;
  background: #f0f7ff !important;
  color: #3b82f6 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
}

body.light-admin #days {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.days-premium {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  justify-content: center !important;
  max-width: 850px !important;
  margin: 0 auto !important;
  width: 100% !important;
  flex: 1 !important;
}

body.light-admin .day-tile {
  padding: 18px 14px;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  min-width: 110px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

body.light-admin .day-tile .wd {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

body.light-admin .day-tile .dm {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

body.light-admin .day-tile:hover {
  border-color: #3b82f6;
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

body.light-admin .day-tile.active {
  border-color: #10b981;
  background: #f0fdf4;
  color: #111827;
}

body.light-admin .day-tile.active .dm {
  color: #111827;
}

body.light-admin .day-tile.unavailable {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.5;
}

/* ==========================
   TIME SLOTS (PREMIUM STYLING - identisch mit Day-Tiles)
========================== */
body.light-admin .slots-premium {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  justify-content: stretch;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

body.light-admin .slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

body.light-admin .slot,
body.light-admin .premium-slot {
  padding: 12px 10px;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  min-width: 70px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #111827;
  gap: 2px;
}

body.light-admin .slot::before {
  content: '🕐';
  font-size: 20px;
  display: block;
  margin-bottom: 0px;
}

body.light-admin .slot:hover:not(.active) {
  border-color: #3b82f6;
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

body.light-admin .slot.active {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
  color: #111827 !important;
}

body.light-admin .slot.active::before {
  color: #111827 !important;
}

body.light-admin .slot.unavailable {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.5;
}

body.light-admin .slot[data-reason="closed"] {
  background: #f3f4f6;
  border-color: #d1d5db;
  cursor: not-allowed;
  opacity: 0.5;
}

body.light-admin .slot[data-reason="too_soon"] {
  background: #fed7aa;
  border-color: #fdba74;
  color: #7c2d12;
  cursor: not-allowed;
  opacity: 0.8;
}

body.light-admin .slot[data-reason="booked"] {
  background: #fecaca;
  border-color: #fca5a5;
  color: #7f1d1d;
  cursor: not-allowed;
  opacity: 0.8;
}

/* ==========================
   RESPONSIVE DESIGN
========================== */
@media (max-width: 768px) {
  /* Duration Pills - 2 Spalten auf Tablet */
  body.light-admin .duration-pills {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  body.light-admin .duration-pill {
    min-width: unset;
    padding: 14px 10px;
    min-height: 90px;
  }

  /* Persons Pills - 3 Spalten auf Tablet */
  body.light-admin .persons-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  body.light-admin .person-pill {
    min-width: unset;
    min-height: 80px;
  }

  /* Week Navigation Buttons - schmäler */
  .week-nav-btn-premium {
    padding: 12px 16px !important;
    min-height: 60px !important;
    font-size: 14px !important;
  }

  /* Date Pills - Grid 3x2 Layout */
  body.light-admin #days {
    grid-template-columns: repeat(3, 1fr);
    max-width: 300px;
    gap: 10px;
  }

  body.light-admin .day-tile {
    min-width: 80px;
    min-height: 75px;
    padding: 12px 10px;
  }

  /* Time Slots - identisch mit Day-Tiles Layout */
  body.light-admin .slots-premium {
    grid-template-columns: repeat(3, 1fr);
    max-width: 300px;
  }

  body.light-admin .slot-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  body.light-admin .slot,
  body.light-admin .premium-slot {
    min-height: 75px;
    padding: 12px 10px;
    font-size: 14px;
  }

  body.light-admin .slot.active {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    color: #111827 !important;
  }

  body.light-admin .slot.active::before {
    color: #111827 !important;
  }
}

@media (max-width: 480px) {
  /* Week Navigation - Buttons über/unter den Tagen */
  .week-nav-premium {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .week-nav-btn-premium {
    padding: 10px 12px !important;
    min-height: 55px !important;
    font-size: 13px !important;
    width: 100% !important;
  }

  /* Duration Pills - 1 Spalte auf Mobile */
  body.light-admin .duration-pills {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.light-admin .duration-pill {
    padding: 12px 8px;
    min-height: 80px;
  }

  /* Persons Pills - 3 Spalten auf Mobile */
  body.light-admin .persons-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  body.light-admin .person-pill {
    min-width: unset;
    padding: 12px 6px;
    min-height: 75px;
  }

  body.light-admin .person-icon {
    font-size: 20px;
  }

  body.light-admin .person-label {
    font-size: 16px;
  }

  /* Date Pills - 3 Spalten */
  body.light-admin #days {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    width: 100%;
    gap: 8px;
  }

  body.light-admin .day-tile {
    min-width: 80px;
    min-height: 70px;
    padding: 10px 8px;
    font-size: 13px;
  }

  body.light-admin .day-tile .dm {
    font-size: 14px;
  }

  body.light-admin .day-tile .wd {
    font-size: 10px;
  }

  /* Time Slots - identisch mit Day-Tiles auf Mobile */
  body.light-admin .slots-premium {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    width: 100%;
  }

  body.light-admin .slot-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  body.light-admin .slot,
  body.light-admin .premium-slot {
    min-height: 70px;
    padding: 10px 8px;
    font-size: 13px;
  }

  body.light-admin .slot::before {
    font-size: 16px;
    margin-bottom: 2px;
  }

  body.light-admin .slot.active {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    color: #111827 !important;
  }

  body.light-admin .slot.active::before {
    color: #111827 !important;
  }

  /* Availability Counter - kleiner */
  #slots-count {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.6rem !important;
  }

  /* Header Überschrift - responsive */
  h1 {
    font-size: 2.2rem !important;
    line-height: 1.15 !important;
    margin: 0 0 0.75rem 0 !important;
  }

  /* Header Padding - Leerzeilen oben nur auf Mobile */
  header {
    padding: 8rem 2rem 4rem 2rem !important;
  }

  /* Innere Struktur nach unten verschieben auf Mobile */
  header > div[style*="position: relative"] {
    margin-top: 3rem !important;
  }

  /* Header Padding reduzieren */
  header {
    padding: 20px 16px 24px !important;
  }
}

/* ==========================
   PHONE INPUT GROUP
========================== */
body.light-admin .phone-input-group {
  display: flex;
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  background: #fff;
}

body.light-admin .phone-input-group.focused {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

body.light-admin .phone-input-group:has(.error) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

body.light-admin .phone-input-group .phone-prefix-select {
  padding: 12px 10px 12px 12px;
  border: none;
  border-right: 2px solid #e2e8f0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
  background: #f8fafc;
  color: #1a202c;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  min-width: 108px;
  transition: background 0.2s ease;
  -webkit-appearance: auto;
  appearance: auto;
}

body.light-admin .phone-input-group .phone-prefix-select:focus {
  background: #f0f7ff;
  outline: none;
}

body.light-admin .phone-input-group .phone-number-input {
  padding: 12px 14px;
  border: none;
  border-radius: 0;
  font-size: 16px;
  flex: 1;
  outline: none;
  background: #fff;
  color: #1a202c;
  box-sizing: border-box;
  min-width: 0;
}

body.light-admin .phone-input-group .phone-number-input::placeholder {
  color: #9ca3af;
}

@media (max-width: 480px) {
  body.light-admin .phone-input-group .phone-prefix-select {
    min-width: 90px;
    font-size: 14px;
    padding: 12px 6px 12px 10px;
  }
}

/* ==========================
   PARTICIPANT CARDS (STEP 3)
========================== */
body.light-admin .participant-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.light-admin .participant-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
}

body.light-admin .participant-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

body.light-admin .participant-badge.complete {
  background: #10b981;
}

body.light-admin .participant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

body.light-admin .participant-grid + .participant-grid:not(:empty) {
  margin-top: 1rem;
}

body.light-admin .participant-card label {
  display: grid;
  gap: 0.5rem;
}

body.light-admin .participant-card label span {
  font-weight: 600;
  color: #1a202c;
  font-size: 0.95rem;
}

body.light-admin .participant-card input,
body.light-admin .participant-card select {
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  width: 100%;
  background: #fff;
  color: #1a202c;
  outline: none;
}

body.light-admin .participant-card select {
  padding: 12px 10px 12px 12px;
  font-size: 16px;
  font-weight: 500;
  background: #fff;
  line-height: 1.5;
  height: auto;
  -webkit-appearance: menulist;
  appearance: none;
}

body.light-admin .participant-card input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
  font-size: 16px;
}

body.light-admin .participant-card input:focus,
body.light-admin .participant-card select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ==========================
   PERSONS PILLS (STEP 3 - ANZAHL)
========================== */
body.light-admin .persons-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

body.light-admin .person-pill {
  flex: 1;
  min-width: 80px;
  padding: 16px 8px;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 90px;
  justify-content: center;
}

body.light-admin .person-icon {
  font-size: 24px;
  display: block;
}

body.light-admin .person-label {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

body.light-admin .person-sublabel {
  font-size: 11px;
  color: #6b7280;
  font-weight: 400;
}

body.light-admin .person-pill:hover {
  border-color: #3b82f6;
  background: #f0f7ff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

body.light-admin .person-pill.active {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
  color: #065f46 !important;
}

body.light-admin .person-pill-group {
  border-style: dashed;
}

body.light-admin .person-pill-group.active {
  border-color: #0284c7 !important;
  border-style: solid !important;
  background: #f0f9ff !important;
}

@media (max-width: 768px) {
  body.light-admin .participant-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
