/*
Theme Name:   ZNA-Portal
Theme URI:    https://zna-portal.de
Author:       Zentrale Notaufnahme
Description:  Portal-Theme für die Zentrale Notaufnahme: Linksammlung, Dokumentenablage (SOPs, Formulare) und passwortgeschützter Mitarbeiterbereich. Farben Blau/Orange.
Version:      1.3.0
Requires at least: 6.3
Requires PHP: 7.4
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  zna-portal
*/

/* ==========================================================================
   1. Design-Tokens
   ========================================================================== */
:root {
	--zna-blue-950: #071a33;
	--zna-blue-900: #0b2545;
	--zna-blue-800: #10335f;
	--zna-blue-700: #154785;
	--zna-blue-600: #1a5cad;
	--zna-blue-500: #2a73c9;
	--zna-blue-100: #dbe8f7;
	--zna-blue-50:  #eef4fb;

	--zna-orange-700: #c25e00;
	--zna-orange-600: #e07800;
	--zna-orange-500: #f28c00;
	--zna-orange-400: #ffa733;
	--zna-orange-100: #ffe7c7;
	--zna-orange-50:  #fff5e8;

	/* Manchester-Triage-Farben (dekorativ) */
	--zna-mts-red:    #d32f2f;
	--zna-mts-orange: #f28c00;
	--zna-mts-yellow: #f6c700;
	--zna-mts-green:  #2e9d4f;
	--zna-mts-blue:   #2a73c9;

	--zna-text:   #17212f;
	--zna-muted:  #566377;
	--zna-border: #d9e2ee;
	--zna-bg:     #f4f7fb;
	--zna-surface:#ffffff;

	--zna-radius-sm: 8px;
	--zna-radius:    14px;
	--zna-radius-lg: 22px;
	--zna-shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 1px 3px rgba(11, 37, 69, .08);
	--zna-shadow:    0 6px 20px rgba(11, 37, 69, .08), 0 2px 6px rgba(11, 37, 69, .06);
	--zna-shadow-lg: 0 18px 40px rgba(11, 37, 69, .16);

	--zna-container: 1200px;
	--zna-gutter: clamp(16px, 4vw, 32px);

	/* Systemschrift: keine externen Fonts (DSGVO-freundlich, schnell) */
	--zna-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--zna-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--zna-text);
	background: var(--zna-bg);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
.zna-icon { width: 1em; height: 1em; vertical-align: -.15em; flex: none; }

a { color: var(--zna-blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--zna-orange-700); }

:focus-visible { outline: 3px solid var(--zna-orange-500); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--zna-blue-900); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--zna-orange-500); color: #fff; padding: 10px 16px; border-radius: var(--zna-radius-sm);
}

.zna-container { width: 100%; max-width: var(--zna-container); margin: 0 auto; padding: 0 var(--zna-gutter); }

/* ==========================================================================
   3. Buttons, Badges, Chips
   ========================================================================== */
