/*
 * WERKSTATT DES VERTRAUENS – Loginbereich (Portal) 2027
 * Alle Regeln sind auf .wdv-portal begrenzt, damit Theme/Elementor unberührt bleiben.
 * Farben und Schrift wie die Website: Navy #04305E, Signalgelb #FFED00, Roboto.
 */

.wdv-portal {
	--wdv-navy: #04305e;
	--wdv-navy-dark: #021a35;
	--wdv-navy-soft: #e8eef6;
	--wdv-yellow: #ffed00;
	--wdv-yellow-dark: #e6d500;
	--wdv-ink: #0f1b2d;
	--wdv-text: #2b3a4d;
	--wdv-muted: #5b6b80;
	--wdv-line: #dfe5ec;
	--wdv-bg: #f4f6f9;
	--wdv-white: #ffffff;
	--wdv-ok: #1a7f45;
	--wdv-ok-bg: #e7f5ec;
	--wdv-warn-bg: #fff8cc;
	--wdv-error: #b42318;
	--wdv-error-bg: #fdecea;
	--wdv-radius: 14px;
	--wdv-radius-sm: 10px;
	--wdv-shadow: 0 6px 24px rgba(2, 26, 53, .10);
	--wdv-shadow-lg: 0 14px 40px rgba(2, 26, 53, .22);

	font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--wdv-text);
	text-align: left;
	max-width: 1180px;
	margin: 0 auto 40px;
	-webkit-font-smoothing: antialiased;
}
.wdv-portal *, .wdv-portal *::before, .wdv-portal *::after { box-sizing: border-box; }
.wdv-portal img { max-width: 100%; height: auto; display: block; }
.wdv-portal a { color: var(--wdv-navy); }
.wdv-portal p { margin: 0 0 .8em; }
.wdv-portal [hidden] { display: none !important; }

/* Überschriften: Theme-Stile (Großbuchstaben, Gelb) innerhalb des Portals neutralisieren */
.wdv-portal h1.wdv-h, .wdv-portal h2.wdv-h, .wdv-portal h3.wdv-h, .wdv-portal h4.wdv-h {
	font-family: inherit; color: var(--wdv-ink); text-transform: none; letter-spacing: 0;
	font-weight: 700; line-height: 1.25; margin: 0 0 .5em; padding: 0; background: none;
}
.wdv-portal h1.wdv-h { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.wdv-portal h2.wdv-h { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.wdv-portal h3.wdv-h { font-size: 1.12rem; }
.wdv-portal h4.wdv-h { font-size: 1rem; }
.wdv-portal .wdv-on-dark, .wdv-portal .wdv-on-dark h1.wdv-h, .wdv-portal .wdv-on-dark h2.wdv-h, .wdv-portal .wdv-on-dark h3.wdv-h { color: var(--wdv-white); }
.wdv-portal .wdv-muted { color: var(--wdv-muted); font-size: .92rem; }
.wdv-portal .wdv-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wdv-yellow); margin-bottom: .4rem; }

/* Seitenkopf des Themes ausblenden, wenn das Portal angezeigt wird (eigener Kopf) */
body:has(.wdv-portal) .entry-header { display: none; }

/* ---------- Kopfzeile ---------- */
.wdv-portal .wdv-topbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between;
	background: var(--wdv-white); border-radius: var(--wdv-radius); box-shadow: var(--wdv-shadow);
	padding: 18px 24px; margin: 8px 0 14px;
}
.wdv-portal .wdv-topbar-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wdv-portal .wdv-avatar {
	flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--wdv-navy); color: var(--wdv-yellow);
	display: grid; place-items: center; font-weight: 700; font-size: 1.05rem;
}
.wdv-portal .wdv-topbar-name { font-weight: 700; color: var(--wdv-ink); font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.wdv-portal .wdv-topbar-meta { font-size: .86rem; color: var(--wdv-muted); }
.wdv-portal .wdv-topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wdv-portal .wdv-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
	font-size: .82rem; font-weight: 700; white-space: nowrap;
}
.wdv-portal .wdv-badge-gold { background: var(--wdv-yellow); color: var(--wdv-ink); }
.wdv-portal .wdv-badge-soft { background: var(--wdv-navy-soft); color: var(--wdv-navy); }
.wdv-portal .wdv-badge-ok { background: var(--wdv-ok-bg); color: var(--wdv-ok); }

