/* HiS Connector – Website-Styles (Entwurf 2 „Modern“) */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2-variations"), url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2-variations"), url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --accent: #FF6B1A;
  --ink: #0B0B0C;
  --ink-2: #3A3A3F;
  --muted: #55555C;
  --muted-2: #6B6B72;
  --faint: #62626A;          /* 5,8:1 auf --bg (WCAG AA) */
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --sunk: #F6F5F1;
  --chip: #F1EFEA;
  --line: #E7E6E1;
  --line-2: #DCDBD5;
  --dark-2: #151517;
  --dark-line: #26262A;
  --ok: #3DDC84;
  --peach: #FFE7D4;
  --sky: #E4ECFF;
  --radius: 22px;
  --sans: "Geist", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height: 1.5; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }

.container { max-width: 1160px; margin: 0 auto; }
.section { padding: 80px 20px; }
.mono { font-family: var(--mono); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Headings */
.h-display { font-weight: 800; font-size: clamp(48px, 8.4vw, 116px); line-height: .95; letter-spacing: -.055em; }
.h-section { font-weight: 700; font-size: clamp(34px, 4.4vw, 56px); line-height: 1; letter-spacing: -.045em; }
.h-card { font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 17px; }
.dim { color: var(--faint); }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; gap: 8px; }
.nav .btn { border-radius: 999px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #222226; }
.btn-light { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--ink); font-weight: 700; }
.btn-accent:hover { color: var(--ink); }
.btn-ghost-dark { border-color: var(--ink-2); color: #fff; }
.btn-ghost-dark:hover { color: #fff; border-color: #fff; }

/* Navigation */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 14px 20px 0; }
.nav {
  max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.nav-menu { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }
.nav-links a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); border-radius: 999px; transition: background-color .2s ease; }
.nav-links a:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
.btn-glass { color: var(--ink); }
.btn-glass:hover { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, top .25s ease; }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.nav.is-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 88px 20px 0; text-align: center; position: relative; }
.hero > .container, .hero > .window { position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 32px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.pill-tag { background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.hero h1 { margin: 0 auto 28px; max-width: 1060px; }
.hero-sub { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); margin: 0 auto 40px; max-width: 640px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--muted-2); list-style: none; padding: 0; }

