* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0D0D0D;
  color: #E5E5E5;
}

/* === LOGIN === */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-box {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 12px;
  padding: 40px;
}

.login-box h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.subtitle {
  color: #666;
  font-size: 11px;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.error-message {
  background: #D66B6B;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: #0D0D0D;
  border: 1px solid #252525;
  border-radius: 8px;
  color: #E5E5E5;
  font-size: 14px;
}

/* Number Input Pfeile ausblenden */
.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.form-group input[type="number"] {
  -moz-appearance: textfield;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: #E8B86D;
  color: #0D0D0D;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-login:hover {
  background: #f0c07d;
}

/* === DASHBOARD LAYOUT === */
.layout {
  display: flex;
  min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
  width: 240px;
  background: #141414;
  border-right: 1px solid #252525;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.sidebar-header {
  padding: 0 24px 32px;
  border-bottom: 1px solid #252525;
}

.sidebar-header h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0 0 2px;
}

.sidebar-header p {
  font-size: 11px;
  color: #666;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 24px 12px;
}

.nav-section-label {
  font-size: 10px;
  color: #555;
  padding: 20px 12px 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #999;
  text-decoration: none;
  transition: all 0.15s;
  border-radius: 8px;
  margin-bottom: 2px;
  cursor: pointer;
}

.nav-item span {
  font-size: 16px;
}

.nav-item:hover:not(.disabled) {
  background: #252525;
  color: #E5E5E5;
}

.nav-item.active {
  background: #252525;
  color: #fff;
}

.nav-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nav-count {
  font-size: 11px;
  background: #333;
  color: #888;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

/* Warenwirtschaft Submenu */
.nav-group {
  margin-bottom: 2px;
}
.nav-toggle {
  cursor: pointer;
}
.nav-arrow {
  margin-left: auto;
  font-size: 10px;
  transition: transform 0.2s;
}
.nav-arrow.open {
  transform: rotate(180deg);
}
.nav-submenu {
  display: none;
  padding-left: 20px;
}
.nav-submenu.open {
  display: block;
}
.nav-subitem {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #777;
  text-decoration: none;
  font-size: 13px;
  border-radius: 6px;
  transition: all 0.15s;
  margin-bottom: 2px;
}
.nav-subitem:hover:not(.disabled) {
  background: #1a1a1a;
  color: #E5E5E5;
}
.nav-subitem.active {
  background: #1a1a1a;
  color: #E8B86D;
}
.nav-subitem.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid #252525;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E8B86D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #0D0D0D;
}

.user-name {
  font-size: 13px;
  color: #999;
}

.logout-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: #1a1a1a;
  color: #999;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: #252525;
  color: #E5E5E5;
}

/* === MAIN CONTENT === */
.main-content {
  flex: 1;
  overflow-y: auto;
}

.header {
  padding: 32px 40px;
  border-bottom: 1px solid #252525;
}

.header h1 {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 4px;
}

.header p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.welcome {
  color: #666;
  font-size: 14px;
}

.content {
  padding: 40px;
}

/* === STATS GRID === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 10px;
  padding: 20px;
}

.stat-card h3 {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: #555;
}

.stat-accent-green .stat-number {
  color: #7DB87D;
}

.stat-accent-gold .stat-number {
  color: #E8B86D;
}

/* === MAIN GRID === */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === SECTIONS === */
.section {
  background: #141414;
  border-radius: 12px;
  border: 1px solid #252525;
  overflow: hidden;
}

.section-header {
  padding: 20px 24px;
  border-bottom: 1px solid #252525;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h3 {
  margin: 0;
  fontSize: 15px;
  font-weight: 500;
  color: #fff;
}

.section-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 500;
  color: #888;
}

.btn-new {
  background: none;
  border: 1px solid #333;
  color: #888;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-new:hover {
  border-color: #444;
  color: #fff;
}

/* === EVENTS === */
.event-list {
  display: flex;
  flex-direction: column;
}

.event-item {
  padding: 16px 24px;
  border-bottom: 1px solid #1F1F1F;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.event-item:hover {
  background: #1A1A1A;
}

.event-item:last-child {
  border-bottom: none;
}

.event-date {
  width: 44px;
  text-align: center;
}