/* ---------- Navigation ---------- */
.wdv-portal .wdv-nav {
	display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	background: var(--wdv-navy-dark); padding: 6px; border-radius: var(--wdv-radius); margin-bottom: 18px;
	position: sticky; top: 8px; z-index: 30; box-shadow: var(--wdv-shadow);
}
.wdv-portal .wdv-nav::-webkit-scrollbar { display: none; }
.wdv-portal .wdv-nav-btn {
	flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #cdd8e6;
	font: inherit; font-weight: 600; font-size: .95rem; padding: 11px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap;
	min-height: 44px; transition: background .15s, color .15s;
}
.wdv-portal .wdv-nav-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.wdv-portal .wdv-nav-btn[aria-current="page"] { background: var(--wdv-yellow); color: var(--wdv-ink); }
.wdv-portal .wdv-nav-btn svg { width: 18px; height: 18px; flex: none; }
.wdv-portal .wdv-nav-count {
	min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--wdv-yellow); color: var(--wdv-ink);
	font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center;
}
.wdv-portal .wdv-nav-btn[aria-current="page"] .wdv-nav-count { background: var(--wdv-ink); color: var(--wdv-yellow); }

/* ---------- Karten & Raster ---------- */
.wdv-portal .wdv-view { animation: wdv-fade .2s ease; }
@keyframes wdv-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.wdv-portal .wdv-card {
	background: var(--wdv-white); border-radius: var(--wdv-radius); box-shadow: var(--wdv-shadow);
	padding: 24px; margin-bottom: 18px;
}
.wdv-portal .wdv-grid { display: grid; gap: 18px; }
.wdv-portal .wdv-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wdv-portal .wdv-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wdv-portal .wdv-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wdv-portal .wdv-grid > .wdv-card { margin-bottom: 0; }

