.hd-rechts {
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
	z-index: 3;
}
.hd-plaetze {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #fff;
	text-decoration: none;
}
.hd-plaetze-name {
	font-family: var(--display, Oswald, sans-serif);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 11px;
	font-weight: 600;
	margin-right: 2px;
}
.hd-platz {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 800;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.4);
}
.hd-platz.is-frei {
	background: #178a32;
	border-color: #c9f5d4;
}
.hd-platz.is-belegt {
	background: #d35400;
	border-color: #ffd7b0;
}
.hd-platz.is-gesperrt {
	background: #8f1d1d;
	border-color: #ffc9c9;
}
@media (max-width: 760px) {
	.hd-plaetze-name { display: none; }
	.hd-platz { width: 20px; height: 20px; font-size: 10px; }
	.hd-rechts {
		flex-direction: column;
		align-items: flex-end;
		justify-content: center;
		gap: 3px;
	}
	.hd-plaetze {
		position: static;
		height: auto;
		background: transparent;
		padding: 0;
	}
}

.anlage-page {
	margin: 0;
	background: #f4f6f4;
	color: #142016;
	font-family: Archivo, "Segoe UI", sans-serif;
}
.anlage-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 22px;
	background: #17191c;
	color: #fff;
}
.anlage-top a {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.anlage-top a:hover { text-decoration: underline; }
.anlage-hero {
	background: #24272c;
	color: #fff;
	padding: 64px 0 32px;
}
.anlage-hero .anlage-kopf { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.anlage-wrap {
	width: min(1180px, calc(100% - 28px));
	margin: 0 auto;
	padding: 28px 0 64px;
}
.anlage-kopf h1 {
	font-family: Oswald, "Arial Narrow", sans-serif;
	font-size: clamp(32px, 5vw, 52px);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 0 0 8px;
}
.anlage-kopf p { margin: 0; color: #3e4a42; max-width: 70ch; }
.anlage-hero .anlage-kopf h1 { color: #fff; }
.anlage-hero .anlage-kopf p { color: #e7eeea; }
.anlage-uhr { font-weight: 700; color: #178a32; }
.anlage-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
	gap: 18px;
	margin-top: 22px;
	align-items: start;
}
.anlage-karte {
	position: relative;
	background: #0e1a12;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(16, 24, 18, 0.12);
}
.anlage-karte img {
	display: block;
	width: 100%;
	height: auto;
}
.feld, .pin {
	position: absolute;
	border: 0;
	cursor: pointer;
	font: inherit;
	color: #fff;
	text-align: left;
}
.feld {
	border-radius: 12px;
	padding: 8px 10px;
	background: rgba(12, 18, 14, 0.28);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}
.feld-a, .feld-b, .feld-c {
	border-radius: 2px;
	padding: 10px 12px;
	background: transparent;
	box-shadow: none;
}
.feld-a::before, .feld-b::before, .feld-c::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(23, 138, 50, 0.5);
	pointer-events: none;
}
.feld-a.is-belegt::before, .feld-b.is-belegt::before, .feld-c.is-belegt::before { background: rgba(214, 90, 0, 0.55); }
.feld-a.is-gesperrt::before, .feld-b.is-gesperrt::before, .feld-c.is-gesperrt::before { background: rgba(150, 22, 22, 0.6); }
.feld strong, .pin strong {
	display: block;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.feld-a strong, .feld-b strong, .feld-c strong,
.feld-a em, .feld-b em, .feld-c em {
	position: relative;
	z-index: 1;
	width: fit-content;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(12, 18, 14, 0.55);
}
.feld em, .pin em {
	display: block;
	margin-top: 2px;
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
}
.feld.is-frei { background: rgba(23, 138, 50, 0.38); }
.feld.is-belegt { background: rgba(211, 84, 0, 0.48); }
.feld.is-gesperrt { background: rgba(143, 29, 29, 0.62); }
.feld-a.is-frei, .feld-b.is-frei, .feld-c.is-frei,
.feld-a.is-belegt, .feld-b.is-belegt, .feld-c.is-belegt,
.feld-a.is-gesperrt, .feld-b.is-gesperrt, .feld-c.is-gesperrt { background: transparent; }
.feld.is-offen { background: rgba(23, 138, 50, 0.72); }
.feld.is-zu { background: rgba(20, 24, 28, 0.62); }
.feld.is-active, .pin.is-active { outline: 3px solid #fff; outline-offset: 1px; }
.feld-a { left: 56.05%; top: 20.07%; width: 26.66%; height: 52.3%; }
.feld-b { left: 15.47%; top: 44.2%; width: 37.57%; height: 28.36%; }
.feld-c { left: 55.8%; top: 74.4%; width: 30.94%; height: 20.63%; }
.feld-heim { left: 50.5%; top: 2.4%; width: 23%; min-height: 12.5%; }
.pin {
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #17191c;
	box-shadow: 0 0 0 3px #fff;
	font-weight: 800;
	padding: 0;
}
.feld strong, .feld em { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.pin-grill { left: 43%; top: 11%; }
.pin-park { left: 84%; top: 7%; }
.anlage-panel {
	background: #fff;
	border-radius: 18px;
	padding: 20px 20px 12px;
	box-shadow: 0 16px 40px rgba(16, 24, 18, 0.08);
}
.anlage-panel h3 { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin: 16px 0 6px; }
.anlage-panel h2 {
	font-family: Oswald, "Arial Narrow", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 8px;
	font-size: 28px;
}
.anlage-lead { margin: 0 0 8px; font-weight: 700; }
.anlage-note, .anlage-leer { color: #526056; margin: 0 0 12px; }
.anlage-tag {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 8px;
	padding: 8px 0;
	border-top: 1px solid #e6ece7;
	font-size: 14px;
}
.anlage-tag.is-heute { background: #edfaf0; margin: 0 -10px; padding: 8px 10px; border-radius: 8px; }
.anlage-legende {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 14px;
	color: #3e4a42;
	font-size: 13px;
	font-weight: 700;
}
.anlage-legende i {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin-right: 6px;
}
.dot-frei { background: #178a32; }
.dot-belegt { background: #d35400; }
.dot-gesperrt { background: #8f1d1d; }
.sperre { background: #f8f1f1; border-radius: 12px; padding: 12px; margin: 0 0 14px; }
.sperre-check { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 0; }
.sperre-felder { margin-top: 8px; }
.sperre-felder[hidden] { display: none; }
@media (max-width: 860px) {
	.anlage-layout { grid-template-columns: 1fr; }
	.feld strong { font-size: 11px; }
	.feld em { font-size: 10px; }
	.feld { padding: 6px; }
}

.anlage-admin { background: #f3f5f3; color: #142016; font-family: Archivo, "Segoe UI", sans-serif; margin: 0; }
.anlage-admin-bar {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	padding: 16px 22px;
	background: #17191c;
	color: #fff;
}
.anlage-admin-bar a { color: #fff; font-weight: 700; text-decoration: none; }
.anlage-admin main { width: min(980px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 72px; }
.anlage-admin h1 { font-family: Oswald, sans-serif; text-transform: uppercase; margin: 0 0 8px; }
#anlage-admin .anlage-kurz { margin: 0 0 10px; max-width: 78ch; color: #3e4a42; font-size: 14px; }
#anlage-admin .anlage-plaetze { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; margin-bottom: 12px; }
#anlage-admin .anlage-card {
	background: #fff;
	border: 1px solid #e3e8e4;
	border-radius: 14px;
	padding: 12px;
	margin: 0 0 12px;
	min-width: 0;
}
#anlage-admin .anlage-plaetze .anlage-card { margin: 0; }
#anlage-admin .anlage-titel { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#anlage-admin .anlage-card h2 { margin: 0; font-size: 18px; }
#anlage-admin .anlage-card h3 { margin: 12px 0 6px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
#anlage-admin label.feld-label,
#anlage-admin .slot label,
#anlage-admin .sperre-felder label {
	display: block;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
}
#anlage-admin input[type="text"],
#anlage-admin input[type="time"],
#anlage-admin input[type="datetime-local"],
#anlage-admin select {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 4px;
	border: 1px solid #cfd8d2;
	border-radius: 10px;
	padding: 10px 12px;
	font: inherit;
	font-weight: 500;
	background: #fff;
	min-height: 38px;
	padding: 7px 10px;
}
#anlage-admin .sperre { margin: 0 0 8px; }
#anlage-admin .sperre.is-an { background: #fdecec; border-radius: 12px; padding: 8px; }
#anlage-admin .sperre-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	margin: 0;
	padding: 0 8px;
	border-radius: 999px;
	background: #f3f5f3;
	cursor: pointer;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
}
#anlage-admin .sperre.is-an .sperre-check { background: #fff; }
#anlage-admin .sperre-check input {
	width: 22px;
	height: 22px;
	min-width: 22px;
	margin: 0;
	display: inline-block;
	flex: 0 0 auto;
}
#anlage-admin .sperre-felder { margin: 0 0 10px; }
#anlage-admin .sperre-felder[hidden] { display: none; }
#anlage-admin .sperre-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
#anlage-admin .slot {
	display: grid;
	gap: 8px;
	margin-top: 10px;
	padding: 12px;
	border: 1px solid #e3e8e4;
	border-radius: 14px;
	background: #f7faf8;
}
#anlage-admin .slot-zeit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#anlage-admin .slot-zeit label:last-child:nth-child(3) { grid-column: 1 / -1; }
#anlage-admin .slot.ohne-modus .slot-zeit { grid-template-columns: 1fr 1fr; }
#anlage-admin .tage { display: flex; flex-wrap: wrap; gap: 6px; }
#anlage-admin .tage label {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 32px;
	margin: 0;
	padding: 0 8px;
	border: 1px solid #cfd8d2;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
#anlage-admin .tage input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
#anlage-admin .tage label:has(input:checked) { background: #142016; color: #fff; border-color: #142016; }
#anlage-admin .anlage-actions { margin-top: 10px; }
#anlage-admin .anlage-actions button,
#anlage-admin [data-remove] {
	border: 1px dashed #b7c4bb;
	border-radius: 12px;
	background: #fff;
	padding: 10px 14px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
#anlage-admin [data-remove] { border-style: solid; color: #8f1d1d; justify-self: start; }
#anlage-admin .anlage-savebar {
	position: sticky;
	bottom: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 0 4px;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff 28%);
}
#anlage-admin .anlage-save {
	border: 0;
	border-radius: 999px;
	background: #178a32;
	color: #fff;
	padding: 12px 22px;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}
#anlage-admin .anlage-msg { background: #edfaf0; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
#anlage-admin .anlage-msg.is-error { background: #fff1e8; }
@media (max-width: 1180px) {
	#anlage-admin .anlage-plaetze { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	#anlage-admin .anlage-plaetze { grid-template-columns: 1fr; }
	#anlage-admin .anlage-titel { align-items: flex-start; }
	#anlage-admin input[type="text"],
	#anlage-admin input[type="time"],
	#anlage-admin input[type="datetime-local"],
	#anlage-admin select { min-height: 44px; font-size: 16px; }
	#anlage-admin .tage label { min-width: 44px; min-height: 40px; }
	#anlage-admin .sperre-grid,
	#anlage-admin .slot-zeit,
	#anlage-admin .slot.ohne-modus .slot-zeit { grid-template-columns: 1fr; }
	#anlage-admin .slot-zeit label:last-child:nth-child(3) { grid-column: auto; }
	#anlage-admin .anlage-savebar {
		position: static;
		align-items: stretch;
		padding-top: 4px;
		background: transparent;
	}
	#anlage-admin .anlage-save { width: 100%; }
}
