/* =========================================================
   Gastro-Quartett Verwaltung
   ========================================================= */
:root {
	--gq-bg: #f6f3ee;
	--gq-surface: #ffffff;
	--gq-ink: #1f1d1a;
	--gq-muted: #6f6a62;
	--gq-line: #e6e0d6;
	--gq-accent: #a63d2a;
	--gq-accent-ink: #ffffff;
	--gq-ok: #2f7d4f;
	--gq-ok-bg: #e5f3ea;
	--gq-warn: #9a6200;
	--gq-warn-bg: #fdf1dc;
	--gq-bad: #b42318;
	--gq-bad-bg: #fde8e6;
	--gq-open: #5d6470;
	--gq-open-bg: #eef0f3;
	--gq-radius: 12px;
	--gq-shadow: 0 1px 2px rgba(31, 29, 26, .05), 0 4px 16px rgba(31, 29, 26, .05);
}

/* ---------- Grundlayout (Frontend) ---------- */
body.gq-body {
	margin: 0;
	background: var(--gq-bg);
	color: var(--gq-ink);
	font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.gq-body a { color: var(--gq-accent); }
.gq-top { background: var(--gq-ink); color: #fff; }
.gq-top__inner, .gq-main, .gq-foot { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.gq-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.gq-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.gq-brand__mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--gq-accent); font-size: 16px; }
.gq-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.gq-nav a { color: #e9e4dc !important; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.gq-nav a:hover { background: rgba(255,255,255,.1); color: #fff !important; }
.gq-nav__out { opacity: .7; }
.gq-main { padding-top: 28px; padding-bottom: 48px; }
.gq-foot { color: var(--gq-muted); font-size: 13px; padding-bottom: 32px; }

/* ---------- Bausteine ---------- */
.gq-eyebrow { margin: 0 0 2px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; color: var(--gq-accent); }
.gq-muted { color: var(--gq-muted); }
.gq-small { font-size: 12px; }
.gq-block { display: block; }
.gq-card { background: var(--gq-surface); border: 1px solid var(--gq-line); border-radius: var(--gq-radius); padding: 20px 22px; margin: 0 0 18px; box-shadow: var(--gq-shadow); }
.gq-card h2, .gq-card h3 { margin: 0 0 12px; font-size: 17px; }
.gq-empty { background: var(--gq-surface); border: 1px dashed var(--gq-line); border-radius: var(--gq-radius); padding: 32px; text-align: center; }
.gq-empty h2 { margin-top: 0; }

.gq-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gq-accent); background: var(--gq-accent); color: var(--gq-accent-ink) !important; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; line-height: 1.2; font-family: inherit; }
.gq-btn:hover { filter: brightness(1.08); }
.gq-btn--ghost { background: var(--gq-surface); color: var(--gq-ink) !important; border-color: var(--gq-line); }
.gq-btn--ghost:hover { border-color: var(--gq-ink); filter: none; }
.gq-btn--small { padding: 6px 11px; font-size: 13px; }
.gq-btn--lg { padding: 12px 22px; font-size: 16px; }
.gq-btn--danger { background: var(--gq-surface); color: var(--gq-bad) !important; border-color: var(--gq-bad); }
.gq-btn.is-disabled { opacity: .45; pointer-events: none; background: var(--gq-surface); color: var(--gq-muted) !important; border-color: var(--gq-line); }
.gq-count { background: rgba(0,0,0,.15); border-radius: 99px; padding: 0 7px; font-size: 12px; }
.gq-btn--ghost .gq-count, .gq-btn.is-disabled .gq-count { background: var(--gq-bg); }

.gq-chip { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; margin: 0; }
.gq-chip--ok { background: var(--gq-ok-bg); color: var(--gq-ok); }
.gq-chip--warn { background: var(--gq-warn-bg); color: var(--gq-warn); }
.gq-chip--bad { background: var(--gq-bad-bg); color: var(--gq-bad); }
.gq-chip--open { background: var(--gq-open-bg); color: var(--gq-open); }
.gq-chip--xs { font-size: 10px; padding: 0 6px; margin-top: 3px; }

.gq-notice { border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; border: 1px solid transparent; }
.gq-notice p { margin: 0; }
.gq-notice--success { background: var(--gq-ok-bg); color: var(--gq-ok); border-color: #cbe7d5; }
.gq-notice--error { background: var(--gq-bad-bg); color: var(--gq-bad); border-color: #f6c9c4; }
.gq-notice--warn { background: var(--gq-warn-bg); color: #6d4600; border-color: #f2dcb3; }
.wp-admin .gq-notice.notice { border-radius: 4px; }

/* ---------- Dashboard ---------- */
.gq-dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.gq-dash__title { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.01em; }
.gq-dash__tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gq-yearsel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gq-muted); }
.gq-yearsel select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--gq-line); font-weight: 700; background: var(--gq-surface); }

