/*
 * gpedit – Joomla 6 Template im Look des Editors für lokale Gruppenrichtlinien
 * Eigene Gestaltung (SVG-Symbole inline), keine Microsoft-Grafiken.
 */

:root {
	--gp-accent: #0078d7;
	--gp-bg: #f0f0f0;
	--gp-pane: #ffffff;
	--gp-border: #a0a0a0;
	--gp-border-soft: #d9d9d9;
	--gp-text: #000000;
	--gp-text-dim: #4c607a;
	--gp-hover: #e5f3fb;
	--gp-select: #cce8ff;
	--gp-select-border: #99d1ff;
	--gp-link: #0066cc;
	--gp-font: "Segoe UI", "Segoe UI Variable", Tahoma, "Noto Sans", Arial, sans-serif;

	--gp-ico-folder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23dcb44f' d='M1 2.5h5l1.5 1.5H15V13.5H1z'/%3E%3Cpath fill='%23f4d97f' d='M1 6h14v7.5H1z'/%3E%3C/svg%3E");
	--gp-ico-folder-open: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23dcb44f' d='M1 2.5h5l1.5 1.5H13V6H1z'/%3E%3Cpath fill='%23f4d97f' d='M3 6.5h13l-2.5 7H.5z'/%3E%3C/svg%3E");
	--gp-ico-page: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' stroke='%23778' d='M3.5 1.5h6l3 3v10h-9z'/%3E%3Cpath fill='none' stroke='%236a8fc0' d='M5.5 7.5h5M5.5 9.5h5M5.5 11.5h5'/%3E%3C/svg%3E");
	--gp-ico-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M2 1l3.5 3L2 7' fill='none' stroke='%23666' stroke-width='1.2'/%3E%3C/svg%3E");
}

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

html { font-size: 100%; }

body.gp-site {
	margin: 0;
	font: 12px/1.5 var(--gp-font);
	color: var(--gp-text);
	background: var(--gp-bg);
	-webkit-font-smoothing: auto;
}

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.gp-skip {
	position: absolute; left: -999px; top: 0; z-index: 100;
	background: var(--gp-pane); padding: 4px 8px; border: 1px solid var(--gp-accent);
}
.gp-skip:focus { left: 4px; top: 4px; }

