/* Tennis Team Kalender - Modern CSS */

:root {
  --primary-color: #000000;
  --primary-dark: #333333;
  --success-color: #000000;
  --warning-color: #666666;
  --error-color: #000000;
  --background: #ffffff;
  --surface: #ffffff;
  --text-primary: #000000;
  --text-secondary: #666666;
  --border-color: #e8e8e8;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 2px 12px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.app-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.header-content {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto;
}

.header-nav .back-btn {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  margin-left: -12px;
}

.header-nav .back-btn::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: transparent;
  border-radius: 8px;
  z-index: -1;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.user-link:hover {
  opacity: 0.7;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
}

.user-details h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.user-details p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.action-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.main-content {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 120px);
}

/* Login Page */
.login-page {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: max(40px, env(safe-area-inset-top));
}

.login-container {
  width: 100%;
  max-width: 320px;
  margin-top: 0;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.tennis-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.8;
}

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

.login-header p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

.login-form-container {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 24px;
  border: none;
}

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: none; /* Minimalistisch ohne Labels */
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  font-size: 16px;
  transition: all 0.2s ease;
  background: transparent;
  font-weight: 400;
}

.form-group input:focus {
  outline: none;
  border-bottom-color: var(--text-primary);
  background: #fafafa;
}

.form-group input::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
}

.form-group:first-child input {
  border-top: none;
}

.form-group:last-child input {
  border-bottom: none;
}

.login-button {
  width: 100%;
  background: var(--text-primary);
  color: white;
  border: none;
  padding: 16px;
  border-radius: var(--border-radius);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-top: 24px;
  letter-spacing: 0.25px;
}

.login-button:hover {
  background: var(--text-secondary);
  transform: translateY(-1px);
}

.login-button:active {
  transform: translateY(0);
}

.button-arrow {
  font-size: 14px;
  opacity: 0.8;
}

.login-footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
}

.error-message {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid var(--error-color);
  border-radius: var(--border-radius);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--error-color);
}