.gq-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.gq-kpi { background: var(--gq-surface); border: 1px solid var(--gq-line); border-radius: var(--gq-radius); padding: 16px 18px; box-shadow: var(--gq-shadow); display: flex; flex-direction: column; gap: 6px; }
.gq-kpi__label { font-size: 13px; color: var(--gq-muted); font-weight: 600; }
.gq-kpi__value { font-size: 30px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.gq-kpi__value small { font-size: 16px; color: var(--gq-muted); font-weight: 600; }
.gq-kpi__sub { font-size: 12px; color: var(--gq-muted); }
.gq-bar { height: 6px; background: var(--gq-bg); border-radius: 99px; overflow: hidden; }
.gq-bar i { display: block; height: 100%; background: var(--gq-ok); border-radius: 99px; }
.gq-stack { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--gq-bg); gap: 2px; }
.gq-stack i.is-ok { background: var(--gq-ok); } .gq-stack i.is-warn { background: #e0a32e; } .gq-stack i.is-bad { background: var(--gq-bad); } .gq-stack i.is-open { background: #c9ced6; }

.gq-bulk { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--gq-surface); border: 1px solid var(--gq-line); border-radius: var(--gq-radius); padding: 12px 16px; margin-bottom: 16px; }
.gq-bulk__dates { display: flex; gap: 18px; font-size: 13px; color: var(--gq-muted); flex-wrap: wrap; }
.gq-bulk__dates strong { color: var(--gq-ink); }
.gq-bulk__btns { display: flex; gap: 8px; flex-wrap: wrap; }

