/*
Theme Name: RuossTech 2026
Theme URI: https://www.ruosstech.ch
Author: RuossTech AG
Description: Redesign «Werkstatt & Werkplan» der RuossTech AG: grosse Bilder und Videos, Kapitel-Slider, schwebende Buttons mit Blech-Fase, Archivo/Lato. Läuft parallel zum bisherigen Theme «RuossTech» als eigene Installation.
Version: 2.2.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.4
License: GNU General Public License v2 or later
Text Domain: ruosstech
*/

/* ---------- Schriften (selbst gehostet) ---------- */
@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lato-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lato-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/lato-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/lato-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lato-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lato-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --navy: #051d47;
  --navy-deep: #02102b;
  --magenta: #ce0f69;
  --magenta-dark: #a80b56;
  --magenta-bright: #ff5c9f;
  --blueprint: #8fb0e8;

  /* Semantische Token – kippen im Dark Mode */
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --surface-raised: #ffffff;
  --line: #e1e6ee;
  --heading: #051d47;
  --body: #1f2633;
  --muted: #566074;
  --accent: #ce0f69;
  --accent-hover: #a80b56;

  --font-display: "Archivo Variable", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(18px, 4vw, 40px);
  --cut: 12px;
  --shadow-float: drop-shadow(0 18px 24px rgba(5,29,71,.12)) drop-shadow(0 3px 6px rgba(5,29,71,.08));
  color-scheme: light;
}

/* Dark Mode: nur ueber den Umschalter (localStorage "rt-theme"), Standard hell */
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0b1424;
  --surface-2: #111d33;
  --surface-raised: #16233d;
  --line: rgba(255,255,255,.12);
  --heading: #eef3fc;
  --body: #d3dbeb;
  --muted: #9fadc6;
  --accent: #ff6aa5;
  --accent-hover: #ffa1c6;
  --shadow-float: drop-shadow(0 18px 26px rgba(0,0,0,.45)) drop-shadow(0 3px 6px rgba(0,0,0,.3));
}

/* Radius des Klick-Impulses auf Buttons (animierbar dank @property) */
@property --rip { syntax: "<length>"; inherits: false; initial-value: 0px; }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--body); font-family: var(--font-body); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
ul, ol { padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: -999px; top: 1rem; z-index: 200; background: var(--magenta); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(5rem, 8vw, 8rem); }
.section--alt { background: var(--surface-2); }
.section--tight-top { padding-top: 0; }

