/*
 * Redaktions-Stand im Backend — überall dieselbe Marke:
 * nicht eingestuft (rot) → unfertig (orange) → vorläufig (gelb) → abgestimmt (grün).
 * Geladen in Listen und Masken (inc/maske.php) und in der Redaktionsansicht
 * samt Startseite (inc/redaktion.php). Farben in tokens.css.
 * Vorne: Marke im Menü und Stand in der schraffierten Leiste (inc/stand.php), unten.
 */

.lstpl-marke {
	--ton: var(--stand-offen); --hell: var(--stand-offen-hell); --schrift: var(--stand-offen-text);
	display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px 1px 7px;
	font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap;
	color: var(--schrift); background: var(--hell); border-radius: 999px;
}
.lstpl-marke::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ton); }
.lstpl-marke--uebernommen { --ton: var(--stand-uebernommen); --hell: var(--stand-uebernommen-hell); --schrift: var(--stand-uebernommen-text); }
.lstpl-marke--vorlaeufig  { --ton: var(--stand-vorlaeufig);  --hell: var(--stand-vorlaeufig-hell);  --schrift: var(--stand-vorlaeufig-text); }
.lstpl-marke--abgestimmt  { --ton: var(--stand-abgestimmt);  --hell: var(--stand-abgestimmt-hell);  --schrift: var(--stand-abgestimmt-text); }

/* Zahl in der Übersicht »Stand der Inhalte«: in der Schrift des Stands */
.lstpl-stand-zahl--offen       { color: var(--stand-offen-text); }
.lstpl-stand-zahl--uebernommen { color: var(--stand-uebernommen-text); }
.lstpl-stand-zahl--vorlaeufig  { color: var(--stand-vorlaeufig-text); }
.lstpl-stand-zahl--abgestimmt  { color: var(--stand-abgestimmt-text); }


/* Seiten: die Auswahl im schmalen Kasten rechts im Editor */
.lstpl-maske--seitenleiste .lstpl-stand { margin-top: 0; padding-top: 0; border-top: 0; }
.lstpl-maske--seitenleiste .lstpl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lstpl-maske--seitenleiste .lstpl-pille { flex: 1 1 100%; }

/* Hinter den Menüpunkten: die Marke mit Namen, etwas kleiner und unabhängig von der Schrift des Menüs */
.lstpl-marke--menue {
	margin-left: 0.25em; padding: 0 7px 0 5px; vertical-align: 0.1em;
	font-size: 11px; line-height: 1.55; letter-spacing: normal; text-transform: none; text-decoration: none;
}
.lstpl-marke--menue::before { width: 6px; height: 6px; }

/* Ausgeschrieben in der schraffierten Leiste oben (.strukturhinweis in blocks.css) */
.strukturhinweis__stand { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.2em 0.45em; margin-left: auto; }
.strukturhinweis__stand .lstpl-marke { font-size: 13px; }
.strukturhinweis__erklaerung { font-weight: 400; }

