/* Schriften lokal eingebunden, keine Verbindung zu Google */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('fonts/hanken-grotesk-latin-ext-wght-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: 'Hanken Grotesk'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('fonts/hanken-grotesk-latin-wght-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: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900; src: url('fonts/schibsted-grotesk-latin-ext-wght-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: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900; src: url('fonts/schibsted-grotesk-latin-wght-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; }
/* Farbwelt "Enzian und Kupfer": Enzianblau als Markenfarbe, Kupfer als warmer Akzent (Fels, Abendlicht beim Wandern), Nebel und Tanne als ruhige Naturtöne. Schrift: Hanken Grotesk für Überschriften, Schibsted Grotesk für Text. */
:root {
  --bg: #f4f6f2;
  --surface: #ffffff;
  --sunk: #e8ede5;
  --ink: #17212d;
  --text: #3a4654;
  --muted: #6a7581;
  --line: #dbe1d8;
  --enzian: #22428c;
  --enzian-hover: #1a3573;
  --on-enzian: #ffffff;
  --enzian-soft: #e3e9f6;
  --kupfer: #a85b32;
  --kupfer-soft: #f5e7dd;
  --tanne: #2e5e4e;
  --contour: rgba(34, 66, 140, 0.10);
  --photo-a: #c8d3cf;
  --photo-b: #e5ebe4;
  --photo-ink: #4e5f5a;
  --band: #182f66;
  --band-text: #d9e1f2;
  --band-accent: #e3a07a;
  --display: "Hanken Grotesk", "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --max: 1180px;
  --r-lg: 14px;
  --r: 10px;
  --on-kupfer: #ffffff;
  --kupfer-hover: #934e2a;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #10161d; --surface: #17202a; --sunk: #1b2631; --ink: #eef1ec; --text: #c7cfd6; --muted: #8e99a4; --line: #283440;
  --enzian: #86a2ea; --enzian-hover: #a3b9f0; --on-enzian: #0f1d3f; --enzian-soft: #1d2a47; --kupfer: #e3a07a; --kupfer-soft: #3a2a20; --on-kupfer: #1b130e; --kupfer-hover: #edb38f;
  --tanne: #7fb5a2; --contour: rgba(134, 162, 234, 0.10); --photo-a: #1f2c2a; --photo-b: #263632; --photo-ink: #93a8a1;
  --band: #14254f; --band-text: #d2dbef; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #10161d; --surface: #17202a; --sunk: #1b2631; --ink: #eef1ec; --text: #c7cfd6; --muted: #8e99a4; --line: #283440;
  --enzian: #86a2ea; --enzian-hover: #a3b9f0; --on-enzian: #0f1d3f; --enzian-soft: #1d2a47; --kupfer: #e3a07a; --kupfer-soft: #3a2a20; --on-kupfer: #1b130e; --kupfer-hover: #edb38f;
  --tanne: #7fb5a2; --contour: rgba(134, 162, 234, 0.10); --photo-a: #1f2c2a; --photo-b: #263632; --photo-ink: #93a8a1;
  --band: #14254f; --band-text: #d2dbef; color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
a, button, [role="button"] { touch-action: manipulation; }
button, .btn { -webkit-user-select: none; user-select: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 4.8vw, 3.9rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.12; }
h3 { font: 600 1.08rem/1.35 var(--sans); }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--kupfer); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.fill { background: var(--kupfer-soft); color: inherit; padding: 0 5px; border-radius: 4px; box-shadow: inset 0 -2px 0 var(--kupfer); }

/* Knöpfe und Links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; background: var(--enzian); color: var(--on-enzian); border: 0; border-radius: 8px; font: 500 16px var(--sans); text-decoration: none; cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--enzian-hover); }
.btn:active { transform: scale(0.97); }
.btn.sun { background: var(--kupfer); color: var(--on-kupfer); }
.btn.sun:hover { background: var(--kupfer-hover); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn svg { width: 18px; height: 18px; }
.textlink { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--kupfer); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.textlink:hover { text-decoration-color: var(--enzian); }

/* Kopf */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 19; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 8px 24px -18px rgba(23, 33, 45, .35); }
.nav .wrap { display: flex; align-items: center; gap: 32px; min-height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--enzian); display: grid; place-items: center; flex: 0 0 auto; }
.logo-mark svg { width: 26px; height: 26px; }
.logo b { display: block; font: 600 21px/1.1 var(--display); white-space: nowrap; }
.logo small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.nav-links { list-style: none; margin: 0; padding: 0 clamp(16px, 3vw, 48px); flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 15.5px; }
.nav-links > li { display: flex; align-items: center; }
.nav-links > li > a { display: inline-flex; align-items: center; gap: 4px; line-height: 1.2; padding: 8px 0; text-decoration: none; color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--kupfer); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--kupfer); } }
/* Handy-Menü */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; flex: 0 0 auto; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 200ms var(--ease-out); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-btn:active { transform: scale(0.96); }
.menu { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 68px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(23, 33, 45, .35); }
.menu .wrap { display: grid; padding-block: 4px calc(88px + env(safe-area-inset-bottom, 0px)); }
.menu a { padding: 12px 0; font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu a:active { color: var(--enzian); }
.menu-contact { display: grid; gap: 2px; margin-top: 12px; }
.menu-contact a { border: 0; padding: 6px 0; font-size: 15.5px; color: var(--muted); font-weight: 400; }
@media (prefers-reduced-motion: no-preference) { .menu.open { animation: menuIn 200ms var(--ease-out); } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } .menu-btn { display: flex; } .nav .wrap { gap: 12px; min-height: 68px; } }
@media (min-width: 901px) { .menu { display: none !important; } }
@media (max-width: 420px) { .nav .wrap { gap: 8px; } .logo small { display: none; } .nav-cta { padding: 0 16px; font-size: 14px; min-height: 44px; } .logo-mark { width: 38px; height: 38px; } }
@media (max-width: 340px) { .logo b { font-size: 18px; } .nav-cta { padding: 0 12px; } }