/* ---------- Typografie ---------- */
.display-xl, .display-l, .section-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; margin: 0; }
.display-xl { font-size: clamp(2.5rem, 1.1rem + 5.2vw, 4.1667rem); line-height: .95; }
.display-l { font-size: clamp(2rem, 1.1rem + 3.2vw, 4rem); line-height: 1; }
/* Sektionstitel mit Bemassungs-Marker (Masslinie mit Endstrichen) darueber */
.section-title { color: var(--heading); font-size: clamp(1.85rem, 1.05rem + 2.5vw, 3.2rem); line-height: 1.04; letter-spacing: -.02em; font-weight: 780; }
.section-title::before { content: ""; display: block; width: 3.25rem; height: 11px; margin-bottom: 1.25rem; background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) left center / 2px 100% no-repeat, linear-gradient(var(--accent), var(--accent)) right center / 2px 100% no-repeat; }
.section-title--sm { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.section-title--light { color: #fff; }
.section-title--light::before { --accent: var(--magenta-bright); }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.65; color: var(--muted); }
.lead p { margin: 0; }
.lead p + p { margin-top: 1em; }
/* Magenta-Streifen hinter Untertiteln – Wiedererkennung der alten Seite */
.highlight { display: inline; background: var(--magenta); color: #fff; padding: .18em .5em; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.8; }

/* ---------- Werkplan-Ornamente ---------- */
.cad-grid { pointer-events: none; background-image: linear-gradient(rgba(143,176,232,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(143,176,232,.1) 1px, transparent 1px), linear-gradient(rgba(143,176,232,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(143,176,232,.045) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px; -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0,0,0,.35)); mask-image: linear-gradient(to bottom, #000, rgba(0,0,0,.35)); }
.cad-grid--fill { position: absolute; inset: 0; z-index: -1; }
/* Passermarken in den vier Ecken */
.reg-marks { position: absolute; inset: clamp(12px, 2.4vw, 30px); pointer-events: none; z-index: 1; --c: rgba(255,255,255,.5); --l: 22px; background: linear-gradient(var(--c), var(--c)) top left / var(--l) 1px, linear-gradient(var(--c), var(--c)) top left / 1px var(--l), linear-gradient(var(--c), var(--c)) top right / var(--l) 1px, linear-gradient(var(--c), var(--c)) top right / 1px var(--l), linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px, linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l), linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px, linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l); background-repeat: no-repeat; }
.chamfer { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.chamfer-lg { --cut: 28px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
/* Karte mit Schatten und Fase: Schatten am Wrapper, Fase am Inhalt */
.plate { filter: var(--shadow-float); }
.plate > .plate-body { background: var(--surface-raised); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }

/* ---------- Buttons: schwebende, lasergeschnittene Platten ---------- */
.btn { --btn-bg: var(--magenta); --btn-bg-hover: var(--magenta-dark); --btn-fg: #fff; --btn-shadow: rgba(206,15,105,.34); --btn-clip: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: .95rem 1.7rem; border: 0; background: none; color: var(--btn-fg); font-family: var(--font-display); font-size: .98rem; font-weight: 650; letter-spacing: .005em; line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer; filter: drop-shadow(0 14px 16px var(--btn-shadow)) drop-shadow(0 3px 4px rgba(5,29,71,.18)); transition: transform 320ms var(--spring), filter 320ms var(--ease), color 200ms ease; -webkit-tap-highlight-color: transparent; }
.btn::before, .btn::after { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--btn-clip); }
.btn::before { background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.3) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat, var(--btn-bg); transition: background-position 800ms var(--ease), background-color 200ms ease; }
.btn::after { opacity: 0; background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255,255,255,.55) 0, rgba(255,255,255,.55) var(--rip), transparent calc(var(--rip) + 2px)); }
.btn.is-rippling::after { animation: btn-ripple 600ms var(--ease); }
.btn:hover { --btn-bg: var(--btn-bg-hover); color: var(--btn-fg); transform: translateY(-3px); filter: drop-shadow(0 22px 22px var(--btn-shadow)) drop-shadow(0 6px 8px rgba(5,29,71,.16)); }
.btn:hover::before { background-position: -60% 0, 0 0; }
.btn:active { transform: translateY(1px) scale(.97); filter: drop-shadow(0 4px 6px var(--btn-shadow)) drop-shadow(0 1px 2px rgba(5,29,71,.2)); transition-duration: 90ms; }
.btn:focus-visible { outline-offset: 5px; }
/* Kleine Schweizer Flagge mit dem Claim, ueber der Einstiegsueberschrift */
.swiss-badge { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; padding: .4rem .85rem .4rem .5rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--heading); font-family: var(--font-ui); font-size: .86rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2; }
.swiss-badge__flag { flex: none; width: 1.25em; height: 1.25em; }
.btn-sm { min-height: 2.6rem; padding: .6rem 1.15rem; font-size: .9rem; --cut: 9px; }
.btn-block { width: 100%; }
.btn-outline, .btn--outline { --btn-bg: var(--surface-raised); --btn-bg-hover: var(--surface-raised); --btn-fg: var(--heading); --btn-shadow: rgba(5,29,71,.16); }
.btn-outline:hover, .btn--outline:hover { color: var(--accent); }
.btn-outline-light { --btn-bg: rgba(255,255,255,.12); --btn-bg-hover: #fff; --btn-fg: #fff; --btn-shadow: rgba(0,0,0,.35); }
.btn-outline-light::before { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn-outline-light:hover { color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.link-more { display: inline-block; font-family: var(--font-display); font-weight: 650; color: var(--accent); text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* ---------- Bildkacheln ---------- */
.tile { position: relative; display: block; overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; --cut: 28px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,16,43,.88) 0%, rgba(2,16,43,.3) 45%, rgba(2,16,43,0) 72%); }
.tile--plain::after { display: none; }
.tile-label { position: absolute; left: clamp(1.1rem, 2.5vw, 1.75rem); right: 2.5rem; bottom: clamp(1rem, 2.2vw, 1.6rem); z-index: 1; font-family: var(--font-display); font-weight: 750; font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.tile-label::after { content: ""; display: block; width: 2.5rem; height: 2px; margin-top: .8rem; background: var(--magenta-bright); transform: scaleX(.45); transform-origin: left; transition: transform 500ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.06); } .tile:hover .tile-label::after { transform: scaleX(1); } }
.ratio-16-11 { aspect-ratio: 16 / 11; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-4-3 { aspect-ratio: 4 / 3; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background-color 350ms ease, color 350ms ease, box-shadow 350ms ease; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header::before { content: ""; position: absolute; inset: 0 0 -3rem 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(2,16,43,.6), rgba(2,16,43,0)); transition: opacity 350ms ease; }
.site-header.is-solid { color: var(--heading); background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 var(--line), 0 12px 32px -20px rgba(2,16,43,.45); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-menu-open { color: #fff; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.meta-bar { display: none; overflow: hidden; max-height: 3rem; border-bottom: 1px solid rgba(255,255,255,.12); transition: max-height 350ms var(--ease), opacity 250ms ease, border-color 350ms ease; }
.meta-bar__inner { display: flex; align-items: center; justify-content: flex-end; gap: 1.75rem; padding-block: .5rem; }
.site-header.is-solid .meta-bar { max-height: 0; opacity: 0; border-color: transparent; }
.meta-bar a, .meta-link { font-family: var(--font-display); font-size: .82rem; font-weight: 550; color: inherit; opacity: .78; text-decoration: none; transition: opacity 200ms ease, color 200ms ease; }
.meta-bar a:hover, .meta-link:hover { opacity: 1; }
.meta-bar a.is-current, .meta-bar a[aria-current] { opacity: 1; color: var(--magenta-bright); }
.main-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .875rem; }
.brand { display: flex; flex-shrink: 0; align-items: center; }
.brand img { height: 2rem; width: auto; max-width: none; flex-shrink: 0; }
@media (min-width: 640px) { .brand img { height: 2.25rem; } }
@media (min-width: 1280px) { .brand img { height: 2.5rem; } }
/* Mobil/Tablet: Logo auf «RUOSS TECH» zuschneiden (Zusatz «seit 1919» weglassen),
   damit neben Suche, Theme-Umschalter und Menü-Button genug Platz bleibt. */
.logo-crop { display: flex; align-items: center; overflow: hidden; width: 184px; }
@media (min-width: 640px) { .logo-crop { width: 207px; } }
@media (min-width: 1280px) { .logo-crop { width: auto; } }
.brand .logo-color { display: none; }
.site-header.is-solid .brand .logo-color { display: block; }
.site-header.is-solid .brand .logo-white { display: none; }
:root[data-theme="dark"] .site-header.is-solid .brand .logo-color, .site-header.is-menu-open .brand .logo-color { display: none; }
:root[data-theme="dark"] .site-header.is-solid .brand .logo-white, .site-header.is-menu-open .brand .logo-white { display: block; }
.main-nav { display: none; }
.main-nav > ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; padding-block: .75rem; }
.main-nav > ul > li > a { position: relative; font-family: var(--font-display); font-size: .98rem; font-weight: 620; color: inherit; opacity: .9; text-decoration: none; transition: opacity 200ms ease; }
.main-nav > ul > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--magenta-bright); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease); }
.site-header.is-solid .main-nav > ul > li > a::after { background: var(--accent); }
.main-nav > ul > li:hover > a, .main-nav > ul > li.current-menu-item > a, .main-nav > ul > li.current-menu-ancestor > a, .main-nav > ul > li.current-page-ancestor > a { opacity: 1; }
.main-nav > ul > li:hover > a::after, .main-nav > ul > li:focus-within > a::after, .main-nav > ul > li.current-menu-item > a::after, .main-nav > ul > li.current-menu-ancestor > a::after, .main-nav > ul > li.current-page-ancestor > a::after { transform: scaleX(1); }
/* Klappmenue: Schatten auf der Liste, gefaste Flaeche als Pseudo-Element */
.main-nav .sub-menu { position: absolute; left: 50%; top: 100%; z-index: 50; width: 17rem; margin: 0; padding: 1.6rem 0 .5rem; list-style: none; isolation: isolate; filter: var(--shadow-float); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity 200ms ease, transform 260ms var(--ease), visibility 0s linear 200ms; }
.main-nav .sub-menu::after { content: ""; position: absolute; inset: 1.1rem 0 0 0; z-index: -1; background: var(--surface-raised); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.main-nav > ul > li:hover .sub-menu, .main-nav > ul > li:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 200ms ease, transform 260ms var(--ease), visibility 0s; }
.main-nav .sub-menu a { display: block; padding: .62rem 1.3rem; font-family: var(--font-display); font-size: .93rem; font-weight: 560; color: var(--heading); text-decoration: none; transition: color 150ms ease, background-color 150ms ease, padding-left 250ms var(--ease); }
.main-nav .sub-menu a:hover { color: var(--accent); background: var(--surface-2); padding-left: 1.6rem; }
.main-nav .sub-menu .current-menu-item > a { color: var(--accent); }
.main-nav .nav-cta { padding-block: 0; margin-left: .25rem; }
.main-nav .nav-cta > a::after { display: none; }
.main-nav .nav-cta > a.btn { opacity: 1; color: #fff; }
.hdr-actions { display: flex; align-items: center; gap: .5rem; }
.hdr-icon-btn { display: inline-flex; flex-direction: column; gap: 5px; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; color: currentColor; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); transition: transform 250ms var(--spring); }
.hdr-icon-btn:active { transform: scale(.92); }
.hdr-icon-btn svg { width: 1.25rem; height: 1.25rem; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform 300ms ease, opacity 200ms ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1280px) { .meta-bar { display: block; } .main-nav { display: block; } .hdr-actions { display: none; } .main-bar { padding-block: 1rem; } }

