/* Taschendaten 2.0 – base styles, header, footer and the shared motion system. Values come from tokens.css. */

@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-variable.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }

/* Dark surfaces reuse the dark token set. */
.sec--dark, .site-header, .site-footer {
  --bg: var(--brand-midnight);
  --surface: var(--brand-deep-navy);
  --surface-2: var(--brand-navy-elevated);
  --text-primary: #f8fafc;
  --text-secondary: #b7c3d1;
  --text-muted: #8795a8;
  --link: var(--accent-digital-blue);
  --border: #24364a;
  --border-strong: #36506b;
  background: var(--bg);
  color: var(--text-primary);
}
.sec--light { background: var(--bg); color: var(--text-primary); }
.sec--white { background: var(--surface); color: var(--text-primary); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--bg); color: var(--text-primary); font: 400 17px/1.65 var(--font-sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
.site-main { display: block; overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p, dl, dd, figure, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--accent-digital-blue); color: #fff; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; } }
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; border-radius: var(--radius-m); background: var(--primary); color: var(--on-primary); }
.skip-link:focus { top: 16px; }

/* Layout */
.wrap { max-width: calc(var(--content-standard) + 96px); margin: 0 auto; padding: 0 48px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.sec { padding: calc(200px * var(--k)) 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.muted { color: var(--text-muted); }
.strong { font-weight: 600; }
.link-strong { font-weight: 600; }
/* Small text links keep their look but get a 44 px touch target. */
.link-strong, .product__more, .footer__col a, .footer__blog a, .crumbs a, .more__product .more__link { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* Type */
.h-hero, .h-xl, .h-l, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 700; }
.h-hero { font-size: 88px; line-height: 1; letter-spacing: -0.045em; }
.h-xl { font-size: 64px; line-height: 1.05; letter-spacing: -0.035em; }
.h-l { font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; }
.h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.03em; }
.h2 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; }
.h3 { font-size: 30px; line-height: 1.2; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 700 12px/1.4 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.eyebrow--blue { color: var(--link); }
.eyebrow__index { font: 500 12px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--text-muted); }
.eyebrow__index::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; opacity: 0.6; }
.accent { color: var(--primary); }
.sec--dark .accent { color: var(--accent-digital-blue); }
.mono { font-family: var(--font-mono); }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius-m); font: 600 16px/1.2 var(--font-sans); white-space: nowrap; cursor: pointer; transition: background-color var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn--secondary { border: 1px solid var(--border-strong); background: transparent; color: var(--text-primary); }
.btn--secondary:hover { background: var(--surface-2); border-color: var(--text-muted); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
/* Arrow that moves instead of the button lifting (one effect per element). */
.btn--arrow::after { content: ""; width: 18px; height: 18px; margin: 0 -4px 0 12px; background: currentColor; -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; transition: translate var(--duration-base) var(--ease); }
.btn--arrow:hover { transform: none; }
.btn--arrow:hover::after { translate: 5px 0; }
:root { --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E"); }
.input { height: 52px; width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-s); padding: 0 16px; font: 400 16px var(--font-sans); color: var(--text-primary); background: var(--surface); transition: border-color var(--duration-fast) var(--ease); }
.input:focus-visible { border-color: var(--focus-ring); }

/* Header: sticky, transparent over the front hero, hides while scrolling down. */
.site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; view-transition-name: site-header; transition: transform var(--duration-base) var(--ease), background-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease); }
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; }
.site-header.is-scrolled { background: var(--nav-scrolled); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 -1px 0 var(--border); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: var(--header-height); display: flex; align-items: center; gap: 44px; }
.site-header__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-digital-blue); transform: scaleX(var(--progress, 0)); transform-origin: 0 50%; opacity: 0; transition: opacity var(--duration-base) var(--ease); }
.site-header.is-scrolled .site-header__progress { opacity: 1; }
/* Chapter tab hanging below the header on the front page. */
.site-header__chapter { position: absolute; top: 100%; left: max(48px, calc((100% - var(--content-standard)) / 2)); padding: 8px 14px; border-radius: 0 0 var(--radius-s) var(--radius-s); background: var(--nav-scrolled); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 -1px 0 var(--border), inset 1px 0 0 var(--border), inset -1px 0 0 var(--border); font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); opacity: 0; translate: 0 -6px; transition: opacity var(--duration-base) var(--ease), translate var(--duration-base) var(--ease); pointer-events: none; }
.site-header__chapter.is-visible { opacity: 1; translate: 0 0; }
.site-header__chapter b { color: var(--accent-digital-blue); font-weight: 500; }
.brand { display: inline-flex; align-items: center; color: var(--text-primary); }
.brand:hover { text-decoration: none; }
.brand__mark { font: 800 18px/1 var(--font-display); letter-spacing: 0.04em; }
.brand__mark--small { font-size: 15px; }
.site-nav { display: flex; align-items: center; flex-grow: 1; min-width: 0; gap: 28px; }
.site-nav__menu { display: flex; gap: 24px; flex-grow: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav__menu::-webkit-scrollbar { display: none; }
.site-nav a { position: relative; color: var(--text-secondary); font: 500 15px/1 var(--font-sans); white-space: nowrap; transition: color var(--duration-fast) var(--ease); }
.site-nav a:hover { color: var(--text-primary); text-decoration: none; }
.site-nav__menu a { display: inline-block; padding: 14px 0; }
.site-nav__menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--accent-digital-blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--duration-base) var(--ease); }
.site-nav__menu a:hover::after, .site-nav .current-menu-item > a::after, .site-nav .current_page_item > a::after, .site-nav .current-menu-ancestor > a::after { transform: scaleX(1); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { color: var(--text-primary); }
.site-nav__actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.site-nav__account { display: inline-flex; align-items: center; gap: 8px; }
.site-nav__actions .btn { color: var(--on-primary); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-m); color: var(--text-primary); cursor: pointer; }
.menu-btn svg:last-child { display: none; }
.menu-btn[aria-expanded="true"] svg:first-child { display: none; }
.menu-btn[aria-expanded="true"] svg:last-child { display: block; }