/* ---------- Auszeichnungs-Karte (Übersicht) ---------- */
.wdv-portal .wdv-hero {
	position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: center;
	background: linear-gradient(135deg, var(--wdv-navy) 0%, var(--wdv-navy-dark) 100%); color: #e9eef6;
	border-radius: var(--wdv-radius); padding: 34px; margin-bottom: 18px; box-shadow: var(--wdv-shadow-lg);
}
.wdv-portal .wdv-hero::after {
	content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255,237,0,.22) 0%, rgba(255,237,0,0) 70%); pointer-events: none;
}
.wdv-portal .wdv-hero p { color: #d3ddea; max-width: 56ch; }
.wdv-portal .wdv-hero-seal {
	justify-self: center; background: #fff; border-radius: 22px; padding: 18px; width: min(260px, 100%);
	box-shadow: 0 10px 30px rgba(0,0,0,.25); position: relative; z-index: 1;
}
.wdv-portal .wdv-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Schaltflächen ---------- */
.wdv-portal .wdv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 10px;
	font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; padding: 11px 18px; min-height: 44px; cursor: pointer;
	text-decoration: none; transition: background .15s, border-color .15s, transform .05s; width: auto; margin: 0;
}
.wdv-portal .wdv-btn:active { transform: translateY(1px); }
.wdv-portal .wdv-btn svg { width: 18px; height: 18px; flex: none; }
.wdv-portal .wdv-btn-primary { background: var(--wdv-yellow); color: var(--wdv-ink); }
.wdv-portal .wdv-btn-primary:hover { background: var(--wdv-yellow-dark); color: var(--wdv-ink); }
.wdv-portal .wdv-btn-navy { background: var(--wdv-navy); color: #fff; }
.wdv-portal .wdv-btn-navy:hover { background: var(--wdv-navy-dark); color: #fff; }
.wdv-portal .wdv-btn-ghost { background: transparent; color: var(--wdv-navy); border-color: var(--wdv-line); }
.wdv-portal .wdv-btn-ghost:hover { border-color: var(--wdv-navy); color: var(--wdv-navy); }
.wdv-portal .wdv-on-dark .wdv-btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.wdv-portal .wdv-on-dark .wdv-btn-ghost:hover { border-color: #fff; color: #fff; }
.wdv-portal .wdv-btn-block { width: 100%; }
.wdv-portal .wdv-btn[disabled] { opacity: .6; cursor: not-allowed; }
.wdv-portal .wdv-btn:focus-visible, .wdv-portal .wdv-nav-btn:focus-visible, .wdv-portal .wdv-chip:focus-visible,
.wdv-portal input:focus-visible, .wdv-portal .wdv-qty button:focus-visible {
	outline: 3px solid var(--wdv-yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--wdv-navy);
}
.wdv-portal .wdv-link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--wdv-navy); text-decoration: underline; cursor: pointer; }

/* ---------- Schnellzugriffe ---------- */
.wdv-portal .wdv-tile {
	display: flex; flex-direction: column; gap: 10px; text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit;
	background: var(--wdv-white); border-radius: var(--wdv-radius); box-shadow: var(--wdv-shadow); padding: 22px;
	transition: transform .15s, box-shadow .15s; min-height: 100%;
}
.wdv-portal .wdv-tile:hover { transform: translateY(-2px); box-shadow: var(--wdv-shadow-lg); }
.wdv-portal .wdv-tile-icon {
	width: 46px; height: 46px; border-radius: 12px; background: var(--wdv-navy-soft); color: var(--wdv-navy); display: grid; place-items: center;
}
.wdv-portal .wdv-tile-icon svg { width: 24px; height: 24px; }
.wdv-portal .wdv-tile strong { color: var(--wdv-ink); font-size: 1.05rem; }
.wdv-portal .wdv-tile span { color: var(--wdv-muted); font-size: .92rem; }
.wdv-portal .wdv-tile-go { margin-top: auto; font-weight: 700; color: var(--wdv-navy); font-size: .92rem; }

/* ---------- Datenliste ---------- */
.wdv-portal .wdv-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.wdv-portal .wdv-dl dt { color: var(--wdv-muted); font-size: .92rem; }
.wdv-portal .wdv-dl dd { margin: 0; font-weight: 600; color: var(--wdv-ink); overflow-wrap: anywhere; }

/* ---------- Stimmstand ---------- */
.wdv-portal .wdv-votes-big { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; color: var(--wdv-navy); line-height: 1; }
.wdv-portal .wdv-progress { height: 14px; border-radius: 999px; background: var(--wdv-bg); overflow: hidden; margin: 14px 0 8px; border: 1px solid var(--wdv-line); }
.wdv-portal .wdv-progress > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--wdv-navy); transition: width .6s ease; }
.wdv-portal .wdv-progress.is-done > span { background: var(--wdv-ok); }
.wdv-portal .wdv-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.wdv-portal .wdv-stat { background: var(--wdv-bg); border-radius: var(--wdv-radius-sm); padding: 12px 14px; }
.wdv-portal .wdv-stat b { display: block; font-size: 1.35rem; color: var(--wdv-ink); }
.wdv-portal .wdv-stat span { font-size: .85rem; color: var(--wdv-muted); }
.wdv-portal .wdv-qr { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.wdv-portal .wdv-qr-code { width: 170px; height: 170px; padding: 10px; background: #fff; border: 1px solid var(--wdv-line); border-radius: var(--wdv-radius-sm); }
.wdv-portal .wdv-qr-code img, .wdv-portal .wdv-qr-code canvas { width: 100% !important; height: auto !important; }

/* ---------- Hinweise ---------- */
.wdv-portal .wdv-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--wdv-radius-sm); background: var(--wdv-navy-soft); color: var(--wdv-ink); font-size: .94rem; margin: 0 0 14px; }
.wdv-portal .wdv-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--wdv-navy); }
.wdv-portal .wdv-note-ok { background: var(--wdv-ok-bg); }
.wdv-portal .wdv-note-ok svg { color: var(--wdv-ok); }
.wdv-portal .wdv-note-warn { background: var(--wdv-warn-bg); }
.wdv-portal .wdv-note-error { background: var(--wdv-error-bg); color: var(--wdv-error); }
.wdv-portal .wdv-note-error svg { color: var(--wdv-error); }

/* ---------- Chips (Filter) ---------- */
.wdv-portal .wdv-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.wdv-portal .wdv-chip {
	border: 1.5px solid var(--wdv-line); background: #fff; color: var(--wdv-ink); font: inherit; font-weight: 600; font-size: .9rem;
	padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 40px;
}
.wdv-portal .wdv-chip:hover { border-color: var(--wdv-navy); }
.wdv-portal .wdv-chip[aria-pressed="true"] { background: var(--wdv-yellow); border-color: var(--wdv-yellow); color: var(--wdv-ink); }