/* Mobiles Menue: Vollbild-Ebene hinter der Kopfzeile */
.mobile-nav { position: fixed; inset: 0; z-index: -1; overflow-y: auto; padding-top: 5.5rem; background-color: var(--navy-deep); color: #fff; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-12px); transition: opacity 280ms ease, transform 380ms var(--ease), visibility 0s linear 380ms; }
.mobile-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity 280ms ease, transform 380ms var(--ease), visibility 0s; }
.mobile-nav .cad-grid { position: absolute; inset: 0; }
.mobile-nav__inner { position: relative; padding-bottom: 2.5rem; }
.mobile-nav ul { list-style: none; margin: 0; }
.mobile-menu { border-top: 1px solid rgba(255,255,255,.1); }
.mobile-menu > li { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu > li > a, .mobile-nav__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 750; letter-spacing: -.015em; color: #fff; text-align: left; text-decoration: none; }
.mobile-menu > li.current-menu-ancestor > .mobile-nav__toggle, .mobile-menu > li.current-menu-item > .mobile-nav__toggle, .mobile-menu > li.current-menu-item > a { color: var(--magenta-bright); }
.mobile-nav__toggle svg { flex: none; width: 1.25rem; height: 1.25rem; color: rgba(255,255,255,.6); transition: transform 300ms ease; }
.mobile-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-menu .sub-menu { padding: 0 0 1rem .25rem; }
.mobile-menu .sub-menu a { display: block; padding: .5rem 0; font-size: 1.05rem; color: rgba(255,255,255,.75); text-decoration: none; }
.mobile-menu .sub-menu a:hover { color: #fff; }
.mobile-menu .sub-menu .current-menu-item > a { color: var(--magenta-bright); }
.mobile-nav__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; margin-top: 1.5rem; }
.mobile-nav__meta a { font-family: var(--font-display); font-weight: 600; color: rgba(255,255,255,.8); text-decoration: none; }
.mobile-nav__meta a.is-current { color: var(--magenta-bright); }
.mobile-nav .btn-row { margin-top: 2.25rem; }
@media (min-width: 1280px) { .mobile-nav { display: none !important; } }

/* ---------- Seitenkopf ---------- */
.page-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-deep); color: #fff; min-height: clamp(560px, 84svh, 920px); }
.page-hero.is-compact { min-height: clamp(440px, 62svh, 640px); }
/* Standbild im <picture> (Handy-Fassung) – das Bild selbst wird positioniert */
.page-hero__media > picture, .slide > picture { display: contents; }
.page-hero__media img, .page-hero__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__media img { animation: kenburns 26s var(--ease) both; }
/* Auf dem Handy trifft die Bildmitte nicht immer das Motiv – Seiten koennen den Ausschnitt
   ueber das Feld «Bildausschnitt Handy» verschieben. Standbild und Video teilen sich den
   Wert, damit der Wechsel nahtlos bleibt. */
@media (max-width: 767px) {
  .page-hero__media img, .page-hero__media > video { object-position: var(--hero-focus-mobile, 50% 50%); }
}
/* Mit Video ist das Standbild das erste Videobild – ohne Zoom, damit der Wechsel nahtlos bleibt */
.page-hero__media:has(> video) img { animation: none; }
.page-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,16,43,.94) 0%, rgba(2,16,43,.6) 34%, rgba(2,16,43,.12) 68%, rgba(2,16,43,.55) 100%), linear-gradient(90deg, rgba(2,16,43,.7) 0%, rgba(2,16,43,0) 62%); }
.page-hero .cad-grid { position: absolute; inset: 0; opacity: .7; }
.page-hero__content { position: relative; z-index: 2; padding-top: 8.5rem; padding-bottom: clamp(2.75rem, 7vh, 5.5rem); }
@media (min-width: 1280px) { .page-hero__content { padding-top: 11rem; } }
/* --longest = Zeichen des laengsten Wortes: die Schrift wird hoechstens so gross, dass es auf eine Zeile passt */
.page-hero h1 { --avail: calc(100vw - 2 * var(--gutter)); max-width: max(17ch, calc(var(--longest, 1) * .66em)); }
.page-hero h1.display-xl { font-size: min(clamp(2.5rem, 1.1rem + 5.2vw, 4.1667rem), calc(var(--avail) / (var(--longest, 1) * .64))); }
.page-hero h1.display-l { font-size: min(clamp(2rem, 1.1rem + 3.2vw, 4rem), calc(var(--avail) / (var(--longest, 1) * .64))); }
.page-hero__sub { max-width: 42rem; margin-top: 1.5rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 0 0 1.4rem; padding: 0; list-style: none; font-family: var(--font-display); font-size: .86rem; font-weight: 550; color: rgba(255,255,255,.72); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover, .crumbs [aria-current] { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--magenta-bright); }
/* Hintergrundvideos: sichtbar erst, wenn sie wirklich spielen */
.bg-video { opacity: 0; transition: opacity 900ms ease; pointer-events: none; }
.bg-video.is-playing { opacity: 1; }