.event-date-day {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.event-date-month {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-info {
  flex: 1;
}

.event-type {
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.event-variant {
  font-size: 11px;
  color: #666;
}

.event-client {
  font-size: 12px;
  color: #999;
}

.event-status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

.status-geplant {
  background: rgba(107, 163, 214, 0.15);
  color: #6BA3D6;
}

.status-einkauf {
  background: rgba(232, 184, 109, 0.15);
  color: #E8B86D;
}

.status-bestaetigt {
  background: rgba(125, 184, 125, 0.15);
  color: #7DB87D;
}

.status-offen {
  background: rgba(136, 136, 136, 0.15);
  color: #888;
}

/* === MODULE GRID === */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.module-card {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.module-card:hover {
  transform: translateY(-2px);
}

.module-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.module-name {
  font-size: 14px;
  color: #fff;
}

.module-count {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* === TASKS === */
.task-list {
  padding: 8px;
}

.task-item {
  padding: 12px 16px;
  background: #1A1A1A;
  border-radius: 8px;
  margin-bottom: 8px;
}

.task-item:last-child {
  margin-bottom: 0;
}

.task-priority-high {
  border-left: 3px solid #D66B6B;
}

.task-priority-medium {
  border-left: 3px solid #E8B86D;
}

.task-priority-low {
  border-left: 3px solid #888;
}

.task-text {
  font-size: 13px;
  color: #E5E5E5;
  margin-bottom: 4px;
}

.task-event {
  font-size: 11px;
  color: #666;
}

/* === RESERVES === */
.reserves {
  background: #141414;
  border-radius: 12px;
  border: 1px solid #252525;
  padding: 24px;
}

.reserves h3 {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 500;
}

.reserve-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reserve-item {
  display: flex;
  flex-direction: column;
}

.reserve-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.reserve-label {
  font-size: 13px;
  color: #999;
}

.reserve-amount {
  font-size: 13px;
  color: #fff;
}

.reserve-target {
  color: #555;
}

.reserve-bar {
  height: 6px;
  background: #252525;
  border-radius: 3px;
  overflow: hidden;
}

.reserve-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.reserve-fill-red {
  background: #D66B6B;
}

.reserve-fill-blue {
  background: #6BA3D6;
}

.reserve-fill-gray {
  background: #888;
}

/* === QUICK ACTIONS === */
.quick-actions {
  background: #141414;
  border-radius: 12px;
  border: 1px solid #252525;
  padding: 20px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #1A1A1A;
  border: 1px solid #252525;
  border-radius: 8px;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-action:hover {
  border-color: #444;
  color: #fff;
}

.quick-action span {
  font-size: 16px;
}

/* === DASHBOARD MESSAGE === */
.dashboard-message {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.dashboard-message p {
  margin: 10px 0;
  color: #999;
}

.dashboard-message p:first-child {
  font-size: 18px;
  color: #E8B86D;
}

/* ============================================ */
/* WEBSITE MODULE STYLES                        */
/* ============================================ */

/* Website List */
.website-list {
  padding: 0;
}

.website-item {
  padding: 16px 24px;
  border-bottom: 1px solid #1F1F1F;
}

.website-item:last-child {
  border-bottom: none;
}

.website-item.inactive {
  opacity: 0.5;
}

.website-item-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.website-item-date {
  width: 44px;
  text-align: center;
}

.website-item-date .date-day {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.website-item-date .date-month {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
}

.website-item-info {
  flex: 1;
}

.website-item-title {
  font-size: 14px;
  color: #fff;
  margin-bottom: 2px;
}

.website-item-subtitle {
  font-size: 12px;
  color: #666;
}

.website-item-content {
  font-size: 13px;
  color: #E8B86D;
  font-style: italic;
}

.website-item-badge {
  background: #252525;
  color: #888;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.website-item-status {
  text-align: right;
  min-width: 120px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

.status-frei {
  background: rgba(125, 184, 125, 0.15);
  color: #7DB87D;
}

.status-voll {
  background: rgba(214, 107, 107, 0.15);
  color: #D66B6B;
}

.status-count {
  font-size: 11px;
  color: #555;
  margin-top: 4px;
}

.website-item-toggle {
  min-width: 80px;
  text-align: right;
}

.toggle-label {
  font-size: 11px;
  color: #666;
}

.website-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-left: 60px;
}

.btn-edit, .btn-delete {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid #333;
  background: #1A1A1A;
  color: #888;
  transition: all 0.15s;
}

.btn-edit:hover {
  border-color: #E8B86D;
  color: #E8B86D;
}

.btn-delete:hover {
  border-color: #D66B6B;
  color: #D66B6B;
}

.empty-state {
  padding: 40px;
  text-align: center;
  color: #555;
  font-size: 14px;
}

/* API Info */
.api-info {
  padding: 20px 24px;
}

.api-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #1F1F1F;
}

.api-item:last-child {
  border-bottom: none;
}

.api-item code {
  background: #1A1A1A;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 12px;
  color: #7DB87D;
  min-width: 200px;
}

.api-item span {
  font-size: 13px;
  color: #666;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #252525;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.modal-close {
  background: none;
  border: none;
  color: #666;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-content form {
  padding: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: #0D0D0D;
  border: 1px solid #252525;
  border-radius: 8px;
  color: #E5E5E5;
  font-size: 14px;
  font-family: inherit;
}

.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #E8B86D;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #999;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #E8B86D;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #252525;
}

.btn-cancel {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 8px;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-cancel:hover {
  border-color: #555;
  color: #fff;
}

.btn-save {
  padding: 10px 20px;
  background: #E8B86D;
  border: none;
  border-radius: 8px;
  color: #0D0D0D;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-save:hover {
  background: #f0c07d;
}

/* Color Picker für Kurstermine */
.color-picker {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.15s;
}

.color-dot:hover {
  transform: scale(1.1);
}

.color-dot.selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px #E8B86D;
}

.color-dot.color-ok {
  background: #175d1f;
}

.color-dot.color-low {
  background: #123a64;
}

.color-dot.color-sold {
  background: #5a0d0d;
}

/* Status Badge Farben */
.status-ok {
  background: rgba(125, 184, 125, 0.15);
  color: #7DB87D;
}

.status-low {
  background: rgba(107, 163, 214, 0.15);
  color: #6BA3D6;
}

.status-sold {
  background: rgba(214, 107, 107, 0.15);
  color: #D66B6B;
}
