/*
Theme Name: WAP Intranet
Theme URI:
Author: WAP Steuerberatung
Author URI:
Description: Internes Intranet-Theme für WAP Steuerberatung. Block Theme (Full Site Editing).
Version: 1.11.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.3
License: Proprietary
License URI:
Text Domain: wap-intranet
Tags: block-theme, full-site-editing, intranet
*/

/* =========================================================================
   WAP Intranet — globale Styles
   Tokens, die theme.json nicht abbildet (Schatten, Radien, Motion, Fokus),
   plus Custom-Components und Animationen. Farben/Typo kommen aus theme.json.
   ========================================================================= */

:root {
	/* ---------- Radien (Default 6px liegt in theme.json) ---------- */
	--wap-radius-sm: 4px;
	--wap-radius-md: 6px;
	--wap-radius-lg: 10px;
	--wap-radius-xl: 16px;
	--wap-radius-pill: 9999px;

	/* ---------- Schatten — bewusst dezent ---------- */
	--wap-shadow-1: 0 1px 2px rgba(14, 23, 48, 0.04), 0 1px 1px rgba(14, 23, 48, 0.03);
	--wap-shadow-2: 0 2px 4px rgba(14, 23, 48, 0.05), 0 4px 8px rgba(14, 23, 48, 0.04);
	--wap-shadow-3: 0 4px 8px rgba(14, 23, 48, 0.06), 0 12px 24px rgba(14, 23, 48, 0.06);
	--wap-shadow-4: 0 8px 16px rgba(14, 23, 48, 0.08), 0 24px 40px rgba(14, 23, 48, 0.08);

	/* ---------- Fokus-Ring ---------- */
	--wap-focus-ring: 0 0 0 3px rgba(0, 147, 178, 0.35);

	/* ---------- Brand-Mitteltöne (Deko: Avatare, Empty-States) ---------- */
	--wap-primary-70: #4d5f8c;
	--wap-primary-50: #8090ad;
	--wap-primary-15: #d9dee6;

	/* ---------- Sekundär-Tints (Engagement: Reaction-Pills, Mentions,
	   ungelesene Notifications). secondary-15 liegt als Preset in theme.json;
	   diese beiden feineren Stufen ergänzen es. ---------- */
	--wap-secondary-08: #ecf6f8;
	--wap-secondary-30: #b3dce5;

	/* ---------- Tracking ---------- */
	--wap-tracking-eyebrow: 0.14em;
	--wap-tracking-wide: 0.04em;

	/* ---------- Text auf dunklem Grund ---------- */
	--wap-on-dark-2: rgba(255, 255, 255, 0.78);
	--wap-on-dark-3: rgba(255, 255, 255, 0.55);

	/* ---------- Motion ---------- */
	--wap-ease-standard: cubic-bezier(0.2, 0, 0.2, 1);
	--wap-dur-fast: 120ms;
	--wap-dur-base: 200ms;
}

/* =========================================================================
   LAYOUT — Wurzel-Sektionen auf Design-Breite (1256 = 1320 − 2×32) zentrieren.
   WordPress sizet alignwide nur innerhalb von .is-layout-constrained; die
   Template-Sektionen liegen aber direkt unter .wp-site-blocks.
   ========================================================================= */
.wp-site-blocks > .alignwide {
	max-width: var(--wp--style--global--wide-size, 1256px);
	margin-inline: auto;
}
@media (max-width: 1320px) {
	.wp-site-blocks > .alignwide {
		max-width: calc(100% - 4rem);
	}
}

/* =========================================================================
   BASIS
   ========================================================================= */
html {
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body {
	text-wrap: pretty;
}

/* Überschriften dürfen umbrechen wie im Design */
h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
}

/* =========================================================================
   LINKS — Unterstreichung dezent, Hover über theme.json (Farbe)
   ========================================================================= */
a {
	text-decoration-color: rgba(0, 32, 91, 0.25);
	text-underline-offset: 3px;
	transition: color var(--wap-dur-fast) var(--wap-ease-standard),
		text-decoration-color var(--wap-dur-fast) var(--wap-ease-standard);
}
a:hover {
	text-decoration-color: currentColor;
}

/* =========================================================================
   FOKUS & SELEKTION — Barrierefreiheit (WCAG 2.1 AA)
   ========================================================================= */
:focus-visible {
	outline: none;
	box-shadow: var(--wap-focus-ring);
	border-radius: var(--wap-radius-sm);
}

::selection {
	background: var(--wp--preset--color--secondary-15);
	color: var(--wp--preset--color--primary);
}

/* Sichtbarer Skip-Link für Tastatur-Navigation */
.skip-link.screen-reader-text {
	position: absolute;
	left: -9999px;
	z-index: 99999;
	padding: 12px 20px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-radius: var(--wap-radius-md);
	text-decoration: none;
	font-weight: 600;
}
.skip-link.screen-reader-text:focus {
	left: 16px;
	top: 16px;
}

/* =========================================================================
   EYEBROW / KICKER — wiederkehrendes WAP-Label
   ========================================================================= */
.wap-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: var(--wap-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	margin: 0 0 0.5rem;
}

/* =========================================================================
   CARD-Hilfsklasse — dezente Fläche mit Rahmen (Sidebar, Platzhalter)
   ========================================================================= */
.wap-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-lg);
	box-shadow: var(--wap-shadow-1);
	padding: 1.25rem 1.25rem 1.125rem;
}

/* Platzhalter-Hinweis für später folgende Plugin-Bereiche */
.wap-placeholder {
	border: 1px dashed var(--wp--preset--color--border-strong);
	border-radius: var(--wap-radius-lg);
	background: var(--wp--preset--color--surface-muted);
	color: var(--wp--preset--color--text-muted);
	padding: 1.5rem;
	font-size: 0.9375rem;
}
.wap-placeholder strong {
	color: var(--wp--preset--color--primary);
}

/* =========================================================================
   DYNAMISCHE BLOCKS — wap/greeting
   Hero-Bereich, bg Dunkelblau-04, wie im Design.
   ========================================================================= */
.wap-greeting {
	background: var(--wp--preset--color--primary-04);
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: 20px 22px;
}
.wap-greeting__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: var(--wp--style--global--wide-size, 1256px);
	margin-inline: auto;
	padding-inline: 0;
}
@media (max-width: 1320px) {
	.wap-greeting__inner {
		max-width: calc(100% - 4rem);
	}
}
.wap-greeting__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.wap-greeting__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.018em;
	line-height: 1.05;
	color: var(--wp--preset--color--primary);
	margin: 0;
}
.wap-greeting__sub {
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--wp--preset--color--text-body);
	margin: 0.5rem 0 0;
	max-width: 52ch;
}