/* ---------- Shop ---------- */
.wdv-portal .wdv-shop { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.wdv-portal .wdv-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.wdv-portal .wdv-product {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--wdv-radius); box-shadow: var(--wdv-shadow); overflow: hidden;
}
.wdv-portal .wdv-product-img { background: var(--wdv-bg); aspect-ratio: 1 / 1; display: grid; place-items: center; cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.wdv-portal .wdv-product-img img { width: 100%; height: 100%; object-fit: contain; }
.wdv-portal .wdv-product-noimg { color: var(--wdv-muted); font-size: .9rem; }
.wdv-portal .wdv-product-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.wdv-portal .wdv-product-cat { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--wdv-muted); }
.wdv-portal .wdv-product-name { font-weight: 700; color: var(--wdv-ink); font-size: 1rem; line-height: 1.3; }
.wdv-portal .wdv-product-text { font-size: .88rem; color: var(--wdv-muted); }
.wdv-portal .wdv-product-text ul { margin: 0; padding-left: 18px; }
.wdv-portal .wdv-product-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.wdv-portal .wdv-price { font-size: 1.25rem; font-weight: 800; color: var(--wdv-ink); }
.wdv-portal .wdv-price small { display: block; font-size: .75rem; font-weight: 500; color: var(--wdv-muted); }
.wdv-portal .wdv-buy { display: flex; gap: 8px; align-items: stretch; }
.wdv-portal .wdv-buy .wdv-btn { flex: 1; padding-left: 10px; padding-right: 10px; }
.wdv-portal .wdv-qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--wdv-line); border-radius: 10px; overflow: hidden; background: #fff; }
.wdv-portal .wdv-qty button { width: 38px; border: 0; background: var(--wdv-bg); color: var(--wdv-ink); font-size: 1.15rem; font-weight: 700; cursor: pointer; padding: 0; }
.wdv-portal .wdv-qty button:hover { background: var(--wdv-navy-soft); }
.wdv-portal .wdv-qty output { min-width: 34px; display: grid; place-items: center; font-weight: 700; color: var(--wdv-ink); }
.wdv-portal .wdv-tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--wdv-navy-soft); color: var(--wdv-navy); }
.wdv-portal .wdv-tag-gold { background: var(--wdv-yellow); color: var(--wdv-ink); }
.wdv-portal .wdv-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.wdv-portal .wdv-section-title:first-child { margin-top: 0; }
/* Abschnittsüberschriften stehen auf dem dunklen Seitenhintergrund der Website */
.wdv-portal .wdv-section-title h2.wdv-h { color: #fff; }
.wdv-portal .wdv-section-title .wdv-muted { color: #b9c6d8; }
.wdv-portal .wdv-card .wdv-section-title h2.wdv-h, .wdv-portal .wdv-card .wdv-section-title h1.wdv-h { color: var(--wdv-ink); }
.wdv-portal .wdv-card .wdv-section-title .wdv-muted { color: var(--wdv-muted); }
.wdv-portal .wdv-link-btn.wdv-on-page { color: #fff; }

/* Paket-Vergleich */
.wdv-portal .wdv-table-wrap { overflow-x: auto; }
.wdv-portal table.wdv-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0; background: #fff; }
.wdv-portal table.wdv-table th, .wdv-portal table.wdv-table td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--wdv-line); text-align: left; color: var(--wdv-text); background: none; }
.wdv-portal table.wdv-table th { color: var(--wdv-ink); font-weight: 700; background: var(--wdv-bg); }
.wdv-portal table.wdv-table td.wdv-c, .wdv-portal table.wdv-table th.wdv-c { text-align: center; }
.wdv-portal table.wdv-table td.wdv-r, .wdv-portal table.wdv-table th.wdv-r { text-align: right; white-space: nowrap; }
.wdv-portal .wdv-yes { color: var(--wdv-ok); font-weight: 800; }
.wdv-portal .wdv-no { color: #b6c0cc; }

/* Warenkorb */
.wdv-portal .wdv-cart { position: sticky; top: 84px; }
.wdv-portal .wdv-cart .wdv-card { padding: 20px; }
.wdv-portal .wdv-cart-empty { text-align: center; color: var(--wdv-muted); padding: 18px 6px; }
.wdv-portal .wdv-cart-items { list-style: none; margin: 0 0 12px; padding: 0; }
.wdv-portal .wdv-cart-item { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--wdv-line); }
.wdv-portal .wdv-cart-item img { width: 52px; height: 52px; object-fit: contain; background: var(--wdv-bg); border-radius: 8px; }
.wdv-portal .wdv-cart-item-name { font-weight: 600; color: var(--wdv-ink); font-size: .92rem; line-height: 1.3; }
.wdv-portal .wdv-cart-item-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.wdv-portal .wdv-cart-item .wdv-qty button { width: 30px; font-size: 1rem; }
.wdv-portal .wdv-cart-item .wdv-qty output { min-width: 28px; }
.wdv-portal .wdv-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: .92rem; margin: 10px 0 14px; }
.wdv-portal .wdv-sum dt { color: var(--wdv-muted); }
.wdv-portal .wdv-sum dd { margin: 0; text-align: right; font-weight: 600; color: var(--wdv-ink); }
.wdv-portal .wdv-sum .wdv-sum-total { font-size: 1.1rem; font-weight: 800; color: var(--wdv-ink); padding-top: 8px; border-top: 2px solid var(--wdv-ink); }
.wdv-portal .wdv-cart-bar { display: none; }