/* Abschnitte */
.sec { padding-block: clamp(88px, 11vw, 144px); }
.sec.sunk { background: var(--sunk); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head p { max-width: 32em; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } }

/* Fotoflächen */
.photo { position: relative; background: linear-gradient(165deg, var(--photo-b), var(--photo-a)); border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: flex-end; }
.photo > span { margin: 18px; font-size: 13px; color: var(--photo-ink); background: color-mix(in srgb, var(--surface) 72%, transparent); padding: 4px 10px; border-radius: 6px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Seitenkopf der Unterseiten */
.pagehead { position: relative; padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); overflow: hidden; }
.pagehead p { margin-top: 18px; font-size: 1.15rem; max-width: 36em; text-wrap: pretty; }
.contour { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.pagehead .wrap, .hero .wrap { position: relative; z-index: 1; }

/* Partner-Laufband */
.mq-wrap { background: var(--surface); border-block: 1px solid var(--line); }
.mq-label { text-align: center; padding-top: 34px; font-size: 14.5px; color: var(--muted); }
.mq-wrap { padding-bottom: 14px; }
.mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 62s linear infinite; }
.mq.paused .mq-track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .mq:hover .mq-track { animation-play-state: paused; } }
.mq-item { flex: 0 0 auto; height: 128px; padding: 0 clamp(32px, 4.5vw, 60px); display: grid; place-items: center; }
.mq-item img { max-height: 44px; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter 200ms ease, opacity 200ms ease; }
@media (hover: hover) and (pointer: fine) { .mq-item:hover img { filter: none; opacity: 1; } }
.mq-item b { font: 600 clamp(1.4rem, 2.2vw, 1.85rem)/1 var(--display); color: var(--ink); opacity: .62; white-space: nowrap; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq { -webkit-mask-image: none; mask-image: none; } .mq-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; } .mq-item[aria-hidden="true"] { display: none; } }