/* ---------- Startseite: Karussell mit Kapitel-Leiste ---------- */
.home-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); color: #fff; height: 100svh; min-height: 620px; max-height: 1160px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1200ms ease; }
.slide.is-active { opacity: 1; }
.slide img, .slide > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.is-active img { animation: kenburns 14s linear both; }
.slide.is-active:has(> video) img { animation: none; }
.home-hero__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(2,16,43,.95) 0%, rgba(2,16,43,.55) 30%, rgba(2,16,43,.1) 62%, rgba(2,16,43,.6) 100%), linear-gradient(90deg, rgba(2,16,43,.72) 0%, rgba(2,16,43,0) 65%); }
.home-hero__content { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: 8.5rem; }
@media (min-width: 768px) { .home-hero__content { padding-bottom: 10rem; } }
.home-hero__texts { display: grid; }
.slide-text { grid-area: 1 / 1; align-self: end; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity 700ms ease, transform 900ms var(--ease), visibility 0s linear 700ms; }
.slide-text.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 250ms, 250ms, 0s; }
.slide-text h2 { max-width: 14ch; font-variation-settings: "wdth" 95; }
.footer-cta .display-l { font-variation-settings: "wdth" 95; }
.slide-text h2 a { color: inherit; text-decoration: none; }
.slide-text p { max-width: 42rem; margin-top: 1.5rem; font-size: clamp(1rem, .95rem + .4vw, 1.25rem); }
.slide-text .btn { margin-top: clamp(2rem, 3vw, 2.5rem); }
.home-hero__chapters { position: absolute; inset: auto 0 0 0; z-index: 3; padding-bottom: clamp(1.25rem, 3vh, 2.25rem); }
.chapters-row { display: flex; align-items: flex-end; gap: 1rem; }
.chapters { flex: 1; display: grid; grid-template-columns: repeat(var(--count, 9), minmax(0, 1fr)); gap: 6px; margin: 0; list-style: none; }
@media (min-width: 1024px) { .chapters { gap: 14px; } }
.chapter { display: block; width: 100%; padding: 12px 0 0; text-align: left; color: rgba(255,255,255,.58); transition: color 200ms ease; }
.chapter:hover, .chapter.is-active { color: #fff; }
.chapter__bar { display: block; height: 2px; background: rgba(255,255,255,.24); overflow: hidden; }
.chapter__fill { display: block; height: 100%; background: var(--magenta-bright); transform: scaleX(0); transform-origin: left; }
.chapter.is-done .chapter__fill { transform: scaleX(1); background: rgba(255,255,255,.55); }
.chapter.is-active .chapter__fill { animation: chapter-fill var(--slide-ms, 6000ms) linear forwards; }
.home-hero.is-paused .chapter.is-active .chapter__fill { animation-play-state: paused; }
.chapter__label { display: none; margin-top: .7rem; font-family: var(--font-display); font-size: .82rem; font-weight: 600; line-height: 1.25; }
@media (min-width: 1024px) { .chapter__label { display: block; } }
.hero-arrows { display: flex; flex-shrink: 0; gap: .5rem; }
.hero-arrow { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); transition: background-color 200ms ease, transform 250ms var(--spring); }
.hero-arrow:hover { background: var(--magenta); }
.hero-arrow:active { transform: scale(.92); }
.hero-arrow svg { width: 1rem; height: 1rem; }
/* Videos anhalten / abspielen: im Karussell neben den Pfeilen, sonst unten rechts im Bild */
.video-toggle--corner { position: absolute; z-index: 3; right: 14px; bottom: 14px; }
.page-hero > .video-toggle--corner { right: calc(clamp(12px, 2.4vw, 30px) + 12px); bottom: calc(clamp(12px, 2.4vw, 30px) + 12px); }
@media (max-width: 767px) { .page-hero.has-video-toggle .page-hero__content { padding-bottom: 5.5rem; } }

/* ---------- Startseite: Einstieg, Bereiche, Kino-Band, Qualitaet, News ---------- */
.intro-grid { display: grid; align-items: center; gap: 3.5rem; }
@media (min-width: 1024px) { .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 5rem; } }
.intro-grid .lead { max-width: 56ch; margin-top: 1.75rem; }
.intro-grid .btn-row { margin-top: 2.5rem; }
.intro-figure img { width: 100%; height: auto; }
.intro-figure figcaption { margin-top: 1rem; font-family: var(--font-display); font-size: .875rem; color: var(--muted); }
.intro-figure figcaption a { font-weight: 650; color: var(--accent); text-decoration: none; }
.intro-figure figcaption a:hover { text-decoration: underline; }
.areas { display: grid; gap: 14px; margin: 0; list-style: none; }
.areas .tile { aspect-ratio: 16 / 11; }
@media (min-width: 640px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .areas { display: flex; height: clamp(460px, 64vh, 660px); }
  .areas > li { flex: 1 1 0; min-width: 0; transition: flex-grow 800ms var(--ease); }
  .areas > li:hover, .areas > li:focus-within { flex-grow: 2; }
  .areas .tile { aspect-ratio: auto; height: 100%; }
  .areas .tile-label { font-size: clamp(1.2rem, .8rem + .8vw, 1.7rem); }
}
.cinema { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(420px, 78svh, 820px); background: var(--navy-deep); color: #fff; }
.cinema__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; transform: scale(1.12); }
.cinema__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,16,43,.88) 0%, rgba(2,16,43,.45) 55%, rgba(2,16,43,.2) 100%); }
.cinema .wrap { position: relative; z-index: 2; padding-block: 5rem; }
/* PC: Claim auf einer Zeile (Archivo 800: rund 20,06 em; 20,6 = Reserve fuer den Scrollbalken) */
@media (min-width: 1024px) { .cinema__claim { white-space: nowrap; font-size: min(4.1667rem, calc((min(100vw, 1320px) - 2 * clamp(18px, 4vw, 40px)) / 20.6)); } }
.tiles-2 { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 640px) { .tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.tiles-2 .tile { aspect-ratio: 16 / 11; }
.quality { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); color: #fff; }
.quality-grid { display: grid; align-items: center; gap: 3.5rem; }
@media (min-width: 1024px) { .quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; } }
.quality__kicker { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--magenta-bright); }
.quality__text { max-width: 60ch; margin-top: 1.5rem; line-height: 1.75; color: rgba(255,255,255,.8); }
.quality .btn { margin-top: 2.5rem; }
.quality__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.quality__media > img, .quality__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quality__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,16,43,.45), transparent); }
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2.5rem 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.certs li { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.16); font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; line-height: 1.25; }
.certs li:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.16); }
.certs li:nth-child(even) { padding-left: 1.25rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.news-grid { display: grid; gap: 2.5rem; margin: 3rem 0 0; list-style: none; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } .news-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem 2rem; } }
.news-card .tile { aspect-ratio: 4 / 3; }
.news-grid--2 .news-card .tile { aspect-ratio: 16 / 10; }
.news-card time { display: block; margin-top: 1.25rem; font-family: var(--font-display); font-size: .875rem; font-weight: 600; color: var(--accent); }
.news-card h3 { margin-top: .5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--heading); }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { margin-top: .5rem; line-height: 1.65; color: var(--muted); }
.news-card .link-more { margin-top: .75rem; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; font-family: var(--font-display); font-weight: 600; }
.nav-links a, .nav-links span { padding: .5rem .9rem; color: var(--heading); text-decoration: none; background: var(--surface-2); }
.nav-links .current { background: var(--magenta); color: #fff; }

/* ---------- Inhaltsseiten ---------- */
.layout { display: grid; gap: 3.5rem; padding-block: clamp(4rem, 6vw, 6rem); }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 5rem; } .layout--contact { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.layout--single { grid-template-columns: minmax(0, 1fr) !important; }
.layout--single > .prose { max-width: 78ch; }
.stack { display: grid; gap: 2rem; align-content: start; }
.sidebar { display: grid; gap: 2rem; align-content: start; }
@media (min-width: 1024px) { .sidebar { position: sticky; top: 7rem; } }
.sidebar__title { padding: 1.5rem 1.5rem 1rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--heading); border-bottom: 1px solid var(--line); }
.subnav ul { margin: 0; padding: .5rem 0; list-style: none; }
.subnav a { display: flex; align-items: center; gap: .75rem; padding: .6rem 1.5rem; font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--heading); text-decoration: none; transition: color 150ms ease; }
.subnav a::before { content: ""; flex: none; width: .5rem; height: 2px; background: var(--accent); transition: width 300ms var(--ease); }
.subnav a:hover { color: var(--accent); }
.subnav a:hover::before, .subnav .is-current a::before { width: 1.25rem; }
.subnav .is-current a { color: var(--accent); }
.contact-box { padding: 1.5rem; }
.contact-box h2, .contact-box .contact-box__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--heading); }
.contact-box address { margin-top: 1.25rem; font-style: normal; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.contact-box address strong { color: var(--heading); }
.contact-box address a { color: var(--heading); text-decoration: none; }
.contact-box address a:hover { color: var(--accent); }
.contact-box .btn { margin-top: 1.5rem; }
.person { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; font-size: .875rem; line-height: 1.4; }
.person img, .person .initials { flex: none; width: 80px; height: 80px; object-fit: cover; object-position: top; --cut: 10px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.person__name { font-weight: 700; color: var(--heading); }
.person__role { color: var(--muted); }
.person a { color: var(--accent); text-decoration: none; }
.person a:hover { text-decoration: underline; }
.news-teaser .news-teaser__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.news-teaser .news-teaser__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.news-teaser .news-teaser__img:hover img { transform: scale(1.05); }
.news-teaser__body { padding: 1.5rem; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.news-teaser__kicker { font-family: var(--font-display); font-size: .75rem; font-weight: 600; color: var(--accent); }
.news-teaser__title { display: block; margin-top: .25rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--heading); text-decoration: none; }
.news-teaser__title:hover { color: var(--accent); }
.news-teaser p { margin-top: .5rem; }
.news-teaser .link-more { margin-top: .75rem; }
.faq-band { background: var(--surface-2); }
.faq-band .wrap { max-width: 920px; padding-block: clamp(4rem, 6vw, 6rem); }

/* ---------- Prosa (migrierter Inhalt) ---------- */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--body); min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose > *:first-child { margin-top: 0; }
.prose :is(p, ul, ol, dl, figure, table, blockquote, pre) + :is(p, ul, ol, dl, figure, table, blockquote, pre) { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 760; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem); line-height: 1.12; letter-spacing: -.018em; color: var(--heading); margin-top: 2.2em; text-wrap: balance; }
.prose h3, .prose h4, .prose h5 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.3; color: var(--heading); margin-top: 2em; }
.prose h5 { font-size: 1.28rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + *, .prose h5 + * { margin-top: .6em; }
.prose > div:first-child h2:first-child, .prose > h2:first-child { margin-top: 0; }
.prose h2 + hr + p, .prose > div:first-child h2:first-child + hr + p { font-size: 1.2rem; line-height: 1.6; }
.prose strong { font-weight: 700; color: var(--heading); }
.prose em { font-style: italic; color: var(--muted); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-hover); }
.prose a.btn, .prose a.btn:hover { color: var(--btn-fg); text-decoration: none; }
.prose ul { list-style: none; padding-left: 1.6rem; }
.prose ol { list-style: decimal; padding-left: 1.4rem; }
.prose ul > li, .prose ol > li { margin-top: .4em; padding-left: .2rem; position: relative; }
/* Aufzaehlung als kleine Blech-Fase statt Punkt */
.prose ul > li::before { content: ""; position: absolute; left: -1.35rem; top: .62em; width: .55rem; height: .55rem; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 45%, 45% 100%, 0 100%); }
.prose ol > li::marker { color: var(--accent); font-weight: 700; }
.prose :target { scroll-margin-top: 7rem; }
.prose hr { border: 0; height: 11px; width: 3.25rem; margin: 1.1em 0 1.4em; background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) left center / 2px 100% no-repeat, linear-gradient(var(--accent), var(--accent)) right center / 2px 100% no-repeat; }
.prose img { background: var(--surface-2); }
.prose figure, .prose .ce-gallery, .prose .wp-block-image { margin: 1.5em 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; }
.prose td, .prose th { border-top: 1px solid var(--line); padding: .6rem .75rem; vertical-align: top; text-align: left; }
.prose tr:last-child td { border-bottom: 1px solid var(--line); }
.prose td:first-child { font-weight: 700; color: var(--heading); width: 42%; }
.prose [data-table], .prose .wp-block-table { overflow-x: auto; }
/* Zeitleiste (Meilensteine): schmale Jahresspalte, Text nutzt die Breite */
.prose [data-layout="timeline"] td:first-child { width: 1%; white-space: nowrap; padding-right: 1.5rem; }
/* Stapelbare Tabellen: am PC eine schmale erste Spalte, auf dem Handy wird jede Zeile
   zu einem Block (Titel aus der ersten Zelle, Spaltenname per data-label). */