/* Dashboard */
.section-header {
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.termine-liste {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.termin-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.termin-card:hover {
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

.termin-card.user-angemeldet {
  background: #fafafa;
  border-color: var(--text-primary);
}

.termin-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.termin-icon .calendar-month {
  font-size: 8px;
  line-height: 1;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.termin-icon .calendar-day {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.termin-icon.punktspiel {
  background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
  color: white;
}

.termin-icon.punktspiel .calendar-month,
.termin-icon.punktspiel .calendar-day {
  color: white;
}

.termin-icon.turnier {
  background: linear-gradient(135deg, #ffa502 0%, #ff9500 100%);
  color: white;
}

.termin-icon.turnier .calendar-month,
.termin-icon.turnier .calendar-day {
  color: white;
}

.termin-icon.event {
  background: linear-gradient(135deg, #2ed573 0%, #2db568 100%);
  color: white;
}

.termin-icon.event .calendar-month,
.termin-icon.event .calendar-day {
  color: white;
}

/* Termin Detail Uhrzeit */
.termin-uhrzeit {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 16px;
}

/* Custom Color Picker */
.color-picker-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-picker-container input[type="text"] {
  background: #f8f8f8;
  color: var(--text-primary);
  font-family: monospace;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.color-option:hover {
  transform: scale(1.1);
  border-color: var(--text-secondary);
}

.color-option.active {
  border-color: var(--text-primary);
  transform: scale(1.1);
}

.color-option.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.color-option-clear {
  background: #f5f5f5 !important;
  border: 2px dashed #ccc !important;
  color: #999 !important;
  font-size: 18px !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.color-option-clear:hover {
  background: #e8e8e8 !important;
  border-color: #999 !important;
  color: #666 !important;
}

.color-option-clear.active {
  background: #ddd !important;
  border-color: var(--text-primary) !important;
  color: var(--text-primary) !important;
}

/* Termine Verwalten */
.termine-verwalten-liste {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verwalten-termin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.termin-info-compact {
  flex: 1;
}

.termin-datum-compact {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.termin-titel-compact {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.termin-meta-compact {
  font-size: 12px;
  color: var(--text-secondary);
}

.termin-actions {
  display: flex;
  gap: 8px;
}

.edit-btn, .delete-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-btn i, .delete-btn i {
  font-size: 16px;
}

.edit-btn {
  background: #e3f2fd;
  color: #1976d2;
}

.edit-btn:hover {
  background: #bbdefb;
}

.delete-btn {
  background: #ffebee;
  color: #d32f2f;
}

.delete-btn:hover {
  background: #ffcdd2;
}

/* Edit Termin Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.cancel-btn {
  padding: 12px 24px;
  background: #f5f5f5;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.cancel-btn:hover {
  background: #e8e8e8;
  color: var(--text-primary);
}

.termin-info {
  flex: 1;
}

.termin-datum {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.uhrzeit {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 12px;
}

.wochentag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.datum {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.termin-titel {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.termin-details {
  font-size: 14px;
  color: var(--text-secondary);
}

.termin-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-count {
  background: var(--text-primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 12px;
  min-width: 22px;
  height: 22px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Für einstellige Zahlen - perfekt rund */
.badge-count:not([data-digits="2"]) {
  width: 22px;
  border-radius: 50%;
}

.termin-arrow {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Termin Detail */
.termin-header {
  background: var(--text-primary);
  color: white;
  margin: -20px -20px 20px -20px;
  padding: 40px 20px 10px !important;
  display: flex !important;
  align-items: center !important;
}

.termin-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 480px;
  margin: 0 auto;
  padding-left: 16px;
  width: 100%;
}

.termin-icon-large {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  align-self: center;
  flex-shrink: 0;
}

.termin-icon-large.punktspiel {
  background: rgba(255, 68, 68, 0.2);
  border-color: rgba(255, 68, 68, 0.3);
}

.calendar-month-large {
  font-size: 12px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.calendar-day-large {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: white;
  margin-top: 2px;
}

/* Inline Calendar Icons für Headers */
.inline-calendar-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--border-color);
  margin-right: 12px;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.inline-calendar-icon.small {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.inline-calendar-icon .calendar-month {
  font-size: 7px;
  line-height: 1;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.inline-calendar-icon .calendar-day {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin-top: 1px;
}

.inline-calendar-icon.small .calendar-month {
  font-size: 6px;
}

.inline-calendar-icon.small .calendar-day {
  font-size: 10px;
}

.termin-header-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  flex: 1;
}

.termin-header-info h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  margin-top: 0;
}

.termin-header-info h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  margin-top: 0;
  opacity: 0.9;
}

.termin-description {
  font-size: 14px;
  opacity: 0.8;
}

.section {
  margin-bottom: 32px;
}

.section-header h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.teilnehmer-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teilnehmer-item {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.teilnehmer-item.current-user {
  background: #fafafa;
  border-color: var(--text-primary);
}

.teilnehmer-avatar {
  font-size: 16px;
}

.teilnehmer-name {
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-user-badge {
  background: var(--text-primary);
  color: white;
  font-size: 9px;
  font-weight: 500;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.anmeldung-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.anmeldung-header h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.anmeldung-header p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.anmeldung-button {
  width: 100%;
  padding: 16px;
  border-radius: var(--border-radius);
  border: none;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.anmeldung-button.anmelden {
  background: var(--text-primary);
  color: white;
}

.anmeldung-button.abmelden {
  background: var(--text-secondary);
  color: white;
}

.anmeldung-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.info-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.info-card.punktspiel {
  background: linear-gradient(135deg, rgba(128, 128, 128, 0.05) 0%, rgba(192, 192, 192, 0.05) 100%) !important;
  border: 1px solid rgba(128, 128, 128, 0.2) !important;
}

.info-header h3 {
  margin-bottom: 12px;
}

/* Admin */
.admin-page {
  overflow-x: hidden;
}

.admin-page .main-content {
  max-width: 100%;
  padding: 16px;
  box-sizing: border-box;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-navigation {
  display: flex;
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 4px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--primary-color);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-form-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.admin-form-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.admin-form .form-group {
  margin-bottom: 0;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.admin-form .form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 14px;
  width: 100%;
}

.admin-form .form-group input,
.admin-form .form-group select,
.admin-form .form-group textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 12px 16px !important;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.form-row .form-group {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

@media (min-width: 481px) {
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: var(--surface);
  box-sizing: border-box;
  display: block;
  margin: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}

.admin-form-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 16px !important;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  overflow: visible;
  width: calc(100% - 4px) !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-item {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow);
  position: relative;
}

.user-details {
  flex: 1;
}

.user-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-tag {
  background: var(--warning-color);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

/* FAB */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text-primary);
  color: white;
  border: none;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 50;
}

.fab:hover {
  transform: scale(1.05);
  background: var(--text-secondary);
}

/* PWA Install Prompt */
.install-prompt {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: all 0.3s ease;
  max-width: 400px;
  margin: 0 auto;
}

.install-prompt.hidden {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.install-content {
  text-align: center;
}

.install-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.install-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.install-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 14px;
}

.install-buttons {
  display: flex;
  gap: 12px;
}

.install-btn,
.dismiss-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.install-btn {
  background: var(--primary-color);
  color: white;
}

.dismiss-btn {
  background: var(--background);
  color: var(--text-secondary);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state.small {
  padding: 24px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

/* Toast Messages */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transition: all 0.3s ease;
  max-width: 320px;
  width: calc(100% - 40px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--success-color);
  color: white;
}

.toast.warning {
  background: var(--warning-color);
  color: white;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.message.success {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
  .main-content {
    padding: 16px;
  }
  
  .header-content {
    padding: 12px 16px;
  }
  
  .termin-header {
    margin: -16px -16px 16px -16px;
    padding: 24px 16px;
  }
  
  .fab {
    bottom: 16px;
    right: 16px;
  }
  
  /* Login Mobile Optimierung */
  .login-page {
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
  }
  
  .login-header {
    margin-bottom: 32px;
  }
  
  .tennis-icon {
    font-size: 40px;
    margin-bottom: 16px;
  }
  
  /* Admin Form Mobile */
  .admin-form-card {
    padding: 16px;
    margin: 0 0 20px 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .admin-form-card h4 {
    font-size: 16px;
    margin-bottom: 16px;
  }
  
  .admin-form {
    width: 100%;
  }
  
  .form-group {
    width: 100%;
    margin-bottom: 16px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    min-width: 0;
    flex-shrink: 1;
  }
}

/* Dark mode override - Force light mode always */
:root {
  color-scheme: light !important;
}

/* Verhindere Dark Mode Anpassungen */
@media (prefers-color-scheme: dark) {
  :root {
    /* Erzwinge helle Farben auch im Dark Mode */
    --background: #ffffff !important;
    --surface: #ffffff !important;
    --text-primary: #000000 !important;
    --text-secondary: #666666 !important;
    --border-color: #e8e8e8 !important;
  }
  
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}

/* Profil Page Styles */
.form-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

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

.password-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 14px;
}

.password-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: border-color 0.2s ease;
  background: var(--surface);
}

.password-form input:focus {
  outline: none;
  border-color: var(--text-primary);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.info-value {
  font-weight: 600;
  color: var(--text-primary);
}

.security-tip {
  background: #fafafa;
  border-left: 3px solid var(--text-primary);
}

.security-tip .info-content p {
  margin: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.message.error {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid #ff3b30;
  color: #ff3b30;
  padding: 12px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}



/* ========================================
   DASHBOARD CALENDAR VIEW - SEPARATE STYLES
   ======================================== */

/* Dashboard View Switcher - isolated from existing styles */
.dashboard-view-switcher {
  display: flex;
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 4px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.dashboard-view-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dashboard-view-btn i {
  font-size: 16px;
}

.dashboard-view-btn.dashboard-view-active {
  background: var(--text-primary);
  color: white;
}

.dashboard-view-btn:hover:not(.dashboard-view-active) {
  background: var(--border-color);
  color: var(--text-primary);
}

/* Dashboard Calendar Container */
.dashboard-calendar-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.dashboard-calendar-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.dashboard-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dashboard-calendar-nav-left,
.dashboard-calendar-nav-right {
  width: 40px;
  display: flex;
  justify-content: center;
}

.dashboard-calendar-title-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dashboard-calendar-title-section h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.dashboard-calendar-today-btn {
  background: var(--text-primary);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dashboard-calendar-today-btn:hover:not(:disabled) {
  background: var(--text-secondary);
  transform: translateY(-1px);
}

.dashboard-calendar-today-btn:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.dashboard-calendar-nav-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.dashboard-calendar-nav-btn:hover:not(:disabled) {
  background: var(--border-color);
  transform: scale(1.05);
}

.dashboard-calendar-nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.dashboard-calendar-nav-btn i {
  font-size: 16px;
}

.dashboard-calendar-wrapper {
  max-width: 100%;
  overflow-x: auto;
}

.dashboard-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 8px;
}

.dashboard-calendar-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.dashboard-calendar-day {
  background: var(--surface);
  min-height: 80px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dashboard-calendar-day:hover {
  background: #fafafa;
}

.dashboard-calendar-day.dashboard-calendar-other-month {
  background: #f8f8f8;
  opacity: 0.5;
}

.dashboard-calendar-day.dashboard-calendar-today {
  background: #e3f2fd;
  border: 2px solid var(--text-primary);
}

.dashboard-calendar-day.dashboard-calendar-today .dashboard-calendar-day-number {
  background: var(--text-primary);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-weight: 600;
}

.dashboard-calendar-day.dashboard-calendar-user-day {
  background: #e8f5e8;
  border-left: 3px solid var(--text-primary);
}

.dashboard-calendar-day-number {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4px;
}

.dashboard-calendar-events {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.dashboard-calendar-event {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 20px;
}

.dashboard-calendar-event:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}

.dashboard-calendar-event.dashboard-calendar-user-event {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--text-primary);
}

.dashboard-calendar-event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  flex-shrink: 0;
}

.dashboard-calendar-event-title {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  line-height: 1.2;
}

/* Mobile Dashboard Calendar Optimizations */
@media (max-width: 480px) {
  .dashboard-calendar-card {
    padding: 12px;
    margin: 0 -4px;
  }
  
  .dashboard-calendar-title-section h4 {
    font-size: 18px;
  }
  
  .dashboard-calendar-today-btn {
    font-size: 11px;
    padding: 4px 10px;
  }
  
  .dashboard-calendar-day {
    min-height: 60px;
    padding: 4px 2px;
  }
  
  .dashboard-calendar-day-number {
    font-size: 12px;
    margin-bottom: 2px;
  }
  
  .dashboard-calendar-event {
    padding: 1px 2px;
    min-height: 16px;
  }
  
  .dashboard-calendar-event-title {
    font-size: 9px;
  }
  
  .dashboard-calendar-event-dot {
    width: 4px;
    height: 4px;
  }
  
  .dashboard-calendar-weekday {
    font-size: 10px;
    padding: 6px 2px;
  }
  
  .dashboard-view-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .dashboard-view-btn span {
    display: none;
  }
  
  .dashboard-view-btn i {
    font-size: 18px;
  }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
  .app-header {
    padding-top: max(12px, env(safe-area-inset-top));
  }
  
  .main-content {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}

/* Statistik Styles */
.statistik-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.statistik-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.statistik-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.statistik-toggle-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.statistik-toggle-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.statistik-filters {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--border-color);
  border-radius: 6px;
}

.statistik-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}

.statistik-filters input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

.statistik-chart-container {
  position: relative;
  height: auto;
  min-height: 200px;
  margin-top: 16px;
}

.statistik-hinweis {
  margin-top: 10px;
  text-align: center;
  background: var(--border-color);
  padding: 10px 15px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 11px;
  line-height: 1.3;
  word-wrap: break-word;
  max-width: 100%;
}

.statistik-chart-container canvas {
  max-height: 100%;
}

.chart-container {
  height: 200px;
  position: relative;
  overflow: visible; /* Wichtig für Labels die über den Rand hinausgehen */
}

/* Dynamische Höhe basierend auf Anzahl der User */
.chart-container.dynamic-height {
  height: auto;
  min-height: 200px;
  max-height: 800px;
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
  /* Verhindere horizontales Scrollen auf allen mobilen Geräten */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Termin Header mobile Optimierung */
  .termin-header-content {
    padding-left: 20px;
  }
  
  /* Back-Button mobile Optimierung */
  .header-nav .back-btn {
    font-size: 18px;
    padding: 12px 16px;
    min-height: 48px;
    min-width: 48px;
    margin-left: -16px;
  }
  
  .header-nav .back-btn::before {
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
  }
  
  .chart-container {
    padding-right: 30px; /* Noch mehr Platz rechts für Labels */
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .chart-container.dynamic-height {
    max-height: 600px; /* Kleinere max-height auf mobilen Geräten */
  }
  
  /* Alle Container auf mobile Breite beschränken */
  .statistik-card,
  .category-chart-container,
  .statistik-hinweis {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Verhindere doppeltes Scrollen in Statistik */
  .statistik-chart-container {
    height: auto;
    overflow: visible;
  }
  
  .chart-container {
    overflow: visible;
  }
}

/* iPhone spezifische Optimierungen */
@media (max-width: 414px) {
  /* Verhindere horizontales Scrollen */
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  .chart-container {
    padding-right: 40px; /* Extra viel Platz für iPhone */
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .statistik-hinweis {
    margin-top: 3px; /* Noch weniger Abstand auf iPhone */
    padding: 6px 10px; /* Kompaktere Box */
    font-size: 11px; /* Deutlich größere Schrift */
    line-height: 1.2; /* Kompakterer Zeilenabstand */
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Bei vielen Usern noch kompakter */
  .chart-container.dynamic-height + .statistik-hinweis {
    margin-top: 2px;
    padding: 4px 8px;
    font-size: 10px;
  }
  
  /* Admin Charts Container */
  .category-chart-container {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Statistik Container */
  .statistik-card {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* Admin Statistik Kategorie-Charts */
.category-chart-container {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--surface);
}

.category-chart-container h5 {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.category-chart-container .chart-container {
  height: 200px;
  position: relative;
  overflow: visible;
}

.category-chart-container .statistik-info {
  background: var(--border-color);
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-primary);
}

.chart-variant {
  margin-bottom: 30px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--surface);
}

.chart-variant h5 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.chart-variant canvas {
  max-height: 200px;
}

/* Toggle Switch Styles - iPhone-optimiert */
.toggle-container-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.toggle-switch-small {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  max-width: 44px;
  min-width: 44px;
}

.toggle-switch-small input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider-small {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ddd;
  transition: .3s;
  border-radius: 26px;
}

.toggle-slider-small:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

input:checked + .toggle-slider-small {
  background-color: #6c757d;
}

input:focus + .toggle-slider-small {
  box-shadow: 0 0 1px #6c757d;
}

input:checked + .toggle-slider-small:before {
  transform: translateX(18px);
}

.toggle-label-small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 26px;
}

/* Kategorien-Liste Styles */
.verwalten-kategorie-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin-bottom: 12px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kategorie-info-compact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.kategorie-name-compact {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.kategorie-actions {
  display: flex;
  gap: 8px;
}

.kategorie-label {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px;
  border-radius: 20px;
  background: #f0f0f0;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.kategorie-label:hover {
  background: #e0e0e0;
}

.kategorie-label.selected {
  border-color: #007AFF;
  background: #e3f2fd;
}

.kategorie-preview {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.kategorien-vorschau {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* Color Picker Styles */
.color-picker-container {
  position: relative;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.color-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s;
}

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

.color-option.selected {
  border-color: #333;
  transform: scale(1.1);
}

/* Login Page Styles */
.login-header {
  margin-bottom: 20px !important;
}

.login-footer {
  margin-top: 30px;
  text-align: center;
  padding: 20px 0;
}

.powered-by {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.powered-by-logo {
  width: 250px;
  height: auto;
  opacity: 0.7;
}



/* Dashboard Footer Styles */
.dashboard-footer {
  margin-top: 40px;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
}

/* Profil Footer Styles */
.profil-footer {
  margin-top: 40px;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
}

/* Teams Admin Page Styles */
.admin-page {
  overflow-x: hidden !important;
}

.admin-page .main-content {
  max-width: 100% !important;
  overflow-x: hidden !important;
  padding: 20px !important;
}

.admin-page .form-group {
  margin-bottom: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.admin-page .form-group label {
  display: block !important;
  margin-bottom: 8px !important;
  font-weight: 500 !important;
  color: #333 !important;
  font-size: 14px !important;
}

.admin-page .form-group input,
.admin-page .form-group select,
.admin-page .form-group textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  background: white !important;
  color: #333 !important;
  overflow: visible !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.admin-page .form-group input:focus,
.admin-page .form-group select:focus,
.admin-page .form-group textarea:focus {
  outline: none !important;
  border-color: #007AFF !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1) !important;
}

.admin-page .btn {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 14px 20px !important;
  background: var(--text-primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  margin-top: 10px !important;
}

.admin-page .btn:hover {
  background: #333 !important;
}

/* Admin Page Extended Styles */
.admin-page .main-content {
  max-width: 100% !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.admin-form-card {
  background: #ffffff !important;
  border-radius: 8px !important;
  padding: 16px !important;
  margin-bottom: 24px !important;
  border: 1px solid #e8e8e8 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.admin-form {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.form-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.admin-form .form-group {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 16px !important;
  flex: none !important;
}

/* Spezifisch für User-Tab Form-Rows */
#users-tab .form-row {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

#users-tab .form-row .form-group {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 16px !important;
}

.admin-form .form-group input,
.admin-form .form-group select,
.admin-form .form-group textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 16px !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  background: #ffffff !important;
  margin: 0 !important;
  color: #333 !important;
}

/* Datum/Uhrzeit explizit überschreiben */
.admin-form .form-group input[type="date"],
.admin-form .form-group input[type="time"] {
  color: #333 !important;
  padding: 12px 16px !important;
  text-align: left !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  min-height: 44px !important;
  height: 44px !important;
}

.admin-form .form-group label {
  display: block !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
  color: #000000 !important;
  font-size: 14px !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  .form-row:not(#users-tab .form-row) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  
  /* User-Tab bleibt auch auf Desktop vertikal */
  #users-tab .form-row {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* Tab Navigation Mobile Fix */
@media (max-width: 768px) {
  .tab-navigation {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  
  .tab-btn {
    flex: 1 1 calc(50% - 6px) !important;
    min-width: 0 !important;
    font-size: 14px !important;
    padding: 12px 8px !important;
  }
  
  .tab-btn i {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  .tab-btn {
    flex: 1 1 calc(50% - 6px) !important;
    font-size: 13px !important;
    padding: 10px 6px !important;
  }
  
  .tab-btn i {
    font-size: 16px !important;
  }
}

/* Kategorien Auswahl Styles - Bulk/Admin Forms */
.kategorien-auswahl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.kategorie-label {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
}

.kategorie-label:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
}

.kategorie-label.selected {
  border-color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.no-kategorien {
  padding: 16px;
  background: #f8f8f8;
  border-radius: 8px;
  text-align: center;
  color: #666;
}

.no-kategorien a {
  color: #007AFF;
  text-decoration: none;
}

.no-kategorien a:hover {
  text-decoration: underline;
}

/* No Kategorien Message */
.no-kategorien-message {
  text-align: center;
  padding: 40px 20px;
}

.no-kategorien-icon {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 16px;
}

.no-kategorien-message h4 {
  margin: 0 0 12px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.no-kategorien-message p {
  margin: 0 0 24px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.no-kategorien-message .btn {
  display: inline-block;
  background: #007AFF;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.no-kategorien-message .btn:hover {
  background: #0056b3;
}

/* Edit Termin - Teilnehmer Verwaltung Styles */
.teilnehmer-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.teilnehmer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.teilnehmer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
}

.teilnehmer-info i {
  color: #666;
  font-size: 18px;
}

.remove-btn {
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.remove-btn:hover {
  background: #ff3838;
  transform: scale(1.1);
}

.dynamic-user-liste {
  margin-top: 12px;
}

.dynamic-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.dynamic-user-item.registered {
  background: #e8f5e8;
  border-color: #28a745;
}

.dynamic-user-item.available {
  background: #f8f9fa;
  border-color: #e9ecef;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  flex: 1;
  min-width: 0; /* Für text-overflow */
}

.user-info i {
  color: #666;
  font-size: 18px;
  flex-shrink: 0;
}

.user-info span:not(.status-badge) {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: auto; /* Das schiebt es ganz nach rechts */
  margin-right: 12px; /* Abstand zum Button */
  flex-shrink: 0;
}

.status-badge.registered {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.toggle-user-btn {
  background: none;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 18px;
  color: #28a745;
}

.toggle-user-btn:hover {
  background: rgba(40, 167, 69, 0.1);
  transform: scale(1.1);
}

.dynamic-user-item.registered .toggle-user-btn {
  color: #28a745;
}

.dynamic-user-item.available .toggle-user-btn {
  color: #6c757d;
}

.dynamic-user-item.available .toggle-user-btn:hover {
  background: rgba(108, 117, 125, 0.1);
  color: #28a745;
}

.empty-state {
  text-align: center;
  padding: 32px;
  color: #666;
  font-style: italic;
}

.empty-state p {
  margin: 0;
  font-size: 16px;
}

/* Teams Liste - Kompakt */
.teams-liste-kompakt {
  margin-top: 16px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.team-item-kompakt {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f3f4;
  min-height: 50px;
}

.team-header {
  display: flex;
  align-items: center;
}

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

.team-item-kompakt:hover {
  background: #f8f9fa;
}

.team-main-info {
  flex: 1;
  min-width: 0;
}

.team-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}

.team-meta-line {
  font-size: 12px;
  color: #666;
  font-family: 'Monaco', 'Courier New', monospace;
  margin-top: 2px;
}

.team-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  display: flex;
  align-items: center;
  font-size: 16px;
}

.status-indicator.active {
  color: #28a745;
}

.status-indicator.inactive {
  color: #dc3545;
}

.team-details-toggle {
  margin-left: 8px;
  padding: 4px;
  cursor: pointer;
  color: #666;
  border-radius: 4px;
  transition: all 0.2s;
}

.team-details-toggle:hover {
  background: #e9ecef;
  color: #333;
}

.team-details-extra {
  width: 100%;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 12px 16px;
  margin-top: 8px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: #666;
}

.detail-item i {
  font-size: 14px;
  color: #999;
  width: 16px;
}

@media (max-width: 768px) {
  .team-status {
    gap: 6px;
  }
  
  .team-item-kompakt {
    padding: 10px 12px;
  }
  
  .team-details-toggle {
    padding: 6px;
  }
}

/* Register Page Specific Styles */
.admin-page .login-container {
    max-width: 600px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Register Page Header - Specific to register.php */
.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-tennis-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.register-title {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Register Page Responsive */
@media (max-width: 768px) {
    .admin-page .login-container {
        padding: 16px !important;
        max-width: 100% !important;
    }
    
    .register-header {
        margin-bottom: 32px;
    }
    
    .register-tennis-icon {
        font-size: 40px;
        margin-bottom: 16px;
    }
    
    .register-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .admin-page .login-container {
        padding: 12px !important;
    }
    
    .register-header {
        margin-bottom: 24px;
    }
    
    .register-tennis-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .register-title {
        font-size: 22px;
    }
}

/* Success page styles for register.php */
.success-page {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.success-header-section {
    margin-bottom: 60px;
}

.success-page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

.success-message-section {
    margin-bottom: 40px;
}

.success-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.success-title i {
    font-size: 24px;
    margin-right: 10px;
    color: var(--text-primary);
}

.success-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

.success-steps {
    margin-bottom: 40px;
}

.step-card {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.step-number {
    background: var(--text-primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-right: 16px;
    flex-shrink: 0;
}

.step-text {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.4;
}

.success-actions {
    margin-top: 40px;
}

.success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.success-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.success-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.success-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

.powered-by {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.powered-text {
    font-size: 14px;
    color: #999;
    text-transform: lowercase;
}

.powered-logo {
    width: 250px;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .success-page {
        padding: 30px 15px;
    }
    
    .success-header-section {
        margin-bottom: 40px;
    }
    
    .success-page-title {
        font-size: 24px;
    }
    
    .success-title {
        font-size: 22px;
    }
    
    .success-title i {
        font-size: 22px;
    }
    
    .success-subtitle {
        font-size: 15px;
    }
    
    .step-card {
        padding: 16px;
        margin: 12px 0;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 14px;
    }
    
    .step-text {
        font-size: 15px;
    }
    
    .success-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .success-footer {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .powered-text {
        font-size: 13px;
    }
    
    .powered-logo {
        width: 200px;
        height: auto;
    }
}

/* WebAuthn / Face ID / Touch ID Styles */
.biometric-button {
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.biometric-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.biometric-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.biometric-register-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: #52c41a;
    color: white;
    border: 1px solid #52c41a;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.biometric-register-btn:hover {
    background-color: #73d13d;
    border-color: #73d13d;
}

.biometric-register-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.or-divider {
    text-align: center;
    margin: 8px 0 16px 0;
    position: relative;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: var(--border-color);
}

.or-divider::before { 
    left: 0; 
}

.or-divider::after { 
    right: 0; 
}

.or-text {
    background-color: var(--bg-color);
    padding: 0 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.biometric-info {
    margin-bottom: 16px;
}

.biometric-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.biometric-status {
    margin-top: 12px;
    padding: 12px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.status-message {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Landing Page Styles */
.landing-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
}

.landing-nav .landing-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
    color: #1a1a1a;
}

.nav-icon {
    font-size: 24px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #1a1a1a;
}

.nav-cta {
    background: var(--text-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.hero .landing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 24px 0;
    color: #1a1a1a;
}

.hero-highlight {
    color: var(--text-primary);
}

.hero-description {
    font-size: 20px;
    color: #666;
    margin: 0 0 40px 0;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: white;
    transform: translateY(-1px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

/* Hero Visual */
.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-phone {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.mockup-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #999;
}

.mockup-placeholder i {
    font-size: 48px;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1a1a1a;
}

.section-header p {
    font-size: 18px;
    color: #666;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--text-primary), #333);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.feature-icon i {
    font-size: 36px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1a1a1a;
}

.feature-card p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Screenshots Section */
.screenshots {
    padding: 120px 0;
    background: #f8f9fa;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
}

.screenshot-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.screenshot-item:nth-child(even) {
    direction: rtl;
}

.screenshot-item:nth-child(even) > * {
    direction: ltr;
}

/* Screenshot Slider */
.screenshot-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.screenshot-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 32px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f3f4, #e8eaed);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #666;
}

.screenshot-placeholder i {
    font-size: 48px;
}

.screenshot-placeholder span {
    font-size: 18px;
    font-weight: 600;
}

.screenshot-placeholder small {
    font-size: 14px;
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.slider-btn.prev {
    left: -22px;
}

.slider-btn.next {
    right: -22px;
}

.slider-btn i {
    font-size: 20px;
    color: var(--text-primary);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 4px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot.active,
.dot:hover {
    background: var(--text-primary);
}

/* Slide Descriptions */
.slide-description {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-align: center;
    position: relative;
}

.description-text {
    display: none;
    font-size: 14px;
    color: #666;
    line-height: 1.3;
    padding: 0 20px;
    max-width: 100%;
}

.description-text.active {
    display: block;
}

.screenshot-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #1a1a1a;
}

.screenshot-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.screenshot-content li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    color: #666;
}

.screenshot-content li:before {
    content: "✓";
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--text-primary), #333);
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 40px 0;
}

.cta .btn-primary {
    background: white;
    color: var(--text-primary);
}

.cta .btn-primary:hover {
    background: #f1f3f4;
    color: #333;
}

.cta-note {
    margin-top: 32px !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-note i {
    color: #4CD964;
}

/* Footer */
.landing-footer {
    background: white;
    color: #1a1a1a;
    padding: 60px 0 40px;
    border-top: 1px solid #e8e8e8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
    color: #1a1a1a;
}

.footer-icon {
    font-size: 24px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #1a1a1a;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.footer-bottom .powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #666;
    font-size: 16px;
}

.footer-bottom .powered-by-logo {
    height: 70px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    object-fit: contain;
}

.footer-bottom .powered-by-logo:hover {
    opacity: 1;
}

/* Impressum Modal Styles (exakt wie scorer.tennis) */
.overlay-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow-y: auto;
}

.overlay-content {
    position: relative;
    background: white;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.overlay-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.overlay-close:hover {
    color: #000;
}

.overlay-content h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.overlay-content h3:first-of-type {
    margin-top: 0;
}

.overlay-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* E-Mail/Telefon/Adresse-Schutz (rückwärts geschrieben) */
.email-protected, .phone-protected, .address-protected {
    unicode-bidi: bidi-override;
    direction: rtl;
}

/* Body-Klasse für Overlay-open */
body.overlay-open {
    overflow: hidden;
}

/* Responsive für Modal */
@media (max-width: 768px) {
    .overlay-content {
        margin: 20px auto;
        padding: 20px;
        width: 95%;
        max-height: 95vh;
    }
    
    .overlay-close {
        top: 10px;
        right: 15px;
        font-size: 25px;
    }
}

/* Landing Page Responsive */
@media (max-width: 1024px) {
    .hero .landing-container {
        gap: 60px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .landing-container {
        padding: 0 20px;
    }
    
    .landing-nav {
        height: 64px;
    }
    
    .nav-actions {
        gap: 16px;
    }
    
    .nav-cta {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero .landing-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .mockup-phone {
        width: 240px;
        height: 480px;
        padding: 16px;
    }
    
    .features {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .feature-card {
        padding: 32px 16px;
    }
    
    .screenshots {
        padding: 80px 0;
    }
    
    .screenshots-grid {
        gap: 60px;
    }
    
    .screenshot-item {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .screenshot-item:nth-child(even) {
        direction: ltr;
    }
    
    .screenshot-content h3 {
        font-size: 28px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-btn.prev {
        left: -20px;
    }
    
    .slider-btn.next {
        right: -20px;
    }
    
    .slider-btn i {
        font-size: 18px;
    }
    
    .cta {
        padding: 80px 0;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 0 16px;
    }
    
    .nav-brand {
        font-size: 16px;
    }
    
    .nav-actions {
        gap: 12px;
    }
    
    .nav-link {
        display: none;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 14px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .mockup-phone {
        width: 200px;
        height: 400px;
        padding: 12px;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .feature-card {
        padding: 24px 12px;
    }
    
    .feature-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    
    .feature-icon i {
        font-size: 28px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    .screenshots {
        padding: 60px 0;
    }
    
    .screenshot-content h3 {
        font-size: 24px;
    }
    
    .screenshot-content li {
        font-size: 14px;
    }
    
    .slider-btn {
        width: 36px;
        height: 36px;
    }
    
    .slider-btn.prev {
        left: -18px;
    }
    
    .slider-btn.next {
        right: -18px;
    }
    
    .slider-btn i {
        font-size: 16px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-dots {
        gap: 8px;
    }
    
    .slide-description {
        height: 50px;
        margin-top: 12px;
    }
    
    .description-text {
        font-size: 12px;
        padding: 0 16px;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-note {
        flex-direction: column;
        gap: 4px !important;
        text-align: center;
    }
    
    .landing-footer {
        padding: 40px 0 32px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* Passwort vergessen Styles */
.forgot-password-link {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
}

.forgot-password-link a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.forgot-password-link a:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Icon-Größe anpassen */
.forgot-password-link a i {
    font-size: 12px;
}

.forgot-password-form {
    width: 100%;
}

.forgot-password-form .form-header {
    text-align: center;
    margin-bottom: 25px;
}

.forgot-password-form .form-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.forgot-password-form .form-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.back-to-login {
    text-align: center;
    margin-top: 15px;
}

.back-to-login a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-to-login a:hover {
    color: #333;
}

/* Password Reset Success/Error Messages */
.password-reset-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.password-reset-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.password-reset-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Password Reset Button in Admin */
.reset-password-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-password-btn:hover {
    background: #218838;
    transform: scale(1.1);
}

.reset-password-btn i {
    font-size: 16px;
}

.user-actions {
    position: absolute;
    top: 8px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}