/* Stat-Chips rechts im Hero (Uhr / Wetter / Anwesenheit) */
.wap-greeting__stats {
	display: flex;
	align-items: stretch;
	gap: 8px;
	flex-wrap: wrap;
}
.wap-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-md);
	box-shadow: var(--wap-shadow-1);
	padding: 8px 13px;
	font-size: 13.5px;
	color: var(--wp--preset--color--text-muted);
}
.wap-chip__icon {
	color: var(--wp--preset--color--secondary);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.wap-chip__big {
	font-family: var(--wp--preset--font-family--display);
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--text);
	margin-right: 1px;
}
.wap-chip--clock {
	gap: 10px;
}
.wap-chip__time {
	font-family: var(--wp--preset--font-family--display);
	font-size: 20px;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	letter-spacing: -0.01em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.wap-chip__day {
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--text-muted);
}

/* Hero-Suchfeld */
.wap-hero-search {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wap-radius-md);
	padding: 0 14px;
	height: 52px;
	box-shadow: var(--wap-shadow-1);
	max-width: 620px;
	transition: box-shadow var(--wap-dur-fast) var(--wap-ease-standard),
		border-color var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-hero-search:focus-within {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--wap-focus-ring);
}
.wap-hero-search__icon {
	color: var(--wp--preset--color--text-muted);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.wap-hero-search__input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-family: var(--wp--preset--font-family--body);
	font-size: 15.5px;
	color: var(--wp--preset--color--text);
	min-width: 0;
}
.wap-hero-search__kbd {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--wp--preset--color--text-subtle);
	background: var(--wp--preset--color--surface-muted);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-sm);
	padding: 3px 7px;
	flex-shrink: 0;
}

/* =========================================================================
   HEADER — durchscheinend mit Blur, Icon-Buttons, Marken-Tag
   ========================================================================= */
.wap-header {
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.wap-header__inner {
	min-height: 64px;
}
.wap-brand__divider {
	width: 1px;
	height: 24px;
	background: var(--wp--preset--color--border-strong);
	display: inline-block;
}
.wap-brand__tag {
	font-family: var(--wp--preset--font-family--display);
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	letter-spacing: 0.01em;
}
.wap-brand {
	flex-shrink: 0;
}
.wap-header__right {
	margin-left: auto;
	flex-shrink: 0;
}
/* wap-search: Such-Bar sitzt zwischen Navigation und den rechtsbündigen
   Aktions-Icons. Da .wap-header__right per margin-left:auto rechts gepinnt
   ist, wird die Glocke NICHT verschoben — die Suchbar füllt nur den linken
   Teil der Lücke. :empty (Gäste / vor dem React-Mount) bleibt ausgeblendet. */
.wap-header__search {
	flex: 0 1 300px;
	min-width: 0;
}
.wap-header__search:empty {
	display: none;
}
@media (max-width: 880px) {
	.wap-header__search {
		flex-basis: 200px;
	}
}
@media (max-width: 600px) {
	.wap-header__search {
		display: none;
	}
}
.wap-header__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: var(--wap-radius-md);
	color: var(--wp--preset--color--text-muted);
	text-decoration: none;
	transition: background var(--wap-dur-fast) var(--wap-ease-standard),
		color var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-header__icon:hover {
	background: var(--wp--preset--color--primary-08);
	color: var(--wp--preset--color--primary);
}
.wap-header__badge {
	position: absolute;
	top: 5px;
	right: 5px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: grid;
	place-items: center;
	line-height: 1;
}

/* Hauptnavigation: gedämpft, Hover dunkelblau (Design) */
.wap-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--text-muted);
	font-size: 15px;
	text-decoration: none;
}
.wap-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}
.wap-greeting__hint {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-muted);
}
.wap-greeting__login {
	font-weight: 600;
}

/* =========================================================================
   DYNAMISCHER BLOCK — wap/auth-status (Header rechts)
   ========================================================================= */
.wap-auth {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}
.wap-auth__chip {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 5px 8px 5px 5px;
	border-radius: var(--wap-radius-pill);
	text-decoration: none;
	transition: background var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-auth__chip:hover {
	background: var(--wp--preset--color--primary-08);
}
.wap-auth__avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: #fff;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 0.8125rem;
	flex-shrink: 0;
}
.wap-auth__meta {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}
.wap-auth__name {
	font-size: 0.84375rem;
	font-weight: 600;
	color: var(--wp--preset--color--text);
}
.wap-auth__role {
	font-size: 0.71875rem;
	color: var(--wp--preset--color--text-subtle);
}
.wap-auth__login {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wap-radius-md);
	transition: border-color var(--wap-dur-fast) var(--wap-ease-standard),
		background var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-auth__login:hover {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary-08);
}

/* Dropdown via <details> — ohne JavaScript, tastaturbedienbar */
.wap-auth__dropdown {
	position: relative;
}
.wap-auth__dropdown summary {
	list-style: none;
	cursor: pointer;
}
.wap-auth__dropdown summary::-webkit-details-marker {
	display: none;
}
.wap-auth__chevron {
	color: var(--wp--preset--color--text-subtle);
	transition: transform var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-auth__dropdown[open] .wap-auth__chevron {
	transform: rotate(180deg);
}
.wap-auth__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 180px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-md);
	box-shadow: var(--wap-shadow-3);
	padding: 0.375rem;
	z-index: 70;
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}
.wap-auth__menu a {
	display: block;
	padding: 0.5rem 0.625rem;
	border-radius: var(--wap-radius-sm);
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-body);
	text-decoration: none;
}
.wap-auth__menu a:hover {
	background: var(--wp--preset--color--primary-04);
	color: var(--wp--preset--color--primary);
}
.wap-auth__separator {
	border: none;
	border-top: 1px solid var(--wp--preset--color--border);
	margin: 0.25rem 0;
}

/* =========================================================================
   FOOTER — schlanke dunkelblaue Leiste (Logo · Slogan · Stand)
   ========================================================================= */
.wap-footer__slogan {
	margin: 0;
	letter-spacing: -0.01em;
}
.wap-footer__stand {
	margin: 0;
	color: var(--wap-on-dark-3);
}

/* =========================================================================
   NEWS — Featured-/Karten-Akzente, die Patterns ergänzen
   ========================================================================= */
.wap-cat-tag {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary-08);
	padding: 4px 9px;
	border-radius: var(--wap-radius-sm);
}

/* Quick-Links-Raster (4 Spalten wie im Design) */
.wap-quicklinks-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
@media (max-width: 900px) {
	.wap-quicklinks-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 540px) {
	.wap-quicklinks-grid {
		grid-template-columns: 1fr;
	}
}