.zna-btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .7em 1.25em; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.zna-btn svg { width: 1.1em; height: 1.1em; flex: none; }
.zna-btn:hover { transform: translateY(-1px); }
.zna-btn--primary { background: var(--zna-orange-500); color: #fff; }
.zna-btn--primary:hover { background: var(--zna-orange-600); color: #fff; }
.zna-btn--blue { background: var(--zna-blue-700); color: #fff; }
.zna-btn--blue:hover { background: var(--zna-blue-800); color: #fff; }
.zna-btn--ghost { background: transparent; color: var(--zna-blue-700); border-color: var(--zna-blue-100); }
.zna-btn--ghost:hover { border-color: var(--zna-blue-600); color: var(--zna-blue-800); }
.zna-btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.zna-btn--light:hover { background: rgba(255,255,255,.22); color: #fff; }

.zna-badge {
	display: inline-flex; align-items: center; gap: .3em;
	padding: .15em .6em; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
	background: var(--zna-blue-50); color: var(--zna-blue-700);
}
.zna-badge svg { width: 1em; height: 1em; }
.zna-badge--intern { background: var(--zna-orange-50); color: var(--zna-orange-700); }

.zna-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.zna-chip {
	border: 1px solid var(--zna-border); background: var(--zna-surface); color: var(--zna-blue-800);
	padding: .45em 1em; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.zna-chip:hover { border-color: var(--zna-blue-500); }
.zna-chip.is-active { background: var(--zna-blue-700); border-color: var(--zna-blue-700); color: #fff; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.zna-alertbar {
	background: var(--zna-blue-950); color: #dbe8f7; font-size: .875rem;
}
.zna-alertbar .zna-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.zna-alertbar__msg { display: flex; align-items: center; gap: 8px; }
.zna-alertbar__msg strong { color: #fff; }
.zna-alertbar__dot {
	width: 9px; height: 9px; border-radius: 50%; background: var(--zna-mts-red); flex: none;
	box-shadow: 0 0 0 0 rgba(211,47,47,.7); animation: zna-pulse 2s infinite;
}
.zna-alertbar a { color: var(--zna-orange-400); font-weight: 700; text-decoration: none; }
@keyframes zna-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(211,47,47,.6); }
	70%  { box-shadow: 0 0 0 8px rgba(211,47,47,0); }
	100% { box-shadow: 0 0 0 0 rgba(211,47,47,0); }
}

.zna-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--zna-border);
}
.admin-bar .zna-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .zna-header { top: 0; } }

.zna-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.zna-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--zna-blue-900); margin-right: auto; }
.zna-brand:hover { color: var(--zna-blue-900); }
.zna-brand__mark { width: 44px; height: 44px; flex: none; }
.zna-brand .custom-logo { max-height: 48px; width: auto; }
.zna-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.zna-brand__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.zna-brand__name span { color: var(--zna-orange-500); }
.zna-brand__tag { font-size: .78rem; color: var(--zna-muted); font-weight: 600; }

.zna-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.zna-nav li { position: relative; }
.zna-nav a {
	display: block; padding: .55em .9em; border-radius: var(--zna-radius-sm);
	color: var(--zna-blue-900); font-weight: 600; text-decoration: none; font-size: .97rem;
}
.zna-nav a:hover { background: var(--zna-blue-50); color: var(--zna-blue-700); }
.zna-nav .current-menu-item > a,
.zna-nav .current_page_item > a { color: var(--zna-orange-700); background: var(--zna-orange-50); }
.zna-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; display: none; flex-direction: column;
	background: #fff; border: 1px solid var(--zna-border); border-radius: var(--zna-radius); box-shadow: var(--zna-shadow); padding: 6px;
}
.zna-nav li:hover > .sub-menu, .zna-nav li:focus-within > .sub-menu { display: flex; }

.zna-header__actions { display: flex; align-items: center; gap: 8px; }