/* Product window */
.window { max-width: 1160px; margin: 72px auto 0; background: var(--ink); border-radius: var(--radius); padding: 10px; box-shadow: 0 40px 80px -30px rgba(11,11,12,.45); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; }
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-2); }
.window-bar .url { flex: 1; text-align: center; font-family: var(--mono); font-size: 12px; color: #8E8E96; }
.window-body { display: flex; flex-wrap: wrap; gap: 10px; text-align: left; }
.panel-log { flex: 1 1 420px; min-width: 0; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 14px; padding: 22px; color: #C8C8CE; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-head strong { color: #fff; font-weight: 600; font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: #9BE7B8; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
.log { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 13px; }
.log li { display: flex; justify-content: space-between; gap: 12px; animation: rise .5s both; }
.log li:nth-child(1){animation-delay:.2s}.log li:nth-child(2){animation-delay:.7s}.log li:nth-child(3){animation-delay:1.2s}.log li:nth-child(4){animation-delay:1.7s}.log li:nth-child(5){animation-delay:2.2s}
.log .ok { color: var(--ok); }
.log .run { color: var(--accent); }
.panel-meta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--dark-line); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.panel-meta dt { font-size: 12px; color: #8E8E96; }
.panel-meta dd { margin: 0; color: #fff; font-size: 14px; font-weight: 500; }
.panel-profile { flex: 1 1 420px; min-width: 0; background: var(--surface); border-radius: 14px; padding: 26px; }
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.avatar { width: 68px; height: 68px; border-radius: 18px; background: var(--chip); flex: none; display: flex; align-items: center; justify-content: center; }
.profile-name { font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.profile-role { color: var(--muted-2); font-size: 14px; }
.fields { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.fields li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--sunk); border-radius: 10px; color: var(--muted); }
.fields li span:last-child { font-family: var(--mono); font-size: 12px; }
.fields li.self { background: #FFF1E6; }
.fields li.self span:last-child { color: #9A3F00; }

/* Kooperationspartner */
.partners { padding: 88px 20px 0; }
.partners-title { text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 28px; }
.partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 56px; }
.partner {
  display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 4px;
  text-decoration: none; color: var(--ink);
  opacity: .55; filter: grayscale(1); transition: opacity .2s ease;
}
.partner:hover, .partner:focus-visible { opacity: 1; color: var(--ink); }
.partner img { display: block; height: auto; max-height: 48px; width: auto; }
.partner-word { font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.partner-word-only { font-size: 28px; letter-spacing: .01em; }
@media (max-width: 640px) { .partner-list { gap: 8px 32px; } .partner img { max-height: 40px; } }

/* Statement */
.statement { padding: 120px 20px 40px; }
.statement p { max-width: 980px; margin: 0 auto; font-weight: 600; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.15; letter-spacing: -.035em; }

/* Section head */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.section-head .lead { max-width: 420px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; }
.tile { border-radius: var(--radius); padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.tile p { color: var(--muted); font-size: 15px; }
.tile .kicker { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-bottom: 12px; }
.tile-dark { background: var(--ink); border-color: var(--ink); color: #fff; padding: 32px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tile-dark .kicker { color: var(--accent); }
.tile-dark h3 { font-weight: 700; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.tile-dark p { color: #B4B4BA; font-size: 16px; max-width: 480px; }
.tile-peach { background: var(--peach); border-color: var(--peach); padding: 32px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.tile-peach .kicker { color: #8A3800; }
.tile-peach p { color: #5C2600; font-size: 16px; margin-top: 10px; }
.big-num { font-weight: 800; font-size: 88px; letter-spacing: -.06em; line-height: .9; }
.tile-sky { background: var(--sky); border-color: var(--sky); }
.tile-sky .kicker { color: #23408E; } .tile-sky p { color: #2A3550; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag-outline { font-family: var(--mono); font-size: 13px; padding: 8px 12px; border: 1px solid #333338; border-radius: 8px; }
.tag-accent { font-family: var(--mono); font-size: 13px; padding: 8px 12px; border-radius: 8px; background: var(--accent); color: var(--ink); font-weight: 600; }
.chip { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--chip); }
.code-rows { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; margin-top: 18px; }
.code-rows div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; background: var(--sunk); border-radius: 8px; }
.code-rows span:last-child { color: var(--muted-2); }
.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; font-family: var(--mono); font-size: 12px; margin-top: 18px; }
.code-grid span { padding: 8px 10px; background: var(--sunk); border-radius: 8px; overflow-wrap: anywhere; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 18px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.shot-1 { grid-column: span 5; grid-row: span 2; }
.shot-2, .shot-3 { grid-column: span 7; }
.shot-4, .shot-5 { grid-column: span 6; }
.shot-frame {
  position: relative; display: block; overflow: hidden; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11,11,12,.05), 0 20px 40px -24px rgba(11,11,12,.35);
  aspect-ratio: 16 / 10; flex: 1 1 auto;
}
.shot-1 .shot-frame { aspect-ratio: auto; min-height: 420px; }
.shot-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.shot-frame:hover img { transform: scale(1.025); }
.shot-zoom { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); --glass-tint: rgba(255,255,255,.55); opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; }
.shot-frame:hover .shot-zoom, .shot-frame:focus-visible .shot-zoom { opacity: 1; transform: none; }
@media (hover: none) { .shot-zoom { opacity: 1; transform: none; } }
.shot figcaption { font-size: 14px; color: var(--muted); }
.shot figcaption strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .shots { grid-template-columns: minmax(0,1fr); }
  .shot-1, .shot-2, .shot-3, .shot-4, .shot-5 { grid-column: auto; grid-row: auto; }
  .shot-1 .shot-frame { aspect-ratio: 4 / 5; min-height: 0; }
}

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(11,11,12,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox[open] { display: flex; animation: fade-in .25s ease; }
.lightbox-inner { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; width: 100%; height: 100%; box-sizing: border-box; justify-content: center; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); background: #fff; object-fit: contain; }
.lightbox-bar { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; max-width: min(900px, 100%); color: #fff;
  --glass-tint: rgba(40,40,44,.42); --glass-rim: rgba(255,255,255,.4); --glass-rim-2: rgba(255,255,255,.1); }
.lb-caption { flex: 1; font-size: 14px; color: rgba(255,255,255,.85); padding: 0 10px; min-width: 0; }
.lb-caption strong { color: #fff; }
.lb-count { color: rgba(255,255,255,.6); font-size: 12px; margin-left: 6px; white-space: nowrap; }
.lb-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s ease; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
@media (max-width: 640px) { .lb-caption span:not(.lb-count) { display: none; } }

/* Architecture */
.arch { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.arch-card { border-radius: var(--radius); padding: 32px; background: var(--surface); border: 1px solid var(--line); }
.arch-card.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.arch-card .kicker { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-bottom: 28px; }
.arch-card.dark .kicker { color: var(--accent); }
.node { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; font-weight: 600; }
.arch-card.dark .node { border-color: #333338; }
.node.middle { border-style: dashed; border-color: #B9B8B1; background: var(--sunk); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.node.middle small { display: flex; gap: 6px; font-size: 12px; font-weight: 600; }
.node.middle small span { padding: 3px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); }
.node.typo3 { background: #fff; color: var(--ink); border-color: #fff; }
.node.typo3 span { display: inline-flex; margin-top: 10px; padding: 6px 12px; border-radius: 8px; background: var(--accent); font-size: 14px; }
.edge { width: 2px; height: 26px; background: var(--line-2); margin-left: 28px; }
.edge.flow { height: 62px; background: repeating-linear-gradient(to bottom, var(--accent) 0 6px, transparent 6px 12px); background-size: 2px 12px; animation: flow .9s linear infinite; }
.arch-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 14px; color: #C8C8CE; list-style: none; padding: 0; }

/* Install */
.install { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: baseline; font-weight: 500; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.terminal { background: var(--ink); border-radius: 18px; padding: 24px 26px; overflow-x: auto; }
.terminal pre { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.9; color: #E4E4E8; white-space: pre; }
.terminal .p { color: #8E8E96; } .terminal .a { color: var(--accent); } .terminal .ok { color: var(--ok); }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-top: 2px solid var(--ink); list-style: none; padding: 0; margin: 40px 0 0; }
.roadmap li { padding: 24px 24px 24px 0; }
.roadmap .when { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; margin-bottom: 14px; color: var(--muted); }
.roadmap .when i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.roadmap li.done .when { color: var(--ink); }
.roadmap li.done .when i { background: var(--accent); border-color: var(--accent); }
.roadmap h3 { font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin-bottom: 10px; }
.roadmap p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: flex; flex-wrap: wrap; gap: 48px; }
.faq-intro { flex: 1 1 300px; min-width: 0; }
.faq-intro p { margin-top: 16px; color: var(--muted); }
.faq-list { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--chip); display: flex; align-items: center; justify-content: center; transition: transform .25s ease; }
.faq-list details[open] .plus { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 22px; color: var(--muted); max-width: 680px; }

/* CTA */
.cta { padding: 80px 20px 40px; }
.cta-box { max-width: 1160px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(40px, 7vw, 88px) clamp(28px, 6vw, 72px); text-align: center; }
.cta-box .kicker { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 20px; }
.cta-box h2 { font-weight: 800; font-size: clamp(38px, 6vw, 80px); line-height: .98; letter-spacing: -.05em; margin: 0 auto 22px; max-width: 900px; }
.cta-box p { margin: 0 auto 36px; color: #B4B4BA; font-size: 18px; max-width: 620px; }

/* Footer */
.footer { padding: 40px 20px 48px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 32px; }
.footer-brand { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.footer-brand img { border-radius: 9px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-note { margin-top: 20px; font-size: 12px; color: var(--muted-2); }

/* Rechtstexte */
.legal { max-width: 760px; margin: 0 auto; padding: 80px 20px 40px; }
.legal h1 { font-weight: 700; font-size: clamp(36px, 5vw, 56px); letter-spacing: -.045em; line-height: 1; margin-bottom: 40px; }
.legal h2 { font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 40px 0 12px; }
.legal p, .legal address { color: var(--ink-2); margin: 0 0 14px; font-style: normal; }
.legal a { overflow-wrap: anywhere; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 32px; }

/* ==========================================================
   Liquid Glass – im Stil von Apple
   - klar statt milchig: wenig Weichzeichner, leichte Tönung
   - Linse an den Kanten: Inhalt wird am Rand gebrochen
     (Displacement-Map je Element aus main.js, nur Chromium)
   - feine Lichtkante oben links / unten rechts, weicher Schatten
   - Kapselformen, federnde Interaktion
   - adaptiv: Navigation wird über dunklen Flächen dunkel
   Safari/Firefox: gleiche Optik ohne Linse (Blur + Sättigung).
   ========================================================== */
.glass {
  --mx: 30%; --my: 0%;
  --glass-tint: rgba(255, 255, 255, .22);
  --glass-blur: 4px;
  --glass-sat: 190%;
  --glass-rim: rgba(255, 255, 255, .85);
  --glass-rim-2: rgba(255, 255, 255, .35);
  --lg-filter: ;
  position: relative;
  isolation: isolate;
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 8px)) saturate(var(--glass-sat)) brightness(1.06);
  backdrop-filter: blur(calc(var(--glass-blur) + 8px)) saturate(var(--glass-sat)) brightness(1.06);
  box-shadow:
    inset 1.5px 1.5px 0 -0.5px var(--glass-rim),     /* Lichtkante oben/links */
    inset -1px -1px 0 -0.5px var(--glass-rim-2),     /* Gegenlicht unten/rechts */
    inset 0 0 12px rgba(255, 255, 255, .18),          /* Volumen */
    0 0.5px 1px rgba(0, 0, 0, .06),
    0 8px 28px -6px rgba(0, 0, 0, .14);
  transition: background-color .35s ease, box-shadow .35s ease, color .35s ease,
              transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
/* Glanzlicht: weicher Reflex, folgt dem Zeiger */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background:
    radial-gradient(80% 120% at var(--mx) var(--my), rgba(255,255,255,.35), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 45%);
  mix-blend-mode: overlay;
}
/* Haarfeiner Kantenring mit Lichtverlauf */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.08) 30%, rgba(255,255,255,0) 55%, rgba(255,255,255,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass > * { position: relative; z-index: 2; }

/* Chromium: Kantenlinse + leichte chromatische Aberration (Filter aus main.js) */
.lg-refract .glass {
  -webkit-backdrop-filter: var(--lg-filter) blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.06);
  backdrop-filter: var(--lg-filter) blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.06);
}

/* Federnde Interaktion */
a.glass:hover, button.glass:hover { transform: scale(1.04); }
a.glass:active, button.glass:active { transform: scale(.96); transition-duration: .12s; }

/* Varianten */
.glass-strong { --glass-tint: rgba(255,255,255,.62); --glass-blur: 22px; --glass-sat: 170%; }
.btn-glass.glass, .btn-icon.glass { --glass-tint: rgba(255,255,255,.28); --glass-blur: 2px; border-radius: 999px; }
.btn-glass.glass:hover, .btn-icon.glass:hover { --glass-tint: rgba(255,255,255,.45); color: var(--ink); }
.btn-icon.glass { border-radius: 50%; }
.pill.glass { --glass-tint: rgba(255,255,255,.35); --glass-blur: 2px; }

/* Navigation: Kapsel, adaptiv hell/dunkel */
.nav.glass { --glass-tint: rgba(255,255,255,.18); --glass-blur: 7px; border-radius: 999px; }
.nav.glass.is-scrolled { --glass-tint: rgba(255,255,255,.34); }
.nav.glass.on-mixed { --glass-tint: rgba(250,250,247,.74); --glass-blur: 14px; }
.nav.glass.on-dark {
  --glass-tint: rgba(28,28,30,.42);
  --glass-rim: rgba(255,255,255,.45);
  --glass-rim-2: rgba(255,255,255,.12);
  color: #fff;
}
.nav.on-dark .brand, .nav.on-dark .nav-links a { color: rgba(255,255,255,.92); }
.nav.on-dark .nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav.on-dark .nav-toggle span { background: #fff; }
.nav.on-dark .btn-glass.glass, .nav.on-dark .btn-icon.glass { --glass-tint: rgba(255,255,255,.12); --glass-rim: rgba(255,255,255,.4); color: #fff; }
.nav.on-dark .btn-glass.glass:hover, .nav.on-dark .btn-icon.glass:hover { --glass-tint: rgba(255,255,255,.22); color: #fff; }
.nav.on-dark .btn-dark { background: #fff; color: var(--ink); }
.nav-links a, .brand, .nav-toggle span { transition: color .35s ease, background-color .35s ease; }

/* Modal: kräftigere Tönung für Lesbarkeit */
.modal.glass { --glass-rim: rgba(255,255,255,.95); }

/* Hero-Licht: gibt dem Glas etwas zum Brechen */
.hero-glow { position: absolute; inset: -140px 0 auto; height: 900px; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-glow span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero-glow span:nth-child(1) { width: 520px; height: 520px; left: 50%; top: 40px; margin-left: -620px; background: #FFB27A; animation: drift 18s ease-in-out infinite alternate; }
.hero-glow span:nth-child(2) { width: 460px; height: 460px; left: 50%; top: 120px; margin-left: 180px; background: #B9CCFF; animation: drift 22s ease-in-out infinite alternate-reverse; }
.hero-glow span:nth-child(3) { width: 380px; height: 380px; left: 50%; top: 520px; margin-left: -190px; background: #FFD9BF; opacity: .45; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(40px,30px,0) scale(1.08); } }

/* Barrierefreiheit: weniger Transparenz gewünscht → massiv */
@media (prefers-reduced-transparency: reduce) {
  .glass, .lg-refract .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.97); }
  .glass::before { display: none; }
  .modal::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(11,11,12,.6); }
}
/* Kein backdrop-filter → solider Fallback */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255,255,255,.96); }
}

/* ---------- Mobile-Menü ---------- */
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-block; }
  .js .nav-menu {
    flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .35s ease, opacity .25s ease, visibility 0s linear .35s, padding .35s ease;
  }
  .js .nav.is-open .nav-menu { max-height: 520px; opacity: 1; visibility: visible; padding: 8px 6px 6px 0; transition: max-height .35s ease, opacity .25s ease, padding .35s ease; }
  .js .nav.is-open { --glass-tint: rgba(250,250,247,.72); border-radius: 28px; }
  .js .nav.is-open.on-dark { --glass-tint: rgba(28,28,30,.78); }
  .nav-links { flex-direction: column; align-items: stretch; font-size: 17px; }
  .no-js .nav-links { flex-direction: row; flex-wrap: wrap; font-size: 14px; }
  .nav-links a { padding: 12px 12px; }
  .nav-actions { flex-wrap: wrap; }
  .js .nav-actions .btn { flex: 1 1 auto; min-height: 48px; }
  .no-js .nav-menu { flex-wrap: wrap; }
}

/* ---------- Kontakt-Modal ---------- */
.modal {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 0; border: 0; border-radius: 28px; color: var(--ink);
  position: fixed; inset: 0; margin: auto; height: fit-content;
}
.modal[open] { animation: modal-in .32s cubic-bezier(.2,.8,.2,1); }
.modal[open]:not(:modal) { z-index: 100; }   /* ohne JS geöffnet */
.modal::backdrop {
  background: rgba(11,11,12,.32);
  -webkit-backdrop-filter: blur(6px) saturate(120%); backdrop-filter: blur(6px) saturate(120%);
  animation: fade-in .3s ease;
}
html.modal-open { overflow: hidden; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-close-form { position: absolute; top: 16px; right: 16px; margin: 0; z-index: 3; }
.modal-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink); --glass-tint: rgba(255,255,255,.5); --glass-blur: 8px; }
.modal-body { padding: clamp(28px, 5vw, 44px); }
.modal .kicker { font-size: 12px; color: #9A3F00; margin-bottom: 10px; }
.modal h2 { font-weight: 800; font-size: clamp(30px, 4vw, 40px); letter-spacing: -.045em; line-height: 1; margin-bottom: 12px; padding-right: 48px; }
.modal h2:focus { outline: none; }
.modal-lead { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.modal-lead a { font-weight: 600; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(11,11,12,.12);
  box-shadow: inset 0 1px 2px rgba(11,11,12,.04);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230B0B0C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,107,26,.22); }
.field [aria-invalid="true"] { border-color: #C2261B; }
.field-error { font-size: 13px; color: #B3261E; min-height: 0; }
.field-error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--ink); }
.check a { color: var(--ink); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-size: 14px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { color: #B3261E; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.form-hint { font-size: 13px; color: var(--muted-2); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn.is-loading svg { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.modal-success { text-align: left; }
.success-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--ink); color: var(--ok); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .modal { border-radius: 22px; }
}

/* Animationen */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes flow { from { background-position: 0 0; } to { background-position: 0 12px; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .bento { grid-template-columns: minmax(0,1fr); }
  .s2, .s3, .s4 { grid-column: auto; }
  .statement { padding-top: 96px; }
}
@media (max-width: 640px) {
  .nav { padding-left: 14px; }
  .fields li span:last-child { white-space: nowrap; }
  .hero { padding-top: 56px; }
  .section { padding: 64px 20px; }
  .big-num { font-size: 72px; }
  .panel-meta { grid-template-columns: minmax(0,1fr); }
}