.prose [data-layout="stack"] td:first-child { width: auto; white-space: nowrap; padding-right: 1.5rem; }
.prose [data-layout="stack"] td ul { margin-top: 0; }
@media (max-width: 639px) {
  .prose [data-layout="stack"] { overflow-x: visible; }
  .prose [data-layout="stack"] thead { display: none; }
  .prose [data-layout="stack"] table, .prose [data-layout="stack"] tbody, .prose [data-layout="stack"] tr, .prose [data-layout="stack"] td { display: block; width: auto; }
  .prose [data-layout="stack"] tr { border-top: 1px solid var(--line); padding: .85rem 0; }
  .prose [data-layout="stack"] tr:last-child { border-bottom: 1px solid var(--line); }
  .prose [data-layout="stack"] td { border: 0; padding: .15rem 0; white-space: normal; }
  .prose [data-layout="stack"] td:first-child { padding-bottom: .4rem; font-weight: 700; color: var(--heading); }
  .prose [data-layout="stack"] td[data-label]::before { content: attr(data-label); display: block; font-family: var(--font-display); font-size: .78rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; color: var(--accent); }
  .prose [data-layout="stack"] td + td { margin-top: .5rem; }
}
.prose [data-textpic][data-align="right"] { display: flow-root; }
.prose [data-textpic][data-align="right"] [data-img] { float: right; width: min(100%, 320px); margin: .25rem 0 1rem 1.5rem; }
.prose [data-textpic][data-align="left"] [data-img] { float: left; width: min(100%, 320px); margin: .25rem 1.5rem 1rem 0; }
.prose [data-textpic][data-align="center"] [data-img] { margin: 1.5rem 0; }
.prose [data-textpic][data-align="center"] [data-img] img { width: 100%; }
@media (max-width: 640px) { .prose [data-textpic] [data-img] { float: none !important; width: 100% !important; margin: 1rem 0 !important; } }
.prose p:empty, .prose h4:empty { display: none; }
.prose iframe, .prose video { max-width: 100%; }
.prose .legal-data { display: grid; gap: .35rem 1.5rem; margin: 1.25rem 0 0; }
.prose .legal-data dt { font-weight: 700; color: var(--heading); }
.prose .legal-data dd { margin: 0 0 .5rem; }
@media (min-width: 640px) { .prose .legal-data { grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; } .prose .legal-data dd { margin-bottom: 0; } }
/* Maschinen-/Referenzlisten als Medienzeilen */
.prose [data-row] { display: grid; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--line); margin-top: 0; }
@media (min-width: 768px) { .prose [data-row] { grid-template-columns: 2fr 3fr; align-items: start; } }
.prose [data-img] img { width: 100%; height: auto; display: block; }
.prose [data-img]:has(a[data-gallery]) { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.prose [data-img] br { display: none; }
.prose [data-img] a[data-gallery] { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.prose [data-img] a[data-gallery] img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease), opacity 200ms ease; }
.prose [data-img] a[data-gallery]:hover img { transform: scale(1.05); }
.prose [data-img] a[data-gallery]:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); }
.prose [data-img] a[data-gallery]:empty { display: none; }
.prose [data-row] h5, .prose [data-row] h4, .prose [data-row] h3, .prose [data-row] h2 { margin-top: 0; }
.prose [data-row] > div:last-child > * + * { margin-top: .8em; }
/* Maschinenpark und FAQ: Akkordeons */
.prose .machines { margin-top: 1rem; }
.prose .machines > details { border-bottom: 1px solid var(--line); margin-top: 0; }
.prose .machines summary, .prose .faq summary { cursor: pointer; list-style: none; position: relative; font-family: var(--font-display); font-weight: 700; color: var(--heading); }
.prose .machines summary { padding: 1.15rem 2.5rem 1.15rem 0; font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); line-height: 1.35; text-wrap: balance; }
.prose .machines summary::-webkit-details-marker, .prose .faq summary::-webkit-details-marker { display: none; }
.prose .machines summary::after, .prose .faq summary::after { content: ""; position: absolute; right: .25rem; top: 50%; width: .8rem; height: .8rem; margin-top: -.4rem; background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat; transition: transform 300ms var(--ease); }
.prose .machines details[open] summary::after, .prose .faq details[open] summary::after { transform: rotate(135deg); }
.prose .machines [data-row] { border-top: 0; padding: 0 0 2rem; }
@media (max-width: 640px) { .prose .machines [data-img]:has(a[data-gallery]) { grid-template-columns: repeat(2, 1fr); } }
.prose .faq { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.prose .faq h2 { margin-top: 0; margin-bottom: 2rem; }
.prose .faq details { border-bottom: 1px solid var(--line); margin-top: 0; }
.prose .faq summary { padding: 1.1rem 2.25rem 1.1rem 0; }
.prose .faq details > p { margin: 0 0 1.25rem; color: var(--muted); }
.faq-band .prose .faq { margin-top: 0; border-top: 0; padding-top: 0; }
.faq-band .prose .faq details { border: 0; margin-top: .75rem; background: var(--surface-raised); padding: 0 1.4rem; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.faq-band .prose .faq summary::after { right: 0; }
.prose .facts { margin-top: 2.5rem; background: var(--surface-2); padding: 1.75rem; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.prose .facts h2 { margin-top: 0; font-size: 1.3rem; }
.prose .facts dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem 1.25rem; margin: 1rem 0 0; font-size: .95rem; }
@media (min-width: 480px) { .prose .facts dl { grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1.25rem; } }
.prose .facts dt { font-weight: 700; color: var(--heading); }
.prose .facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 479px) { .prose .facts dd + dt { margin-top: .7rem; } }
/* Kontaktkarte im Fliesstext (z. B. Spedition auf der Lieferservice-Seite) */
.prose .person-card { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; padding: 1.25rem 1.5rem; background: var(--surface-2); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.prose .person-card img { flex-shrink: 0; width: 6rem; height: 6rem; object-fit: cover; object-position: top; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.prose .person-card p, .prose .person-card p + p { margin: 0; font-size: .95rem; line-height: 1.55; }
.prose .person-card__name { font-weight: 700; color: var(--heading); }
.prose .person-card__role { color: var(--muted); margin-bottom: .35rem !important; }
.prose .person-card a { text-decoration: none; }
.prose .person-card a:hover { text-decoration: underline; }
/* Video-Einbettung: Vorschaubild statt YouTube-iframe */
.prose .video-embed { margin-top: 1.5em; }
.prose .video-embed__play { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--navy); cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); }
.prose .video-embed__play img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease), opacity 200ms ease; }
.prose .video-embed__play:hover img, .prose .video-embed__play:focus-visible img { transform: scale(1.04); opacity: .85; }
.prose .video-embed__icon { position: absolute; inset: 0; margin: auto; width: 5rem; height: 5rem; background: var(--magenta); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); transition: transform 300ms var(--spring); }
.prose .video-embed__icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; transform: translateX(3px); border-style: solid; border-width: .7rem 0 .7rem 1.15rem; border-color: transparent transparent transparent #fff; }
.prose .video-embed__play:hover .video-embed__icon { transform: scale(1.1); }
.prose .video-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.prose .video-embed__note { margin-top: .75rem; font-size: .9rem; color: var(--muted); }
.prose .job-figure img { width: 100%; }

