:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --bg-body: #e5e7eb;      /* Dunkleres Grau für mehr Hintergrund-Abstand */
    --bg-card: #ffffff;
    --text-main: #111827;    /* Fast Schwarz statt 2b2d42 für maximale Schärfe */
    --text-muted: #4b5563;   /* Dunkler als 6c757d (Barrierefreiheit!) */
    --border-color: #d1d5db; /* Kräftigere Trennlinien */
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}
* { box-sizing: border-box; }

body {
	font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased; /* neu */
    -moz-osx-font-smoothing: grayscale; /* neu */
    text-rendering: optimizeLegibility;	/* neu */ 
	background-color: var(--bg-body);
	color: var(--text-main);
	line-height: 1.2; /* 1.5 */
	margin: 0;
	padding: 0;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
}

/* HEADER */
header {
	background: var(--secondary-color);
	color: white;
	padding: 20px;
	border-radius: 12px;
	margin-bottom: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: var(--shadow);
}

header h1 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

/* NAVIGATION TOOLBAR */
.toolbar {
	display: flex;
	background: white;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
	padding: 15px;
	border-radius: 12px;
	align-items: center;
	justify-content: space-between; 
	box-shadow: var(--shadow);
}

.nav-buttons { display: flex; gap: 8px; }

.nav-group { 
	display: flex; 
	gap: 5px; 
}

.current-date { 
	font-weight: 700; 
	font-size: 1.1rem; 
	color: var(--secondary-color); 
}


.btn {
	background: #f8f9fa;
	border: 1px solid var(--border-color);
	padding: 8px 16px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.2s;
	text-decoration: none;
	color: var(--text-main);
	display: inline-flex;
	align-items: center;
}

.btn:hover {
	background: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

.btn-primary {
	background: var(--primary-color);
	color: white;
	border: none;
}

.btn-primary:hover {
	background: #c1121f;
}

.btn-secondary {
	background: #f8f9fa;
	border: 1px solid var(--border-color);
	color: var(--text-main);
	}
.btn-secondary:hover {
	background: #e9ecef;
	}

.btn-text {
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--secondary-color);
}

.month-display {
	font-size: 1.25rem;
	font-weight: 700;
	flex-grow: 1;
	text-align: center;
}

/* KALENDER GRID */
.calendar-header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 10px;
	margin-bottom: 10px;
	text-align: center;
	font-weight: 700;
	color: var(--text-muted);
}

.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 10px;
}

.calendar-day {
	background: var(--bg-card);
	border-radius: 12px;
	min-height: 150px;
	padding: 10px;
	border: 1px solid var(--border-color);
	transition: transform 0.2s, box-shadow 0.2s;
	position: relative;
}

.calendar-day:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.day-number {
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 2px;
	display: block;
	color: var(--text-muted);
	text-decoration:none; /* added manual */
}

.is-today {
	border: 2px solid var(--primary-color);
	background: #ffece0; /* fff5f5 */
}

.is-past {
	background: #dddddd; /* fff5f5 */
}

.is-today .day-number {
	color: var(--primary-color);
}

.not-month {
	opacity: 0.4;
	background: #ebf0f5;
}

/* RESERVIERUNGEN */
.reservation-item {
	font-size: 0.6rem; /* 0.75 0.6 */ 
	padding: 4px; /* 6px */
	border-radius: 6px;
	margin-bottom: 2px;  /* 5px */
	border-left: 4px solid rgba(0,0,0,0.2);
	color: #1d3557;
	font-weight: 700; /* 600 */
	text-decoration: none;
	display: block;
}

.res-green {
	background-color: #d1fae5;
	border-left-color: #10b981;
}

.res-red {
	background-color: #fee2e2;
	border-left-color: #ef4444;
}

.res-orange {
	background-color: #ffedd5;
	border-left-color: #f59e0b;
}

.res-blue {
	background-color: #e0f2fe;
	border-left-color: #0ea5e9;
}

/* SIDEBAR / FILTERS */
.actions-bar {
	margin-top: 30px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.action-card {
	background: white;
	padding: 20px;
	border-radius: 12px;
	box-shadow: var(--shadow);
}

.search-input {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 1rem;
}

.custom-checkbox input {
	display: none; /* Versteckt die echte Checkbox */
}

.checkmark {
	width: 25px;
	height: 25px;
	background-color: #eee;
	display: inline-block;
	border-radius: 4px;
	position: relative;
	vertical-align: middle;
}

/* Häkchen-Logik */
.custom-checkbox input:checked + .checkmark {
	background-color: #2196F3;
}

.checkmark:after {
	content: "";
	position: absolute;
	display: none;
	left: 9px; top: 5px;
	width: 5px; height: 10px;
	border: solid white;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.custom-checkbox input:checked + .checkmark:after {
	display: block;
}

/* Card Styles */
.res-card {
	background: white;
	border-radius: 12px;
	box-shadow: var(--shadow);
	margin-bottom: 15px;
	display: flex;
	overflow: hidden;
	border: 1px solid var(--border-color);
}
.res-card-img {
	width: 140px;
	background: #f8f9fa;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border-right: 1px solid var(--border-color);
}
.res-card-img img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}
.res-card-content {
	padding: 15px;
	flex-grow: 1;
}
        
.res-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 5px;
}
.res-type {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--text-muted);
}
.res-title {
	margin: 0 0 8px 0;
	font-size: 1.1rem;
	color: var(--secondary-color);
}
.res-time-info {
	font-size: 0.95rem;
	margin-bottom: 10px;
}
.res-description {
	background: #f1f4f9;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 0.9rem;
	margin-bottom: 10px;
	border-left: 3px solid var(--secondary-color);
}
.res-meta {
	font-size: 0.8rem;
	color: var(--text-muted);
	line-height: 1.4;
}
        