/* Quick-Link-Kachel — Icon + Text + Extern-Icon, dezenter Hover-Lift */
.wap-quicklink {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-md);
	padding: 16px;
	text-decoration: none;
	box-shadow: var(--wap-shadow-1);
	transition: box-shadow var(--wap-dur-base) var(--wap-ease-standard),
		border-color var(--wap-dur-base) var(--wap-ease-standard),
		transform var(--wap-dur-base) var(--wap-ease-standard);
}
.wap-quicklink:hover {
	box-shadow: var(--wap-shadow-2);
	border-color: var(--wp--preset--color--primary-30, #b3bcce);
	transform: translateY(-2px);
}
.wap-quicklink__icon {
	width: 46px;
	height: 46px;
	border-radius: var(--wap-radius-md);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.wap-quicklink__icon--dunkel {
	background: var(--wp--preset--color--primary-08);
	color: var(--wp--preset--color--primary);
}
.wap-quicklink__icon--hell {
	background: var(--wp--preset--color--secondary-15);
	color: var(--wp--preset--color--secondary);
}
.wap-quicklink__text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	min-width: 0;
}
.wap-quicklink__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 16px;
	font-weight: 600;
	color: var(--wp--preset--color--text);
}
.wap-quicklink__sub {
	font-size: 12.5px;
	color: var(--wp--preset--color--text-subtle);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wap-quicklink__ext {
	position: absolute;
	top: 12px;
	right: 12px;
	color: var(--wp--preset--color--border-strong);
}

/* Abschnitts-Link „Alle … verwalten →" */
.wap-section-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	white-space: nowrap;
	padding-bottom: 2px;
	border-bottom: 2px solid var(--wp--preset--color--secondary);
}
.wap-section-link:hover {
	color: var(--wp--preset--color--secondary);
}

.wap-cat-tag--accent {
	color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--secondary-15);
}

/* News-Karte (linke Spalte) */
.wap-news {
	padding: 26px 28px 28px;
}
.wap-news__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}
.wap-news__titlerow {
	display: flex;
	align-items: center;
	gap: 12px;
}
.wap-news__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--primary);
	margin: 0;
}
.wap-news__newbadge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--secondary-15);
	padding: 5px 11px;
	border-radius: var(--wap-radius-pill);
}
.wap-new-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary);
	flex-shrink: 0;
}
.wap-news__tabs {
	display: flex;
	gap: 4px;
	background: var(--wp--preset--color--surface-muted);
	padding: 4px;
	border-radius: var(--wap-radius-md);
}
.wap-news__tab {
	font-family: var(--wp--preset--font-family--body);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wp--preset--color--text-muted);
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 7px 14px;
	border-radius: var(--wap-radius-sm);
	transition: all var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-news__tab.is-active {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	box-shadow: var(--wap-shadow-1);
}

/* Featured-Card (Aufmacher) */
.wap-featured {
	display: grid;
	grid-template-columns: minmax(220px, 300px) 1fr;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-md);
	overflow: hidden;
	margin-bottom: 24px;
	box-shadow: var(--wap-shadow-2);
	text-decoration: none;
	transition: box-shadow var(--wap-dur-base) var(--wap-ease-standard);
}
.wap-featured:hover {
	box-shadow: var(--wap-shadow-3);
}
.wap-featured__media {
	position: relative;
	background: linear-gradient(145deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-90) 100%);
	display: grid;
	place-items: center;
	min-height: 230px;
	overflow: hidden;
}
.wap-featured__glyph {
	color: rgba(255, 255, 255, 0.14);
	transform: rotate(-8deg) scale(1.4);
}
.wap-featured__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 230px;
	object-fit: cover;
	grid-area: 1 / 1;
}
.wap-featured__media--has-image {
	background: var(--wp--preset--color--surface-muted);
}
.wap-featured__pill {
	position: absolute;
	top: 14px;
	left: 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	background: var(--wp--preset--color--secondary);
	padding: 5px 10px;
	border-radius: var(--wap-radius-sm);
}
.wap-featured__body {
	padding: 24px 26px;
	display: flex;
	flex-direction: column;
}
.wap-meta-row {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.wap-meta-dot {
	color: var(--wp--preset--color--border-strong);
	font-size: 13px;
}
.wap-meta-text {
	font-size: 12.5px;
	color: var(--wp--preset--color--text-subtle);
}
.wap-featured__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 23px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.18;
	color: var(--wp--preset--color--primary);
	margin: 0 0 10px;
}
.wap-featured__lead {
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-body);
	margin: 0 0 18px;
	flex: 1;
}
.wap-featured__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 16px;
}
.wap-author {
	display: flex;
	align-items: center;
	gap: 10px;
}
.wap-author__avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary-15);
	color: var(--wp--preset--color--secondary);
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 12px;
	flex-shrink: 0;
}
.wap-author__meta {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.wap-author__name {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wp--preset--color--text);
}
.wap-author__role {
	font-size: 11.5px;
	color: var(--wp--preset--color--text-subtle);
}
.wap-readmore {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--secondary);
	padding-bottom: 2px;
	white-space: nowrap;
}

/* News-Zeilen */
.wap-news-list {
	display: flex;
	flex-direction: column;
}
.wap-news-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 14px;
	border-radius: var(--wap-radius-md);
	text-decoration: none;
	transition: background var(--wap-dur-fast) var(--wap-ease-standard);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.wap-news-row:hover {
	background: var(--wp--preset--color--primary-04);
}
.wap-news-list > .wap-news-row:last-child {
	border-bottom: 0;
}
.wap-news-row__main {
	flex: 1;
	min-width: 0;
}
.wap-news-row__title {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.005em;
	color: var(--wp--preset--color--text);
	margin: 0 0 5px;
	line-height: 1.3;
}
.wap-news-row__excerpt {
	display: block;
	font-size: 14px;
	line-height: 1.55;
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}
.wap-news-row__arrow {
	color: var(--wp--preset--color--border-strong);
	flex-shrink: 0;
}
.wap-new-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}
.wap-pin {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
}
/* Tipp-Marker im News-Strom (wap_tipp läuft über die category-Taxonomie mit) */
.wap-tip-tag {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--secondary-15);
	padding: 4px 9px;
	border-radius: var(--wap-radius-sm);
}
/* Ablauf-Hinweis ("wird am … entfernt") für Schwarzes-Brett-Aushänge */
.wap-news-row__expire {
	display: block;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--wp--preset--color--warning);
	margin: 4px 0 0;
}
.wap-archive-link {
	display: inline-block;
	margin-top: 22px;
}
.wap-news-empty {
	font-size: 14px;
	color: var(--wp--preset--color--text-muted);
	padding: 24px 8px;
	text-align: center;
	margin: 0;
}

/* Archiv-Page (/aktuelles/) — Pager */
.wap-news-archive__pager {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--border);
}
.wap-news-archive__pager .page-numbers {
	display: inline-flex;
	margin: 0;
	padding: 0;
	list-style: none;
	gap: 0.375rem;
	flex-wrap: wrap;
}
.wap-news-archive__pager .page-numbers li {
	margin: 0;
}
.wap-news-archive__pager .page-numbers a,
.wap-news-archive__pager .page-numbers .current,
.wap-news-archive__pager .page-numbers .dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	padding: 0.375rem 0.75rem;
	border-radius: var(--wap-radius-sm);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	transition: background var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-news-archive__pager .page-numbers a:hover {
	background: var(--wp--preset--color--surface-muted);
}
.wap-news-archive__pager .page-numbers .current {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-color: var(--wp--preset--color--primary);
}
.wap-news-archive__pager .page-numbers .dots {
	border-color: transparent;
	background: transparent;
}