.gq-tablewrap { background: var(--gq-surface); border: 1px solid var(--gq-line); border-radius: var(--gq-radius); box-shadow: var(--gq-shadow); margin-bottom: 18px; }
.gq-filter { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--gq-line); flex-wrap: wrap; align-items: center; }
.gq-filter button { border: 1px solid var(--gq-line); background: var(--gq-surface); border-radius: 99px; padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--gq-ink); font-family: inherit; }
.gq-filter button.is-active { background: var(--gq-ink); color: #fff; border-color: var(--gq-ink); }
.gq-filter button span { opacity: .7; margin-left: 2px; }
.gq-filter input[type=search] { margin-left: auto; padding: 6px 12px; border: 1px solid var(--gq-line); border-radius: 99px; min-width: 220px; font: inherit; font-size: 13px; }
.gq-scroll { overflow-x: auto; }
.gq-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gq-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gq-muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--gq-line); white-space: nowrap; background: #fbfaf7; }
.gq-table td { padding: 11px 14px; border-bottom: 1px solid var(--gq-line); vertical-align: middle; }
.gq-table tbody tr:last-child td { border-bottom: 0; }
.gq-table tbody tr:hover { background: #fcfbf8; }
.gq-c { text-align: center !important; }
.gq-r { text-align: right; }
.gq-name { font-weight: 650; color: var(--gq-ink) !important; text-decoration: none; }
.gq-name:hover { text-decoration: underline; }
.gq-ok { color: var(--gq-ok); font-weight: 700; }
.gq-no { color: #c4bdb2; font-weight: 700; }
.gq-avatar { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; display: inline-block; vertical-align: middle; }

.gq-dots { display: inline-flex; gap: 4px; }
.gq-dots i { width: 11px; height: 11px; border-radius: 50%; background: #e2ddd4; display: inline-block; }
.gq-dots i.on { background: var(--gq-ok); }
.gq-steps { display: inline-flex; gap: 3px; margin-top: 4px; }
.gq-steps i { font-style: normal; font-size: 10px; font-weight: 700; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 4px; background: #eee9e1; color: #a39b8f; cursor: help; }
.gq-steps i.on { background: var(--gq-ok); color: #fff; }

.gq-menu { position: relative; display: inline-block; text-align: left; }
.gq-menu summary { list-style: none; cursor: pointer; font-size: 13px; padding: 5px 10px; border: 1px solid var(--gq-line); border-radius: 8px; background: var(--gq-surface); }
.gq-menu summary::-webkit-details-marker { display: none; }
.gq-menu summary::after { content: " ▾"; color: var(--gq-muted); }
.gq-menu[open] summary { border-color: var(--gq-ink); }
.gq-menu > div { position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; background: var(--gq-surface); border: 1px solid var(--gq-line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); min-width: 250px; padding: 6px; display: flex; flex-direction: column; }
.gq-menu > div > a { padding: 7px 10px; border-radius: 6px; color: var(--gq-ink) !important; text-decoration: none; font-size: 13px; }
.gq-menu > div > a:hover, .gq-menu__row a:hover { background: var(--gq-bg); }
.gq-menu__sep { font-size: 11px; color: var(--gq-muted); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px 2px; border-top: 1px solid var(--gq-line); margin-top: 4px; }
.gq-menu__row { display: flex; gap: 4px; padding: 2px 6px 6px; }
.gq-menu__row a { flex: 1; text-align: center; border: 1px solid var(--gq-line); border-radius: 6px; padding: 4px; font-size: 12px; color: var(--gq-ink) !important; text-decoration: none; }

.gq-list { margin: 0; padding: 0; list-style: none; }
.gq-list li { padding: 6px 0; border-bottom: 1px solid var(--gq-line); font-size: 14px; }
.gq-list li:last-child { border-bottom: 0; }
.gq-list--cols { columns: 3 240px; column-gap: 28px; }
.gq-list--cols li { break-inside: avoid; }

/* ---------- Checkliste ---------- */
.gq-check { list-style: none; margin: 0 0 12px; padding: 0; }
.gq-check li { padding: 4px 0 4px 26px; position: relative; }
.gq-check li::before { position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.gq-check li.is-ok::before { content: "✓"; background: var(--gq-ok); color: #fff; }
.gq-check li.is-no::before { content: ""; border: 2px solid #cfc8bd; box-sizing: border-box; }
.gq-check--lg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gq-check--lg li { background: var(--gq-bg); border-radius: 10px; padding: 12px 12px 12px 38px; font-weight: 600; }
.gq-check--lg li::before { left: 12px; top: 13px; }

/* ---------- Formulare (Portal + Backend) ---------- */
.gq-portal { max-width: 820px; margin: 0 auto; }
.gq-portal h1 { margin: 0 0 18px; font-size: 30px; }
.gq-login { background: var(--gq-surface); border: 1px solid var(--gq-line); border-radius: var(--gq-radius); padding: 28px; max-width: 440px; box-shadow: var(--gq-shadow); }
.gq-login input[type=text], .gq-login input[type=password] { width: 100%; padding: 9px 12px; border: 1px solid var(--gq-line); border-radius: 8px; box-sizing: border-box; font: inherit; }
.gq-login input[type=submit] { background: var(--gq-accent); color: #fff; border: 0; padding: 10px 18px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.gq-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; font-weight: 600; font-size: 14px; }
.gq-field input[type=text], .gq-field input[type=tel], .gq-field input[type=email], .gq-field input[type=url], .gq-field input[type=number], .gq-field input[type=date], .gq-field select, .gq-field textarea {
	font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid #d6cfc3; border-radius: 8px; background: #fff; width: 100%; box-sizing: border-box; max-width: none;
}
.gq-field textarea[readonly], .gq-field input[readonly] { background: var(--gq-bg); color: var(--gq-muted); }
.gq-field input[type=file] { font-weight: 400; }
.gq-field--checkbox { font-weight: 400; }
.gq-help { font-weight: 400; font-size: 12px; color: var(--gq-muted); }
.gq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 18px; }
.gq-row { display: flex; gap: 10px; flex-wrap: wrap; }
.gq-radios { display: flex; gap: 10px; flex-wrap: wrap; }
.gq-radios label { border: 1px solid var(--gq-line); border-radius: 10px; padding: 10px 16px; cursor: pointer; font-weight: 600; }
.gq-radios label:has(input:checked) { border-color: var(--gq-accent); background: #fbefec; }
.gq-photo { max-width: 100%; height: auto; border-radius: 10px; margin-bottom: 10px; display: block; }

/* ---------- Backend-Anpassungen ---------- */
.gq-admin-wrap .gq-dash { margin-top: 14px; }
.gq-admin-wrap .gq-dash__title { font-size: 26px; }
.gq-admin-wrap .gq-btn { line-height: 1.2; }
.gq-section { border-top: 1px solid var(--gq-line); padding-top: 4px; margin-top: 8px; }
.gq-section:first-of-type { border-top: 0; }
.gq-sub { margin: 14px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--gq-accent); }
.gq-media { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 400; }
.gq-thumb { max-width: 90px; height: auto; border-radius: 6px; margin-top: 6px; }
.gq-actions-col { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.gq-actions-col .button { text-align: center; }
.gq-log { margin: 0; padding: 0; list-style: none; font-size: 12px; }
.gq-log li { padding: 4px 0; border-bottom: 1px solid #f0f0f1; }
.gq-mailtpl { max-width: 900px; }
#gq_teilnahme_side .gq-chip { margin-bottom: 8px; }

@media (max-width: 1000px) {
	.gq-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gq-check--lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.gq-kpis { grid-template-columns: 1fr; }
	.gq-filter input[type=search] { margin-left: 0; min-width: 0; width: 100%; }
}

/* ---------- Ergänzungen v2 ---------- */
.gq-cardno { display: inline-block; font-size: 11px; font-weight: 800; background: var(--gq-ink); color: #fff; border-radius: 4px; padding: 1px 5px; margin-right: 6px; vertical-align: 1px; }
.gq-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.gq-card__head h3 { margin: 0; }
.gq-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 400; }
.gq-dtable { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.gq-dtable th { text-align: left; font-size: 12px; color: var(--gq-muted); padding: 4px 6px; }
.gq-dtable td { padding: 4px 6px; }
.gq-dtable td:first-child { width: 20px; font-weight: 700; color: var(--gq-muted); }
.gq-dtable input { width: 100%; padding: 6px 8px; border: 1px solid #d6cfc3; border-radius: 6px; }
.gq-dtable input.gq-short { width: 90px; }
.gq-field input[type=color] { width: 64px; height: 36px; padding: 2px; border: 1px solid #d6cfc3; border-radius: 8px; }
.gq-kpi__label small { font-weight: 400; }