.zna-menu-toggle {
	display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--zna-blue-900);
}
.zna-menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
	.zna-menu-toggle { display: inline-flex; order: 2; }
	.zna-header__inner { flex-wrap: wrap; gap: 8px; }
	.zna-header__actions { order: 1; }
	.zna-header__actions .zna-btn { padding: .7em; }
	.zna-nav { order: 3; width: 100%; display: none; padding-bottom: 12px; }
	.zna-nav.is-open { display: block; }
	.zna-nav ul { flex-direction: column; }
	.zna-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 16px; }
	.zna-header__actions .zna-btn span { display: none; }
	.zna-brand__tag { display: none; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.zna-hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(242,140,0,.25), transparent 60%),
		linear-gradient(135deg, var(--zna-blue-900) 0%, var(--zna-blue-700) 60%, var(--zna-blue-600) 100%);
	padding: clamp(48px, 8vw, 96px) 0 clamp(150px, 17vw, 200px);
}
.zna-hero__ecg {
	position: absolute; left: 0; right: 0; bottom: clamp(64px, 8vw, 84px);
	height: clamp(56px, 7vw, 84px); pointer-events: none;
	/* Kurve läuft an den Rändern weich aus */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.zna-hero__ecg svg { display: block; width: 100%; height: 100%; overflow: visible; }
.zna-hero__ecg path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.zna-ecg-base  { stroke: rgba(255, 255, 255, .16); stroke-width: 2; }
.zna-ecg-sweep {
	stroke: var(--zna-orange-400); stroke-width: 3;
	stroke-dasharray: 110 890; stroke-dashoffset: 1000;
	filter: drop-shadow(0 0 6px rgba(255, 167, 51, .85));
	animation: zna-ecg 6s linear infinite;
}
@keyframes zna-ecg { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
	.zna-ecg-sweep { animation: none; stroke-dasharray: none; opacity: .55; }
	.zna-alertbar__dot { animation: none; }
}

.zna-hero__inner { position: relative; max-width: 780px; }
.zna-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
	padding: .35em .9em; border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	margin-bottom: 20px;
}
.zna-hero__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--zna-orange-500); }
.zna-hero h1 { color: #fff; margin-bottom: .35em; }
.zna-hero h1 em { font-style: normal; color: var(--zna-orange-400); }
.zna-hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #d6e4f5; max-width: 640px; margin-bottom: 32px; }

.zna-search {
	display: flex; align-items: center; gap: 8px; max-width: 640px;
	background: #fff; border-radius: 999px; padding: 6px 6px 6px 20px; box-shadow: var(--zna-shadow-lg);
}
.zna-search svg { width: 22px; height: 22px; color: var(--zna-muted); flex: none; }
.zna-search input {
	flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.05rem; color: var(--zna-text); background: transparent; padding: .6em 0;
}
.zna-search--inline { box-shadow: var(--zna-shadow-sm); border: 1px solid var(--zna-border); margin-bottom: 16px; padding-right: 20px; }

.zna-triage { display: flex; height: 6px; }
.zna-triage span { flex: 1; }
.zna-triage span:nth-child(1) { background: var(--zna-mts-red); }
.zna-triage span:nth-child(2) { background: var(--zna-mts-orange); }
.zna-triage span:nth-child(3) { background: var(--zna-mts-yellow); }
.zna-triage span:nth-child(4) { background: var(--zna-mts-green); }
.zna-triage span:nth-child(5) { background: var(--zna-mts-blue); }

/* Seitenkopf für Unterseiten */
.zna-pagehead {
	background: linear-gradient(135deg, var(--zna-blue-900), var(--zna-blue-700));
	color: #fff; padding: clamp(36px, 6vw, 64px) 0;
}
.zna-pagehead h1 { color: #fff; margin: 0; }
.zna-pagehead p { color: #d6e4f5; margin: .5em 0 0; max-width: 680px; }
.zna-pagehead__crumbs { font-size: .85rem; color: #a9c3e4; margin-bottom: 10px; }
.zna-pagehead__crumbs a { color: #fff; text-decoration: none; }
.zna-pagehead--intern { background: linear-gradient(135deg, var(--zna-blue-950), var(--zna-blue-800)); }

/* ==========================================================================
   6. Sektionen & Kacheln
   ========================================================================== */
.zna-section { padding: clamp(48px, 7vw, 80px) 0; }
.zna-section--white { background: var(--zna-surface); }
.zna-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.zna-section__head h2 { margin: 0; }
.zna-section__head p { margin: .3em 0 0; color: var(--zna-muted); }
.zna-kicker { display: block; color: var(--zna-orange-600); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }

.zna-tiles {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
	margin-top: calc(-1 * clamp(48px, 7vw, 72px)); position: relative; z-index: 2;
}
@media (max-width: 1000px) { .zna-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .zna-tiles { grid-template-columns: 1fr; } }

.zna-tile {
	display: flex; flex-direction: column; gap: 10px; padding: 24px;
	background: var(--zna-surface); border-radius: var(--zna-radius); box-shadow: var(--zna-shadow);
	text-decoration: none; color: var(--zna-text); border-top: 4px solid var(--zna-blue-600);
	transition: transform .15s, box-shadow .15s;
}
.zna-tile:hover { transform: translateY(-3px); box-shadow: var(--zna-shadow-lg); color: var(--zna-text); }
.zna-tile--orange { border-top-color: var(--zna-orange-500); }
.zna-tile--dark { background: var(--zna-blue-900); color: #fff; border-top-color: var(--zna-orange-500); }
.zna-tile--dark:hover { color: #fff; }
.zna-tile--dark h3 { color: #fff; }
.zna-tile--dark p { color: #b9cde6; }
.zna-tile__icon {
	width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
	background: var(--zna-blue-50); color: var(--zna-blue-600);
}
.zna-tile--orange .zna-tile__icon { background: var(--zna-orange-50); color: var(--zna-orange-600); }
.zna-tile--dark .zna-tile__icon { background: rgba(242,140,0,.15); color: var(--zna-orange-400); }
.zna-tile__icon svg { width: 26px; height: 26px; }
.zna-tile h3 { margin: 4px 0 0; }
.zna-tile p { margin: 0; color: var(--zna-muted); font-size: .95rem; }
.zna-tile__more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--zna-orange-600); }

/* ==========================================================================
   7. Link-Karten
   ========================================================================== */
.zna-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

.zna-linkcard {
	position: relative; display: flex; gap: 14px; align-items: flex-start;
	padding: 18px; background: var(--zna-surface); border: 1px solid var(--zna-border); border-radius: var(--zna-radius);
	text-decoration: none; color: var(--zna-text); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.zna-linkcard:hover { border-color: var(--zna-orange-500); box-shadow: var(--zna-shadow); transform: translateY(-2px); color: var(--zna-text); }
.zna-linkcard__logo {
	width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; overflow: hidden;
	background: linear-gradient(135deg, var(--zna-blue-700), var(--zna-blue-500)); color: #fff; font-weight: 800; font-size: 1.2rem;
}
.zna-linkcard:nth-child(3n+2) .zna-linkcard__logo { background: linear-gradient(135deg, var(--zna-orange-600), var(--zna-orange-400)); }
.zna-linkcard:nth-child(3n+3) .zna-linkcard__logo { background: linear-gradient(135deg, var(--zna-blue-900), var(--zna-blue-700)); }
.zna-linkcard__logo img { width: 100%; height: 100%; object-fit: cover; }
.zna-linkcard__body { min-width: 0; flex: 1; }
.zna-linkcard__title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--zna-blue-900); margin: 0 0 2px; }
.zna-linkcard__title svg { width: 14px; height: 14px; color: var(--zna-muted); flex: none; }
.zna-linkcard__desc { display: block; font-size: .9rem; color: var(--zna-muted); margin: 0 0 8px; }
.zna-linkcard__host { display: block; font-size: .78rem; color: var(--zna-blue-500); font-weight: 600; word-break: break-all; }
.zna-linkcard__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.zna-group { margin-bottom: 40px; }
.zna-group__title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; padding-bottom: 10px; border-bottom: 2px solid var(--zna-border); margin-bottom: 18px; }
.zna-group__title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--zna-orange-500); }

/* ==========================================================================
   8. Dokumentenliste
   ========================================================================== */
.zna-doclist { list-style: none; margin: 0; padding: 0; background: var(--zna-surface); border: 1px solid var(--zna-border); border-radius: var(--zna-radius); overflow: hidden; }
.zna-doc { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--zna-border); }
.zna-doc:last-child { border-bottom: 0; }
.zna-doc:hover { background: var(--zna-blue-50); }
.zna-doc__type {
	width: 46px; height: 54px; flex: none; border-radius: 6px; position: relative;
	display: grid; place-items: end center; padding-bottom: 8px;
	background: var(--zna-blue-600); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em;
	clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.zna-doc__type--pdf  { background: #c62828; }
.zna-doc__type--doc, .zna-doc__type--docx { background: #1a5cad; }
.zna-doc__type--xls, .zna-doc__type--xlsx { background: #2e7d32; }
.zna-doc__type--ppt, .zna-doc__type--pptx { background: var(--zna-orange-600); }
.zna-doc__body { flex: 1; min-width: 0; }
.zna-doc__title { font-weight: 700; color: var(--zna-blue-900); margin: 0; }
.zna-doc__desc { font-size: .9rem; color: var(--zna-muted); margin: 2px 0 0; }
.zna-doc__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--zna-muted); margin-top: 6px; align-items: center; }
.zna-doc__action { flex: none; }
@media (max-width: 640px) {
	.zna-doc { flex-wrap: wrap; }
	.zna-doc__action { width: 100%; }
	.zna-doc__action .zna-btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   9. Mitarbeiterbereich & Login
   ========================================================================== */
.zna-cta {
	display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
	background: linear-gradient(135deg, var(--zna-blue-900), var(--zna-blue-800));
	color: #fff; border-radius: var(--zna-radius-lg); padding: clamp(28px, 5vw, 48px); position: relative; overflow: hidden;
}
.zna-cta::after {
	content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
	background: radial-gradient(circle, rgba(242,140,0,.45), transparent 70%);
}
.zna-cta h2 { color: #fff; }
.zna-cta p { color: #c6d8ee; }
.zna-cta__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.zna-cta__list li { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--zna-radius-sm); padding: 10px 14px; font-weight: 600; }
.zna-cta__list svg { width: 20px; height: 20px; color: var(--zna-orange-400); flex: none; }
@media (max-width: 800px) { .zna-cta { grid-template-columns: 1fr; } }

.zna-login {
	max-width: 460px; margin: 0 auto; background: var(--zna-surface); border-radius: var(--zna-radius-lg);
	box-shadow: var(--zna-shadow-lg); padding: clamp(24px, 5vw, 40px); border-top: 5px solid var(--zna-orange-500);
}
.zna-login__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--zna-blue-50); color: var(--zna-blue-700); margin-bottom: 16px; }
.zna-login__icon svg { width: 32px; height: 32px; }
.zna-login h2 { margin-bottom: .3em; }
.zna-login > p { color: var(--zna-muted); }
.zna-login form p { margin: 0 0 14px; }
.zna-login label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; color: var(--zna-blue-900); }
.zna-login input[type="text"], .zna-login input[type="password"], .zna-input {
	width: 100%; font: inherit; padding: .7em .9em; border: 1px solid var(--zna-border); border-radius: var(--zna-radius-sm); background: #fbfdff;
}
.zna-login input[type="text"]:focus, .zna-login input[type="password"]:focus { border-color: var(--zna-blue-500); outline: 3px solid var(--zna-blue-100); }
.zna-login .login-remember label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.zna-login input[type="submit"] {
	width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: .85em; border-radius: 999px;
	background: var(--zna-orange-500); color: #fff;
}
.zna-login input[type="submit"]:hover { background: var(--zna-orange-600); }
.zna-login__foot { font-size: .88rem; color: var(--zna-muted); border-top: 1px solid var(--zna-border); margin-top: 18px; padding-top: 14px; }

.zna-welcome {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	background: var(--zna-surface); border: 1px solid var(--zna-border); border-left: 5px solid var(--zna-orange-500);
	border-radius: var(--zna-radius); padding: 18px 22px; margin-bottom: 36px;
}
.zna-welcome strong { color: var(--zna-blue-900); font-size: 1.1rem; }
.zna-welcome p { margin: 0; color: var(--zna-muted); font-size: .92rem; }

.zna-subpages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0 0 40px; }
.zna-subpages a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px;
	background: var(--zna-surface); border: 1px solid var(--zna-border); border-radius: var(--zna-radius);
	font-weight: 700; color: var(--zna-blue-900); text-decoration: none;
}
.zna-subpages a:hover { border-color: var(--zna-orange-500); color: var(--zna-orange-700); }
.zna-subpages svg { width: 18px; height: 18px; }

/* Erklärvideos */
.zna-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .zna-videos { grid-template-columns: 1fr; } }
.zna-video {
	display: flex; flex-direction: column; background: var(--zna-surface);
	border: 1px solid var(--zna-border); border-radius: var(--zna-radius); overflow: hidden;
	transition: box-shadow .15s, border-color .15s;
}
.zna-video:hover { border-color: var(--zna-orange-500); box-shadow: var(--zna-shadow); }
.zna-video__player { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--zna-blue-900), var(--zna-blue-600)); }
.zna-video__player video { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.zna-video__external {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem;
}
.zna-video__external:hover { color: var(--zna-orange-400); }
.zna-video__play {
	width: 64px; height: 64px; border-radius: 50%; background: var(--zna-orange-500); box-shadow: 0 6px 20px rgba(0,0,0,.3);
	display: grid; place-items: center; transition: transform .15s;
}
.zna-video__play::after { content: ""; margin-left: 5px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.zna-video__external:hover .zna-video__play { transform: scale(1.08); }
.zna-video__body { padding: 16px 18px 18px; }
.zna-video__title { font-size: 1.05rem; margin: 0 0 4px; }
.zna-video__desc { font-size: .9rem; color: var(--zna-muted); margin: 0 0 6px; }
a.zna-chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* ==========================================================================
   10. Inhalt / Blog / Gutenberg
   ========================================================================== */
.zna-content { max-width: 820px; }
.zna-content--wide { max-width: none; }
.zna-content > * + * { margin-top: 1em; }
.zna-content ul, .zna-content ol { padding-left: 1.3em; }
.zna-content blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-left: 4px solid var(--zna-orange-500); background: var(--zna-orange-50); border-radius: 0 var(--zna-radius-sm) var(--zna-radius-sm) 0; }
.zna-content table { width: 100%; border-collapse: collapse; background: #fff; }
.zna-content th, .zna-content td { border: 1px solid var(--zna-border); padding: .6em .8em; text-align: left; }
.zna-content th { background: var(--zna-blue-50); color: var(--zna-blue-900); }
.wp-block-button__link { background: var(--zna-orange-500); border-radius: 999px; font-weight: 700; }
.wp-block-button__link:hover { background: var(--zna-orange-600); color: #fff; }
.alignwide { max-width: var(--zna-container); }
.alignfull { width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }

.zna-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.zna-post {
	background: var(--zna-surface); border: 1px solid var(--zna-border); border-radius: var(--zna-radius); overflow: hidden; display: flex; flex-direction: column;
}
.zna-post__thumb img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.zna-post__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.zna-post__date { font-size: .8rem; color: var(--zna-orange-700); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.zna-post h3 { margin: 0; }
.zna-post h3 a { color: var(--zna-blue-900); text-decoration: none; }
.zna-post p { color: var(--zna-muted); font-size: .95rem; margin: 0; }

.zna-empty {
	padding: 28px; text-align: center; color: var(--zna-muted);
	background: var(--zna-surface); border: 2px dashed var(--zna-border); border-radius: var(--zna-radius);
}
.zna-noresults { display: none; }
.zna-noresults.is-visible { display: block; }
[hidden] { display: none !important; }

.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.nav-links .page-numbers { padding: .4em .85em; border-radius: var(--zna-radius-sm); background: #fff; border: 1px solid var(--zna-border); text-decoration: none; }
.nav-links .current { background: var(--zna-blue-700); color: #fff; border-color: var(--zna-blue-700); }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.zna-footer { background: var(--zna-blue-950); color: #a9bdd8; font-size: .92rem; }
.zna-footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
@media (max-width: 800px) { .zna-footer__main { grid-template-columns: 1fr; } }
.zna-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.zna-footer a { color: #dbe8f7; text-decoration: none; }
.zna-footer a:hover { color: var(--zna-orange-400); }
.zna-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.zna-footer .zna-brand { color: #fff; margin-bottom: 14px; }
.zna-footer .zna-brand__tag { color: #a9bdd8; display: block; }
.zna-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }
.zna-footer__note {
	display: flex; gap: 10px; align-items: flex-start; background: rgba(242,140,0,.1); border: 1px solid rgba(242,140,0,.25);
	border-radius: var(--zna-radius-sm); padding: 12px 14px; color: #ffd9a8; margin-top: 16px;
}
.zna-footer__note svg { width: 20px; height: 20px; flex: none; color: var(--zna-orange-400); }

/* ==========================================================================
   12. 404
   ========================================================================== */
.zna-404 { text-align: center; padding: 96px 0; }
.zna-404__code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; color: var(--zna-blue-100); line-height: 1; }

@media print {
	.zna-alertbar, .zna-header, .zna-footer, .zna-search, .zna-chips { display: none !important; }
	body { background: #fff; }
}