/* News-Tabs als <a>-Tags (Archiv-Page) — gleiche Optik wie <button>-Variante */
a.wap-news__tab {
	text-decoration: none;
}

/* =========================================================================
   SINGLE-ARTICLE — wap-intranet/post-article-Block
   Tokens aus theme.json + bestehender :root-Skala. Keine neuen Werte.
   ========================================================================= */
.wap-article {
	max-width: 760px;
	margin: 0 auto;
}
.wap-article__hero {
	margin: 0 0 1.5rem;
}
.wap-article__hero-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wap-radius-lg);
	box-shadow: var(--wap-shadow-1);
}
.wap-article__meta {
	margin: 0 0 0.75rem;
}
.wap-article__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.875rem, 3.5vw, 2.625rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.012em;
	color: var(--wp--preset--color--primary);
	margin: 0 0 1rem;
	text-wrap: balance;
}
.wap-article__lead {
	font-size: 1.125rem;
	line-height: 1.55;
	color: var(--wp--preset--color--text-body);
	margin: 0 0 1.5rem;
}
/* Ablauf-Banner auf der News-Single (Schwarzes-Brett-Aushang) */
.wap-article__expire {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--warning);
	background: var(--wp--preset--color--warning-bg);
	padding: 8px 14px;
	border-radius: var(--wap-radius-sm);
	margin: 0 0 1rem;
}
.wap-article__author {
	margin: 0 0 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.wap-article__author .wap-author {
	text-decoration: none;
	color: inherit;
}
.wap-article__author .wap-author:hover .wap-author__name {
	color: var(--wp--preset--color--secondary);
}
.wap-article__content {
	margin: 0 0 3rem;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--wp--preset--color--text-body);
}
.wap-article__content > * + * {
	margin-top: 1rem;
}
.wap-article__content h2 {
	font-size: 1.625rem;
	margin: 2rem 0 0.75rem;
}
.wap-article__content h3 {
	font-size: 1.25rem;
	margin: 1.5rem 0 0.5rem;
}
.wap-article__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--wap-radius-md);
}

/* Related-News als Card-Grid */
.wap-article__related {
	margin: 3rem 0 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--wp--preset--color--border);
}
.wap-article__related-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin: 0 0 1.25rem;
}
.wap-news__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
@media (max-width: 720px) {
	.wap-news__cards {
		grid-template-columns: 1fr;
	}
}
.wap-news-card {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-md);
	padding: 18px 18px 16px;
	text-decoration: none;
	box-shadow: var(--wap-shadow-1);
	transition: box-shadow var(--wap-dur-base) var(--wap-ease-standard),
		border-color var(--wap-dur-base) var(--wap-ease-standard);
}
.wap-news-card:hover {
	box-shadow: var(--wap-shadow-2);
	border-color: var(--wp--preset--color--border-strong);
}
.wap-news-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 16.5px;
	font-weight: 600;
	letter-spacing: -0.005em;
	color: var(--wp--preset--color--text);
	margin: 0 0 7px;
	line-height: 1.28;
}
.wap-news-card__meta {
	font-size: 12px;
	color: var(--wp--preset--color--text-subtle);
	margin-top: 12px;
}

.wap-article__back {
	margin: 2rem 0 0;
}

/* =========================================================================
   ANLEITUNGEN — Archive + Single
   wap-content-types Plugin. Alle Werte über --wap-* Tokens.
   ========================================================================= */

/* ----- Gemeinsame Badge-Komponente (Kategorie + Tag) ----- */
.wap-badge {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: var(--wap-radius-pill);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.02em;
}
.wap-badge--category {
	background: var(--wp--preset--color--primary-08);
	color: var(--wp--preset--color--primary);
}
.wap-badge--tag {
	background: var(--wp--preset--color--surface-muted);
	color: var(--wp--preset--color--text-muted);
}

/* ----- Archiv ----- */
.wap-anleitung-archive {
	max-width: 1200px;
	margin: 0 auto;
}

.wap-anleitung-archive__top {
	display: flex;
	align-items: flex-end;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.wap-anleitung-archive__back {
	flex: 1 1 100%;
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	color: var(--wp--preset--color--text-muted);
	text-decoration: none;
	transition: color var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-anleitung-archive__back:hover {
	color: var(--wp--preset--color--primary);
}

.wap-anleitung-archive__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin: 0;
	flex: 1 1 auto;
}

.wap-anleitung-archive__search {
	display: flex;
	align-items: center;
	gap: 4px;
}

.wap-anleitung-archive__search-input {
	padding: 0.375rem 0.75rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-sm);
	font-size: 14px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	outline: none;
	transition: border-color var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-anleitung-archive__search-input:focus {
	border-color: var(--wp--preset--color--secondary);
	box-shadow: var(--wap-focus-ring);
}

.wap-anleitung-archive__search-btn {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-sm);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text-muted);
	cursor: pointer;
	transition: background var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-anleitung-archive__search-btn:hover {
	background: var(--wp--preset--color--surface-muted);
}

.wap-anleitung-archive__layout {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 2rem;
	align-items: start;
}
@media (max-width: 720px) {
	.wap-anleitung-archive__layout {
		grid-template-columns: 1fr;
	}
}
/* Kategorie-Seite ohne Unterkategorien: Inhalt über die volle Breite. */
.wap-anleitung-archive__layout--full {
	grid-template-columns: 1fr;
}

/* Kategorie-Sidebar */
.wap-anleitung-archive__sidebar .wap-eyebrow {
	margin: 0 0 0.5rem;
}
.wap-anleitung-archive__catfilter ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.wap-anleitung-archive__catlink {
	display: block;
	padding: 0.35rem 0.625rem;
	border-radius: var(--wap-radius-sm);
	font-size: 14px;
	color: var(--wp--preset--color--text-body);
	text-decoration: none;
	transition: background var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-anleitung-archive__catlink:hover,
.wap-anleitung-archive__catlink.is-active {
	background: var(--wp--preset--color--surface-muted);
	color: var(--wp--preset--color--primary);
}
.wap-anleitung-archive__catlink.is-active {
	font-weight: 600;
}

/* Karten-Grid */
.wap-anleitung-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1rem;
}

.wap-anleitung-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-md);
	box-shadow: var(--wap-shadow-1);
	text-decoration: none;
	overflow: hidden;
	transition: box-shadow var(--wap-dur-base) var(--wap-ease-standard),
		border-color var(--wap-dur-base) var(--wap-ease-standard);
}
.wap-anleitung-card:hover {
	box-shadow: var(--wap-shadow-2);
	border-color: var(--wp--preset--color--border-strong);
}

.wap-anleitung-card__thumb {
	margin: 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}
