/* Werkzeuge auf jeder Seite: Suche, Sprache, Hell/Dunkel, Textgrösse, Teilen, Nach oben, Kopieren, Lesezeit.
   Dazu der helle Modus (html[data-theme="light"]). Skript: js/tools.js und js/search.js. */

/* ------------------------------------------------------------ Textgrösse */
/* Nur der Inhalt wird grösser (wie Zoomen), die Navigation bleibt gleich und passt immer */
html[data-text="lg"] main { zoom: 1.125; }
html[data-text="xl"] main { zoom: 1.25; }
@media (width <= 48rem) {
  html[data-text="lg"] main { zoom: 1.08; }
  html[data-text="xl"] main { zoom: 1.16; }
}
/* Grössere Schrift: Spalten und Handys dürfen schmaler werden, damit nichts seitlich übersteht */
html[data-text] main :is(.change-grid, .demos, .hero-grid, .cta-panel, .about-grid, .steps-grid, .faq-grid) > * { min-width: 0; }
html[data-text] main :is(.ph, .phone, .bezel, form) { max-width: 100%; }

/* ------------------------------------------------------------ Knöpfe in der Navigation */
.site-header .brand { order: 1; }
.site-header .nav { order: 2; }
.tools { order: 3; position: relative; z-index: 2; display: flex; align-items: center; gap: .125rem; }
.tool {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), filter .3s var(--ease-out), transform .16s var(--ease-out);
}
.tool svg { width: 1.2rem; height: 1.2rem; }
.tool:active { transform: scale(.94); }
.tool-code { font-size: .8125rem; font-weight: 600; letter-spacing: .03em; }
.tool-theme .i-moon { display: none; }
html[data-theme="light"] .tool-theme .i-sun { display: none; }
html[data-theme="light"] .tool-theme .i-moon { display: block; }
@media (hover: hover) and (pointer: fine) {
  .tool:hover { background: #ffffff1a; filter: drop-shadow(0 0 10px #9cc2ff73); }
}
.tool:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
html:not(.js) [data-search-open], html:not(.js) [data-theme-toggle], html:not(.js) [data-theme-set] { display: none; }

@media (width > 52rem) {
  .site-header .island { width: min(100%, 64rem); gap: 1rem; }
  .tools { padding-left: .25rem; border-left: 1px solid var(--paper-line); }
}
/* Mittlere Breiten: Sprache und Hell/Dunkel stecken im Fenster «Anzeige» */
@media (width <= 68rem) {
  .tool-lang, .tool-theme { display: none; }
}
@media (width > 68rem) {
  .pop .pop-only-small { display: none; }
}
/* Handy: Logo, Suche, Anzeige, Menü */
@media (width <= 52rem) {
  .site-header .nav { order: 4; }
  .tools { gap: 0; }
  .tool { width: 2.75rem; height: 2.75rem; }
}


/* ------------------------------------------------------------ Kleine Fenster (Popover) */
.pop {
  position: fixed;
  inset: auto;
  min-width: 15rem;
  max-width: calc(100vw - 1rem);
  margin: 0;
  padding: 1rem;
  border: 1px solid #ffffff24;
  border-radius: 1.25rem;
  background: linear-gradient(160deg, #ffffff12, #ffffff03 60%), #101a2df7;
  color: var(--ink);
  box-shadow: var(--glass-light), 0 30px 60px -24px #020610f2;
}
.pop:popover-open { animation: pop-in .22s var(--ease-out); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pop-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .55rem;
  color: var(--grey-light);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pop-title svg { width: 1rem; height: 1rem; }
.pop-title:not(:first-child) { margin-top: 1rem; }
.seg { display: flex; gap: .3rem; padding: .25rem; border: 1px solid var(--paper-line); border-radius: var(--pill); background: var(--paper); }
.seg-btn {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.5rem;
  padding: 0 .75rem;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.seg-btn svg { width: 1.05rem; height: 1.05rem; }
.seg-btn[aria-pressed="true"] { background: var(--white); color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .seg-btn:not([aria-pressed="true"]):hover { background: #ffffff14; color: var(--ink); }
}
.ts { font-weight: 600; line-height: 1; }
.ts-1 { font-size: .875rem; }
.ts-2 { font-size: 1.0625rem; }
.ts-3 { font-size: 1.3125rem; }
.lang-list, .share-list { display: grid; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.lang-row { grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.lang-link, .share-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 .8rem;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.lang-row .lang-link { justify-content: center; padding: 0 .4rem; border: 1px solid var(--paper-line); }
.lang-link[aria-current="true"] { background: var(--white); color: var(--navy); }
.lang-link[aria-current="true"]::after { content: ""; width: .4rem; height: .4rem; margin-left: auto; border-radius: 50%; background: currentColor; }
.lang-row .lang-link[aria-current="true"]::after { display: none; }
.share-item svg { width: 1.15rem; height: 1.15rem; color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .lang-link:not([aria-current="true"]):hover, .share-item:hover { background: #ffffff14; }
}

/* ------------------------------------------------------------ Suche */
.search {
  width: min(40rem, calc(100% - 1.5rem));
  max-height: min(36rem, calc(100svh - 3rem));
  margin: max(1.5rem, 9svh) auto auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffff24;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, #ffffff10, #ffffff03 60%), #101a2d;
  color: var(--ink);
  box-shadow: var(--glass-light), 0 40px 90px -30px #020610;
}
.search[open] { animation: pop-in .25s var(--ease-out); }
.search::backdrop { background: #070c17b8; backdrop-filter: blur(6px); }
.search-box { display: flex; flex-direction: column; max-height: inherit; }
.search-field { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem .9rem 1.25rem; border-bottom: 1px solid var(--paper-line); }
.search-field > svg { flex: none; width: 1.3rem; height: 1.3rem; color: var(--accent); }
.search-field input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
  outline: none;
}
.search-field input::placeholder { color: var(--grey); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-close { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: #ffffff12; color: var(--ink); cursor: pointer; }
.search-close svg { width: 1.1rem; height: 1.1rem; }
.search-label { margin: .9rem 1.25rem .35rem; color: var(--grey-light); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.search-results { flex: 1; margin: 0; padding: 0 .6rem .6rem; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.search-results li + li { margin-top: .15rem; }
.res {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .15rem .85rem;
  padding: .7rem .75rem;
  border-radius: .9rem;
  color: var(--ink);
  text-decoration: none;
}
.res-icon { grid-row: span 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #9cc2ff1f; color: var(--accent); }
.res-icon svg { width: 1.05rem; height: 1.05rem; }
.res-title { font-weight: 600; line-height: 1.35; }
.res-meta { color: var(--grey); font-size: .8125rem; font-weight: 500; }
.res-text { grid-column: 2; color: var(--ink-soft); font-size: .875rem; line-height: 1.45; }
.res mark { border-radius: .2em; background: #9cc2ff40; color: inherit; }
.res[aria-selected="true"], .res:hover { background: #ffffff12; box-shadow: inset 0 0 0 1px #9cc2ff4d; }
.search-empty { margin: .5rem 1.25rem 1.25rem; color: var(--ink-soft); }
.search-empty a { color: var(--accent); }
.search-foot { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; padding: .7rem 1.25rem; border-top: 1px solid var(--paper-line); color: var(--grey); font-size: .75rem; }
.search-foot kbd { padding: .05rem .35rem; border: 1px solid var(--paper-line); border-radius: .35rem; font: inherit; font-size: .75rem; }
@media (pointer: coarse) { .search-foot { display: none; } }

/* ------------------------------------------------------------ Teilen und Nach oben */
.fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  flex-direction: column-reverse;
  gap: .5rem;
  transition: transform .5s var(--ease);
}
.fab-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid #ffffff2e;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff1f, #ffffff08), #0f172ae6;
  color: var(--ink);
  box-shadow: var(--glass-light), 0 14px 30px -14px #020610;
  cursor: pointer;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), filter .3s var(--ease-out);
}
.fab-btn svg { width: 1.2rem; height: 1.2rem; }
.fab-top { opacity: 0; transform: translateY(.75rem) scale(.9); pointer-events: none; }
.fab.is-scrolled .fab-top { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  .fab-btn:hover { filter: brightness(1.15) drop-shadow(0 0 14px #9cc2ff80); transform: translateY(-2px); }
}
.fab-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (width <= 52rem) {
  .fab { right: .75rem; }
  .fab-btn { width: 2.75rem; height: 2.75rem; }
  .fab.above-cta { transform: translateY(-4.6rem); }
}
html:not(.js) .fab { display: none; }

/* ------------------------------------------------------------ Meldung «Kopiert» */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  z-index: 60;
  margin: 0;
  padding: .6rem 1.1rem;
  border-radius: var(--pill);
  background: var(--white);
  color: var(--navy);
  font-size: .9375rem;
  font-weight: 600;
  box-shadow: 0 16px 40px -16px #020610;
  opacity: 0;
  transform: translate(-50%, .75rem);
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { visibility: hidden; }

/* ------------------------------------------------------------ Kopier-Knöpfe */
.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--paper-line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  vertical-align: middle;
  cursor: pointer;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), filter .3s var(--ease-out), transform .16s var(--ease-out);
}
.copy-btn svg { width: .95rem; height: .95rem; }
.copy-btn:active { transform: scale(.92); }
.copy-btn.is-done { color: var(--accent); border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .copy-btn:hover { color: var(--ink); border-color: #9cc2ff80; filter: drop-shadow(0 0 8px #9cc2ff73); }
}
.copy-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.copy-inline { margin-left: .4rem; }
address + .copy-inline { margin: .5rem 0 0; }
.copy-answer { display: flex; margin-top: .75rem; }
.sec-tools { display: flex; gap: .4rem; margin: -.35rem 0 1rem; }
.prose .sec-tools { margin: -.25rem 0 .75rem; }
.features-head .sec-tools, .steps-head .sec-tools, .change-copy .sec-tools { margin-top: -.5rem; }
@media (hover: hover) and (pointer: fine) {
  .sec-tools .copy-btn { opacity: .7; }
  .sec-tools .copy-btn:hover, .sec-tools .copy-btn:focus-visible { opacity: 1; }
}

/* ------------------------------------------------------------ Lesezeit */
.page-meta { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.25rem; color: var(--grey-light); font-size: .9375rem; font-weight: 500; }
.page-meta svg { width: 1.05rem; height: 1.05rem; color: var(--accent); }
.legal-note { display: inline-flex; margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .pop:popover-open, .search[open] { animation: none; }
  .fab, .fab-btn, .toast { transition: opacity .2s linear; }
  .fab-top, .fab.above-cta { transform: none; }
  .toast, .toast.is-on { transform: translateX(-50%); }
}

/* ============================================================ Heller Modus */
html[data-theme="light"] {
  --navy: #f4f6fa;
  --navy-deep: #e7ebf2;
  --navy-raised: #ffffff;
  --white: #0b1220;
  --grey: #5a6577;
  --grey-light: #3b4557;
  --accent: #2f5fa8;
  --ink: #0b1220;
  --ink-soft: #3b4557;
  --paper: #ffffffb8;
  --paper-deep: #ffffffeb;
  --paper-line: #0b12201a;
  --glass-shell: #0b122006;
  --glass-line-strong: #0b12202e;
  --glass-light: inset 0 1px 0 #fffffff2, inset 0 -1px 0 #0b122008;
  --glass-shadow: 0 30px 60px -34px #0b122052;
  --glass-solid: #ffffff;
  --focus: #0b1220;
  color-scheme: light;
  scrollbar-color: #0b122038 var(--navy-deep);
}
html[data-theme="light"] ::selection { background: #0b1220; color: #f4f6fa; }
html[data-theme="light"] .ambient { background: radial-gradient(120% 80% at 50% 120%, #dbe3ef, transparent 60%), var(--navy); }
html[data-theme="light"] .ambient .l1 { background: radial-gradient(circle, #9cc2ff59, #0000 62%); }
html[data-theme="light"] main > section,
html[data-theme="light"] .site-footer { animation: none !important; }
html[data-theme="light"] main > section { --tone: #f4f6fa00; }
html[data-theme="light"] main > section.tone-alt { --tone: #e6ecf5b3; }
html[data-theme="light"] .site-footer { background: linear-gradient(#e7ebf200, #e7ebf2); }

/* Logo: das Z bleibt chromfarben, ein Schatten hebt es vom hellen Grund ab; der Schriftzug wird dunkel */
html[data-theme="light"] .lockup .mark,
html[data-theme="light"] .logo-intro { filter: drop-shadow(0 1px 1.5px #0b12204d) drop-shadow(0 3px 6px #0b12201f); }
html[data-theme="light"] .logo-intro .name { fill: #0b1220; }

/* Navigation, Menü, Glas */
html[data-theme="light"] .island::before {
  background: linear-gradient(135deg, #ffffffeb, #ffffffbf), #f4f6facc;
  border-color: #0b12201f;
  box-shadow: var(--glass-light), 0 18px 50px -24px #0b122047;
}
html[data-theme="light"] .site-header .nav-pill { background: #0b1220; box-shadow: 0 0 0 1px #0b122033, 0 6px 18px -6px #0b122066; }
html[data-theme="light"] .site-header .menu a.menu-cta:hover { background: #0b12200f; }
html[data-theme="light"] .menu-toggle { background: #0b12200f; }
@media (width <= 52rem) {
}
html[data-theme="light"] .glass { background: linear-gradient(135deg, #ffffffeb, #ffffffbf), #f4f6facc; border-color: #0b12201f; box-shadow: var(--glass-light), 0 18px 50px -20px #0b122040; }
html[data-theme="light"] .tool:hover { background: #0b12200f; filter: none; }
html[data-theme="light"] .tools { border-color: #0b12201a; }

/* Buttons und Chips */
html[data-theme="light"] .btn-primary:hover { background: #17223a; }
html[data-theme="light"] .btn-primary > .ico-end { background: #ffffff24; }
html[data-theme="light"] .btn-ghost { background: #ffffffb3; border-color: #0b122024; }
html[data-theme="light"] .btn-ghost:hover { background: #fff; border-color: #0b122047; }
html[data-theme="light"] .chip { background: #ffffffbf; border-color: #0b12201f; }
html[data-theme="light"] .demo-tab { background: #ffffffb3; border-color: #0b122024; }
html[data-theme="light"] .demo-tab[aria-pressed="true"] { background: #0b1220; border-color: #0b1220; color: #f4f6fa; }
@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] .btn-ghost:hover, html[data-theme="light"] .demo-tab:hover { background: #fff; border-color: #2f5fa880; }
  html[data-theme="light"] .demo-tab[aria-pressed="true"]:hover { background: #17223a; }
}
html[data-theme="light"] .step-num { color: #0b1220; }
html[data-theme="light"] .faq-chev { background: #0b12200d; }
html[data-theme="light"] .branch-card { border-color: #0b12201f; }
html[data-theme="light"] .searches li { background: #ffffffcc; border-color: #0b12201f; }

/* Formularfelder */
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="search"]),
html[data-theme="light"] select,
html[data-theme="light"] textarea { background: #fff; border-color: #0b122033; }

/* Werkzeug-Fenster, Suche, Knöpfe unten rechts, Meldung */
html[data-theme="light"] .pop,
html[data-theme="light"] .search {
  border-color: #0b12201f;
  background: linear-gradient(160deg, #ffffff, #f7f9fc);
  box-shadow: var(--glass-light), 0 30px 60px -24px #0b122059;
}
html[data-theme="light"] .search::backdrop { background: #0b122059; }
html[data-theme="light"] .search-close { background: #0b12200d; }
html[data-theme="light"] .seg-btn:not([aria-pressed="true"]):hover,
html[data-theme="light"] .lang-link:not([aria-current="true"]):hover,
html[data-theme="light"] .share-item:hover,
html[data-theme="light"] .res[aria-selected="true"],
html[data-theme="light"] .res:hover { background: #0b12200a; }
html[data-theme="light"] .res-icon { background: #2f5fa81a; }
html[data-theme="light"] .res mark { background: #2f5fa82e; }
html[data-theme="light"] .fab-btn {
  border-color: #0b12201f;
  background: linear-gradient(135deg, #ffffffeb, #ffffffbf), #f4f6facc;
  box-shadow: var(--glass-light), 0 14px 30px -14px #0b122066;
}
html[data-theme="light"] .toast { box-shadow: 0 16px 40px -16px #0b122080; }
.search-did { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Schmale Handys: Navigation kompakter, damit Logo, Suche, Anzeige und Menü nebeneinander passen */
@media (width <= 30rem) {
  .site-header .menu-label { display: none; }
  .site-header .island { gap: .25rem; padding-left: .8rem; }
  .site-header .lockup .word { font-size: 1rem; }
  .site-header .lockup .mark { width: 1.85rem; height: 1.85rem; }
  .tool { width: 2.375rem; height: 2.375rem; }
  .site-header .menu-toggle { padding: 0 .7rem; }
}
@media (width <= 21rem) {
  .site-header .lockup .word { font-size: .875rem; }
  .tool { width: 2.25rem; height: 2.25rem; }
}
/* Handy: Teilen erst nach dem Seitenkopf zeigen, damit nichts den Hauptknopf verdeckt */
@media (width <= 52rem) {
  .fab:not(.is-scrolled) .fab-btn { opacity: 0; pointer-events: none; }
}
/* Lange E-Mail-Adresse darf auf schmalen Bildschirmen umbrechen */
.cta-line, .site-footer .contact a { overflow-wrap: anywhere; }
@media (width < 75rem) {
  html[data-text] .feature-list--3[data-astro-cid-lcdefpme] { grid-template-columns: 1fr; }
  html[data-text] .feature-list--3[data-astro-cid-lcdefpme] li[data-astro-cid-lcdefpme]:nth-child(n+2) { border-top: 1px solid var(--paper-line); }
}
html[data-text] main :is(.form, .direct).bezel { max-width: calc(100% - 14px); }
html[data-text] main :is(.feature-list, .step-list, .price-row, .branch-cards) > * { min-width: 0; }
html[data-text] main :is(figure.demo, .branch-demo) { max-width: 100%; min-width: 0; }
/* Sicherheitsnetz: bei grosser Schrift nie seitlich scrollen */
html[data-text] main > section { overflow-x: clip; }
/* Längere Texte in Englisch und Französisch: Formulare und Auswahllisten dürfen schmaler werden */
main form, main form .field, main form .select { min-width: 0; }
main form select { max-width: 100%; }
@media (width <= 30rem) {
  main form .btn { white-space: normal; text-align: center; }
}
.faq-grid[data-astro-cid-lcdefpme] > .sec-tools { justify-content: center; margin-top: -1rem; }

/* ------------------------------------------------------------ Handy-Menü: fester Hintergrund, gut lesbar, animiert */
@media (width <= 52rem) {
  .site-header .menu {
    justify-content: flex-start;
    padding: 6.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: radial-gradient(120% 55% at 100% 0%, #9cc2ff1f, #0000 60%), radial-gradient(90% 50% at 0% 100%, #4876cc1f, #0000 60%), var(--navy);
    backdrop-filter: none;
    transform: translateY(-.75rem);
  }
  .site-header .menu.is-open { transform: none; }
  .site-header .menu.is-animated { transition: opacity .3s var(--ease-out), transform .5s var(--ease), visibility 0s linear .3s; }
  .site-header .menu.is-animated.is-open { transition: opacity .3s var(--ease-out), transform .5s var(--ease), visibility 0s; }

  /* Einträge gleiten nacheinander von links herein und werden scharf */
  .site-header .menu li { position: relative; transform: translateX(-1.25rem); filter: blur(6px); }
  .site-header .menu.is-animated li { transition: opacity .45s var(--ease-out), transform .6s var(--ease), filter .5s var(--ease-out); }
  .site-header .menu.is-open li { transform: none; filter: none; }
  .site-header .menu.is-open li:nth-child(1) { transition-delay: .08s; }
  .site-header .menu.is-open li:nth-child(2) { transition-delay: .14s; }
  .site-header .menu.is-open li:nth-child(3) { transition-delay: .2s; }
  .site-header .menu.is-open li:nth-child(4) { transition-delay: .26s; }
  .site-header .menu.is-open li:nth-child(5) { transition-delay: .34s; }

  /* Trennlinie wächst von links */
  .site-header .menu li:not(.menu-cta-item):not(.nav-pill)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--paper-line);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .7s var(--ease);
    transition-delay: inherit;
  }
  .site-header .menu.is-open li::after { transform: scaleX(1); }

  /* Grosse, gut lesbare Menüpunkte mit Pfeil */
  .site-header .menu a.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.5rem;
    color: var(--ink);
    font-size: clamp(1.875rem, 1.3rem + 3vw, 2.5rem);
  }
  .site-header .menu a.menu-link::after {
    content: "";
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    background: currentColor;
    opacity: .45;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
  }
  .site-header .menu a.menu-link:active::after { transform: translateX(4px); opacity: 1; }
  .site-header .menu a.menu-link.is-current,
  .site-header .menu a.menu-link[aria-current="page"] { color: var(--accent); text-shadow: none; }

  /* Kontakt als heller Hauptknopf */
  .site-header .menu-cta-item { margin-top: 2.25rem; }
  .site-header .menu a.menu-cta,
  .site-header .menu a.menu-cta.is-current {
    width: 100%;
    min-height: 3.75rem;
    border: 0;
    background: var(--white);
    color: var(--navy);
    font-size: 1.125rem;
    font-weight: 600;
  }
}
@media (width <= 52rem) {
  html[data-theme="light"] .site-header .menu { background: radial-gradient(120% 55% at 100% 0%, #9cc2ff33, #0000 60%), var(--navy); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .menu, .site-header .menu li { transform: none !important; filter: none !important; }
  .site-header .menu li::after { transform: none !important; transition: none !important; }
}