/* Aufruf-Band */
.cta-band { background: var(--band); color: var(--band-text); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.3fr auto; gap: 28px 48px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 12px; max-width: 34em; }
.cta-band .acts { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn.line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.cta-band .btn.line:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.cta-band .contour { opacity: .9; }
.cta-band > :not(.contour) { position: relative; z-index: 1; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* Fuß */
footer { background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; padding-block: 56px 36px; margin-top: clamp(72px, 9vw, 120px); }
footer .cols { display: grid; grid-template-columns: 1.5fr 1.1fr 0.9fr 0.9fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
footer h4 { margin: 0 0 12px; color: var(--ink); font-weight: 600; font-size: 15px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--kupfer); text-underline-offset: 4px; }
footer .legal { padding-top: 24px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { footer .cols { grid-template-columns: 1fr; } }
footer ul a { overflow-wrap: anywhere; }

/* Fenster für Musterdokumente */
.viewer { width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--sunk); color: var(--text); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); overflow: hidden; }
.viewer[open] { display: flex; flex-direction: column; position: fixed; }
.viewer::backdrop { background: rgba(14, 22, 32, .55); }
.viewer-bar { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.viewer-bar > div { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.viewer-bar b { display: block; color: var(--ink); font-weight: 600; }
.viewer-bar small { color: var(--muted); font-size: 13.5px; }
.viewer-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.viewer-x svg { width: 20px; height: 20px; }
.viewer-pages { overflow-y: auto; padding: 20px; display: grid; gap: 16px; justify-items: center; }
.viewer-pages img { width: 100%; max-width: 860px; height: auto; aspect-ratio: 910 / 1287; align-self: start; border-radius: 4px; box-shadow: 0 10px 30px -18px rgba(23, 33, 45, .5); background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .viewer[open] { animation: vIn 220ms var(--ease-out); }
  .viewer[open]::backdrop { animation: vFade 220ms ease; }
  .viewer.closing { animation: vOut 150ms var(--ease-out) forwards; }
}
@keyframes vIn { from { opacity: 0; transform: scale(0.96); } }
@keyframes vFade { from { opacity: 0; } }
@keyframes vOut { to { opacity: 0; transform: scale(0.98); } }
@media (max-width: 560px) { .viewer-pages { padding: 12px; } }

/* Einblenden beim Scrollen: nur für Elemente unterhalb des ersten Bildschirms, ohne JS bleibt alles sichtbar */
[data-reveal] { transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js-reveal [data-reveal]:not(.shown) { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .js-reveal [data-reveal]:not(.shown) { transform: none; } [data-reveal] { transition: opacity 150ms ease; } }
@media (max-width: 460px) { .cta-more { display: none; } .logo b { font-size: 18px; } .logo-mark { width: 36px; height: 36px; } .logo { gap: 10px; } }
.nav-cta { gap: 0; }
@media (max-width: 340px) { .logo > span:last-child { display: none; } }

/* Dropdown Rechner in der Kopfzeile */
.nav-links .has-sub { position: relative; }

.caret { width: 12px; height: 12px; transition: transform 150ms var(--ease-out); }
.sub { position: absolute; top: 100%; left: 50%; padding-top: 14px; transform: translateX(-50%); visibility: hidden; opacity: 0; transition: opacity 150ms var(--ease-out), visibility 0s linear 150ms; z-index: 30; }
.sub-inner { width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 48px -24px rgba(23, 33, 45, .35); padding: 8px; display: grid; transform: translateY(-4px) scale(0.98); transform-origin: top center; transition: transform 150ms var(--ease-out); }
.sub a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); box-shadow: none !important; }
.sub a b { font-weight: 600; font-size: 15px; }
.sub a small { color: var(--muted); font-size: 13px; }
.sub a:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .sub a:hover { background: var(--bg); } .has-sub:hover .sub { visibility: visible; opacity: 1; transition-delay: 0s; } .has-sub:hover .sub-inner { transform: none; } .has-sub:hover .caret { transform: rotate(180deg); } }
.has-sub:focus-within .sub { visibility: visible; opacity: 1; transition-delay: 0s; }
.has-sub:focus-within .sub-inner { transform: none; }
@media (prefers-reduced-motion: reduce) { .sub-inner { transform: none; } }
.menu-sub { display: grid; padding-left: 16px; border-bottom: 1px solid var(--line); }
.menu .menu-sub a { font-size: 15px; padding: 8px 0; border-bottom: 0; color: var(--text); font-weight: 400; }

.mq-item a { text-decoration: none; color: inherit; display: grid; place-items: center; }
@media (hover: hover) and (pointer: fine) { .mq-item a:hover b { opacity: 1; color: var(--enzian); } }

/* Seitenwechsel wie in einer App: Kopfzeile bleibt stehen, Inhalt blendet weich über (View Transitions) */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
html.vt-doc .nav { view-transition-name: none; }
::view-transition-group(site-nav) { animation: none; }
::view-transition-old(root) { animation: vt-out 150ms cubic-bezier(0.2, 0, 0, 1) both; }
::view-transition-new(root) { animation: vt-in 300ms cubic-bezier(0.2, 0, 0, 1) 40ms both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
/* Wechsel innerhalb einer Seite (Rechner): nur der Inhalt bewegt sich */
html.vt-local::view-transition-old(root), html.vt-local::view-transition-new(root) { animation: none; }
::view-transition-group(calc-panel) { animation-duration: 300ms; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
::view-transition-old(calc-panel) { animation: vt-out 150ms cubic-bezier(0.2, 0, 0, 1) both; }
::view-transition-new(calc-panel) { animation: vt-in 300ms cubic-bezier(0.2, 0, 0, 1) 60ms both; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(calc-panel), ::view-transition-new(calc-panel), ::view-transition-group(calc-panel) { animation: none; }
}

/* Dokument wächst aus der Vorschau ins Fenster */
::view-transition-group(doc-morph) { animation-duration: 380ms; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
::view-transition-old(doc-morph), ::view-transition-new(doc-morph) { animation-duration: 380ms; height: 100%; object-fit: cover; object-position: top; }
html.vt-doc::view-transition-old(root) { animation: vt-fade-out 200ms ease both; }
html.vt-doc::view-transition-new(root) { animation: vt-fade-in 260ms ease both; }
html.vt-doc .viewer[open], html.vt-doc .viewer[open]::backdrop, .viewer.no-enter[open]:not(.closing), .viewer.no-enter[open]::backdrop { animation: none; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }

/* Terminbuchung: Schritte gehen wie Seiten ineinander über */
html.vt-fwd::view-transition-old(book-panel) { animation: vt-left 150ms cubic-bezier(0.2, 0, 0, 1) both; }
html.vt-fwd::view-transition-new(book-panel) { animation: vt-from-right 300ms cubic-bezier(0.2, 0, 0, 1) 50ms both; }
html.vt-back::view-transition-old(book-panel) { animation: vt-right 150ms cubic-bezier(0.2, 0, 0, 1) both; }
html.vt-back::view-transition-new(book-panel) { animation: vt-from-left 300ms cubic-bezier(0.2, 0, 0, 1) 50ms both; }
::view-transition-group(book-panel) { animation-duration: 300ms; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
@keyframes vt-left { to { opacity: 0; transform: translateX(-24px); } }
@keyframes vt-right { to { opacity: 0; transform: translateX(24px); } }
@keyframes vt-from-right { from { opacity: 0; transform: translateX(32px); } }
@keyframes vt-from-left { from { opacity: 0; transform: translateX(-32px); } }
html.vt-fwd::view-transition-old(root), html.vt-fwd::view-transition-new(root), html.vt-back::view-transition-old(root), html.vt-back::view-transition-new(root) { animation: none; }

/* Rechner: Balken gleiten zum neuen Wert */
@media (prefers-reduced-motion: no-preference) { .bars .bfill { transition: width 220ms cubic-bezier(0.2, 0, 0, 1); } }

/* Logo LM */
.logo .lm { display: block; height: 38px; width: auto; flex: 0 0 auto; }
.lm-l { fill: #22428c; }
.lm-s { fill: #a85b32; }
/* Dunkle Ansicht: kräftigeres Markenblau statt Pastell, noch gut lesbar auf dunklem Grund */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lm-l { fill: #4166c8; } :root:not([data-theme="light"]) .lm-s { fill: #c4733f; } }
:root[data-theme="dark"] .lm-l { fill: #4166c8; }
:root[data-theme="dark"] .lm-s { fill: #c4733f; }
footer .logo .lm { height: 40px; }
.nav .logo .lm-nav { height: 38px; }
.lm-n { fill: var(--ink); }
.lm-t { fill: var(--muted); }
@media (max-width: 460px) { .nav .logo .lm-nav { height: 34px; } }
@media (max-width: 360px) { .nav .logo .lm-nav { height: 32px; } }
@media (max-width: 460px) { .logo .lm { height: 30px; } }

.wa-ic { width: 18px; height: 18px; margin-right: 8px; flex: 0 0 auto; }
/* Handy: Schnellkontakt unten */
.mbar { display: none; }
@media (max-width: 900px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px max(12px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
  .mbar a:active { transform: scale(0.97); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* Dunkle Ansicht: gefüllte Buttons in kräftigen Markenfarben mit weißer Schrift statt Pastell */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.line) { background: #3556b0; color: #fff;} :root:not([data-theme="light"]) .btn:not(.line):hover { background: #4166c8;} :root:not([data-theme="light"]) .btn.sun { background: #a85b32; color: #fff;} :root:not([data-theme="light"]) .btn.sun:hover { background: #b96a3e;} }
:root[data-theme="dark"] .btn:not(.line) { background: #3556b0; color: #fff;} :root[data-theme="dark"] .btn:not(.line):hover { background: #4166c8;} :root[data-theme="dark"] .btn.sun { background: #a85b32; color: #fff;} :root[data-theme="dark"] .btn.sun:hover { background: #b96a3e;}