.wap-anleitung-card__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wap-anleitung-card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.wap-anleitung-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 15.5px;
	font-weight: 600;
	color: var(--wp--preset--color--text);
	margin: 0;
	line-height: 1.28;
}

.wap-anleitung-card__excerpt {
	font-size: 13.5px;
	color: var(--wp--preset--color--text-body);
	margin: 0;
	line-height: 1.5;
	flex: 1;
}

.wap-anleitung-card__date {
	font-size: 12px;
	color: var(--wp--preset--color--text-subtle);
	margin-top: auto;
}

/* Pager */
.wap-anleitung-archive__pager {
	margin-top: 2rem;
}
.wap-anleitung-archive__pager .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.wap-anleitung-archive__pager .page-numbers li {
	display: contents;
}
.wap-anleitung-archive__pager .page-numbers a,
.wap-anleitung-archive__pager .page-numbers .current,
.wap-anleitung-archive__pager .page-numbers .dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 0.5rem;
	border-radius: var(--wap-radius-sm);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	transition: background var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-anleitung-archive__pager .page-numbers a:hover {
	background: var(--wp--preset--color--surface-muted);
}
.wap-anleitung-archive__pager .page-numbers .current {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-color: var(--wp--preset--color--primary);
}
.wap-anleitung-archive__pager .page-numbers .dots {
	border-color: transparent;
	background: transparent;
}

/* Empty state */
.wap-anleitung-archive__empty {
	padding: 2.5rem;
	border: 1px dashed var(--wp--preset--color--border-strong);
	border-radius: var(--wap-radius-lg);
	text-align: center;
	color: var(--wp--preset--color--text-muted);
	font-size: 15px;
}

/* ----- Single ----- */
.wap-anleitung-article {
	max-width: 820px;
	margin: 0 auto;
}

.wap-anleitung-article__header {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}
.wap-anleitung-article__header-text {
	flex: 1 1 0;
	min-width: 0;
}
.wap-anleitung-article__thumb {
	flex: 0 0 150px;
	width: 150px;
	height: 150px;
	border-radius: var(--wap-radius-md);
	overflow: hidden;
	margin: 0;
	box-shadow: var(--wap-shadow-1);
}
.wap-anleitung-article__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (max-width: 560px) {
	.wap-anleitung-article__header {
		flex-direction: column-reverse;
	}
	.wap-anleitung-article__thumb {
		flex: none;
		width: 100%;
		height: 200px;
	}
}

.wap-anleitung-article__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 0.75rem;
}

.wap-anleitung-article__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.012em;
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.75rem;
	text-wrap: balance;
}

.wap-anleitung-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.75rem 0;
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
	margin-bottom: 1.5rem;
	font-size: 13px;
	color: var(--wp--preset--color--text-muted);
}

.wap-anleitung-article__author {
	flex: 0 0 100%;
}
.wap-anleitung-article__author .wap-author {
	text-decoration: none;
}
.wap-anleitung-article__author .wap-author:hover .wap-author__name {
	color: var(--wp--preset--color--secondary);
}

.wap-anleitung-article__modified {
	font-size: 13px;
}

.wap-anleitung-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-left: auto;
}


.wap-anleitung-article__content {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--wp--preset--color--text-body);
	margin-bottom: 3rem;
}
.wap-anleitung-article__content > * + * {
	margin-top: 1rem;
}
.wap-anleitung-article__content h2 {
	font-size: 1.5rem;
	margin: 2rem 0 0.75rem;
}
.wap-anleitung-article__content h3 {
	font-size: 1.125rem;
	margin: 1.5rem 0 0.5rem;
}
.wap-anleitung-article__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--wap-radius-md);
}

.wap-anleitung-article__back {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--border);
}
.wap-anleitung-article__back-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
}
.wap-anleitung-article__back-link:hover {
	text-decoration: underline;
}

/* =========================================================================
   TIPPS & TRICKS — Schwarzes Brett (Archiv)
   ========================================================================= */
.wap-tipp-archive {
	max-width: 1200px;
	margin: 0 auto;
}

.wap-tipp-archive__top {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}
.wap-tipp-archive__top-left {
	flex: 1 1 auto;
	min-width: 0;
}
.wap-tipp-archive__top-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	padding-top: 0.25rem;
}

.wap-tipp-archive__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.375rem;
}
.wap-tipp-archive__lead {
	font-size: 14px;
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}

.wap-tipp-archive__search {
	display: flex;
	align-items: center;
	gap: 4px;
}
.wap-tipp-archive__search-input {
	padding: 0.375rem 0.75rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-sm);
	font-size: 14px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	outline: none;
	transition: border-color var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-tipp-archive__search-input:focus {
	border-color: var(--wp--preset--color--secondary);
	box-shadow: var(--wap-focus-ring);
}
.wap-tipp-archive__search-btn {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-sm);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text-muted);
	cursor: pointer;
	transition: background var(--wap-dur-fast) var(--wap-ease-standard),
		color var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-tipp-archive__search-btn:hover {
	background: var(--wp--preset--color--surface-muted);
	color: var(--wp--preset--color--text);
}

.wap-tipp-archive__submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0.4rem 0.875rem;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	border-radius: var(--wap-radius-sm);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-tipp-archive__submit-btn:hover {
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 85%, #000);
}

/* Tag-Filter */
.wap-tipp-archive__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-bottom: 1.5rem;
}
.wap-tipp-archive__tag {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-pill);
	font-size: 13px;
	font-weight: 500;
	color: var(--wp--preset--color--text-muted);
	text-decoration: none;
	background: transparent;
	transition: background var(--wap-dur-fast) var(--wap-ease-standard),
		color var(--wap-dur-fast) var(--wap-ease-standard),
		border-color var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-tipp-archive__tag:hover {
	background: var(--wp--preset--color--surface-muted);
	color: var(--wp--preset--color--text);
}
.wap-tipp-archive__tag.is-active {
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 12%, transparent);
	color: var(--wp--preset--color--secondary);
	border-color: color-mix(in srgb, var(--wp--preset--color--secondary) 35%, transparent);
	font-weight: 600;
}

/* Karten-Grid */
.wap-tipp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
}

.wap-tipp-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.875rem;
	padding: 1.125rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-lg);
	box-shadow: var(--wap-shadow-1);
	text-decoration: none;
	color: inherit;
	transition: box-shadow var(--wap-dur-fast) var(--wap-ease-standard),
		transform var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-tipp-card:hover {
	box-shadow: var(--wap-shadow-2);
	transform: translateY(-2px);
}