/* Kasse */
.wdv-portal .wdv-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.wdv-portal .wdv-field { display: flex; flex-direction: column; gap: 6px; }
.wdv-portal .wdv-field-full { grid-column: 1 / -1; }
.wdv-portal .wdv-field label { font-weight: 600; color: var(--wdv-ink); font-size: .92rem; margin: 0; }
.wdv-portal .wdv-field input[type="text"], .wdv-portal .wdv-field input[type="tel"], .wdv-portal .wdv-field input[type="email"] {
	width: 100%; font: inherit; color: var(--wdv-ink); background: #fff; border: 1.5px solid var(--wdv-line); border-radius: 10px;
	padding: 11px 12px; min-height: 46px; margin: 0; box-shadow: none;
}
.wdv-portal .wdv-field input:focus { border-color: var(--wdv-navy); outline: none; }
.wdv-portal .wdv-field.is-invalid input { border-color: var(--wdv-error); }
.wdv-portal .wdv-field-error { color: var(--wdv-error); font-size: .85rem; }
.wdv-portal .wdv-check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; cursor: pointer; }
.wdv-portal .wdv-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--wdv-navy); }
.wdv-portal .wdv-steps { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; font-size: .9rem; font-weight: 600; color: var(--wdv-muted); }
.wdv-portal .wdv-steps b { color: var(--wdv-ink); }
.wdv-portal .wdv-spinner { width: 18px; height: 18px; border: 3px solid rgba(15,27,45,.25); border-top-color: var(--wdv-ink); border-radius: 50%; animation: wdv-spin .8s linear infinite; }
@keyframes wdv-spin { to { transform: rotate(360deg); } }

/* Downloads */
.wdv-portal .wdv-dl-card .wdv-dl-content img { border-radius: 8px; margin: 8px 0; }
.wdv-portal .wdv-dl-content p { margin-bottom: .6em; }
.wdv-portal .wdv-dl-content a.btn, .wdv-portal .wdv-dl-content a.wdv-btn {
	display: inline-flex; align-items: center; justify-content: center; background: var(--wdv-yellow); color: var(--wdv-ink) !important;
	border: 0; border-radius: 10px; font-weight: 700; padding: 10px 16px; text-decoration: none; width: auto; margin: 4px 6px 4px 0 !important; min-height: 44px;
}
.wdv-portal .wdv-dl-content a.btn:hover { background: var(--wdv-yellow-dark); }

/* Partner */
.wdv-portal .wdv-partners { overflow: hidden; background: #fff; border-radius: var(--wdv-radius); box-shadow: var(--wdv-shadow); padding: 16px 0; margin-top: 8px; }
.wdv-portal .wdv-partners-title { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wdv-muted); margin-bottom: 10px; }
.wdv-portal .wdv-partners-track { display: flex; gap: 40px; width: max-content; animation: wdv-marquee 60s linear infinite; align-items: center; }
.wdv-portal .wdv-partners:hover .wdv-partners-track { animation-play-state: paused; }
.wdv-portal .wdv-partners-track img { height: 44px; width: auto; max-width: none; filter: grayscale(30%); }
@keyframes wdv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Bildvergrößerung */
.wdv-portal-lightbox { position: fixed; inset: 0; background: rgba(2,26,53,.85); z-index: 100000; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.wdv-portal-lightbox img { max-width: min(92vw, 1100px); max-height: 88vh; background: #fff; border-radius: 12px; }

/* Bestätigung */
.wdv-portal .wdv-success { text-align: center; padding: 34px 24px; }
.wdv-portal .wdv-success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--wdv-ok-bg); color: var(--wdv-ok); display: grid; place-items: center; margin: 0 auto 14px; }
.wdv-portal .wdv-success-icon svg { width: 34px; height: 34px; }

