/*
Theme Name: Support Center
Theme URI: https://support.mekmedia.com
Description: Theme für das Smart Signage Support Center, angelehnt an das Admin Center.
Author: MEKmedia
Template: twentytwentyfive
Version: 0.3.0
Requires at least: 6.7
Text Domain: support-center
*/

:root {
	--sc-ink: #1a1f24;
	--sc-ink-2: #3a434c;
	--sc-muted: #5b6570;
	--sc-line: #e3e6ea;
	--sc-line-2: #eceef1;
	--sc-field: #d3dae1;
	--sc-ground: #f3f4f6;
	--sc-tint: #f7f8fa;
	--sc-surface: #ffffff;
	--sc-accent: #136a93;
	--sc-accent-hover: #0e5274;
	--sc-accent-soft: #e6f2f8;
	--sc-success: #1b7f45;
	--sc-success-ink: #16663a;
	--sc-success-soft: #eef7f1;
	--sc-danger: #c0392b;
	--sc-danger-ink: #b03224;
	--sc-tip-ink: #6b4600;
	--sc-tip-soft: #fdf3e1;
	--sc-info-ink: #0e4a67;
	--sc-radius: 14px;
	--sc-header-h: 60px;
}

body { background: var(--sc-ground); }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

.sc-icon { flex-shrink: 0; display: block; }
.sc-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sc-muted); }
.sc-card { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-radius); }
.sc-tile { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--sc-accent-soft); color: var(--sc-accent); display: flex; align-items: center; justify-content: center; }
.sc-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--sc-surface); border: 1px solid var(--sc-line); font-size: 13px; color: var(--sc-ink-2); }
.sc-button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; background: var(--sc-accent); color: #fff !important; font-size: 14px; font-weight: 600; white-space: nowrap; }
.sc-button:hover { background: var(--sc-accent-hover); }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; border-radius: 6px; }

/* Kopfzeile ------------------------------------------------------------- */
.sc-header { position: sticky; top: 0; z-index: 20; height: var(--sc-header-h); box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; padding: 0 24px; background: var(--sc-surface); box-shadow: 0 2px 4px rgba(0,0,0,.08); }
.admin-bar .sc-header { top: 32px; }
.sc-header__brand { justify-self: start; display: flex; align-items: center; gap: 14px; color: var(--sc-ink); }
.sc-header__brand img { display: block; width: 130px; height: 26px; }
.sc-header__divider { width: 1px; height: 22px; background: var(--sc-field); }
.sc-header__product { font-size: 15px; font-weight: 700; color: var(--sc-ink); }
.sc-search { width: 460px; max-width: 100%; height: 40px; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #f4f6f8; border: 1px solid var(--sc-field); border-radius: 8px; color: var(--sc-muted); }
.sc-search:focus-within { border-color: var(--sc-accent); background: var(--sc-surface); }
.sc-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 14px; color: var(--sc-ink); }
.sc-search kbd { font: inherit; font-size: 12px; font-weight: 600; color: var(--sc-muted); padding: 1px 7px; border: 1px solid var(--sc-field); border-radius: 5px; background: var(--sc-surface); }
.sc-header__actions { justify-self: end; display: flex; align-items: center; gap: 20px; }
.sc-header__link { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (max-width: 1240px) { .sc-search { width: min(460px, 38vw); } .sc-header__link { display: none; } }

/* Grundlayout ----------------------------------------------------------- */
.sc-shell { display: flex; align-items: stretch; min-height: calc(100vh - var(--sc-header-h)); }
.sc-main { flex: 1; min-width: 0; box-sizing: border-box; padding: 32px 48px 80px; display: flex; gap: 48px; align-items: flex-start; }
.sc-article { width: 760px; max-width: 100%; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.sc-aside { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--sc-header-h) + 32px); padding-top: 118px; }
.sc-aside__inner { display: flex; flex-direction: column; gap: 24px; }

/* Navigation links ------------------------------------------------------ */
.sc-nav:focus { outline: none; }
.sc-nav { width: 272px; flex-shrink: 0; box-sizing: border-box; background: var(--sc-surface); border-right: 1px solid var(--sc-line); padding: 20px 12px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.sc-nav__areas { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--sc-header-h) + 20px); }
.sc-nav__area { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 8px; color: var(--sc-ink); font-size: 14px; font-weight: 600; }
.sc-nav__area:hover { background: var(--sc-tint); color: var(--sc-ink); }
.sc-nav__tile { width: 28px; height: 28px; border-radius: 8px; background: #f1f3f5; color: var(--sc-ink-2); display: flex; align-items: center; justify-content: center; }
.sc-nav__area.is-alert .sc-nav__tile { background: #fbeceb; color: var(--sc-danger-ink); }
.sc-nav__area.is-open { color: var(--sc-accent); font-weight: 700; }
.sc-nav__area.is-open .sc-nav__tile { background: var(--sc-accent-soft); color: var(--sc-accent); }
.sc-nav__label { flex: 1; }
.sc-nav__cats { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px 26px; padding-left: 12px; border-left: 1px solid var(--sc-line); }
.sc-nav__cat { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border-radius: 6px; color: var(--sc-ink-2); font-size: 14px; }
.sc-nav__cat:hover { background: var(--sc-tint); color: var(--sc-ink); }
.sc-nav__cat.is-open { color: var(--sc-ink); font-weight: 700; }
.sc-nav__count { font-size: 12px; color: var(--sc-muted); }
/* Geöffnete Kategorie: hinterlegter Block mit eingerückten Anleitungen */
.sc-nav__group { margin: 6px 0; padding: 2px 4px 8px; border-radius: 10px; background: var(--sc-tint); box-shadow: inset 0 0 0 1px var(--sc-line-2); }
.sc-nav__group .sc-nav__cat { padding: 0 6px; }
.sc-nav__group .sc-nav__cat:hover { background: transparent; }
.sc-nav__items { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 0 8px; }
.sc-nav__group .sc-nav__item:hover { background: var(--sc-surface); }
.sc-nav__group .sc-nav__item.is-active { background: var(--sc-surface); box-shadow: 0 1px 2px rgba(20,30,40,.08); position: relative; }
.sc-nav__group .sc-nav__item.is-active::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--sc-accent); }
.sc-nav__item { min-height: 32px; display: flex; align-items: center; padding: 6px 10px; border-radius: 6px; color: var(--sc-ink-2); font-size: 13.5px; line-height: 1.35; box-sizing: border-box; }
.sc-nav__item:hover { background: var(--sc-tint); color: var(--sc-ink); }
.sc-nav__item.is-active { background: var(--sc-accent-soft); color: var(--sc-accent); font-weight: 700; }
.sc-nav__footer { display: flex; flex-direction: column; padding: 14px 12px 0; border-top: 1px solid var(--sc-line-2); font-size: 13px; line-height: 22px; }
.sc-nav__footer a { color: var(--sc-muted); }

/* Kopf der Anleitung ---------------------------------------------------- */
.sc-intro { display: flex; flex-direction: column; gap: 10px; }
.sc-breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--sc-muted); }
.sc-breadcrumb a { color: var(--sc-muted); }
.sc-breadcrumb a:hover { color: var(--sc-ink); }
.sc-title { margin: 0; }
.sc-lead, .sc-lead p { margin: 0; font-size: 17px; line-height: 27px; color: var(--sc-ink-2); }
.sc-meta { display: flex; gap: 8px; margin-top: 4px; }