/* ---------- Team ---------- */
.team-group + .team-group { margin-top: 5rem; }
.team-grid { display: grid; gap: 3rem 2rem; margin: 2.5rem 0 0; list-style: none; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.team-card .tile { aspect-ratio: 4 / 3; }
.team-card .tile img { object-position: top; }
.team-card .initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 3.75rem; font-weight: 800; color: rgba(255,255,255,.9); }
.team-card .tile .cad-grid { position: absolute; inset: 0; }
.team-card h3 { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--heading); }
.team-card__roles { margin-top: .25rem; color: var(--muted); }
.team-card__contact { display: flex; flex-direction: column; gap: .1rem; margin-top: .75rem; font-family: var(--font-display); font-weight: 600; }
.team-card__contact a { text-decoration: none; overflow-wrap: anywhere; }
.team-card__contact .tel { color: var(--heading); }
.team-card__contact .tel:hover { color: var(--accent); }
.team-card__contact .mail { color: var(--accent); }
.team-card__contact .mail:hover { text-decoration: underline; }

/* ---------- Jobs / Downloads / Links ---------- */
.job-list { display: grid; gap: 2rem; margin: 2.5rem 0 0; list-style: none; }
.job-card { display: grid; }
@media (min-width: 640px) { .job-card.has-image { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); } }
.job-card__image { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.job-card__body { min-width: 0; padding: 1.75rem; }
.job-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--heading); }
.job-card p { margin-top: .75rem; color: var(--muted); }
.job-card .btn { margin-top: 1.5rem; }
/* Referenzobjekte: Kachelraster der Uebersicht, wie die News-Kacheln */
.ref-list { display: grid; grid-template-columns: 1fr; gap: 3.5rem 2rem; margin: 3rem 0 0; list-style: none; }
@media (min-width: 640px) { .ref-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ref-list .tile { aspect-ratio: 16 / 10; }
/* Referenz- und News-Listen: magentafarbene Trennlinie (60 % breit) zwischen den Beitraegen */
.list-divided > li:not(:first-child)::before { content: ""; display: block; width: 60%; height: 2px; margin: 0 auto 2.5rem; background: var(--accent); }
@media (min-width: 640px) { .ref-list.list-divided > li:nth-child(-n + 2)::before { display: none; } }
@media (min-width: 768px) { .news-grid--2.list-divided > li:nth-child(-n + 2)::before { display: none; } }
.ref-list h3 { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--heading); }
.ref-list h3 a:hover { color: var(--accent); }
.ref-list p { margin-top: .5rem; color: var(--muted); line-height: 1.65; }
.ref-more { display: inline-block; margin-top: .75rem; font-family: var(--font-ui); font-weight: 600; color: var(--accent); }
.ref-more:hover { text-decoration: underline; }