.wap-tipp-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.wap-tipp-card__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin: 0;
	line-height: 1.3;
}
.wap-tipp-card:hover .wap-tipp-card__title {
	color: var(--wp--preset--color--secondary);
}
.wap-tipp-card__excerpt {
	font-size: 13.5px;
	color: var(--wp--preset--color--text-body);
	line-height: 1.55;
	margin: 0;
}
.wap-tipp-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.wap-tipp-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding-top: 0.625rem;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: 12px;
	color: var(--wp--preset--color--text-muted);
}
.wap-tipp-card__author {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wap-tipp-card__date {
	white-space: nowrap;
}

/* Pager */
.wap-tipp-archive__pager {
	margin-top: 2rem;
}
.wap-tipp-archive__pager .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.wap-tipp-archive__pager .page-numbers li { display: contents; }
.wap-tipp-archive__pager .page-numbers a,
.wap-tipp-archive__pager .page-numbers .current,
.wap-tipp-archive__pager .page-numbers .dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 0.5rem;
	border-radius: var(--wap-radius-sm);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-tipp-archive__pager .page-numbers a {
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
}
.wap-tipp-archive__pager .page-numbers a:hover {
	background: var(--wp--preset--color--surface-muted);
}
.wap-tipp-archive__pager .page-numbers .current {
	background: var(--wp--preset--color--secondary);
	color: #fff;
	border: 1px solid transparent;
}

/* Empty State */
.wap-tipp-archive__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.875rem;
	padding: 3rem 1.5rem;
	text-align: center;
}
.wap-tipp-archive__empty-icon {
	color: var(--wp--preset--color--primary);
	opacity: 0.2;
}
.wap-tipp-archive__empty-text {
	font-size: 15px;
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}
.wap-tipp-archive__reset-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
}
.wap-tipp-archive__reset-link:hover { text-decoration: underline; }

/* =========================================================================
   TIPPS & TRICKS — Single-View
   ========================================================================= */
.wap-tipp-article {
	max-width: 820px;
	margin: 0 auto;
}

.wap-tipp-article__header {
	margin-bottom: 1.5rem;
}

.wap-tipp-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 0.75rem;
}

.wap-tipp-article__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.012em;
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.75rem;
	text-wrap: balance;
}

.wap-tipp-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.75rem 0;
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: 13px;
	color: var(--wp--preset--color--text-muted);
}
.wap-tipp-article__author {
	flex: 0 0 100%;
}
.wap-tipp-article__author .wap-author { text-decoration: none; }
.wap-tipp-article__author .wap-author:hover .wap-author__name {
	color: var(--wp--preset--color--secondary);
}
.wap-tipp-article__date { font-size: 13px; }

.wap-tipp-article__expire-notice {
	margin: 0.75rem 0 0;
	padding: 0.5rem 0.875rem;
	background: color-mix(in srgb, #b27400 8%, transparent);
	border-left: 3px solid #b27400;
	border-radius: var(--wap-radius-sm);
	font-size: 13px;
	color: var(--wp--preset--color--text-muted);
}

.wap-tipp-article__content {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--wp--preset--color--text-body);
	margin: 1.5rem 0 3rem;
}
.wap-tipp-article__content > * + * { margin-top: 1rem; }
.wap-tipp-article__content h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.wap-tipp-article__content h3 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
.wap-tipp-article__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--wap-radius-md);
}

.wap-tipp-article__back {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--border);
}
.wap-tipp-article__back-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
}
.wap-tipp-article__back-link:hover { text-decoration: underline; }

/* =========================================================================
   SIDEBAR — Kalender / Abwesenheiten / Team
   ========================================================================= */
.wap-sb {
	padding: 20px 20px 18px;
}
.wap-sb__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}
.wap-sb__headicon {
	color: var(--wp--preset--color--secondary);
	display: grid;
	place-items: center;
}
.wap-sb__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 18px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	margin: 0;
	flex: 1;
}
.wap-cal-widget__cog {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: var(--wap-radius-pill);
	color: var(--wp--preset--color--text-muted);
	flex: 0 0 auto;
	transition: background 0.15s ease, color 0.15s ease;
}
.wap-cal-widget__cog:hover,
.wap-cal-widget__cog:focus-visible {
	background: var(--wp--preset--color--surface-muted);
	color: var(--wp--preset--color--primary);
}
.wap-sb__count {
	font-size: 12px;
	font-weight: 700;
	color: var(--wp--preset--color--text-muted);
	background: var(--wp--preset--color--surface-muted);
	border-radius: var(--wap-radius-pill);
	padding: 2px 9px;
}
.wap-sb__note {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--wp--preset--color--text-subtle);
}
.wap-sb__link {
	margin-top: 14px;
}

/* Kalender */
.wap-cal__nav {
	display: flex;
	align-items: center;
	gap: 2px;
}
.wap-cal__navbtn {
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	border-radius: var(--wap-radius-sm);
	color: var(--wp--preset--color--text-body);
	cursor: pointer;
}
.wap-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	margin-bottom: 18px;
}
.wap-cal__wd {
	font-size: 11px;
	font-weight: 700;
	color: var(--wp--preset--color--text-subtle);
	text-align: center;
	padding: 2px 0 6px;
	letter-spacing: 0.04em;
}
.wap-cal__day {
	position: relative;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--wp--preset--color--text-body);
	border-radius: var(--wap-radius-sm);
	padding-bottom: 4px;
}
.wap-cal__day.is-today {
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-weight: 700;
}
.wap-cal__dots {
	position: absolute;
	bottom: 4px;
	display: flex;
	gap: 2px;
}
.wap-cal__dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
}
.wap-cal__agendahead {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-subtle);
	margin-bottom: 10px;
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 16px;
}
.wap-cal__agenda {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.wap-cal__row {
	display: flex;
	align-items: center;
	gap: 11px;
}
.wap-cal__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 30px;
	flex-shrink: 0;
}
.wap-cal__dateday {
	font-family: var(--wp--preset--font-family--display);
	font-size: 16px;
	font-weight: 700;
	color: var(--wp--preset--color--text);
	line-height: 1;
}
.wap-cal__datemon {
	font-size: 10.5px;
	color: var(--wp--preset--color--text-subtle);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.wap-cal__bar {
	width: 3px;
	border-radius: 2px;
	align-self: stretch;
}
.wap-cal__evmain {
	flex: 1;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	min-width: 0;
}
.wap-cal__evtitle {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wp--preset--color--text);
}
.wap-cal__evtime {
	font-size: 12px;
	color: var(--wp--preset--color--text-subtle);
}
.wap-cal__type {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 3px 7px;
	border-radius: var(--wap-radius-sm);
	flex-shrink: 0;
}
.wap-cal__type--frist {
	color: var(--wp--preset--color--warning);
	background: var(--wp--preset--color--warning-bg);
}
.wap-cal__type--termin {
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary-08);
}
.wap-cal__type--event {
	color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--secondary-15);
}
.wap-cal__type--geburtstag {
	color: var(--wp--preset--color--success);
	background: var(--wp--preset--color--success-bg);
}