/* Für die Redaktion: Marke in der Leiste als Knopf mit Auswahl (inc/stand.php, assets/js/stand.js) */
.strukturhinweis__umschalten { position: relative; display: inline-flex; align-items: center; gap: 0.5em; }
.strukturhinweis__knopf { border: 0; font-family: inherit; cursor: pointer; }
.strukturhinweis__knopf:hover { box-shadow: inset 0 0 0 1px var(--ton); }
.strukturhinweis__knopf:focus-visible { outline: 2px solid var(--ton); outline-offset: 2px; }
.strukturhinweis__pfeil { width: 0; height: 0; margin-left: 1px; border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0; }
.strukturhinweis__knopf[aria-expanded="true"] .strukturhinweis__pfeil { border-top-width: 0; border-bottom: 4px solid currentColor; }
.strukturhinweis__wahl {
	position: absolute; z-index: 60; top: calc(100% + 8px); right: 0;
	display: flex; flex-direction: column; gap: 2px;
	width: max-content; max-width: min(22rem, calc(100vw - 2rem)); padding: 8px;
	background: #fff; border: 1px solid #e4e0d8; border-radius: 10px; box-shadow: 0 10px 28px rgb(0 0 0 / 0.16);
	font-weight: 400; color: #3b3840;
}
.strukturhinweis__wahl[hidden] { display: none; }
.strukturhinweis__wahl-titel { padding: 2px 8px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6d6874; }
.strukturhinweis__option {
	display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px;
	font: inherit; font-size: 14px; line-height: 1.35; text-align: left; color: inherit;
	background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer;
}
.strukturhinweis__option:hover, .strukturhinweis__option:focus-visible { background: #f6f3fa; }
.strukturhinweis__option:focus-visible { outline: 2px solid #5b2281; outline-offset: -2px; }
.strukturhinweis__option[aria-pressed="true"] { border-color: #e4e0d8; background: #faf9f6; }
.strukturhinweis__option .lstpl-marke { font-size: 12px; }
.strukturhinweis__meldung { font-size: 13px; font-weight: 400; }
.strukturhinweis__meldung:empty { display: none; }
@media (max-width: 47.99rem) { .strukturhinweis__wahl { right: auto; left: 0; } }

/* Eingebettete Einträge (Fragen, Karten, Personen, Chips, Dokumente …): farbiger Punkt hinter dem Titel, ohne Begriff */
.lstpl-punkt {
	--ton: var(--stand-offen);
	display: inline-block; flex: none; width: 0.5em; height: 0.5em; min-width: 7px; min-height: 7px;
	margin-left: 0.4em; vertical-align: 0.12em; border-radius: 50%;
	background: var(--ton); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); cursor: help;
}
.lstpl-punkt--uebernommen { --ton: var(--stand-uebernommen); }
.lstpl-punkt--vorlaeufig  { --ton: var(--stand-vorlaeufig); }
.lstpl-punkt--abgestimmt  { --ton: var(--stand-abgestimmt); }

/* Knopf »Öffentliche Version anzeigen« / »Alle anzeigen« rechts in der Leiste */
.strukturhinweis__schalter {
	display: inline-flex; align-items: center; margin-left: 0.4em; padding: 0.2rem 0.75rem;
	font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; text-decoration: none;
	color: #4d3a00; background: #fff; border: 1px solid #d9b94a; border-radius: 999px;
}
.strukturhinweis__schalter:hover, .strukturhinweis__schalter:focus-visible { color: #fff1c2; background: #4d3a00; border-color: #4d3a00; }
/* Fragen: Die Zeile verteilt Frage und »+« (bausteine.css); der Punkt hängt sich direkt an die Frage */
.bs-frage__frage > .lstpl-punkt { align-self: center; margin-left: calc(0.4em - var(--s-4)); margin-right: auto; }

/* Öffentliche Fassung (#t2624): Seiten ohne Freigabe im Menü leicht ausgegraut … */
.ist-unfertig > a, a.ist-unfertig { opacity: 0.5; }
.ist-unfertig > a:hover, a.ist-unfertig:hover, .ist-unfertig > a:focus-visible, a.ist-unfertig:focus-visible { opacity: 0.8; }
/* … und statt ihres Inhalts der Hinweis mit der Infomail-Anmeldung */
.stand-folgt { margin: var(--s-5, 2rem) 0; padding: var(--s-5, 2rem); background: var(--grund-warm, #f7f4ee); border-radius: 12px; }
.stand-folgt__text { margin: 0 0 var(--s-4, 1.5rem); font-size: var(--fs-m, 1.15rem); line-height: 1.5; max-width: 40rem; }
.stand-folgt .infomail { display: block; max-width: none; margin: 0; padding: 0; border: 0; }
.stand-folgt .infomail__text { display: none; }

/* Backend-Listen: Stand mit einem Klick umstellen (hello_lstpl_stand_listen_zelle(), assets/js/stand-liste.js) */
.lstpl-stand-wahl { position: relative; display: inline-block; max-width: 100%; }
.lstpl-stand-wahl__knopf { border: 0; font-family: inherit; text-align: left; cursor: pointer; }
.lstpl-stand-wahl__knopf:hover { box-shadow: inset 0 0 0 1px var(--ton); }
.lstpl-stand-wahl__knopf:focus-visible { outline: 2px solid var(--ton); outline-offset: 2px; }
.lstpl-stand-wahl__pfeil { flex: none; width: 0; height: 0; margin-left: 2px; border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0; }
.lstpl-stand-wahl__knopf[aria-expanded="true"] .lstpl-stand-wahl__pfeil { border-top-width: 0; border-bottom: 4px solid currentColor; }
.lstpl-stand-wahl__liste {
	position: absolute; z-index: 100; top: calc(100% + 4px); left: 0;
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px;
	background: #fff; border: 1px solid #c3c4c7; border-radius: 8px; box-shadow: 0 6px 18px rgb(0 0 0 / 0.15);
}
.lstpl-stand-wahl__liste[hidden] { display: none; }
.lstpl-stand-wahl__option { padding: 2px; background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer; }
.lstpl-stand-wahl__option:hover, .lstpl-stand-wahl__option:focus-visible { border-color: #c3c4c7; outline: none; }
.lstpl-stand-wahl__option[aria-pressed="true"] { border-color: #8c8f94; }
.wp-list-table .column-lstpl_stand .lstpl-stand-wahl__option .lstpl-marke { white-space: nowrap; border-radius: 999px; }
.lstpl-stand-wahl.is-speichert { opacity: 0.5; }
.lstpl-stand-wahl.is-gespeichert .lstpl-stand-wahl__knopf { box-shadow: 0 0 0 2px var(--ton); }
/* Startseite der Redaktionsansicht, »Zuletzt bearbeitet«: Die Karte färbt alle span grau (redaktion.css) */
.lstpl-start__liste .lstpl-stand-wahl { align-self: flex-start; margin-top: 3px; }
.lstpl-start__liste .lstpl-stand-wahl span:not(.lstpl-marke) { font-size: inherit; color: inherit; }
.lstpl-start__liste .lstpl-stand-wahl .lstpl-marke { margin-top: 0; }