.gp-ico { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Fenster-Rahmen ---------- */

.gp-desktop { min-height: 100vh; display: flex; }

.gp-window {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	min-height: 100vh;
	background: var(--gp-bg);
}

@media (min-width: 1000px) {
	.gp-windowed { background: linear-gradient(135deg, #0b4f9c 0%, #1c86d8 55%, #5fb4ee 100%) fixed; }
	.gp-windowed .gp-desktop { padding: 28px; align-items: stretch; justify-content: center; }
	.gp-windowed .gp-window {
		max-width: 1320px;
		height: calc(100vh - 56px);
		min-height: 520px;
		border: 1px solid var(--gp-accent);
		box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
	}
	.gp-windowed .gp-window.is-maximized {
		max-width: none;
		position: fixed; inset: 0; height: auto; z-index: 50;
		border: 0; box-shadow: none;
	}
}

@media (min-width: 1000px) {
	.gp-fullscreen .gp-window, .gp-windowed .gp-window { height: 100vh; }
	.gp-windowed .gp-window { height: calc(100vh - 56px); }
	.gp-windowed .gp-window.is-maximized { height: auto; }
}

/* ---------- Titelleiste ---------- */

.gp-titlebar {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 31px;
	padding-left: 8px;
	background: #fff;
	color: #000;
	user-select: none;
	flex: none;
}
.gp-titlebar__text {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 12px;
}
.gp-wc { display: flex; align-self: stretch; }
.gp-wc__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; border: 0; padding: 0; margin: 0;
	background: transparent; color: #000; font: inherit; cursor: default;
}
button.gp-wc__btn { cursor: pointer; }
.gp-wc__btn:hover { background: #e5e5e5; }
.gp-wc__btn--close:hover { background: #e81123; color: #fff; }
.gp-wc__btn:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }

/* ---------- Menüleiste ---------- */

.gp-menubar {
	flex: none;
	background: #fff;
	border-bottom: 1px solid var(--gp-border-soft);
	position: relative;
	z-index: 30;
}
.gp-menubar ul { list-style: none; margin: 0; padding: 0; }
.gp-menubar ul.mod-menu, .gp-menubar > ul { display: flex; flex-wrap: wrap; }
.gp-menubar li { position: relative; }
.gp-menubar li > a,
.gp-menubar li > span,
.gp-menubar li > button {
	display: block;
	padding: 3px 9px;
	color: var(--gp-text);
	text-decoration: none;
	background: transparent;
	border: 0;
	font: inherit;
	cursor: default;
	white-space: nowrap;
}
.gp-menubar li:hover > a,
.gp-menubar li:hover > span,
.gp-menubar li:focus-within > a,
.gp-menubar li:focus-within > span { background: #d9ebf9; }
.gp-menubar li > ul {
	display: none;
	position: absolute; top: 100%; left: 0;
	min-width: 200px;
	padding: 2px;
	background: #f2f2f2;
	border: 1px solid #ccc;
	box-shadow: 2px 2px 3px rgba(0, 0, 0, .25);
	z-index: 40;
}
.gp-menubar li > ul > li > a,
.gp-menubar li > ul > li > span { padding: 4px 24px 4px 28px; }
.gp-menubar li > ul > li:hover > a,
.gp-menubar li > ul > li:hover > span { background: #91c9f7; }
.gp-menubar li:hover > ul,
.gp-menubar li:focus-within > ul { display: block; }
.gp-menubar li > ul ul { top: -3px; left: 100%; }
.gp-menubar li.parent > ul > li.parent > a::after,
.gp-menubar li.parent > ul > li.parent > span::after { content: "\25B8"; float: right; margin-left: 16px; }
.gp-menubar li.current > a, .gp-menubar li.active > a { font-weight: 600; }

/* ---------- Symbolleiste ---------- */

.gp-toolbar {
	flex: none;
	display: flex; align-items: center; gap: 2px;
	padding: 3px 6px;
	background: var(--gp-bg);
	border-bottom: 1px solid var(--gp-border-soft);
}
.gp-tb {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 24px; padding: 0;
	background: transparent; border: 1px solid transparent;
	cursor: pointer; color: inherit;
}
.gp-tb:hover { background: var(--gp-hover); border-color: var(--gp-select-border); }
.gp-tb:active { background: var(--gp-select); }
.gp-tb:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }
.gp-tb[disabled] { opacity: .4; pointer-events: none; }
.gp-tb-sep { width: 1px; height: 18px; margin: 0 4px; background: #c8c8c8; }
.gp-toolbar__search { margin-left: auto; }
.gp-toolbar__search form { margin: 0; display: flex; gap: 4px; align-items: center; }
.gp-toolbar__search input[type="search"],
.gp-toolbar__search input[type="text"] { width: 180px; }
.gp-toolbar__search label { margin: 0; }

/* ---------- Hauptbereich ---------- */

.gp-body {
	flex: 1;
	display: flex;
	min-height: 0;
	border-top: 1px solid #fff;
}

.gp-tree {
	flex: none;
	width: 260px;
	min-width: 140px;
	max-width: 55%;
	resize: horizontal;
	overflow: auto;
	background: var(--gp-pane);
	border-right: 1px solid var(--gp-border);
	padding: 4px 2px;
}
.is-tree-hidden .gp-tree { display: none; }

.gp-root {
	display: flex; align-items: center; gap: 4px;
	padding: 1px 4px;
	color: var(--gp-text); text-decoration: none; font-weight: 600;
	white-space: nowrap;
}
.gp-root:hover { background: var(--gp-hover); }

.gp-treenav ul { list-style: none; margin: 0; padding: 0; }
.gp-treenav > .gp-module > .gp-module__body > ul,
.gp-treenav > ul { padding-left: 14px; }
.gp-treenav ul ul { padding-left: 16px; }
.gp-treenav .gp-module { margin: 0; }
.gp-treenav .gp-module__title {
	margin: 6px 4px 2px; font-size: 11px; font-weight: 600; color: var(--gp-text-dim);
}
.gp-treenav li { position: relative; margin: 0; }
.gp-treenav li > a,
.gp-treenav li > span {
	display: flex; align-items: center; gap: 4px;
	padding: 1px 4px 1px 4px;
	margin-left: 0;
	color: var(--gp-text);
	text-decoration: none;
	border: 1px solid transparent;
	white-space: nowrap;
	overflow: hidden; text-overflow: ellipsis;
}
.gp-treenav li > a::before,
.gp-treenav li > span::before {
	content: "";
	flex: none; width: 16px; height: 16px;
	background: var(--gp-ico-page) center / contain no-repeat;
}
.gp-treenav li.parent > a::before,
.gp-treenav li.parent > span::before { background-image: var(--gp-ico-folder); }
.gp-treenav li.parent.is-open > a::before,
.gp-treenav li.parent.is-open > span::before { background-image: var(--gp-ico-folder-open); }
.gp-treenav li > a:hover { background: var(--gp-hover); }
.gp-treenav li.current > a,
.gp-treenav li.active > a,
.gp-treenav li > a[aria-current] {
	background: var(--gp-select);
	border-color: var(--gp-select-border);
}
.gp-treenav li > a:focus-visible { outline: 1px dotted #000; outline-offset: -2px; }

.gp-twisty {
	position: absolute; left: -14px; top: 3px;
	width: 14px; height: 16px; padding: 0;
	border: 0; background: var(--gp-ico-chevron) center / 8px no-repeat;
	cursor: pointer; transition: transform .1s;
}
.is-open > .gp-twisty { transform: rotate(90deg); }
.gp-twisty:hover { filter: brightness(.5); }
.js .gp-treenav li.parent:not(.is-open) > ul { display: none; }

/* Detailbereich */

.gp-content {
	flex: 1;
	min-width: 0;
	overflow: auto;
	background: var(--gp-pane);
	outline: 0;
}
.gp-header {
	position: sticky; top: 0; z-index: 5;
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
	padding: 6px 16px;
	background: var(--gp-pane);
	border-bottom: 1px solid var(--gp-border-soft);
}
.gp-header__title { font-size: 14px; font-weight: 600; }
.gp-header__crumbs { margin-left: auto; color: var(--gp-text-dim); }
.gp-header__crumbs ol, .gp-header__crumbs ul {
	display: flex; flex-wrap: wrap; gap: 4px;
	margin: 0; padding: 0; list-style: none;
}
.gp-header__crumbs li + li::before { content: "\203A"; margin-right: 4px; color: #888; }
.gp-header__crumbs .float-start { display: none; }
.gp-page { padding: 12px 16px 24px; }
.gp-top, .gp-bottom { margin: 12px 0; }

/* Beschreibungsbereich */

.gp-description {
	flex: none;
	width: 300px;
	max-width: 40%;
	overflow: auto;
	background: var(--gp-pane);
	border-left: 1px solid var(--gp-border);
	padding: 8px 12px;
}
.is-standard .gp-description { display: none; }
.gp-module { margin: 0 0 16px; }
.gp-module__title { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--gp-accent); }

/* Reiter unten */

.gp-tabs {
	flex: none;
	display: flex; gap: 0;
	padding: 0 8px;
	background: var(--gp-bg);
	border-top: 1px solid var(--gp-border);
}
.gp-tab {
	margin: -1px 0 0;
	padding: 2px 14px;
	font: inherit; color: inherit;
	background: transparent;
	border: 1px solid transparent; border-top: 0;
	cursor: pointer;
}
.gp-tab:hover { background: var(--gp-hover); }
.gp-tab.is-active { background: var(--gp-pane); border-color: var(--gp-border); border-top-color: var(--gp-pane); }
.gp-tab:focus-visible { outline: 1px dotted #000; outline-offset: -3px; }

/* Statusleiste */

.gp-statusbar {
	flex: none;
	display: flex; align-items: center;
	min-height: 22px;
	background: var(--gp-bg);
	border-top: 1px solid var(--gp-border-soft);
	font-size: 11px;
}
.gp-status__cell { padding: 2px 10px; border-right: 1px solid #d0d0d0; white-space: nowrap; }
.gp-status__cell[hidden] { display: none; }
.gp-status__modules { margin-left: auto; border-right: 0; border-left: 1px solid #d0d0d0; }
.gp-status__modules ul { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }

/* ---------- Inhalt: Typografie ---------- */

.gp-page h1, .gp-page h2, .gp-page h3, .gp-page h4, .gp-page h5, .gp-page h6 {
	margin: 1em 0 .4em; font-weight: 600; line-height: 1.25; color: #1e3a5f;
}
.gp-page h1 { font-size: 20px; font-weight: 400; margin-top: 0; color: var(--gp-accent); }
.gp-page h2 { font-size: 16px; font-weight: 400; }
.gp-page h3 { font-size: 14px; }
.gp-page h4, .gp-page h5, .gp-page h6 { font-size: 12px; }
.gp-page p { margin: 0 0 .8em; }
.gp-page a { color: var(--gp-link); }
.gp-page a:hover { color: #003e7e; }
.gp-page img { max-width: 100%; height: auto; }
.gp-page hr { border: 0; border-top: 1px solid var(--gp-border-soft); margin: 1em 0; }
.gp-page blockquote { margin: 1em 0; padding: 4px 12px; border-left: 3px solid var(--gp-select-border); background: #f7fbff; }
.gp-page pre, .gp-page code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 11.5px; }
.gp-page pre { padding: 8px; overflow: auto; background: #f7f7f7; border: 1px solid var(--gp-border-soft); }

/* Tabellen im Stil der Richtlinienliste */

.gp-page table, .gp-description table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.gp-page th {
	padding: 3px 8px; text-align: left; font-weight: 400;
	color: var(--gp-text-dim);
	background: #fff;
	border-right: 1px solid #e5e5e5;
	border-bottom: 1px solid #e5e5e5;
	white-space: nowrap;
}
.gp-page th a { color: inherit; text-decoration: none; }
.gp-page td { padding: 2px 8px; border-bottom: 1px solid transparent; vertical-align: top; }
.gp-page tbody tr:hover td { background: var(--gp-hover); }
.gp-page tbody tr:nth-child(even) td { background: #fafafa; }
.gp-page tbody tr:hover td { background: var(--gp-hover); }

/* Listen und Blog */

.gp-page .page-header { margin: 0 0 8px; }
.gp-page .page-header h1, .gp-page .page-header h2 { margin-top: 0; }
.gp-page .com-content-category-blog__item,
.gp-page .blog-item {
	margin: 0 0 12px; padding: 8px 10px;
	background: #fff; border: 1px solid var(--gp-border-soft);
}
.gp-page .com-content-category-blog__item:hover { border-color: var(--gp-select-border); background: #fbfdff; }
.gp-page .article-info, .gp-page .article-info-term, .gp-page .create, .gp-page .published { color: var(--gp-text-dim); font-size: 11px; }
.gp-page dl.article-info { margin: 0 0 8px; }
.gp-page dl.article-info dd { display: inline-block; margin: 0 12px 0 0; }
.gp-page dl.article-info dt { display: none; }
.gp-page .tags, .gp-page ul.tags { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; }
.gp-page .tags .badge, .gp-page .badge {
	display: inline-block; padding: 0 6px;
	background: #e6e6e6; color: #333; border: 1px solid #ccc; font-size: 11px;
}
.gp-page .row { display: flex; flex-wrap: wrap; gap: 12px; }
.gp-page .row > [class*="col"] { flex: 1 1 240px; min-width: 0; }

/* Paginierung */

.gp-page .pagination, .gp-page ul.pagination { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; padding: 0; margin: 12px 0; }
.gp-page .pagination .page-link, .gp-page .pagination a, .gp-page .pagination span {
	display: block; padding: 2px 8px;
	background: #e1e1e1; border: 1px solid #adadad; color: #000; text-decoration: none;
}
.gp-page .pagination .active .page-link,
.gp-page .pagination .active span { background: var(--gp-select); border-color: var(--gp-accent); }
.gp-page .pagination a:hover { background: #e5f1fb; border-color: var(--gp-accent); }
.gp-page .pagination .disabled span { opacity: .5; }

/* Formulare */

input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="url"], input[type="tel"], input[type="number"], input[type="date"],
select, textarea, .form-control, .form-select {
	font: inherit; color: inherit;
	padding: 2px 4px;
	background: #fff;
	border: 1px solid #7a7a7a;
	border-radius: 0;
	max-width: 100%;
}
input:hover, select:hover, textarea:hover { border-color: #171717; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gp-accent); box-shadow: 0 0 0 1px var(--gp-accent); }
textarea { min-height: 80px; }

.btn, button.btn, input[type="submit"], input[type="button"], .gp-page button:not(.gp-twisty) {
	display: inline-block;
	min-width: 75px;
	padding: 3px 12px;
	font: inherit; color: #000; text-align: center; text-decoration: none;
	background: #e1e1e1;
	border: 1px solid #adadad;
	border-radius: 0;
	cursor: pointer;
}
.btn:hover, input[type="submit"]:hover, input[type="button"]:hover, .gp-page button:not(.gp-twisty):hover {
	background: #e5f1fb; border-color: var(--gp-accent); color: #000;
}
.btn:active, input[type="submit"]:active { background: #cce4f7; border-color: #005499; }
.btn:focus-visible, input:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.btn-primary, .btn.btn-primary, input[type="submit"].btn-primary {
	border: 2px solid var(--gp-accent); padding: 2px 11px;
}
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

fieldset { margin: 0 0 1em; padding: 6px 12px 10px; border: 1px solid var(--gp-border-soft); }
legend { padding: 0 4px; color: var(--gp-accent); font-size: 12px; }
label { margin-right: 4px; }
.control-group, .mb-3 { margin-bottom: 8px; }
.invalid, .form-control-danger { border-color: #d13438; }
.star, .required { color: #d13438; }

/* Systemmeldungen */

.gp-page joomla-alert, .gp-page .alert, .gp-page .alert-message {
	display: block;
	margin: 0 0 12px; padding: 8px 12px;
	background: #f7f7f7; border: 1px solid var(--gp-border);
	border-left-width: 4px;
}
.gp-page .alert-danger, .gp-page joomla-alert[type="danger"], .gp-page joomla-alert[type="error"] { border-left-color: #d13438; background: #fdf3f4; }
.gp-page .alert-warning, .gp-page joomla-alert[type="warning"] { border-left-color: #f7a800; background: #fffaf0; }
.gp-page .alert-success, .gp-page joomla-alert[type="success"] { border-left-color: #107c10; background: #f3fbf3; }
.gp-page .alert-info, .gp-page .alert-message, .gp-page joomla-alert[type="info"] { border-left-color: var(--gp-accent); background: #f3f9fe; }

/* ---------- Fehlerdialog ---------- */

.gp-error { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #0b4f9c, #5fb4ee); }
.gp-dialog { width: min(440px, calc(100vw - 24px)); background: var(--gp-bg); border: 1px solid var(--gp-accent); box-shadow: 0 8px 32px rgba(0, 0, 0, .45); }
.gp-dialog .gp-titlebar { background: #fff; padding-right: 8px; }
.gp-dialog__body { display: flex; gap: 14px; align-items: flex-start; padding: 20px 16px; background: #fff; }
.gp-dialog__body p { margin: 4px 0 0; }
.gp-dialog__icon { flex: none; }
.gp-dialog__buttons { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; }

/* ---------- Mobil ---------- */

@media (max-width: 860px) {
	.gp-window { min-height: 100vh; }
	.gp-body { flex-direction: column; overflow: visible; }
	.gp-tree { display: none; width: auto; max-width: none; max-height: 45vh; resize: none; border-right: 0; border-bottom: 1px solid var(--gp-border); }
	.is-tree-open .gp-tree { display: block; }
	.gp-description { width: auto; max-width: none; border-left: 0; border-top: 1px solid var(--gp-border); }
	.gp-content { overflow: visible; }
	.gp-header { position: static; }
	.gp-wc__btn { width: 36px; }
	.gp-toolbar { flex-wrap: wrap; }
	.gp-toolbar__search { flex: 1 1 100%; margin-left: 0; }
	.gp-toolbar__search input[type="search"], .gp-toolbar__search input[type="text"] { width: 100%; }
	.gp-menubar li > ul { position: static; box-shadow: none; display: none; }
}

/* ---------- Druck ---------- */

@media print {
	body.gp-site { background: #fff; }
	.gp-titlebar, .gp-menubar, .gp-toolbar, .gp-tree, .gp-description, .gp-tabs, .gp-statusbar, .gp-skip { display: none !important; }
	.gp-desktop { padding: 0 !important; display: block; }
	.gp-window { height: auto !important; border: 0 !important; box-shadow: none !important; max-width: none !important; }
	.gp-content, .gp-body { overflow: visible !important; display: block; }
	.gp-header { position: static; }
}
