/* verwaltung-neu.css
 * Nette Toilette - Verwaltung, optischer Neuaufbau
 * 2026-09-07
 *
 * Ersetzt oertcheneditor.css. Die Klassen- und ID-Namen sind unveraendert,
 * damit verwaltung-neu.src.js weiterhin alle Elemente findet.
 */

/* ------------------------------------------------------------------ *
 * Design-Tokens
 * ------------------------------------------------------------------ */

:root
{
	--bg:            #f6f7f9;
	--surface:       #ffffff;
	--surface-sunk:  #fbfcfd;
	--text:          #1a1d21;
	--text-muted:    #6b7280;
	--text-faint:    #9aa1ac;
	--line:          #e4e7ec;
	--line-strong:   #d3d8e0;

	--accent:        #fec206;
	--accent-soft:   #fff8e1;
	--accent-line:   #f0b400;

	--danger:        #dc2626;
	--danger-soft:   #fef2f2;

	--radius-sm:  8px;
	--radius:     12px;
	--radius-lg:  16px;

	--shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
	--shadow-sm: 0 2px 6px rgba(16, 24, 40, .07);
	--shadow-md: 0 8px 24px rgba(16, 24, 40, .10);
	--shadow-xl: 0 24px 64px rgba(16, 24, 40, .28);

	--header-h: 60px;
	--aside-w:  380px;

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
	        "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------------ *
 * Grundlagen
 * ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body
{
	margin: 0;
	padding: 0;
	font: 14px/1.5 var(--font);
	color: var(--text);
	background: var(--bg);
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, li, figure { margin: 0; padding: 0; }
li { list-style: none; }

a { color: #9a7500; text-decoration: none; }
a:hover { color: var(--text); text-decoration: underline; }

::selection { background: var(--accent); color: var(--text); }

:focus-visible
{
	outline: 2px solid var(--accent-line);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ *
 * Grundgeruest
 * ------------------------------------------------------------------ */

#container
{
	height: 100%;
	display: flex;
	flex-direction: column;
}

#workspace
{
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
}

/* ------------------------------------------------------------------ *
 * Kopfzeile
 * ------------------------------------------------------------------ */

#header
{
	flex: 0 0 var(--header-h);
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 16px;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	position: relative;
	z-index: 40;
}

#header img#headerlogo
{
	display: block;
	width: 30px;
	height: 30px;
	object-fit: contain;
	border-radius: var(--radius-sm);
	background: var(--accent);
	padding: 3px;
	flex: 0 0 auto;
}

#header h1
{
	font-size: 15px;
	font-weight: 650;
	letter-spacing: -0.01em;
	white-space: nowrap;
	flex: 0 0 auto;
}

#header h1 span { display: inline; }

#ortsanzeige
{
	font-size: 13px;
	color: var(--text-muted);
	white-space: nowrap;
	padding-left: 14px;
	margin-left: -2px;
	border-left: 1px solid var(--line);
	flex: 0 0 auto;
}

#ortsanzeige:empty { display: none; }

#ortsanzeige strong
{
	color: var(--text);
	font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * Menueleiste  (#toilettennavi > ul > li > ul > li)
 * Struktur und Beschriftungen sind fix: das JS verteilt die Klicks
 * ueber den Textinhalt dieser Eintraege.
 * ------------------------------------------------------------------ */

/* Die Menuepunkte sind so hoch wie die Kopfzeile, damit das Untermenue
 * direkt an der Unterkante ansetzt. Zwischen Punkt und Untermenue darf
 * keine Luecke bleiben - sonst verliert der Zeiger auf dem Weg nach
 * unten den Hover-Zustand und das Menue klappt wieder zu. */

#toilettennavi
{
	flex: 0 0 auto;
	align-self: stretch;
	display: flex;
	position: relative;
	z-index: 45;
}

#toilettennavi ul#toolnavigation
{
	display: flex;
	align-items: stretch;
	height: 100%;
}

#toilettennavi ul#toolnavigation > li
{
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 550;
	color: var(--text-muted);
	cursor: default;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: background .12s ease, color .12s ease, border-color .12s ease;
}

#toilettennavi ul#toolnavigation > li:hover
{
	background: var(--bg);
	color: var(--text);
	border-bottom-color: var(--accent);
}

#toilettennavi ul#toolnavigation > li > ul
{
	display: none;
	position: absolute;
	left: 0;
	top: 100%;          /* lueckenlos an der Unterkante */
	min-width: 260px;
	padding: 6px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 0;
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow-md);
	z-index: 50;
}

/* offen halten, solange der Zeiger auf dem Punkt oder im Untermenue ist */
#toilettennavi ul#toolnavigation > li:hover > ul,
#toilettennavi ul#toolnavigation > li > ul:hover { display: block; }

#toilettennavi ul#toolnavigation > li > ul > li
{
	display: block;
	padding: 9px 12px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 450;
	color: var(--text);
	white-space: nowrap;
	cursor: pointer;
	transition: background .12s ease;
}

#toilettennavi ul#toolnavigation > li > ul > li:hover { background: var(--accent-soft); }
#toilettennavi ul#toolnavigation > li > ul > li:active { background: var(--accent); }

#toilettennavi li.separator
{
	margin-top: 5px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

/* deaktivierter Eintrag - das JS prueft .low und bricht den Klick ab */
#toilettennavi li.low,
#toilettennavi li.low:hover
{
	color: var(--text-faint);
	background: transparent;
	cursor: default;
}

/* ungespeicherte Aenderungen */
#toilettennavi li.hot
{
	color: var(--danger);
	font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * Werkzeuge  (#toilettentools > div)  - rechts in der Kopfzeile
 * ------------------------------------------------------------------ */

#toilettentools
{
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

#toilettentools > div
{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 15px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface);
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	transition: background .12s ease, border-color .12s ease,
	            box-shadow .12s ease, transform .06s ease;
}

#toilettentools > div:hover
{
	background: var(--surface-sunk);
	border-color: var(--line-strong);
	box-shadow: var(--shadow-xs);
}

#toilettentools > div:active { transform: translateY(1px); }

/* die alten Sprite-Regeln sind ersetzt: Icon kommt als Pseudo-Element */
#toilettentools > div::before
{
	content: "";
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

#toilettentools > div span
{
	display: inline;
	position: static;
	width: auto;
	padding: 0;
	font: inherit;
	line-height: normal;
	text-align: left;
	color: inherit;
}

/* Hauptaktion: deutlich sichtbar, dunkel gefuellt */
#toilettentools > div.toolNEU
{
	background: var(--text);
	border-color: var(--text);
	color: #fff;
}

#toilettentools > div.toolNEU:hover
{
	background: #2c3239;
	border-color: #2c3239;
	box-shadow: var(--shadow-sm);
}

#toilettentools > div.toolNEU::before
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

#toilettentools > div.toolNEU.low,
#toilettentools > div.toolNEU.low:hover
{
	background: var(--text);
	border-color: var(--text);
}

#toilettentools > div.toolSPEICHERN
{
	background: var(--accent);
	border-color: var(--accent-line);
	color: var(--text);
}

#toilettentools > div.toolSPEICHERN:hover
{
	background: #ffcd2b;
	box-shadow: var(--shadow-sm);
}

#toilettentools > div.toolSPEICHERN::before
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1d21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8M7 3v5h8'/%3E%3C/svg%3E");
}

#toilettentools > div.toolLOESCHEN::before
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6'/%3E%3C/svg%3E");
}

#toilettentools > div.toolSORTIEREN::before
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1d21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 8l2-2 2 2M3 16l2 2 2-2'/%3E%3C/svg%3E");
}

#toilettentools > div.low,
#toilettentools > div.low:hover
{
	opacity: .42;
	cursor: default;
	box-shadow: none;
	background: var(--surface);
	transform: none;
}

/* Speichern-Button hebt sich hervor, sobald es etwas zu speichern gibt */
#toilettentools > div.toolSPEICHERN:not(.low)
{
	box-shadow: 0 0 0 3px rgba(254, 194, 6, .22);
}

/* ------------------------------------------------------------------ *
 * Seitenspalte
 * ------------------------------------------------------------------ */

#editierbereich
{
	flex: 0 0 var(--aside-w);
	width: var(--aside-w);
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	border-right: 1px solid var(--line);
}

#editierbereich .in
{
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

#toilettenliste
{
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 12px;
	scrollbar-width: thin;
}

#toilettenliste::-webkit-scrollbar { width: 10px; }
#toilettenliste::-webkit-scrollbar-thumb
{
	background: #d7dbe2;
	border: 3px solid var(--bg);
	border-radius: 999px;
}

/* Begruessung / leerer Zustand */
div.listentext
{
	margin: 8px 4px;
	padding: 22px 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xs);
}

div.listentext h2
{
	font-size: 16px;
	font-weight: 650;
	margin-bottom: 8px;
}

div.listentext p
{
	font-size: 13px;
	line-height: 1.6;
	color: var(--text-muted);
}

div.listentext a
{
	font-weight: 600;
	color: #9a7500;
	border-bottom: 2px solid var(--accent);
	text-decoration: none;
}

div.listentext a:hover { background: var(--accent-soft); }

/* ------------------------------------------------------------------ *
 * Listeneintrag (eine Toilette)
 * ------------------------------------------------------------------ */

div.listenelement
{
	position: relative;
	display: block;
	margin: 0 0 10px 0;
	padding: 12px 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xs);
	transition: border-color .14s ease, box-shadow .14s ease;
}

div.listenelement.hover
{
	border-color: var(--line-strong);
	box-shadow: var(--shadow-sm);
}

div.listenelement.active
{
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(254, 194, 6, .25), var(--shadow-sm);
}

div.listenelement .le-kopf
{
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

div.listenelement .le-rang
{
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding-top: 2px;
	width: 30px;
}

div.listenelement .le-felder
{
	flex: 1 1 auto;
	min-width: 0;
}

/* Rangabzeichen */
div.listenelement div.order
{
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--text);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: center;
	cursor: default;
	transition: background .14s ease, color .14s ease;
}

div.listenelement.active div.order
{
	background: var(--accent);
	color: var(--text);
}

/* Sortierpfeile - werden vom JS per .toggle() ein-/ausgeblendet */
div.listenelement div.orderButton { display: none; }

div.listenelement div.orderUp,
div.listenelement div.orderDown
{
	width: 26px;
	height: 16px;
	border-radius: 5px;
	background-color: var(--bg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 11px 11px;
	cursor: pointer;
	transition: background-color .12s ease;
}

div.listenelement div.orderUp
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 15l7-7 7 7'/%3E%3C/svg%3E");
}

div.listenelement div.orderDown
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

div.listenelement div.orderUp:hover,
div.listenelement div.orderDown:hover { background-color: var(--accent-soft); }

/* Eingabefelder */
div.listenelement label
{
	display: block;
	margin: 0 0 4px 2px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--text-faint);
}

div.listenelement input[type=text]
{
	display: block;
	width: 100%;
	height: 34px;
	margin-bottom: 10px;
	padding: 0 10px;
	font: 14px/1.4 var(--font);
	color: var(--text);
	background: var(--surface-sunk);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

div.listenelement input[type=text]:hover { border-color: var(--line-strong); }

div.listenelement input[type=text]:focus
{
	outline: none;
	background: var(--surface);
	border-color: var(--accent-line);
	box-shadow: 0 0 0 3px rgba(254, 194, 6, .18);
}

div.listenelement .le-abschnitt
{
	margin-top: 2px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
}

/* Ausstattung als Chips. Zustand steckt in .is-on / .is-off */
div.listenelement div.ausstattung-zeile
{
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

div.listenelement div.ausstattungsicon
{
	float: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	margin: 0;
	padding: 0 11px 0 9px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 550;
	color: var(--text-faint);
	cursor: pointer;
	user-select: none;
	transition: background .12s ease, border-color .12s ease, color .12s ease;
}

div.listenelement div.ausstattungsicon label
{
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
	cursor: pointer;
}

div.listenelement div.ausstattungsicon svg
{
	display: block;
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Checkbox bleibt im DOM (das JS liest und setzt sie), nur unsichtbar */
div.listenelement div.ausstattungsicon input[type=checkbox]
{
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

div.listenelement div.ausstattungsicon.hover { border-color: var(--line-strong); }

div.listenelement div.ausstattungsicon.is-on
{
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--text);
}

div.listenelement div.ausstattungsicon.is-on.hover { background: #fff3cc; }

/* Oeffnungszeiten */
div.listenelement span.oeffnungszeiten
{
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--text-muted);
	white-space: pre-line;
}

div.listenelement span.oeffnungszeiten em
{
	color: var(--text-faint);
	font-style: normal;
}

div.listenelement a.oeffnungszeitenlink
{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 11px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-size: 12px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	transition: background .12s ease, border-color .12s ease;
}

div.listenelement a.oeffnungszeitenlink::before
{
	content: "";
	width: 14px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") no-repeat center / contain;
}

div.listenelement a.oeffnungszeitenlink:hover
{
	background: var(--accent-soft);
	border-color: var(--accent);
	text-decoration: none;
}

div.listenelement div.hiddeninputs
{
	margin-top: 10px;
	padding: 10px;
	background: var(--surface-sunk);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-sm);
	font-size: 12px;
	color: var(--text-muted);
}

div.listenelement div.hiddeninputs input[type=text]
{
	display: inline-block;
	height: 28px;
	margin: 3px 0;
	font-size: 12px;
}

/* ------------------------------------------------------------------ *
 * Karte
 * ------------------------------------------------------------------ */

#kartenbereich
{
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
	padding: 0;
	background: #e8eaed;
}

#kartenbereich .in
{
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

#map_canvas
{
	width: 100%;
	height: 100%;
	background: #e8eaed;
}

/* ------------------------------------------------------------------ *
 * Overlay und Dialoge
 * ------------------------------------------------------------------ */

#overlay
{
	position: fixed !important;
	left: 0 !important;
	top: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: rgba(16, 24, 40, .55) !important;
	opacity: 1 !important;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	z-index: 100 !important;
}

div.webcodeeingabe,
div.neueToiletteEingabe,
div.oeffnungszeiteneditor,
div.progressBar
{
	position: fixed !important;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%);
	width: auto;
	height: auto;
	background: var(--surface);
	border: 0;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xl);
	z-index: 110;
	overflow: hidden;
}

div.webcodeeingabe { width: 380px; }
div.neueToiletteEingabe { width: 460px; max-height: 88vh; overflow-y: auto; }
div.progressBar { width: 380px; }

div.oeffnungszeiteneditor
{
	width: min(940px, 94vw);
	max-height: 88vh;
	overflow-y: auto;
}

/* Dialog-Innenleben */
div.webcodeeingabe .introtext,
div.neueToiletteEingabe .introtext
{
	margin: 0;
	padding: 22px 24px 6px 24px;
	font-size: 15px;
	font-weight: 650;
	color: var(--text);
}

div.webcodeeingabe form,
div.neueToiletteEingabe form
{
	margin: 0;
	padding: 10px 24px 22px 24px;
}

div.neueToiletteEingabe form.form1 { padding-bottom: 6px; }

div.webcodeeingabe .infotext,
div.neueToiletteEingabe .infotext,
div.neueToiletteEingabe .infotext2
{
	margin: 10px 0 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-muted);
	min-height: 1.2em;
}

div.webcodeeingabe input[type=text],
div.neueToiletteEingabe input[type=text]
{
	width: 100%;
	height: 44px;
	padding: 0 14px;
	font: 15px/1.4 var(--font);
	color: var(--text);
	background: var(--surface-sunk);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

div.webcodeeingabe input[type=text]
{
	text-align: center;
	font-size: 20px;
	font-weight: 650;
	letter-spacing: .18em;
	text-transform: uppercase;
}

div.webcodeeingabe input[type=text]:focus,
div.neueToiletteEingabe input[type=text]:focus
{
	outline: none;
	background: var(--surface);
	border-color: var(--accent-line);
	box-shadow: 0 0 0 3px rgba(254, 194, 6, .18);
}

div.neueToiletteEingabe input[type=text] { margin-bottom: 10px; }

/* Schaltflaechen in Dialogen */
div.webcodeeingabe input[type=button],
div.neueToiletteEingabe input[type=button],
div.oeffnungszeiteneditor input[type=button]
{
	height: 38px;
	padding: 0 16px;
	font: 600 13px/1 var(--font);
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	cursor: pointer;
	transition: background .12s ease, border-color .12s ease;
}

div.webcodeeingabe input[type=button]:hover,
div.neueToiletteEingabe input[type=button]:hover,
div.oeffnungszeiteneditor input[type=button]:hover
{
	background: var(--surface-sunk);
	border-color: var(--line-strong);
}

/* die jeweils bestaetigende Schaltflaeche */
div.webcodeeingabe input[name=submit],
div.neueToiletteEingabe input[name=submit],
div.neueToiletteEingabe input[name=weiter],
div.oeffnungszeiteneditor input[name=submit]
{
	background: var(--accent);
	border-color: var(--accent-line);
}

div.webcodeeingabe input[name=submit]:hover,
div.neueToiletteEingabe input[name=submit]:hover,
div.neueToiletteEingabe input[name=weiter]:hover,
div.oeffnungszeiteneditor input[name=submit]:hover { background: #ffcd2b; }

div.neueToiletteEingabe .eingabetextwdh
{
	margin: 0 24px;
	padding: 12px 14px;
	background: var(--accent-soft);
	border-radius: var(--radius-sm);
	font-size: 13px;
	line-height: 1.5;
}

div.neueToiletteEingabe a.geocodedLink
{
	display: block;
	margin: 6px 0;
	padding: 10px 12px;
	background: var(--surface-sunk);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-size: 13px;
	color: var(--text);
	text-decoration: none;
}

div.neueToiletteEingabe a.geocodedLink:hover
{
	background: var(--accent-soft);
	border-color: var(--accent);
	text-decoration: none;
}

/* Oeffnungszeiten-Editor */
div.oeffnungszeiteneditor h2
{
	font-size: 16px;
	font-weight: 650;
}

div.oeffnungszeiteneditor > div:first-child
{
	margin: 0 !important;
	padding: 20px 24px 14px 24px;
	border-bottom: 1px solid var(--line);
}

div.oeffnungszeiteneditor table
{
	width: 100%;
	border-collapse: collapse;
	border-top: 0;
}

div.oeffnungszeiteneditor table td
{
	padding: 9px 12px;
	margin: 0;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
	font-size: 13px;
	vertical-align: middle;
}

div.oeffnungszeiteneditor table tr:hover td { background: var(--surface-sunk); }
div.oeffnungszeiteneditor table tr:last-child td { border-bottom: 0; padding: 16px 24px; }

div.oeffnungszeiteneditor table td:first-child { padding-left: 24px; }
div.oeffnungszeiteneditor table td:last-child { padding-right: 24px; }

div.oeffnungszeiteneditor label
{
	font-size: 13px;
	font-weight: 550;
	cursor: pointer;
}

div.oeffnungszeiteneditor input[type=checkbox]
{
	width: 16px;
	height: 16px;
	accent-color: var(--accent-line);
	vertical-align: middle;
	cursor: pointer;
}

div.oeffnungszeiteneditor .timeselectbox
{
	min-width: 4.5em;
	width: 6.4em;
	height: 32px;
	padding: 0 6px;
	font: 13px/1 var(--font);
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: 7px;
	cursor: pointer;
}

div.oeffnungszeiteneditor .timeselectbox:focus
{
	outline: none;
	border-color: var(--accent-line);
	box-shadow: 0 0 0 3px rgba(254, 194, 6, .18);
}

div.oeffnungszeiteneditor input[type=text]
{
	height: 32px;
	padding: 0 10px;
	font: 13px/1.4 var(--font);
	border: 1px solid var(--line-strong);
	border-radius: 7px;
	background: var(--surface);
}

/* Fortschritt */
div.progressBar .statustext
{
	margin: 0;
	padding: 24px 24px 4px 24px;
	font-size: 14px;
	font-weight: 550;
	text-align: center;
	color: var(--text);
}

div.progressBar .statuswrap
{
	display: block;
	margin: 16px 24px 26px 24px;
	padding: 0;
	height: 8px;
	background: var(--line);
	border-radius: 999px;
	overflow: hidden;
}

div.progressBar .statusbar
{
	height: 8px;
	width: 1%;
	background: var(--accent);
	border-radius: 999px;
	transition: width .25s ease;
}

/* ------------------------------------------------------------------ *
 * Speichern-Erinnerung
 * ------------------------------------------------------------------ */

div#speichernErinnerung
{
	position: fixed;
	left: calc(var(--aside-w) + 20px);
	bottom: 20px;
	width: 22em;
	padding: 14px 16px;
	background: var(--text);
	border: 0;
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	color: #fff;
	z-index: 60;
}

div#speichernErinnerung .pfeilchen { display: none; }

div#speichernErinnerung .text
{
	margin: 0 24px 0 0;
	font-size: 13px;
	line-height: 1.5;
}

div#speichernErinnerung .note
{
	margin: 10px 0 0 0;
	color: #c3c8d0;
	font-size: 12px;
}

div#speichernErinnerung .note input
{
	margin: 0 6px 0 0;
	vertical-align: middle;
	accent-color: var(--accent);
}

div#speichernErinnerung .kreuzchen
{
	position: absolute;
	right: 10px;
	top: 10px;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 6px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 13px;
	line-height: 22px;
	text-align: center;
	cursor: pointer;
}

div#speichernErinnerung .kreuzchen:hover { background: rgba(255, 255, 255, .24); }

/* ------------------------------------------------------------------ *
 * Sonstiges
 * ------------------------------------------------------------------ */

div#noscript
{
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	padding: 12px;
	background: var(--danger);
	color: #fff;
	font-weight: 600;
	text-align: center;
	z-index: 200;
}

#log
{
	font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	padding: 8px;
}

/* ------------------------------------------------------------------ *
 * Kontoseiten: Anmeldung, Registrierung, Stammdaten
 * (login-neu.php, konto-neu.php)
 * ------------------------------------------------------------------ */

body.seite-konto
{
	height: auto;
	overflow: auto;
	background: var(--bg);
}

body.seite-konto #header { position: sticky; top: 0; }

#kopfkonto
{
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding-left: 12px;
	margin-left: 4px;
	border-left: 1px solid var(--line);
}

a.kopf-knopf,
button.kopf-knopf
{
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 15px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface);
	color: var(--text);
	font: 600 13px/1 var(--font);
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
}

a.kopf-knopf:hover,
button.kopf-knopf:hover
{
	background: var(--surface-sunk);
	text-decoration: none;
}

.kopf-knopf-leise { color: var(--text-muted); }

/* Hinweis auf wartende Registrierungen */
.kopf-knopf-hinweis
{
	background: var(--accent);
	border-color: var(--accent-line);
	color: var(--text);
}

.kopf-knopf-hinweis:hover { background: #ffcd2b; }

.konto-buehne
{
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
	gap: 16px;
}

.konto-buehne-seite
{
	min-height: 0;
	justify-content: flex-start;
	padding-top: 24px;
}

.konto-karte
{
	width: 100%;
	max-width: 520px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow-md);
	overflow: hidden;
}

.konto-karte-breit { max-width: 780px; }

.konto-kopf
{
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 28px;
	background: var(--text);
	color: #fff;
}

.konto-logo
{
	width: 40px;
	height: 40px;
	object-fit: contain;
	background: var(--accent);
	border-radius: 10px;
	padding: 4px;
	flex: 0 0 auto;
}

.konto-titel
{
	font-size: 16px;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.konto-untertitel
{
	font-size: 13px;
	color: #b9bfc9;
	margin-top: 2px;
}

/* Reiter */
.konto-reiter
{
	display: flex;
	border-bottom: 1px solid var(--line);
	background: var(--surface-sunk);
}

.konto-reiter .reiter
{
	flex: 1 1 auto;
	padding: 14px 10px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	font: 600 13px/1.2 var(--font);
	color: var(--text-muted);
	cursor: pointer;
	transition: color .12s ease, border-color .12s ease, background .12s ease;
}

.konto-reiter .reiter:hover { color: var(--text); background: var(--surface); }

.konto-reiter .reiter.aktiv
{
	color: var(--text);
	background: var(--surface);
	border-bottom-color: var(--accent);
}

.konto-bereich { display: none; }
.konto-bereich.aktiv { display: block; }

.konto-inhalt { padding: 26px 28px; }

.konto-inhalt-abgesetzt { border-top: 1px solid var(--line); }

.abschnitt-titel
{
	font-size: 15px;
	font-weight: 650;
	margin-bottom: 14px;
}

/* Felder */
.feldgruppe { margin-bottom: 22px; }

.feldgruppe-titel
{
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
}

.feld { margin-bottom: 14px; }

.feldzeile
{
	display: flex;
	gap: 14px;
}

.feldzeile .feld { flex: 1 1 0; min-width: 0; }
.feldzeile .feld-schmal { flex: 0 0 120px; }

.konto-formular label
{
	display: block;
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
}

.konto-formular .pflicht { color: var(--danger); font-weight: 700; }

.konto-formular input[type=text],
.konto-formular input[type=email],
.konto-formular input[type=password],
.konto-formular textarea
{
	display: block;
	width: 100%;
	padding: 10px 12px;
	font: 14px/1.45 var(--font);
	color: var(--text);
	background: var(--surface-sunk);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.konto-formular textarea { resize: vertical; min-height: 44px; }

.konto-formular input:focus,
.konto-formular textarea:focus
{
	outline: none;
	background: var(--surface);
	border-color: var(--accent-line);
	box-shadow: 0 0 0 3px rgba(254, 194, 6, .18);
}

.konto-formular .webcode-eingabe
{
	text-align: center;
	font-size: 22px;
	font-weight: 650;
	letter-spacing: .22em;
	text-transform: uppercase;
	padding: 12px;
}

.feldnotiz
{
	margin-top: 5px;
	font-size: 12px;
	color: var(--text-faint);
}

/* Hinweise */
.hinweis
{
	margin-bottom: 18px;
	padding: 14px 16px;
	background: var(--surface-sunk);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 13px;
	line-height: 1.55;
	color: var(--text-muted);
}

.hinweis strong { color: var(--text); }

.hinweis-wichtig
{
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--text);
}

.hinweis-intern
{
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.hinweis-intern .hinweis-symbol
{
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Meldungen */
.meldung
{
	margin: 0 0 14px 0;
	font-size: 13px;
	line-height: 1.5;
}

.meldung:empty { display: none; }

.meldung-fehler
{
	padding: 11px 13px;
	background: var(--danger-soft);
	border: 1px solid #f5c2c2;
	border-radius: var(--radius-sm);
	color: #a51b1b;
}

.meldung-ok
{
	padding: 11px 13px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: var(--radius-sm);
	color: #166534;
}

/* Schaltflaechen */
.konto-aktionen
{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 4px;
}

.knopf
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 20px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface);
	color: var(--text);
	font: 650 14px/1 var(--font);
	cursor: pointer;
	transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.knopf:hover { background: var(--surface-sunk); }

.knopf-primaer
{
	background: var(--accent);
	border-color: var(--accent-line);
	color: var(--text);
}

.knopf-primaer:hover { background: #ffcd2b; box-shadow: var(--shadow-sm); }

.knopf-leise { color: var(--text-muted); }

.knopf-breit { width: 100%; }

.knopf-wartet { opacity: .55; cursor: default; }

.konto-fussnote
{
	margin-top: 14px;
	font-size: 12px;
	line-height: 1.55;
	color: var(--text-faint);
	text-align: center;
}

.konto-fuss
{
	font-size: 12px;
	color: var(--text-faint);
}

/* Tabelle auf der Kontoseite */
.konto-tabelle
{
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.konto-tabelle th,
.konto-tabelle td
{
	padding: 10px 0;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}

.konto-tabelle th
{
	width: 190px;
	font-weight: 600;
	color: var(--text-muted);
}

.konto-tabelle tr:last-child th,
.konto-tabelle tr:last-child td { border-bottom: 0; }

.konto-tabelle code
{
	padding: 3px 8px;
	background: var(--accent-soft);
	border: 1px solid var(--accent);
	border-radius: 6px;
	font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .08em;
}

.konto-tabelle .feldnotiz { display: block; margin-top: 4px; }

/* Passwort-vergessen-Formular startet eingeklappt */
#formVergessen { display: none; }

/* ------------------------------------------------------------------ *
 * Karte zum Einbetten (karte-einbetten.php)
 * ------------------------------------------------------------------ */

.einbett-zeile
{
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.einbett-zeile .feld { flex: 0 0 auto; margin-bottom: 14px; }

.einbett-auswahl
{
	height: 40px;
	min-width: 170px;
	padding: 0 10px;
	font: 14px/1.4 var(--font);
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	cursor: pointer;
}

.einbett-auswahl:focus
{
	outline: none;
	border-color: var(--accent-line);
	box-shadow: 0 0 0 3px rgba(254, 194, 6, .18);
}

.einbett-code
{
	display: block;
	width: 100%;
	padding: 12px 14px;
	font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--text);
	background: var(--surface-sunk);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	resize: vertical;
	white-space: pre;
	overflow-x: auto;
}

.einbett-code:focus
{
	outline: none;
	border-color: var(--accent-line);
	box-shadow: 0 0 0 3px rgba(254, 194, 6, .18);
}

.konto-aktionen-links { justify-content: flex-start; margin-bottom: 12px; }

.einbett-vorschau
{
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: #e8eaed;
	line-height: 0;
}

.einbett-vorschau iframe { display: block; width: 100%; border: 0; }

/* ------------------------------------------------------------------ *
 * Kontoverwaltung der Redaktion (admin-konten.php)
 * ------------------------------------------------------------------ */

.admin-bereich
{
	width: 100%;
	max-width: 1000px;
}

.admin-kopfzeile
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.filterleiste
{
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.filterleiste .filter
{
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 36px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	font: 600 13px/1 var(--font);
	color: var(--text-muted);
	cursor: pointer;
	transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.filterleiste .filter:hover { background: var(--surface-sunk); color: var(--text); }

.filterleiste .filter.aktiv
{
	background: var(--text);
	border-color: var(--text);
	color: #fff;
}

.filterleiste .anzahl
{
	display: inline-block;
	min-width: 20px;
	padding: 2px 6px;
	background: var(--bg);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	color: var(--text-muted);
	text-align: center;
}

.filterleiste .filter.aktiv .anzahl
{
	background: rgba(255, 255, 255, .18);
	color: #fff;
}

/* Redaktionszugaenge sind eine eigene Art Konto und stehen abgesetzt */
.filterleiste .filter-abgesetzt
{
	margin-left: 10px;
	padding-left: 16px;
	border-left: 1px solid var(--line-strong);
	border-radius: 999px;
}

#globalMeldung { max-width: 1000px; }

.konten-liste { display: block; }

.laedt,
.leerhinweis
{
	padding: 30px;
	text-align: center;
	color: var(--text-faint);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.konto-eintrag
{
	margin-bottom: 12px;
	padding: 16px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xs);
}

.ke-kopf
{
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.ke-titel
{
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.ke-titel strong { font-size: 15px; font-weight: 650; }

.ke-mail { font-size: 13px; color: var(--text-muted); }
.ke-mail:hover { color: var(--text); }

.abzeichen
{
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	white-space: nowrap;
}

.abzeichen-neu      { background: var(--accent-soft); color: #8a6800; border: 1px solid var(--accent); }
.abzeichen-aktiv    { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.abzeichen-gesperrt { background: var(--danger-soft); color: #a51b1b; border: 1px solid #f5c2c2; }
.abzeichen-redaktion{ background: var(--text); color: #fff; }

.ke-stadt
{
	margin-bottom: 12px;
	padding: 10px 12px;
	background: var(--surface-sunk);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-size: 13px;
}

.ke-stadt-name { font-weight: 650; }
.ke-stadt-wunsch { color: var(--text-muted); }

.ke-stadt code
{
	padding: 2px 7px;
	background: var(--accent-soft);
	border: 1px solid var(--accent);
	border-radius: 5px;
	font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .06em;
}

.ke-warnung
{
	display: inline-block;
	padding: 1px 7px;
	background: var(--danger-soft);
	border-radius: 5px;
	font-size: 11px;
	font-weight: 600;
	color: #a51b1b;
}

.ke-daten
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 6px 18px;
	margin-bottom: 14px;
}

.dz { font-size: 13px; line-height: 1.45; }

.dz-name
{
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.dz-wert { color: var(--text); word-break: break-word; }

.pw-link
{
	width: 100%;
	padding: 6px 8px;
	font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	border: 1px solid var(--line-strong);
	border-radius: 6px;
	background: var(--surface-sunk);
}

/* Wartende Registrierung: Freigabe-Optionen und Zuordnungsvorschlag */
.ke-freigabe
{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.schalter-klein
{
	height: 32px;
	padding: 0 12px;
	font-size: 12.5px;
}

.ke-vorschlag
{
	margin-bottom: 12px;
	padding: 12px;
	background: var(--accent-soft);
	border: 1px solid var(--accent);
	border-radius: var(--radius);
}

.vorschlag-titel
{
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	color: #8a6800;
}

.ke-vorschlag .treffer { background: var(--surface); }

.ke-vorschlag-leer
{
	background: var(--surface-sunk);
	border-color: var(--line);
	font-size: 13px;
	color: var(--text-muted);
}

.ke-aktionen
{
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.knopf-ablehnen
{
	color: #a51b1b;
	border-color: #f5c2c2;
	background: var(--danger-soft);
}

.knopf-ablehnen:hover { background: #fde8e8; border-color: #eda0a0; }

.knopf-klein
{
	height: 34px;
	padding: 0 13px;
	font-size: 12.5px;
	border-radius: 8px;
}

.ke-stadtsuche
{
	display: none;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.ke-stadtsuche .feld { margin-bottom: 10px; }

.ke-stadtsuche input[type=text]
{
	display: block;
	width: 100%;
	padding: 10px 12px;
	font: 14px/1.45 var(--font);
	background: var(--surface-sunk);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
}

.ke-stadtsuche input[type=text]:focus
{
	outline: none;
	background: var(--surface);
	border-color: var(--accent-line);
	box-shadow: 0 0 0 3px rgba(254, 194, 6, .18);
}

.ke-stadtsuche label
{
	display: block;
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
}

.trefferliste
{
	max-height: 260px;
	overflow-y: auto;
	border-radius: var(--radius-sm);
}

.trefferliste .treffer
{
	display: block;
	width: 100%;
	padding: 9px 12px;
	margin-bottom: 4px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	text-align: left;
	cursor: pointer;
	transition: background .12s ease, border-color .12s ease;
}

.trefferliste .treffer:hover
{
	background: var(--accent-soft);
	border-color: var(--accent);
}

.treffer-ort { display: block; font-size: 13px; font-weight: 650; }

.treffer-info
{
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--text-muted);
}

.treffer-info code
{
	font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .06em;
}

.treffer-leer
{
	padding: 12px;
	font-size: 13px;
	color: var(--text-faint);
	text-align: center;
}

/* ------------------------------------------------------------------ *
 * Städteverwaltung (stadtverwaltung/index-neu.php)
 * ------------------------------------------------------------------ */

.stadt-spalte .in { padding: 0; }

.stadt-suche
{
	flex: 0 0 auto;
	padding: 12px;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}

.stadt-suche input
{
	display: block;
	width: 100%;
	height: 38px;
	padding: 0 12px;
	font: 14px/1.4 var(--font);
	background: var(--surface-sunk);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
}

.stadt-suche input:focus
{
	outline: none;
	background: var(--surface);
	border-color: var(--accent-line);
	box-shadow: 0 0 0 3px rgba(254, 194, 6, .18);
}

.stadt-zaehler
{
	margin-top: 7px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.staedte-liste
{
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 10px;
}

.stadt-eintrag
{
	padding: 10px 12px;
	margin-bottom: 6px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
	transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.stadt-eintrag:hover
{
	border-color: var(--line-strong);
	box-shadow: var(--shadow-xs);
}

.stadt-eintrag.aktiv
{
	border-color: var(--accent);
	background: var(--accent-soft);
	box-shadow: 0 0 0 3px rgba(254, 194, 6, .2);
}

.se-name { font-size: 14px; font-weight: 650; }

.se-zeile
{
	margin-top: 2px;
	font-size: 12px;
	color: var(--text-muted);
}

.se-zeile code
{
	font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .06em;
}

.se-abzeichen
{
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
}

.punkt
{
	display: inline-block;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .02em;
}

.punkt-ja    { background: #f0fdf4; color: #166534; }
.punkt-nein  { background: var(--bg); color: var(--text-faint); }
.punkt-konto { background: var(--text); color: #fff; }
.punkt-test  { background: var(--accent-soft); color: #8a6800; border: 1px solid var(--accent); }

/* rechte Seite: Formular oben, Karte unten */
.stadt-inhalt
{
	display: flex;
	flex-direction: column;
	background: var(--bg);
}

.stadt-formular
{
	flex: 0 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 18px 22px;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}

.stadt-leer
{
	padding: 40px 10px;
	text-align: center;
	color: var(--text-faint);
}

.stadt-leer h2 { font-size: 16px; font-weight: 650; margin-bottom: 6px; color: var(--text-muted); }
.stadt-leer p { font-size: 13px; }

.stadt-felder { display: none; }

.stadt-kopf { margin-bottom: 16px; }

.stadt-kopf h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

.stadt-meta
{
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 6px;
	font-size: 12px;
	color: var(--text-muted);
}

.meta-punkt strong { color: var(--text); font-weight: 650; }

.meta-punkt code
{
	padding: 2px 7px;
	background: var(--accent-soft);
	border: 1px solid var(--accent);
	border-radius: 5px;
	font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .08em;
}

.stadt-felder .feld { margin-bottom: 12px; }

.stadt-felder label
{
	display: block;
	margin-bottom: 5px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.stadt-felder .pflicht { color: var(--danger); }

.stadt-felder input[type=text]
{
	display: block;
	width: 100%;
	height: 36px;
	padding: 0 11px;
	font: 14px/1.4 var(--font);
	color: var(--text);
	background: var(--surface-sunk);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
}

.stadt-felder input[type=text]:focus
{
	outline: none;
	background: var(--surface);
	border-color: var(--accent-line);
	box-shadow: 0 0 0 3px rgba(254, 194, 6, .18);
}

.stadt-felder .feldnotiz { display: inline-block; margin-left: 10px; }

.schalterzeile
{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0;
}

/* Die allgemeine Regel .stadt-felder label setzt display:block und ist
 * spezifischer als .schalter - dadurch griff align-items nicht und
 * Kaestchen und Text sassen auf der Grundlinie statt in der Mitte.
 * Deshalb hier noch einmal mit derselben Spezifitaet. */
.stadt-felder label.schalter
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	height: 38px;
	margin-bottom: 0;
	padding: 0 16px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	color: var(--text-muted);
	line-height: 1;
}

.stadt-felder label.schalter span { display: block; line-height: 1; }

.stadt-felder label.schalter input[type=checkbox]
{
	display: block;
	margin: 0;
	flex: 0 0 auto;
}

/* ------------------------------------------------------------------ *
 * Lizenzstand einer Stadt
 * ------------------------------------------------------------------ */

.lizenzbox
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin: 0 0 14px 0;
	padding: 13px 15px;
	border-radius: var(--radius);
	font-size: 13px;
	line-height: 1.5;
}

.lizenzbox-text { flex: 1 1 260px; min-width: 0; }

.lizenzbox .knopf { flex: 0 0 auto; }

.lizenzbox-test
{
	background: var(--accent-soft);
	border: 1px solid var(--accent);
	color: #7a5c00;
}

.lizenzbox-test strong { color: #5f4800; }

.lizenzbox-abgelaufen
{
	background: var(--danger-soft);
	border: 1px solid #f5c2c2;
	color: #a51b1b;
}

.lizenzbox-abgelaufen strong { color: #8a1616; }

.lizenzbox-regulaer
{
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.lizenzbox-regulaer strong { color: #10502a; }

.schalter
{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 14px;
	margin: 0;
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
}

.schalter input { width: 16px; height: 16px; accent-color: var(--accent-line); cursor: pointer; }

.schalter span { color: inherit; }

.stadt-karte
{
	flex: 1 1 auto;
	min-height: 220px;
	position: relative;
}

#stadtMap
{
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: #e8eaed;
}

@media (max-width: 900px)
{
	:root { --aside-w: 320px; }
	#header h1 { display: none; }
}

@media (max-width: 620px)
{
	.feldzeile { display: block; }
	.feldzeile .feld-schmal { flex: none; }
	.konto-inhalt { padding: 20px 18px; }
	.konto-kopf { padding: 18px 18px; }
	.konto-aktionen { flex-direction: column-reverse; align-items: stretch; }
	.konto-aktionen .knopf { width: 100%; }
}


/* ------------------------------------------------------------------ *
 * Übersichtsseite nach der Anmeldung (start.php)
 * ------------------------------------------------------------------ */

.start-buehne
{
	max-width: 940px;
	margin: 0 auto;
	padding: 40px 20px 60px 20px;
}

.start-kopf { margin-bottom: 28px; }

.start-kopf h2
{
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 8px;
}

.start-kopf p
{
	font-size: 15px;
	line-height: 1.6;
	color: var(--text-muted);
	max-width: 60ch;
}

.start-kopf strong { color: var(--text); }

.start-karten
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
}

.start-karte
{
	display: flex;
	flex-direction: column;
	padding: 24px 24px 22px 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow-xs);
	color: var(--text);
	text-decoration: none;
	transition: border-color .14s ease, box-shadow .14s ease, transform .08s ease;
}

.start-karte:hover
{
	border-color: var(--accent);
	box-shadow: 0 8px 24px rgba(16, 24, 40, .10);
	transform: translateY(-2px);
	text-decoration: none;
	color: var(--text);
}

.start-symbol
{
	width: 46px;
	height: 46px;
	margin-bottom: 16px;
	border-radius: 12px;
	background-color: var(--accent-soft);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px 24px;
}

.start-symbol-liste
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6800' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
}

.start-symbol-karte
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6800' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3 3 6v15l6-3 6 3 6-3V3l-6 3-6-3z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E");
}

.start-symbol-konto
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6800' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
}

.start-titel
{
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin-bottom: 8px;
}

.start-text
{
	flex: 1 1 auto;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-muted);
	margin-bottom: 20px;
}

.start-knopf
{
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 20px;
	background: var(--accent);
	border: 1px solid var(--accent-line);
	border-radius: 10px;
	font-size: 14px;
	font-weight: 650;
	color: var(--text);
}

.start-karte:hover .start-knopf { background: #ffcd2b; }

.start-fuss
{
	margin-top: 28px;
	font-size: 13px;
	color: var(--text-faint);
}

@media (max-width: 620px)
{
	.start-buehne { padding: 24px 14px 40px 14px; }
	.start-kopf h2 { font-size: 22px; }
}