/* Footer */
.site-footer { padding: 0 0 48px; font-size: 14px; line-height: 1.5; overflow: hidden; }
.site-footer a { color: var(--text-secondary); transition: color var(--duration-fast) var(--ease); }
.site-footer a:hover { color: var(--text-primary); }
.footer__blog { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; padding: 40px 0 56px; border-top: 1px solid var(--border); font-size: 15px; }
.footer__blog a { color: var(--text-primary); }
.footer__blog-all, .site-footer .footer__blog-all { color: var(--link); font-weight: 600; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 40px 32px; padding-top: 48px; border-top: 1px solid var(--border); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__title { font-weight: 600; color: var(--text-primary); }
.footer__menu, .footer__menu li { display: contents; }
.footer__contact address { margin-top: 6px; color: var(--text-muted); }
.footer__social { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__mark { margin: 88px 0 0; font: 800 clamp(48px, 10.6vw, 146px)/0.86 var(--font-display); letter-spacing: 0.035em; text-align: center; white-space: nowrap; color: transparent; background: linear-gradient(180deg, rgba(183, 195, 209, 0.14), rgba(183, 195, 209, 0) 85%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.footer__bottom { margin-top: 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted); }

/* Screenshot frames */
.frame { border-radius: var(--radius-l); overflow: hidden; background: #fff; box-shadow: var(--shadow-4); color: #091321; }
.sec--dark .frame { box-shadow: 0 0 0 1px rgba(183, 195, 209, 0.12), 0 40px 100px rgba(0, 0, 0, 0.45); }
.frame--admin { background: #f6f8fb; }
.frame--phone { width: 100%; border-radius: 32px; padding: 10px; background: #091321; box-shadow: var(--shadow-3); }
.frame--phone .frame__screen { border-radius: 24px; }
.frame__chrome { height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #eef2f6; }
.frame__chrome > span:not(.frame__url):not(.code__file) { width: 10px; height: 10px; border-radius: var(--radius-pill); background: #c8d2dd; }
.frame__url { margin-left: 14px; flex-grow: 1; max-width: 340px; height: 24px; border-radius: var(--radius-s); background: #fff; color: #5f6d82; font: 500 12px/24px var(--font-sans); padding: 0 12px; white-space: nowrap; overflow: hidden; }
.frame__bar { height: 36px; display: flex; align-items: center; gap: 20px; padding: 0 18px; background: #1d2327; font-size: 13px; color: #c3c9d1; }
.frame__wp { font-weight: 700; color: #fff; }
.frame__screen { position: relative; width: 100%; overflow: hidden; background: linear-gradient(160deg, #eef2f6 0%, #dce3ea 100%); }
.frame__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge--good { background: var(--success-soft); color: var(--success); }
.badge--warn { background: var(--warning-soft); color: var(--warning); }
.badge--bad { background: var(--error-soft); color: var(--error); }
.badge--soon { background: rgba(87, 199, 255, 0.12); color: var(--accent-cyan); }

/* Blueprint: hairlines along the real 12-column grid, lit up around the pointer. */
.has-blueprint .bp { position: relative; isolation: isolate; --bp-w: min(var(--content-standard), 100% - 96px); --bp-n: 12; }
.has-blueprint .bp::before, .has-blueprint .bp::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; z-index: -1; width: calc(var(--bp-w) + 1px); translate: -50% 0; pointer-events: none; border-right: 1px solid var(--bp-line); background: linear-gradient(to right, var(--bp-line) 1px, transparent 1px) 0 0 / calc((100% + 23px) / var(--bp-n)) 100%; }
.has-blueprint .bp::before { --bp-line: var(--blueprint-line); -webkit-mask: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); }
.has-blueprint .bp::after { --bp-line: var(--blueprint-glow); opacity: 0; transition: opacity var(--duration-reveal) var(--ease); -webkit-mask: radial-gradient(380px circle at var(--bx, -999px) var(--by, -999px), #000, transparent 72%); mask: radial-gradient(380px circle at var(--bx, -999px) var(--by, -999px), #000, transparent 72%); }
.has-blueprint .bp.is-lit::after { opacity: 1; }

/* Reveal on scroll. Only active when theme.js confirmed motion is welcome. */
.is-motion [data-reveal] { transition: opacity var(--duration-reveal) var(--ease), translate var(--duration-slow) var(--ease), scale var(--duration-slow) var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.is-motion [data-reveal]:not(.is-in) { opacity: 0; translate: 0 var(--reveal-shift); }
.is-motion [data-reveal="fade"]:not(.is-in) { translate: none; }
.is-motion [data-reveal="scale"]:not(.is-in) { translate: none; scale: 0.96; }

/* Pointer light along the border of cards (".spot"). */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none; background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 50%), var(--accent-digital-blue), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity var(--duration-base) var(--ease); }
.spot:hover::after { opacity: 1; }

/* Plugin templates (td-licenses) use Bootstrap's .container. */
.container { width: 100%; max-width: calc(var(--content-standard) + 96px); margin: 0 auto; padding: 0 48px; }

/* Entrance keyframes shared by the front hero and the page headers. */
@keyframes td-rise { from { opacity: 0; translate: 0 36px; } }
/* Screenshots slide in but stay visible from the first frame: a fade from
 * transparency would hold back the largest image of the page (LCP). */
@keyframes td-comp { from { translate: 90px 60px; scale: 0.94; } }

/* View transitions between pages (enabled in the Customizer). */
::view-transition-old(root) { animation: 220ms var(--ease) both td-vt-out; }
::view-transition-new(root) { animation: 380ms var(--ease) both td-vt-in; }
@keyframes td-vt-out { to { opacity: 0; translate: 0 -12px; } }
@keyframes td-vt-in { from { opacity: 0; translate: 0 16px; } }

/* Mobile */
@media (max-width: 1100px) {
  .wrap { padding: 0 var(--gutter-mobile); }
  .grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .sec { padding: 88px 0; }
  .h-hero { font-size: 46px; }
  .h-xl { font-size: 40px; }
  .h-l { font-size: 34px; }
  .h1 { font-size: 38px; }
  .h2 { font-size: 32px; }
  .container { padding: 0 var(--gutter-mobile); }
  .has-blueprint .bp { --bp-w: calc(100% - 40px); --bp-n: 4; }
  .footer__mark { margin-top: 56px; }
}

/* Header switches to the menu button a little earlier than the sections stack. */
@media (max-width: 1200px) {
  .site-header { background: var(--bg); }
  .site-header--overlay:not(.is-scrolled) { background: transparent; }
  .site-header__inner { gap: 16px; }
  .site-header__chapter { display: none; }
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter-mobile) 24px; background: var(--brand-midnight); border-bottom: 1px solid var(--border); }
  .site-nav.is-open { display: flex; }
  .site-header:has(.site-nav.is-open) { background: var(--brand-midnight); }
  .site-nav__menu { flex-direction: column; gap: 0; overflow: visible; }
  .site-nav__menu a, .site-nav__actions > a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 0; font-size: 17px; }
  .site-nav__menu a::after { display: none; }
  .site-nav__actions { flex-direction: column; align-items: stretch; gap: 0; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
  .site-nav__actions .btn { margin-top: 16px; }
}

/* Long German compounds must not push the page wider than a phone. */
@media (max-width: 640px) {
  h1, h2, h3, .h-hero, .h-xl, .h-l, .h1, .h2, .h3 { hyphens: auto; overflow-wrap: break-word; }
}
/* Below 375 px the longest word of the start page heading no longer fits at 46 px (320 px: 43 px too wide). */
@media (max-width: 374px) {
  .h-hero { font-size: clamp(34px, 11.5vw, 46px); }
}

/* Hidden by a Customizer switch: always wins over component display rules. */
[hidden] { display: none !important; }

/* Design options (Customizer → Gestaltung); the preview switches the body classes live. */
:root { --k: 1; --k-hero: 1; }
body.spacing-balanced { --k: 0.72; --k-hero: 0.9; }
body.spacing-compact { --k: 0.5; --k-hero: 0.8; }
body.grid-strong { --blueprint-line: rgba(183, 195, 209, 0.14); --blueprint-glow: rgba(45, 140, 255, 0.65); }
@media (min-width: 1101px) {
  body.headings-medium .h-hero, body.headings-medium .final__headline { font-size: 72px; }
  body.headings-medium .h-xl { font-size: 52px; }
  body.headings-medium .dev__headline { font-size: 64px; }
  body.headings-medium .band .h2 { font-size: 44px; }
}

/* Logo (Customizer → Kopf & Logo) */
.brand__logo { width: auto; height: var(--logo-h, 28px); max-width: 260px; object-fit: contain; }
.brand__logo--small { height: calc(var(--logo-h, 28px) * 0.85); }

/* Notice bar above the header */
.notice { background: var(--primary); color: #fff; font-size: 14px; }
.notice__inner { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 40px; }
.notice__text { margin: 0; padding: 8px 0; text-align: center; }
.notice__link { margin-left: 8px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.notice__link:hover { color: #fff; }
.notice__close { display: inline-grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-s); background: transparent; color: #fff; cursor: pointer; }
.notice__close:hover { background: rgba(255, 255, 255, 0.14); }

/* Back to top */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #36506b; border-radius: var(--radius-m); background: rgba(7, 17, 31, 0.88); color: #f8fafc; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity var(--duration-base) var(--ease), translate var(--duration-base) var(--ease), border-color var(--duration-fast) var(--ease); }
.to-top.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { border-color: var(--accent-digital-blue); color: #fff; }
@media (max-width: 1100px) { .to-top { right: 16px; bottom: 16px; } }

/* Sub-menus of the main navigation: dropdown on wide screens (hover or the
 * chevron), accordion in the mobile menu (chevron). */
.site-nav__menu > li { position: relative; display: flex; align-items: center; }
.site-nav__toggle { display: inline-grid; place-items: center; width: 26px; height: 36px; margin-left: 2px; padding: 0; border: 0; border-radius: var(--radius-s); background: none; color: var(--text-muted); cursor: pointer; }
.site-nav__toggle:hover { color: var(--text-primary); }
.site-nav__toggle svg { transition: transform var(--duration-base) var(--ease); }
.site-nav__menu > li.is-open > .site-nav__toggle svg { transform: rotate(180deg); }
.site-nav__menu .sub-menu a::after { display: none; }
@media (min-width: 1201px) {
  .site-nav__menu { overflow: visible; }
  .site-nav__menu .sub-menu { position: absolute; top: calc(100% + 6px); left: -16px; z-index: 30; min-width: 250px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--brand-deep-navy); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity var(--duration-fast) var(--ease), translate var(--duration-fast) var(--ease), visibility 0s linear var(--duration-fast); }
  .site-nav__menu .sub-menu::before { content: ""; position: absolute; top: -12px; right: 0; left: 0; height: 12px; }
  .site-nav__menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
  .site-nav__menu .sub-menu a { display: block; padding: 11px 14px; border-radius: var(--radius-s); color: var(--text-secondary); font-size: 15px; }
  .site-nav__menu .sub-menu a:hover, .site-nav__menu .sub-menu .current-menu-item > a { background: rgba(183, 195, 209, 0.08); color: var(--text-primary); }
}
@media (min-width: 1201px) and (hover: hover) {
  .site-nav__menu > li:hover > .sub-menu { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
  .site-nav__menu > li:hover > .site-nav__toggle svg { transform: rotate(180deg); }
}
@media (min-width: 1201px) and (max-width: 1320px) {
  /* Narrow desktops (up to 1320 px): tighter gaps, the customer area as icon only. */
  .site-header__inner { gap: 32px; }
  .site-nav { gap: 20px; }
  .site-nav__menu { gap: 18px; }
  .site-nav__actions { gap: 16px; }
  .site-nav__account span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1200px) {
  .site-nav__menu > li { flex-wrap: wrap; }
  .site-nav__menu > li > a { flex: 1; }
  .site-nav__toggle { width: 48px; height: 48px; margin: 0; }
  .site-nav__menu .sub-menu { display: none; width: 100%; margin: 0 0 8px; padding-left: 16px; border-left: 1px solid var(--border); }
  .site-nav__menu > li.is-open > .sub-menu { display: block; }
  .site-nav__menu .sub-menu a { min-height: 44px; padding: 0 12px; font-size: 16px; color: var(--text-secondary); }
}

/* WhatsApp contact (template-parts/whatsapp.php, wa_button()). The green is
 * darker than the WhatsApp brand green so white text keeps a contrast above
 * 4.5:1. */
:root { --wa: #0f7d45; --wa-hover: #0b6a3a; }
.btn--wa { gap: 10px; background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); color: #fff; }
.btn--wa svg { flex: none; }
.band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.wa { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: grid; justify-items: end; gap: 12px; }
.wa__fab { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--wa); color: #fff; font: 600 15px/1 var(--font-sans); box-shadow: 0 12px 32px rgba(7, 17, 31, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; transition: background-color var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease); }
.wa__fab:hover { background: var(--wa-hover); color: #fff; text-decoration: none; transform: translateY(-2px); }
.wa__fab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.wa__fab svg { flex: none; }
.wa__panel { position: relative; width: min(360px, calc(100vw - 32px)); padding: 24px; border: 1px solid #dce3ea; border-radius: var(--radius-l); background: #fff; color: #091321; box-shadow: var(--shadow-4); }
.wa__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--radius-s); background: none; color: #5f6d82; cursor: pointer; }
.wa__close:hover { background: #eef2f6; color: #091321; }
.wa__title { padding-right: 32px; font: 700 20px/1.25 var(--font-display); letter-spacing: -0.02em; }
.wa__text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: #536174; }
.wa__panel .btn { margin-top: 18px; }
.wa__qr { margin: 18px 0 0; display: grid; justify-items: center; gap: 6px; text-align: center; }
.wa__qr img { width: 148px; height: auto; border-radius: var(--radius-s); }
.wa__qr figcaption { font-size: 13px; color: #5f6d82; }
.wa__number { margin-top: 14px; font: 600 15px/1.4 var(--font-mono); text-align: center; color: #091321; user-select: all; }
.wa__privacy { margin-top: 12px; font-size: 12px; line-height: 1.5; color: #5f6d82; text-align: center; }
.wa__privacy a { color: #1464d2; }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="off"]) .wa__fab { animation: wa-in 500ms var(--ease) 700ms both; }
  :root:not([data-motion="off"]) .wa__panel:not([hidden]) { animation: wa-in 220ms var(--ease) both; }
}
@keyframes wa-in { from { opacity: 0; translate: 0 12px; } }

/* The back-to-top button moves above the WhatsApp button; the footer keeps
 * its last line clear of it. */
body:has(.wa:not([hidden])) .to-top { bottom: calc(24px + 52px + 12px + env(safe-area-inset-bottom, 0px)); right: 26px; }
body:has(.wa:not([hidden])) .footer__bottom { padding-bottom: 72px; }
body:has(.site-nav.is-open) .wa { display: none; }
.site-nav__wa { display: none; }
@media (max-width: 1200px) {
  .site-nav__wa:not([hidden]) { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--text-primary); font-size: 17px; }
  .site-nav__wa svg { color: #25d366; }
}
@media (max-width: 1100px) {
  .wa { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  body:has(.wa:not([hidden])) .to-top { right: 18px; bottom: calc(16px + 52px + 12px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .wa, .to-top { display: none !important; } }
@media (max-width: 340px) {
  .wa__fab { padding: 0; width: 52px; justify-content: center; }
  .wa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}