.block-gap { margin-top: 6rem; }
.category + .category { margin-top: 4rem; }
.file-list { margin: 1.5rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.file-list li { border-bottom: 1px solid var(--line); }
.file-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; text-decoration: none; }
.file-list a > span { display: flex; align-items: center; gap: 1rem; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--heading); transition: transform 300ms var(--ease), color 150ms ease; }
.file-list a:hover > span { transform: translateX(4px); color: var(--accent); }
.file-list svg { flex: none; width: 1.25rem; height: 1.5rem; color: var(--accent); }
.file-list a::after { content: attr(data-type); font-family: var(--font-display); font-size: .75rem; font-weight: 600; color: var(--muted); }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form .span-2 { grid-column: span 2; } }
.form label:not(.check):not(.hp) { display: flex; flex-direction: column; gap: .45rem; font-family: var(--font-display); font-size: .9rem; font-weight: 620; color: var(--heading); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="file"], .form select, .form textarea { width: 100%; padding: .85rem 1rem; background: var(--surface-2); border: 0; border-bottom: 2px solid var(--line); border-radius: 0; color: var(--body); font-family: var(--font-body); font-size: 1rem; font-weight: 400; outline: none; transition: border-color 200ms ease, background-color 200ms ease; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); background: var(--surface-raised); }
.form input[type="file"] { padding: .7rem 1rem; }
.form .check { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; color: var(--muted); }
.form .check input { width: 1rem; height: 1rem; margin-top: .25rem; accent-color: var(--magenta); }
.form .check a { color: var(--accent); }
.form .hp { position: absolute; left: -9999px; }
.form__legal { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.form__legal a { color: var(--muted); text-decoration: underline; }
.form__legal a:hover { color: var(--accent); }
.grecaptcha-badge { visibility: hidden; }
.notice { margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--surface-2); border-left: 3px solid var(--line); }
.notice--ok { border-color: #2e7d32; background: #edf7ee; }
.notice--error { border-color: var(--magenta); background: #fdecf3; }
:root[data-theme="dark"] .notice--ok { border-color: #4caf50; background: #14301a; }
:root[data-theme="dark"] .notice--error { border-color: var(--accent); background: #3a1024; }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); color: #fff; }
.footer-cta { display: grid; align-items: end; gap: 2.5rem; padding-block: clamp(5rem, 8vw, 7rem); border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 1024px) { .footer-cta { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .footer-cta .btn-row { justify-content: flex-end; } }
.footer-cta .display-l { max-width: 20ch; }
.footer-cta .lead { margin-top: 1.5rem; color: rgba(255,255,255,.75); }
.footer-cols { display: grid; gap: 3rem; padding-block: 4rem; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.footer-h { font-family: var(--font-display); font-size: .875rem; font-weight: 600; color: rgba(255,255,255,.55); }
.site-footer address { margin-top: 1.25rem; font-style: normal; line-height: 1.6; color: rgba(255,255,255,.85); }
.site-footer address p + p { margin-top: .15rem; }
.site-footer address .mt { margin-top: 1rem; }
.site-footer address a, .footer-links a { color: inherit; text-decoration: none; }
.site-footer address a:hover, .footer-links a:hover { color: var(--magenta-bright); }
.site-footer strong { color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.5rem; margin: 1.25rem 0 0; list-style: none; font-family: var(--font-display); font-weight: 500; color: rgba(255,255,255,.85); }
.footer-certs { display: grid; gap: .5rem; margin: 1.25rem 0 0; list-style: none; font-family: var(--font-display); font-weight: 500; color: rgba(255,255,255,.85); }
.footer-claim { margin-top: 1.25rem; font-size: .875rem; color: rgba(255,255,255,.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .wrap { display: flex; flex-direction: column; gap: .75rem; padding-block: 1.5rem; font-size: .86rem; color: rgba(255,255,255,.6); }
@media (min-width: 640px) { .footer-bottom .wrap { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; list-style: none; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Cookie-Hinweis, Lightbox, Theme-Umschalter ---------- */
.cookie-consent { position: fixed; left: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); bottom: clamp(12px, 3vw, 28px); z-index: 90; max-width: 760px; filter: drop-shadow(0 20px 30px rgba(2,16,43,.35)); }
.cookie-consent__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 1.35rem 1.5rem; background: var(--navy-deep); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.cookie-consent__body p { margin: 0; max-width: 44ch; color: #fff; font-size: .92rem; }
.cookie-consent__body a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 96vh; }
.lightbox::backdrop { background: rgba(2,16,43,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { max-width: min(96vw, 1400px); max-height: 90vh; object-fit: contain; background: var(--navy-deep); }
.lightbox button { position: absolute; top: .5rem; right: .5rem; width: 2.75rem; height: 2.75rem; background: var(--magenta); color: #fff; font-size: 1.5rem; line-height: 1; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle.meta-link svg { width: 1rem; height: 1rem; }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Gutenberg-Grundlagen ---------- */
.alignwide { max-width: 1320px; margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-gallery { gap: .5rem; }
.wp-block-columns { gap: 2rem; }
.wp-block-quote { border-left: 3px solid var(--accent); padding-left: 1.25rem; font-style: italic; color: var(--muted); }
.has-navy-color { color: var(--heading); } .has-navy-background-color { background-color: var(--heading); }
.has-magenta-color { color: var(--accent); } .has-magenta-background-color { background-color: var(--accent); }
.has-stone-color { color: var(--surface-2); } .has-stone-background-color { background-color: var(--surface-2); }

/* ---------- Animationen ---------- */
@keyframes btn-ripple { from { --rip: 0px; opacity: 1; } to { --rip: 240px; opacity: 0; } }
@keyframes kenburns { from { transform: scale(1.14) translate3d(0, 1.5%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
@keyframes chapter-fill { to { transform: scaleX(1); } }
@keyframes cinema-parallax { from { transform: translateY(-7%) scale(1.16); } to { transform: translateY(7%) scale(1.16); } }
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) { .cinema__img { animation: cinema-parallax linear both; animation-timeline: view(); } } }

/* ---------- Suche: Ebene ueber dem Kopf, Trefferliste, Spracheingabe ---------- */
.nav-search { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; opacity: .9; transition: opacity 200ms ease, color 200ms ease, transform 250ms var(--spring); }
.nav-search svg { width: 1.25rem; height: 1.25rem; }
.nav-search:hover { opacity: 1; color: var(--magenta-bright); }
.site-header.is-solid .nav-search:hover { color: var(--accent); }
.nav-search:active { transform: scale(.92); }
.main-nav .nav-search-item { padding-block: 0; }

.site-search { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; padding: clamp(0px, 7vh, 96px) var(--gutter) 0; opacity: 0; transition: opacity 200ms ease; }
.site-search[hidden] { display: none; }
.site-search.is-open { opacity: 1; }
.site-search__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--navy-deep) 74%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.site-search__panel { position: relative; display: flex; width: min(100%, 46rem); max-height: min(78vh, 44rem); flex-direction: column; background: var(--surface-raised); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); box-shadow: 0 30px 60px -28px rgba(2,16,43,.6); transform: translateY(-14px); transition: transform 320ms var(--ease); }
.site-search.is-open .site-search__panel { transform: none; }
.site-search__bar { display: flex; align-items: center; gap: .5rem; padding: .85rem .9rem .85rem 1.25rem; border-bottom: 1px solid var(--line); transition: border-color 200ms ease; }
.site-search__bar:focus-within { border-bottom-color: var(--accent); }
.site-search__icon, .page-search__icon { width: 1.35rem; height: 1.35rem; flex: none; color: var(--accent); }
.site-search__input, .page-search__input { min-width: 6rem; flex: 1 1 auto; padding: .4rem 0; border: 0; background: transparent; color: var(--heading); font-family: var(--font-display); font-size: 1.1rem; font-weight: 560; outline: none; }
.site-search__input::placeholder, .page-search__input::placeholder { color: var(--muted); font-weight: 450; }
/* Der Fokusrahmen wuerde die ganze Leiste einfassen; der Fokus zeigt sich an der Linie darunter. */
.site-search__input:focus-visible, .page-search__input:focus-visible { outline: none; }
/* Das eigene Kreuz der Suchfelder passt nicht zum Design – geschlossen wird ueber den Knopf. */
.site-search__input::-webkit-search-cancel-button, .page-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.site-search__mic, .site-search__close { position: relative; display: inline-flex; width: 2.6rem; height: 2.6rem; flex: none; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease; }
.site-search__mic svg, .site-search__close svg { width: 1.3rem; height: 1.3rem; }
.site-search__mic:hover, .site-search__close:hover { border-color: var(--accent); color: var(--accent); }
.site-search__mic[hidden] { display: none; }
/* Waehrend die Spracheingabe laeuft: gefuellter Knopf mit auslaufendem Ring */
.site-search__mic.is-listening { border-color: var(--magenta); background: var(--magenta); color: #fff; }
.site-search__pulse { position: absolute; inset: 0; pointer-events: none; }
.site-search__mic.is-listening .site-search__pulse::before { content: ""; position: absolute; inset: -1px; border: 2px solid var(--magenta); animation: mic-pulse 1.5s ease-out infinite; }
.site-search__status { margin: 0; padding: .8rem 1.25rem 0; color: var(--muted); font-family: var(--font-display); font-size: .86rem; }
.site-search__status[hidden] { display: none; }
.site-search__results { overflow-y: auto; margin: 0; padding: .6rem 0 .8rem; list-style: none; overscroll-behavior: contain; }
.site-search__results:empty { display: none; }
.sr-row { display: block; padding: .8rem 1.25rem; border-left: 2px solid transparent; text-decoration: none; transition: background-color 150ms ease, border-color 150ms ease; }
.sr-row:hover, .sr-row:focus-visible { border-left-color: var(--accent); background: var(--surface-2); }
.sr-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.sr-row__title { color: var(--heading); font-family: var(--font-display); font-size: 1.02rem; font-weight: 680; line-height: 1.3; }
.sr-row__kind { flex: none; color: var(--muted); font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sr-row__text { display: block; margin-top: .3rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.sr-row mark { background: color-mix(in srgb, var(--magenta) 22%, transparent); color: var(--heading); font-weight: 700; }
.site-search__foot { padding: .4rem 1.25rem 1.35rem; }
.site-search__foot[hidden] { display: none; }
.site-search__hint { color: var(--muted); font-family: var(--font-display); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.site-search__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.site-search__chip { padding: .4rem .85rem; border: 0; background: var(--surface-2); color: var(--heading); font-family: var(--font-display); font-size: .9rem; font-weight: 560; cursor: pointer; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); transition: background-color 150ms ease, color 150ms ease; }
.site-search__chip:hover { background: var(--magenta); color: #fff; }

/* Ergebnisseite: gleiche Bausteine, nur im Fliesstext statt in der Ebene */
.page-search { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2.5rem; padding: .55rem .55rem .55rem 1.1rem; border: 1px solid var(--line); background: var(--surface-2); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.page-search:focus-within { border-color: var(--accent); }
.page-search__mic { background: var(--surface-raised); }
.page-search__status { margin-top: 1rem; color: var(--muted); font-family: var(--font-display); font-size: .9rem; }
.page-search__results { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.page-search__results > li { border-bottom: 1px solid var(--line); }
.page-search__results > li:first-child { border-top: 1px solid var(--line); }
.sr-row--page { padding: 1.15rem 1rem; }
.sr-row--page .sr-row__title { font-size: 1.12rem; }
.sr-row__url { display: block; margin-top: .4rem; color: var(--accent); font-family: var(--font-display); font-size: .78rem; }
.page-search__map h2 { margin-top: 4rem; color: var(--heading); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.page-search__sitemap { display: grid; gap: 2rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.page-search__sitemap > li > a { color: var(--heading); font-family: var(--font-display); font-weight: 620; text-decoration: none; }
.page-search__sitemap .sub-menu { margin: .5rem 0 0; padding: 0; list-style: none; }
.page-search__sitemap .sub-menu a { color: var(--muted); text-decoration: none; line-height: 1.9; }
.page-search__sitemap a:hover { color: var(--accent); }
@media (min-width: 640px) { .page-search__sitemap { grid-template-columns: 1fr 1fr; } }

@media (max-width: 640px) {
  .site-search { padding: 0; }
  .site-search__panel { width: 100%; max-height: 100%; height: 100%; clip-path: none; }
  .site-search__results { flex: 1 1 auto; }
}

@keyframes mic-pulse { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.55); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: opacity 250ms ease; }
  .tile img, .btn, .areas > li, .slide-text { transition: none; }
  .btn:hover, .btn:active { transform: none; }
  .btn.is-rippling::after { animation: none; }
  .page-hero__media img, .slide.is-active img { animation: none; }
  .main-nav .sub-menu, .main-nav > ul > li > a::after, .mobile-nav, .site-search, .site-search__panel { transition: none; }
  .site-search__mic.is-listening .site-search__pulse::before { animation: none; }
}