/* Abwesenheiten */
.wap-abs__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.wap-abs__row {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 8px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.wap-abs__list .wap-abs__row:last-child {
	border-bottom: 0;
}
.wap-abs__avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary-08);
	color: var(--wp--preset--color--primary);
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 12px;
	flex-shrink: 0;
}
.wap-abs__main {
	flex: 1;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	min-width: 0;
}
.wap-abs__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--text);
}
.wap-abs__reason {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	color: var(--wp--preset--color--text-muted);
}
.wap-abs__reason svg {
	color: var(--wp--preset--color--text-subtle);
}
.wap-abs__until {
	font-size: 12px;
	color: var(--wp--preset--color--text-subtle);
	flex-shrink: 0;
	text-align: right;
}

/* Team */
.wap-team__sublabel {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-subtle);
	margin-bottom: 8px;
}
.wap-team__sublabel--mt {
	margin-top: 18px;
}
.wap-team__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.wap-team__row {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 7px 0;
}
.wap-team__avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 12px;
	flex-shrink: 0;
}
.wap-team__avatar--success {
	background: var(--wp--preset--color--success-bg);
	color: var(--wp--preset--color--success);
}
.wap-team__avatar--accent {
	background: var(--wp--preset--color--secondary-15);
	color: var(--wp--preset--color--secondary);
}
.wap-team__role {
	font-size: 12.5px;
	color: var(--wp--preset--color--text-muted);
}
.wap-team__when {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	flex-shrink: 0;
}

/* =========================================================================
   MITARBEITER — Verzeichnis (Archive), Profil (Single), Karten
   ========================================================================= */
.wap-employee-archive__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 32px;
	margin: 0 0 1.25rem;
}

.wap-employee-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	background: var(--wp--preset--color--surface);
	padding: 0.75rem;
	border-radius: var(--wap-radius-lg);
	box-shadow: var(--wap-shadow-1);
	margin-bottom: 1.5rem;
}
.wap-employee-search__input,
.wap-employee-search__select {
	height: 40px;
	padding: 0 0.875rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-md);
	background: var(--wp--preset--color--surface);
	font: inherit;
	color: var(--wp--preset--color--text);
}
.wap-employee-search__input {
	flex: 1 1 220px;
	min-width: 0;
}
.wap-employee-search__select {
	min-width: 180px;
}
.wap-employee-search__submit {
	height: 40px;
	padding: 0 1.25rem;
	border: 0;
	border-radius: var(--wap-radius-md);
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-employee-search__submit:hover {
	background: var(--wp--preset--color--primary-90);
}

.wap-employee-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}
@media (max-width: 1023px) {
	.wap-employee-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.wap-employee-grid {
		grid-template-columns: 1fr;
	}
}

.wap-employee-empty {
	color: var(--wp--preset--color--text-muted);
	padding: 2rem 0;
}

/* ---------- Karte: Basis ---------- */
.wap-employee-card {
	display: block;
	text-decoration: none;
	color: inherit;
}
.wap-employee-avatar {
	border-radius: 50%;
	object-fit: cover;
	background: var(--wp--preset--color--surface-muted);
}
.wap-employee-avatar--placeholder {
	padding: 6px;
	background: var(--wp--preset--color--surface-muted);
}

/* ---------- Compact (Sidebar) ---------- */
.wap-employee-card--compact {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 8px 0;
	border-radius: var(--wap-radius-sm);
	transition: background var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-employee-card--compact:hover {
	background: var(--wp--preset--color--surface-muted);
}
.wap-employee-card--compact .wap-employee-avatar {
	flex-shrink: 0;
}
.wap-employee-card--compact .wap-employee-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.wap-employee-card--compact .wap-employee-card__name {
	font-weight: 600;
	font-size: 14px;
	color: var(--wp--preset--color--text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.wap-employee-card--compact .wap-employee-card__role {
	font-size: 12.5px;
	color: var(--wp--preset--color--text-muted);
}

/* ---------- Medium (Verzeichnis-Grid) ---------- */
.wap-employee-card--medium {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-lg);
	padding: 1.25rem;
	box-shadow: var(--wap-shadow-1);
	transition: box-shadow var(--wap-dur-base) var(--wap-ease-standard),
		transform var(--wap-dur-base) var(--wap-ease-standard);
}
.wap-employee-card--medium:hover {
	box-shadow: var(--wap-shadow-3);
	transform: translateY(-1px);
}
.wap-employee-card--medium .wap-employee-card__link {
	display: flex;
	gap: 0.875rem;
	text-decoration: none;
	color: inherit;
	margin-bottom: 0.75rem;
}
.wap-employee-card--medium .wap-employee-avatar {
	flex-shrink: 0;
}
.wap-employee-card--medium .wap-employee-card__head {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.wap-employee-card--medium .wap-employee-card__name {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 17px;
	margin: 0 0 0.125rem;
	color: var(--wp--preset--color--text);
}
.wap-employee-card--medium .wap-employee-card__role {
	font-size: 14px;
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}
.wap-employee-card--medium .wap-employee-card__meta {
	font-size: 13px;
	color: var(--wp--preset--color--text-muted);
	margin: 0.25rem 0 0;
}
.wap-employee-card--medium .wap-employee-card__contacts {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--wp--preset--color--border);
}
.wap-employee-card--medium .wap-employee-card__contact {
	font-size: 13.5px;
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.wap-employee-card--medium .wap-employee-card__contact:hover {
	text-decoration: underline;
}

/* ---------- Full (Single-Profil) ---------- */
.wap-employee-profile {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 720px;
	margin: 0 auto;
}
.wap-employee-card--full {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-xl);
	padding: 2rem;
	box-shadow: var(--wap-shadow-2);
}
.wap-employee-card--full .wap-employee-card__head {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.wap-employee-card--full .wap-employee-card__headtext {
	min-width: 0;
}
.wap-employee-card--full .wap-employee-card__name {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 32px;
	margin: 0 0 0.25rem;
	color: var(--wp--preset--color--text);
}
.wap-employee-card--full .wap-employee-card__role,
.wap-employee-card--full .wap-employee-card__dept {
	font-size: 18px;
	font-weight: 500;
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}
.wap-employee-card__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.875rem 1.5rem;
	margin: 0;
}
@media (max-width: 600px) {
	.wap-employee-card__fields {
		grid-template-columns: 1fr;
	}
}
.wap-employee-card__field {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}
.wap-employee-card__field dt {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--wap-tracking-eyebrow);
	color: var(--wp--preset--color--text-muted);
}
.wap-employee-card__field dd {
	margin: 0;
	font-size: 15px;
	color: var(--wp--preset--color--text);
}
.wap-employee-card__field dd a {
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
}
.wap-employee-card__field dd a:hover {
	text-decoration: underline;
}

.wap-employee-profile__substitute {
	background: var(--wp--preset--color--surface-muted);
	padding: 0.875rem 1.125rem;
	border-radius: var(--wap-radius-md);
	margin: 0;
	font-size: 15px;
}
.wap-employee-profile__back a {
	color: var(--wp--preset--color--text-muted);
	text-decoration: none;
	font-size: 14px;
}
.wap-employee-profile__back a:hover {
	color: var(--wp--preset--color--primary);
}

/* ---------- Sidebar: „Im Team"-Block ---------- */
.wap-im-team {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

/* ---------- Profil-Editor-Block ---------- */
.wap-profile-editor {
	max-width: 640px;
}
.wap-profile-editor__head {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 1.75rem;
}
.wap-profile-editor__headtext {
	min-width: 0;
}
.wap-profile-editor__name {
	margin: 0 0 0.125rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}
.wap-profile-editor__role {
	margin: 0;
	font-size: 14px;
	color: var(--wp--preset--color--text-muted);
}
.wap-profile-editor__section {
	margin-bottom: 2rem;
}
.wap-profile-editor__section-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wap-tracking-eyebrow);
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 0.75rem;
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.wap-profile-editor__section-note {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	font-size: 12px;
}
.wap-profile-editor__azure-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1.5rem;
	background: var(--wp--preset--color--surface-muted);
	padding: 1rem 1.125rem;
	border-radius: var(--wap-radius-md);
}
@media (max-width: 540px) {
	.wap-profile-editor__azure-fields {
		grid-template-columns: 1fr;
	}
}
.wap-profile-editor__az-field {
	display: flex;
	flex-direction: column;
	gap: 0.0625rem;
}
.wap-profile-editor__az-field dt {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--wap-tracking-eyebrow);
	color: var(--wp--preset--color--text-muted);
}
.wap-profile-editor__az-field dd {
	margin: 0;
	font-size: 14px;
}
.wap-profile-editor__form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.wap-profile-editor__form-field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}
.wap-profile-editor__form-field label {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--text);
}
.wap-profile-editor__form-field input[type="text"],
.wap-profile-editor__form-field input[type="date"],
.wap-profile-editor__form-field textarea {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-sm);
	padding: 0.5rem 0.75rem;
	font-size: 15px;
	font-family: inherit;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--base);
	width: 100%;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.wap-profile-editor__form-field input[type="text"]:focus,
