/* =========================================================
         Design Tokens (Material 3) – unverändert + Ergänzungen
         ========================================================= */
:root {
	--color-primary: #6750A4;
	--color-on-primary: #fff;
	--color-surface: #ffffff;
	--color-on-surface: #1d1b20;
	--outline: #cac4d0;
	--color-secondary: #625B71;
	--radius: 16px;
	--shadow-1: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .04);
	--shadow-2: 0 6px 18px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .06);
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	background-attachment: fixed;
	background:
		radial-gradient(1200px 800px at 10% -10%, #EADDFF 0%, transparent 60%),
		radial-gradient(900px 700px at 110% 10%, #D0BCFF 0%, transparent 55%),
		#F7F7FB;
	background-repeat: no-repeat;
	background-size: cover;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial;
	color: var(--color-on-surface);
}

body {
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
}

/* =========================================================
         Sticky Navbar mit Branding & Material Icons (NEU)
         ========================================================= */
.navbar {
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: saturate(1.2) blur(8px);
	background: color-mix(in srgb, var(--color-surface) 80%, transparent);
	border-bottom: 1px solid rgba(0, 0, 0, .06);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 20px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	letter-spacing: .2px;
}

.brand-mark {
	width: 36px;
	height: 36px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--color-primary);
	color: var(--color-on-primary);
	box-shadow: var(--shadow-1);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	width: 40px;
	border-radius: 12px;
	border: 1px solid var(--color-outline);
	background: var(--color-surface);
	cursor: pointer;
	box-shadow: var(--shadow-1);
	
}

.icon-btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-2);
}

.material-symbols-rounded {
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.logo {width: 100px; height: auto; text-align;center;}
/* =========================================================
         Card / Grid / Helpers – inkl. bestehender Komponenten
         ========================================================= */
.container {
	max-width: 1100px;
	margin: 32px auto;
	padding: 0 20px;
}

.section-title {
	margin: 18px 0 10px;
	font-weight: 800;
	letter-spacing: .2px;
}

.section-subtitle {
	margin: 0 0 14px;
	color: #5c5965;
}

.card {
	background: var(--color-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-2);
	border: 1px solid rgba(0, 0, 0, .04);
	overflow: hidden;
}

.card__content {
	padding: 24px;
}

/* Zweispaltige Section mit Cards (NEU) */
.grid-2 {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 800px) {
	.grid-2 {
		grid-template-columns: 1fr;
	}
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	cursor: pointer;
	user-select: none;
	font: 600 15px/1.1 Inter, system-ui;
	padding: 12px 14px;
	border-radius: 12px;
	transition: transform .02s ease, box-shadow .2s;
}

.btn:active {
	transform: translateY(1px);
}

.btn--filled {
	background: var(--color-primary);
	color: var(--color-on-primary);
	box-shadow: var(--shadow-1);
}

.btn--outlined {
	background: #fff;
	border: 1px solid var(--color-outline);
	color: #3d3950;
}
.badge {
	background: #F3EFF8;
	padding: 5px;
	border: var(--shadow-1);
	border-radius: 16px;
}
/* =========================================================
         CRUD Tabelle (NEU) – nutzt Material 3 Optik
         ========================================================= */
.table {
	width: 100%;
	border-collapse: collapse;
	background: var(--color-surface);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-2);
}

.table th,
.table td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.table th {
	background: #F3EFF8;
	font-weight: 600;
	color: #4a4458;
	font-size: 14px;
}

.table tr:last-child td {
	border: none;
}

.table .actions {
	display: inline-flex;
	gap: 6px;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid var(--color-outline);
	background: #fff;
	cursor: pointer;
}

.action-btn:hover {
	background: #f6f4fb;
}

/* Toolbar über Tabelle */
.table-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.search-input {
	width: 280px;
	max-width: 100%;
	border: 1px solid var(--color-outline);
	background: #fff;
	padding: 10px 12px;
	border-radius: 12px;
	outline: none;
}

/* --- Form --- */
form { display: grid; gap: 14px; }
.input {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  width: 100%;
  font: inherit;
}
.input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(103,80,164,.18); }

form {

	display: grid;
	gap: 16px;
}
.input {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  width: 100%;
  font: inherit;
}
textarea {
	  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  width: 100%;
  font: inherit;
	
}
.field {
	position: relative;
	isolation: isolate;
}

.input {
	width: 100%;
	border: 1px solid var(--color-outline);
	background: #fff;
	padding: 22px 14px 10px;
	border-radius: 12px;
	font: inherit;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.input:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 4px rgba(103, 80, 164, .12);
}

.label {
	position: absolute;
	left: 12px;
	top: 14px;
	padding: 0 6px;
	background: #fff;
	color: #6b6677;
	transform-origin: left top;
	transition: .18s ease;
}

.input::placeholder {
	opacity: 0;
}

.input:focus+.label,
.input:not(:placeholder-shown)+.label {
	transform: translateY(-16px) scale(.88);
	color: var(--color-primary);
}

.helper {
	font-size: 12px;
	color: #6b6677;
	min-height: 18px;
	padding: 0 4px;
}

.text-center {
	text-align: center;
}
.align-center {align-items: center;}
/* =========================================================
         7) Checkbox
         ========================================================= */
.cb {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.cb input {
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #8d87a0;
	border-radius: 6px;
	display: grid;
	place-items: center;
	transition: .2s;
}

.cb input:checked {
	border-color: var(--color-primary);
	background: var(--color-primary);
}

.cb input:checked::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: #fff;
}

/* Modal (CSS checkbox hack) */
.modal-toggle {
	display: none
}

.modal {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, .35);
	opacity: 0;
	pointer-events: none;
	transition: .25s;
}

.modal-toggle:checked+.modal {
	opacity: 1;
	pointer-events: auto
}

.modal-inner {
	background: var(--color-surface);
	width: 420px;
	max-width: 90vw;
	border-radius: var(--radius);
	padding: 26px;
	box-shadow: var(--shadow);
}

.modal h2 {
	margin-top: 0;
	font-weight: 600;
	text-align: center
}

.field {
	margin-top: 14px;
	position: relative
}

.input,
select,
input[type=datetime-local] {
	width: 100%;
	padding: 14px;
	border: 1px solid var(--outline);
	border-radius: var(--radius);
	font: inherit;
	outline: none;
}

.input:focus,
select:focus,
input[type=datetime-local]:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(103, 80, 164, .12);
}

.modal-actions {
	margin-top: 22px;
	display: flex;
	justify-content: flex-end;
	gap: 10px
}

.btn-secondary {
	background: #fff;
	color: var(--on-surface);
	border: 1px solid var(--outline);
}

/* =========================================================
         Footer (NEU)
         ========================================================= */
footer {
	margin-top: 48px;
	border-top: 1px solid rgba(0, 0, 0, .08);
	padding: 18px 20px;
	color: #5c5965;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	background: color-mix(in srgb, var(--color-surface) 92%, transparent);
}

.footer-links {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.footer-links a {
	color: var(--color-secondary);
	text-decoration: none;
}

.footer-links a:hover {
	text-decoration: underline;
}