/* ---------- Anmeldung ---------- */
.wdv-login-host.modal-content { background: transparent; border: 0; box-shadow: none; padding: 0; }
.wdv-portal.wdv-login { max-width: 980px; margin: 10px auto 40px; }
.wdv-portal .wdv-login-card {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--wdv-shadow-lg);
}
.wdv-portal .wdv-login-side {
	background: linear-gradient(150deg, var(--wdv-navy) 0%, var(--wdv-navy-dark) 100%); padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 6px; position: relative; overflow: hidden;
}
.wdv-portal .wdv-login-side p { color: #d3ddea; margin: 0; }
.wdv-portal .wdv-login-seal { width: 150px; background: #fff; border-radius: 18px; padding: 12px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.wdv-portal .wdv-login-form { padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; }
.wdv-portal .wdv-login-form .wdv-field input { width: 100%; font: inherit; color: var(--wdv-ink); background: #fff; border: 1.5px solid var(--wdv-line); border-radius: 10px; padding: 12px; min-height: 48px; margin: 0; box-shadow: none; }
.wdv-portal .wdv-login-form .wdv-field input:focus { border-color: var(--wdv-navy); outline: none; }
.wdv-portal .wdv-login-error { background: var(--wdv-error-bg); color: var(--wdv-error); border-radius: 10px; padding: 10px 12px; font-size: .94rem; }
.wdv-portal .wdv-login-help summary { cursor: pointer; color: var(--wdv-navy); font-weight: 600; font-size: .92rem; }
.wdv-portal .wdv-login-help p { margin: 8px 0 0; font-size: .92rem; color: var(--wdv-muted); }
@media (max-width: 760px) {
	.wdv-portal .wdv-login-card { grid-template-columns: minmax(0, 1fr); }
	.wdv-portal .wdv-login-side { padding: 26px 22px; }
	.wdv-portal .wdv-login-seal { width: 110px; margin-bottom: 12px; }
	.wdv-portal .wdv-login-form { padding: 26px 22px; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1024px) {
	.wdv-portal .wdv-shop { grid-template-columns: minmax(0, 1fr); }
	.wdv-portal .wdv-cart { position: static; }
	.wdv-portal .wdv-cart-aside { display: none; }
	.wdv-portal .wdv-cart-bar {
		display: flex; position: sticky; bottom: 10px; z-index: 40; align-items: center; justify-content: space-between; gap: 12px;
		background: var(--wdv-navy-dark); color: #fff; border-radius: var(--wdv-radius); padding: 10px 10px 10px 16px; box-shadow: var(--wdv-shadow-lg); margin-top: 16px;
	}
	.wdv-portal .wdv-cart-bar b { color: var(--wdv-yellow); }
	.wdv-portal .wdv-cart-bar svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }
	.wdv-portal .wdv-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wdv-portal .wdv-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.wdv-portal { font-size: 15.5px; }
	.wdv-portal .wdv-card { padding: 18px; }
	.wdv-portal .wdv-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
	.wdv-portal .wdv-hero-seal { width: 190px; justify-self: start; order: -1; }
	.wdv-portal .wdv-grid-2, .wdv-portal .wdv-grid-3 { grid-template-columns: minmax(0, 1fr); }
	.wdv-portal .wdv-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.wdv-portal .wdv-tile { padding: 16px; }
	.wdv-portal .wdv-products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
	.wdv-portal .wdv-form-grid { grid-template-columns: minmax(0, 1fr); }
	.wdv-portal .wdv-stats { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
	.wdv-portal .wdv-topbar { padding: 14px 16px; }
	.wdv-portal .wdv-topbar-actions { width: 100%; justify-content: space-between; }
	.wdv-portal .wdv-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.wdv-portal .wdv-dl dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.wdv-portal *, .wdv-portal *::before, .wdv-portal *::after { animation: none !important; transition: none !important; }
}