.wap-profile-editor__form-field input[type="date"]:focus,
.wap-profile-editor__form-field textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent);
}
.wap-profile-editor__form-field textarea {
	resize: vertical;
}
.wap-profile-editor__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	padding-top: 0.25rem;
}
.wap-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5625rem 1.25rem;
	border: none;
	border-radius: var(--wap-radius-sm);
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
}
.wap-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.wap-btn--primary {
	background: var(--wp--preset--color--primary);
	color: #fff;
}
.wap-btn--primary:hover:not(:disabled) {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 85%, #000);
}
.wap-btn--ghost {
	background: transparent;
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--text);
}
.wap-btn--ghost:hover:not(:disabled) {
	background: var(--wp--preset--color--surface-muted);
}
.wap-btn--danger {
	background: transparent;
	border: 1px solid var(--wp--preset--color--danger, #b23a3a);
	color: var(--wp--preset--color--danger, #b23a3a);
}
.wap-btn--danger:hover:not(:disabled) {
	background: color-mix(in srgb, var(--wp--preset--color--danger, #b23a3a) 8%, transparent);
}
.wap-btn:focus-visible {
	outline: none;
	box-shadow: var(--wap-focus-ring);
}

/* =========================================================================
   TOGGLE-SWITCH — wiederverwendbarer CSS-only Switch (a11y: echte
   <input type="checkbox"> bleibt visually-hidden, aber im Tab-Flow).
   ========================================================================= */
.wap-toggle {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex-shrink: 0;
}
.wap-toggle input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	opacity: 0;
}
.wap-toggle__track {
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--border-strong, #c4c9d2);
	border-radius: var(--wap-radius-pill);
	transition: background var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-toggle__track::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	box-shadow: var(--wap-shadow-1);
	transition: transform var(--wap-dur-fast) var(--wap-ease-standard);
}
.wap-toggle input:checked + .wap-toggle__track {
	background: var(--wp--preset--color--secondary);
}
.wap-toggle input:checked + .wap-toggle__track::before {
	transform: translateX(18px);
}
.wap-toggle input:focus-visible + .wap-toggle__track {
	box-shadow: var(--wap-focus-ring);
}
.wap-profile-editor__status {
	font-size: 14px;
	font-weight: 500;
}
.wap-profile-editor__status--ok {
	color: var(--wp--preset--color--success, #1d8348);
}
.wap-profile-editor__status--error {
	color: var(--wp--preset--color--danger, #c0392b);
}
.wap-profile-editor__hint {
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--surface-muted);
	border-radius: var(--wap-radius-md);
	font-size: 15px;
}
.wap-profile-editor__hint a {
	color: var(--wp--preset--color--secondary);
	margin-left: 0.5rem;
}
.wap-profile-editor__notice {
	margin: 0 0 1rem;
	padding: 0.625rem 0.875rem;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 8%, transparent);
	border-left: 3px solid var(--wp--preset--color--primary);
	border-radius: var(--wap-radius-sm);
	font-size: 13px;
	color: var(--wp--preset--color--text);
}

/* ---------- Employee-Picker (Combobox im Profil-Editor) ---------- */
.wap-employee-picker {
	position: relative;
}
.wap-employee-picker__current {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.4375rem 0.625rem 0.4375rem 0.875rem;
	background: var(--wp--preset--color--surface-muted);
	border-radius: var(--wap-radius-sm);
	font-size: 14px;
}
.wap-employee-picker__name {
	font-weight: 500;
}
.wap-employee-picker__remove {
	background: transparent;
	border: none;
	padding: 0.125rem 0.5rem;
	border-radius: var(--wap-radius-sm);
	font-size: 12px;
	color: var(--wp--preset--color--text-muted);
	cursor: pointer;
}
.wap-employee-picker__remove:hover {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--danger, #c0392b);
}
.wap-employee-picker__search {
	width: 100%;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-sm);
	padding: 0.5rem 0.75rem;
	font-size: 15px;
	font-family: inherit;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--base);
}
.wap-employee-picker__search:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent);
}
.wap-employee-picker__list {
	position: absolute;
	z-index: 20;
	top: 100%;
	left: 0;
	right: 0;
	margin: 0.25rem 0 0;
	padding: 0.25rem;
	list-style: none;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wap-radius-sm);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	max-height: 260px;
	overflow-y: auto;
}
.wap-employee-picker__option {
	display: flex;
	flex-direction: column;
	gap: 0.0625rem;
	padding: 0.5rem 0.625rem;
	border-radius: var(--wap-radius-sm);
	cursor: pointer;
}
.wap-employee-picker__option:hover,
.wap-employee-picker__option.is-active {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 8%, transparent);
}
.wap-employee-picker__opt-name {
	font-size: 14px;
	font-weight: 500;
}
.wap-employee-picker__opt-meta {
	font-size: 12px;
	color: var(--wp--preset--color--text-muted);
}
.wap-employee-picker__empty {
	padding: 0.5rem 0.625rem;
	font-size: 13px;
	color: var(--wp--preset--color--text-muted);
}

/* =========================================================================
   MOTION — Voreinstellung respektiert reduzierte Bewegung
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