.res-actions {
	margin-top: 15px;
	padding-top: 10px;
	border-top: 1px solid #eee;
	display: flex;
	gap: 15px;
}

.text-red { color: var(--primary-color); }

/* Badges */
.badge {
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}
.badge-green {
	background: #d1fae5;
	color: #065f46;
}
.badge-red {
	background: #fee2e2;
	color: #b91c1c;
}
.badge-orange {
	background: #ffedd5;
	color: #9a3412;
}
.badge-blue {
	background: #e0f2fe;
	color: #0369a1;
}

.info-box {
	background: white;
	padding: 40px;
	border-radius: 12px;
	text-align: center;
	color: var(--text-muted);
	font-weight: 600;
	box-shadow: var(--shadow);
}


.card {
	background: white;
	padding: 25px;
	border-radius: 12px;
	box-shadow: var(--shadow);
	margin-bottom: 20px;
}

h3 {
	margin-top: 0;
	color: var(--secondary-color);
	border-bottom: 2px solid var(--bg-body);
	padding-bottom: 10px;
	margin-bottom: 20px;
}

.form-grid {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	align-items: start;
}

.form-label {
	font-weight: 600;
	padding-top: 10px;
	color: var(--secondary-color);
}

.form-input-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], input[type="email"], select, textarea { 
	width: 100%;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 1rem;
	transition: border 0.2s;
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.time-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.time-row select, .time-row input {
	width: auto;
}

.status-msg {
	display: none;
	padding: 12px;
	border-radius: 8px;
	margin-top: 10px;
	font-size: 0.9rem;
	font-weight: 600;
}
.status-error {
	display: block;
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fca5a5;
}

.error-hint {
	color: var(--primary-color);
	font-size: 0.8rem;
	display: none;
	font-weight: 600;
}

.date-actions {
	font-size: 0.85rem;
	margin-top: 5px;
	display: flex;
	gap: 15px;
}
.date-actions a {
	color: var(--secondary-color);
	text-decoration: none;
	font-weight: 700;
}
.date-actions a:hover {
	text-decoration: underline;
	color: var(--primary-color);
}


/* Admin Switch */
.admin-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
}



/* Standardmäßig (Desktop) verstecken */
.mobile-weekday {
    display: none;
}



/* RESPONSIVE */
@media (max-width: 900px) {
	.calendar-header { display: none; }
	.calendar-grid { grid-template-columns: 1fr; }
	.calendar-day { min-height: auto; }
	.form-grid { grid-template-columns: 1fr; gap: 8px; } .header { flex-direction: column; text-align: center; gap: 15px; }
	.res-card { flex-direction: column; }
	.res-card-img { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
	
	
	/* NEU: Wochentag mobil anzeigen */
	.mobile-weekday {
		display: inline; /* Zeigt es in der gleichen Zeile wie die Zahl an */
		font-weight: 500; /* Etwas dünner als die Zahl für bessere Optik */
		color: var(--text-muted);
		margin-right: 5px;
	}
	
}



/* --- Ergänzungen für Login-Seite --- */
.login-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Falls du Fehlermeldungen hervorheben willst */
.status-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

/* Container für die Checkboxen */
.checkbox-container {
  display: grid;
  /* Erstellt automatisch so viele Spalten wie Platz ist (mind. 250px breit) */
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  background: #f9f9f9; /* Dezenter Hintergrund zur Abhebung */
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* Einzelnes Checkbox-Item */
.checkbox-item {
  display: flex;
  align-items: flex-start; /* Aliniert Checkbox oben, falls Text umbricht */
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  padding: 5px;
  transition: background 0.2s;
}

.checkbox-item:hover {
  background: #f0f4f8;
  border-radius: 4px;
}

.checkbox-item input[type="checkbox"] {
  margin-top: 3px; /* Feinjustierung der Checkbox zum Text */
  cursor: pointer;
}


/* Admin Tabellen Styling */
table { width: 100%; border-collapse: collapse; margin-top: 10px; background: white; }
table th { background: #f8f9fa; color: var(--secondary-color); text-align: left; padding: 12px; border-bottom: 2px solid var(--border-color); font-size: 0.9rem; }
table td { padding: 12px; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; vertical-align: middle; }
table tr:hover { background-color: #fcfcfc; }