/* Northlightframe · K1 Designsystem & Gate G1 (Header + 01 Hero A14) */
:root {
  --k1-bg: #0C0F13;
  --k1-surface: #131820;
  --k1-ink: #EEF2F6;
  --k1-ink-2: #9BA7B6;
  --k1-ice: #9BC4D8;
  --k1-gold: #D59B42;
  --k1-line: rgba(155, 196, 216, 0.22);
  --k1-line-strong: rgba(155, 196, 216, 0.45);
  --k1-focus: #9BC4D8;
  --k1-nav-bg: rgba(12, 15, 19, 0.78);
}

html[data-theme="light"] {
  --k1-bg: #F3F0E8;
  --k1-surface: #EAE5DA;
  --k1-ink: #0C0F13;
  --k1-ink-2: #475261;
  --k1-ice: #2E5E76;
  --k1-line: rgba(12, 15, 19, 0.16);
  --k1-line-strong: rgba(12, 15, 19, 0.36);
  --k1-focus: #0C0F13;
  --k1-nav-bg: rgba(243, 240, 232, 0.88);
}

body.home-page.v2 {
  background-color: var(--k1-bg);
  color: var(--k1-ink);
}

body.home-page.v2 :focus-visible {
  outline: 2px solid var(--k1-focus);
  outline-offset: 3px;
}

/* Signatur-Rahmen: feine 1px-Eis-Silber-Kontur + offene obere rechte Ecke */
.k1-frame {
  position: relative;
  border: 1px solid var(--k1-line);
  background: var(--k1-surface);
}
.k1-frame::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--k1-bg);
  border-right: 2px solid var(--k1-bg);
  pointer-events: none;
}

/* Kontur-CTAs (Gold NUR 1px Kontur/Fase, NIE als Button-Füllung) */
.k1-btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  background: #0C0F13;
  color: #EEF2F6;
  border: 1px solid #D59B42;
  border-radius: 2px;
  font: 500 0.9375rem/1 "Instrument Sans", system-ui, sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.k1-btn-gold::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--k1-bg);
  border-right: 2px solid var(--k1-bg);
  pointer-events: none;
}
.k1-btn-gold:hover {
  background: #131820;
  border-color: #E7B363;
  transform: translateY(-1px);
}

.k1-btn-ice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  background: rgba(12, 15, 19, 0.72);
  color: #EEF2F6;
  border: 1px solid rgba(155, 196, 216, 0.45);
  border-radius: 2px;
  font: 500 0.9375rem/1 "Instrument Sans", system-ui, sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.k1-btn-ice:hover {
  background: rgba(19, 24, 32, 0.9);
  border-color: #9BC4D8;
  transform: translateY(-1px);
}

html[data-theme="light"] .k1-hero .k1-btn-gold,
html[data-theme="light"] .k1-hero .k1-btn-ice {
  /* Auf dem dunklen A14-Hero bleibt die Kontrast-Basis Obsidian */
  color: #EEF2F6;
}
.k1-hero .k1-btn-gold::after,
.k1-hero .k1-btn-ice::after,
.k1-hero .k1-frame::after {
  border-top-color: #0C0F13;
  border-right-color: #0C0F13;
}

/* Header (.nav) — delegiert an die einheitliche V11d Floating-Glass-Kapsel in nlf.css */
body.home-page.v2 .nav,
body.home-page.v2 .nav.is-scrolled,
html.in-light body.home-page.v2 .nav.is-scrolled {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.home-page.v2 .nav-inner {
  gap: 16px;
}
body.home-page.v2 .nav-anchors {
  gap: 18px;
}
body.home-page.v2 .nav-anchors a {
  font-size: 0.875rem;
  white-space: nowrap;
}
body.home-page.v2 .nav-cta.k1-btn-ice {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.8125rem;
  white-space: nowrap;
}
body.home-page.v2 .nav:not(.is-scrolled) .brand,
body.home-page.v2 .nav:not(.is-scrolled) .nav-anchors a,
body.home-page.v2 .nav:not(.is-scrolled) #modusSchalter,
body.home-page.v2 .nav:not(.is-scrolled) #menuBtn {
  color: #EEF2F6;
}
body.home-page.v2 .scroll-rail,
body.home-page.v2 .nav-anchors a::before {
  background: var(--k1-ice);
}
html[data-theme="light"] body.home-page.v2 .scroll-rail,
html[data-theme="light"] body.home-page.v2 .nav-anchors a::before {
  background: #0C0F13;
}
@media (min-width: 961px) {
  body.home-page.v2 #menuBtn {
    display: none;
  }
}
@media (max-width: 960px) {
  body.home-page.v2 .nav-anchors,
  body.home-page.v2 .nav-cta {
    display: none;
  }
  body.home-page.v2 #menuBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(155, 196, 216, 0.45);
    border-radius: 2px;
    background: rgba(12, 15, 19, 0.72);
    color: #EEF2F6;
  }
}

/* 01 Hero (#top) — K1 A14 Präzisionsrahmen */
.k1-hero {
  position: relative;
  background: #0C0F13;
  color: #EEF2F6;
  overflow: clip;
}
.k1-hero-stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px 0 42px;
}
.k1-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0C0F13;
}
.k1-hero-poster,
.k1-hero-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.k1-hero-film {
  opacity: 0;
  transition: opacity 0.35s ease;
}
html.k1-film-live .k1-hero-film {
  opacity: 1;
}

/* Subtile untere Obsidian-Verlaufsblende für >= 4,5:1 Kontrast */
.k1-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(12, 15, 19, 0.92) 0%,
    rgba(12, 15, 19, 0.55) 38%,
    rgba(12, 15, 19, 0.18) 58%,
    transparent 72%
  );
}

/* Deckungsgleiche SVG-Signet-Rahmenübergabe (53.52 % der gerenderten Videohöhe, exakt mittig) */
.k1-signet-handover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(53.52svh, calc(100vw * 9 / 16 * 0.5352));
  height: max(53.52svh, calc(100vw * 9 / 16 * 0.5352));
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform;
}
.k1-signet-handover svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero Copy unten links/rechts — Mitte bleibt frei für das Glas-Signet */
.k1-hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
}
.k1-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #9BC4D8;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.k1-hero-kicker-line {
  width: 24px;
  height: 1px;
  background: rgba(155, 196, 216, 0.55);
  flex-shrink: 0;
}
.k1-hero-title {
  margin: 0 0 18px;
  max-width: 16ch;
  font-family: "Archivo", "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.15rem, 4.4vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: #EEF2F6;
}
.k1-hero-title .dim {
  display: block;
  color: #9BA7B6;
  font-weight: 500;
}
.k1-hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.k1-hero-left {
  max-width: 54ch;
}
@media (min-width: 961px) {
  .k1-hero-copy.wrap {
    max-width: none;
    width: 100%;
    padding-inline: clamp(24px, 4vw, 60px);
  }
  .k1-hero-left {
    max-width: min(410px, calc(50vw - var(--k1-signet-half, 241px) - 56px));
  }
  .k1-hero-title {
    font-size: clamp(1.45rem, 2.2vw, 2.85rem);
    line-height: 1.06;
    max-width: none;
  }
  .k1-hero-lead {
    font-size: clamp(0.875rem, 1.05vw, 1.0625rem);
  }
}
.k1-hero-lead {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.5;
  color: #EEF2F6;
}
.k1-hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.k1-hero-cue {
  position: absolute;
  right: max(20px, 3vw);
  bottom: 16px;
  z-index: 3;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9BA7B6;
}
.k1-hero-cue i {
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(155, 196, 216, 0.55);
}

/* Mobil / Stack (<= 960px): Kein Pin, vollbreiter 16:9-Filmrahmen oben, Text/CTAs klar getrennt darunter */
@media (max-width: 960px) {
  .k1-hero-stage {
    min-height: 0;
    display: block;
    padding: 76px 0 40px;
  }
  .k1-hero-media {
    position: relative;
    inset: auto;
    width: calc(100% - 32px);
    margin: 0 auto 24px;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(155, 196, 216, 0.28);
  }
  .k1-hero-poster,
  .k1-hero-film {
    object-position: center center;
  }
  .k1-hero-scrim,
  .k1-signet-handover,
  .k1-hero-cue {
    display: none;
  }
  .k1-hero-title {
    font-size: clamp(1.9rem, 8.2vw, 2.5rem);
    max-width: none;
  }
  .k1-hero-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .k1-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .k1-hero-cta .k1-btn-gold,
  .k1-hero-cta .k1-btn-ice {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .k1-signet-handover,
  .k1-hero-cue {
    display: none;
  }
}
html.is-still .k1-signet-handover,
html.is-still .k1-hero-cue {
  display: none;
}

/* ==========================================================================
   Gate G2 (02 Haltung) & Gate G3 (03 Leistungen)
   ========================================================================== */
.k1-sec {
  padding: clamp(64px, 7vw, 108px) 0;
  background: var(--k1-bg);
  color: var(--k1-ink);
}
.k1-mono {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--k1-ice);
}
.k1-sec-h2 {
  margin: 12px 0 0;
  font-family: "Archivo", "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.1vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--k1-ink);
}
.k1-sec-h2 .dim {
  display: block;
  color: var(--k1-ink-2);
  font-weight: 500;
}

/* 02 Haltung — Asymmetrisches Editorial-Grid im .k1-frame (kein Pin, kein Gold) */
.k1-haltung-grid {
  display: grid;
  grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px);
  align-items: start;
}
.k1-haltung-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.k1-principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.k1-principles li {
  padding-top: 12px;
  border-top: 1px solid var(--k1-line);
}
.k1-principles strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--k1-ink);
}
.k1-principles span {
  display: block;
  margin-top: 3px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--k1-ink-2);
}
.k1-haltung-statement {
  margin: 0;
  font-family: "Archivo", "Instrument Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--k1-ink);
}
.k1-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.k1-line > span {
  display: block;
  will-change: transform;
}
.k1-haltung-copy {
  margin: 20px 0 0;
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--k1-ink-2);
}
.k1-haltung-sign {
  margin: 22px 0 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k1-ice);
}

/* 03 Leistungen — 2-Spalten-Kapitelbühne mit butterweichem CSS-Sticky links & fließenden Kapiteln rechts (0 Pin-Ruckler) */
.k1-svc,
.k1-svc .wrap,
.k1-svc-stage {
  overflow: visible !important;
}
.k1-svc-stage {
  display: grid;
  grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px);
  align-items: start;
}
.k1-svc-aside {
  position: sticky;
  top: clamp(92px, 11vh, 124px);
  align-self: start;
}
@media (max-width: 960px) {
  .k1-svc-aside {
    position: static;
    top: auto;
  }
}
.k1-svc-tabs {
  position: relative;
  margin-top: 28px;
  padding-left: 18px;
  border-left: 1px solid var(--k1-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.k1-svc-bar {
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 100%;
  background: #D59B42;
  transform-origin: top center;
  transform: scaleY(0);
  pointer-events: none;
}
.k1-svc-tab {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--k1-ink-2);
  font-family: "Archivo", "Instrument Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.k1-svc-tab .k1-tab-no {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--k1-ice);
}
.k1-svc-tab:hover {
  color: var(--k1-ink);
}
.k1-svc-tab[aria-selected="true"] {
  color: var(--k1-ink);
  background: rgba(155, 196, 216, 0.08);
  border-color: var(--k1-line);
}
.k1-svc-panels {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8.5vh, 96px);
  padding-bottom: clamp(16px, 3vh, 36px);
}
.k1-svc-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-margin-top: 120px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.34;
  transform: translateY(8px);
  filter: saturate(0.75);
  transition:
    opacity 460ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 460ms ease,
    border-color 460ms ease;
}
.k1-svc-panel:first-child {
  padding-top: 0;
  border-top-color: transparent;
}
.k1-svc-panel:hover,
.k1-svc-panel:focus-within {
  opacity: 0.82;
}
.k1-svc-panel[data-active="true"] {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  filter: saturate(1);
  border-top-color: rgba(213, 155, 66, 0.45);
}
.k1-svc-panel[data-k1-panel="1"][data-active="true"] {
  border-top-color: rgba(86, 204, 242, 0.45);
}
.k1-svc-panel[data-k1-panel="2"][data-active="true"] {
  border-top-color: rgba(46, 230, 166, 0.45);
}
html.is-still .k1-svc-panel {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .k1-svc-panel {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
.k1-svc-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--k1-line);
}
.k1-svc-panel-title {
  margin: 0;
  font-family: "Archivo", "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 600;
  color: var(--k1-ink);
}
.k1-svc-panel-lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--k1-ink);
  max-width: 58ch;
}
.k1-svc-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.k1-svc-features li {
  padding: 12px 14px;
  border: 1px solid var(--k1-line);
  background: var(--k1-bg);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--k1-ink-2);
}
.k1-svc-features strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.875rem;
  color: var(--k1-ink);
}
.k1-schema {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--k1-line);
  background: var(--k1-bg);
}
.k1-schema-node {
  padding: 12px;
  border: 1px solid var(--k1-line);
  background: var(--k1-surface);
}
.k1-schema-step {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k1-ice);
  margin-bottom: 6px;
}
.k1-schema-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--k1-ink);
}
.k1-schema-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--k1-ink-2);
}
.k1-svc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
html[data-theme="light"] .k1-svc .k1-btn-ice {
  background: var(--k1-bg);
  color: var(--k1-ink);
  border-color: var(--k1-line-strong);
}
html[data-theme="light"] .k1-svc .k1-btn-ice:hover {
  background: var(--k1-surface);
  border-color: var(--k1-ink);
}

/* Statischer Stapel für Mobil (<= 960px) sowie Reduced Motion / .is-still */
html.is-still .k1-svc-tabs {
  display: none;
}
html.is-still .k1-svc-panel {
  display: flex;
  padding-top: 24px;
  border-top: 1px solid var(--k1-line);
}
html.is-still .k1-svc-panel:first-child {
  padding-top: 0;
  border-top: 0;
}
@media (prefers-reduced-motion: reduce) {
  .k1-svc-tabs {
    display: none;
  }
  .k1-svc-panel {
    display: flex;
    padding-top: 24px;
    border-top: 1px solid var(--k1-line);
  }
  .k1-svc-panel:first-child {
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 960px) {
  .k1-haltung-grid,
  .k1-svc-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .k1-svc-tabs {
    display: none;
  }
  .k1-svc-panel {
    display: flex;
    padding-top: 24px;
    border-top: 1px solid var(--k1-line);
  }
  .k1-svc-panel:first-child {
    padding-top: 0;
    border-top: 0;
  }
  .k1-svc-features,
  .k1-schema {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Gate G4 (04 Werkschau) & Gate G5 (05 Referenzen)
   ========================================================================== */
.k1-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.k1-sec-lead {
  margin: 0;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--k1-ink-2);
}

/* 04 Werkschau — Obsidian, kein Gold, einheitliches 16:10-Editorial-Raster */
.k1-works-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.k1-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  background: var(--k1-surface);
  color: var(--k1-ink-2);
  border: 1px solid var(--k1-line);
  border-radius: 2px;
  font: 500 0.875rem/1 "Instrument Sans", system-ui, sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.k1-filter-btn .k1-filter-no {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--k1-ice);
}
.k1-filter-btn:hover {
  color: var(--k1-ink);
  border-color: var(--k1-line-strong);
}
.k1-filter-btn[aria-pressed="true"] {
  color: var(--k1-ink);
  border-color: #9BC4D8;
  background: rgba(155, 196, 216, 0.12);
}
html[data-theme="light"] .k1-filter-btn[aria-pressed="true"] {
  border-color: #0C0F13;
  background: rgba(12, 15, 19, 0.08);
}

.k1-works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.k1-works-grid .k1-work-card,
.k1-works-grid .work,
.k1-works-grid .work:first-child,
.k1-works-grid .work-wide {
  position: relative;
  grid-column: auto !important;
  grid-row: auto !important;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s ease, transform 0.35s ease;
}
.k1-work-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 24px;
  height: 1px;
  background: #9BC4D8;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}
.k1-work-card::after {
  width: 14px;
  height: 14px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.k1-work-card[hidden] {
  display: none;
}
.k1-work-card:hover,
.k1-work-card:focus-within {
  border-color: var(--k1-ice);
  transform: translateY(-2px);
}
.k1-work-card:hover::before,
.k1-work-card:focus-within::before {
  transform: scaleX(1);
}
.k1-work-card:hover::after,
.k1-work-card:focus-within::after {
  width: 24px;
  height: 24px;
}
.k1-work-card .work-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--k1-line);
  background: #0C0F13;
  overflow: hidden;
  cursor: pointer;
}
.k1-work-card .work-media img,
.k1-work-card .work-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.k1-work-card .work-media video {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.k1-work-card .work-media.is-playing video {
  opacity: 1;
}
.k1-work-card .work-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.k1-work-card .work-body .h3 {
  margin: 0;
  font-family: "Archivo", "Instrument Sans", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--k1-ink);
}
.k1-work-card .work-body p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--k1-ink-2);
}
.k1-work-card .work-body .k1-mono {
  font-size: 0.6875rem;
}
.k1-work-card .link-arrow {
  margin-top: auto;
  padding-top: 6px;
  color: var(--k1-ice);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.k1-work-card .link-arrow:hover {
  text-decoration: underline;
}
.k1-sec-more {
  margin: 32px 0 0;
}
html[data-theme="light"] .k1-works .k1-btn-ice {
  background: var(--k1-bg);
  color: var(--k1-ink);
  border-color: var(--k1-line-strong);
}

/* 05 Referenzen — Archiv-Papier #F4F1EA (strikter WCAG-Kontrast, kein #9BC4D8 / #D59B42!) */
.k1-refs {
  padding: clamp(64px, 7vw, 108px) 0;
  background: #F4F1EA;
  color: #0C0F13;
  border-top: 1px solid #8C621F;
  border-bottom: 1px solid rgba(12, 15, 19, 0.16);
  transition: background-color 0.5s ease, color 0.5s ease;
}
.k1-refs.k1-paper-pending {
  background: #0C0F13;
  color: #EEF2F6;
}
.k1-refs.k1-paper-pending .k1-mono,
.k1-refs.k1-paper-pending .k1-sec-h2 .dim,
.k1-refs.k1-paper-pending .k1-sec-lead,
.k1-refs.k1-paper-pending .k1-ref-no,
.k1-refs.k1-paper-pending .k1-ref-what {
  color: #9BA7B6;
}
.k1-refs.k1-paper-pending .k1-sec-h2,
.k1-refs.k1-paper-pending .k1-ref-name,
.k1-refs.k1-paper-pending .k1-ref-did,
.k1-refs.k1-paper-pending .k1-ref-go,
.k1-refs.k1-paper-pending .k1-btn-paper {
  color: #EEF2F6;
  border-color: rgba(155, 196, 216, 0.35);
}
html[data-theme="light"] .k1-refs {
  background: #EAE5D9;
  border-bottom: 1px solid rgba(12, 15, 19, 0.16);
  border-inline: 1px solid rgba(12, 15, 19, 0.16);
}
html[data-theme="light"] .k1-refs .k1-mono,
html[data-theme="light"] .k1-refs .k1-sec-h2 .dim,
html[data-theme="light"] .k1-refs .k1-sec-lead,
html[data-theme="light"] .k1-refs .k1-ref-no,
html[data-theme="light"] .k1-refs .k1-ref-what {
  color: #3B4552;
}
.k1-refs :focus-visible {
  outline: 2px solid #0C0F13 !important;
  outline-offset: 3px !important;
}
.k1-refs .k1-mono {
  color: #475261;
}
.k1-refs .k1-sec-h2 {
  color: #0C0F13;
}
.k1-refs .k1-sec-h2 .dim {
  color: #475261;
}
.k1-refs .k1-sec-lead {
  color: #475261;
}
.k1-ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(12, 15, 19, 0.18);
}
.k1-ref-row {
  display: grid;
  grid-template-columns: 52px minmax(150px, 1.1fr) minmax(160px, 1.2fr) minmax(180px, 1.4fr) 32px;
  align-items: center;
  gap: 16px;
  padding: 20px 8px;
  border-bottom: 1px solid rgba(12, 15, 19, 0.18);
  text-decoration: none;
  color: #0C0F13;
  transition: background-color 0.2s ease, padding-inline 0.2s ease;
}
.k1-ref-row:hover,
.k1-ref-row:focus-visible {
  background: rgba(12, 15, 19, 0.045);
  padding-inline: 14px;
}
.k1-ref-no {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #475261;
}
.k1-ref-name {
  font-family: "Archivo", "Instrument Sans", system-ui, sans-serif;
  font-size: 1.1875rem;
  font-weight: 600;
  color: #0C0F13;
}
.k1-ref-what {
  font-size: 0.9375rem;
  color: #475261;
}
.k1-ref-did {
  font-size: 0.9375rem;
  color: #0C0F13;
}
.k1-ref-go {
  justify-self: end;
  font-size: 1rem;
  color: #0C0F13;
}
.k1-btn-paper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  background: transparent;
  color: #0C0F13;
  border: 1px solid #0C0F13;
  border-radius: 2px;
  font: 500 0.9375rem/1 "Instrument Sans", system-ui, sans-serif;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.k1-btn-paper:hover {
  background: rgba(12, 15, 19, 0.06);
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .k1-works-grid {
    grid-template-columns: 1fr;
  }
  .k1-ref-row {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 6px 12px;
    padding: 18px 4px;
  }
  .k1-ref-what,
  .k1-ref-did {
    grid-column: 2;
  }
  .k1-ref-go {
    grid-column: 3;
    grid-row: 1;
  }
}

/* ==========================================================================
   Gate G6 (06 Ablauf, Preise & 3D-Konfigurator) & Gate G7 (07 Kontakt & Footer)
   ========================================================================== */
.k1-flow-head {
  margin-bottom: 36px;
}
.k1-steps-wrap {
  position: relative;
}
.k1-steps-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #9BC4D8;
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}
html[data-theme="light"] .k1-steps-line {
  background: #2E5E76;
}
html.is-still .k1-steps-line {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .k1-steps-line {
    transform: scaleX(1);
  }
}
.k1-steps {
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.k1-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.k1-step .h3 {
  margin: 0;
  font-family: "Archivo", "Instrument Sans", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--k1-ink);
}
.k1-step p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--k1-ink-2);
}

/* Preise (#preise) */
.k1-prices {
  margin-top: clamp(56px, 6vw, 88px);
  padding-top: clamp(44px, 5vw, 64px);
  border-top: 1px solid var(--k1-line);
}
.k1-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.k1-price-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  text-decoration: none;
  color: var(--k1-ink);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.k1-price-card:hover,
.k1-price-card:focus-visible {
  border-color: var(--k1-ice);
  transform: translateY(-2px);
}
.k1-price-name {
  font-family: "Archivo", "Instrument Sans", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--k1-ink);
}
.k1-price-val {
  margin-top: 8px;
  font-family: "Archivo", "Instrument Sans", system-ui, sans-serif;
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--k1-ink);
}
.k1-price-val small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--k1-ink-2);
}
.k1-price-note {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--k1-ink-2);
}

/* Prominenter 3D-Konfigurator-Einstieg (Opus M6) */
.k1-konfig-card {
  margin-top: 24px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.k1-konfig-copy {
  max-width: 56ch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.k1-konfig-title {
  margin: 0;
  font-family: "Archivo", "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  color: var(--k1-ink);
}
.k1-konfig-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--k1-ink-2);
}
html[data-theme="light"] .k1-flow .k1-btn-ice {
  background: var(--k1-bg);
  color: var(--k1-ink);
  border-color: var(--k1-line-strong);
}

/* 07 Kontakt (#kontakt) — Gold-Höhepunkt #3 */
.k1-contact {
  --k1-gold-line: #D59B42;
  padding: clamp(64px, 7vw, 108px) 0;
  background: var(--k1-bg);
  color: var(--k1-ink);
  border-top: 1px solid var(--k1-line);
}
html[data-theme="light"] .k1-contact {
  --k1-gold-line: #8C621F;
}
.k1-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.k1-contact-facts {
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.k1-contact-facts > div {
  padding-top: 14px;
  border-top: 1px solid var(--k1-line);
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.k1-contact-facts dt {
  margin: 0;
}
.k1-contact-facts dd {
  margin: 0;
  color: var(--k1-ink);
  font-size: 0.9375rem;
  line-height: 1.5;
  word-break: break-word;
}
.k1-contact-facts a {
  color: var(--k1-ink);
  text-decoration: none;
}
.k1-contact-facts a:hover {
  text-decoration: underline;
}
.k1-contact-facts .copy-mail-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.k1-contact-facts .copy-mail-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--k1-ice);
  background: var(--k1-surface);
  border: 1px solid var(--k1-line);
  border-radius: 2px;
  cursor: pointer;
}

.k1-contact-frame {
  position: relative;
  background: var(--k1-surface);
  padding: clamp(24px, 3.2vw, 36px);
}
.k1-contact-border {
  position: absolute;
  inset: 0;
  border: 1px solid var(--k1-gold-line);
  pointer-events: none;
  clip-path: inset(0 100% 100% 0);
}
html.is-still .k1-contact-border {
  clip-path: inset(0 0 0 0);
}
@media (prefers-reduced-motion: reduce) {
  .k1-contact-border {
    clip-path: inset(0 0 0 0);
  }
}
.k1-contact-frame .form-panel {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}
.k1-contact-frame label,
.k1-contact-frame .consent-line,
.k1-contact-frame .form-foot-note {
  color: var(--k1-ink-2);
}
.k1-contact-frame input:not([type="checkbox"]),
.k1-contact-frame select,
.k1-contact-frame textarea {
  background: var(--k1-bg);
  color: var(--k1-ink);
  border: 1px solid var(--k1-line-strong);
}
.k1-contact-frame .k1-btn-gold {
  cursor: pointer;
}
html[data-theme="light"] .k1-contact-frame .k1-btn-gold {
  background: #0C0F13;
  color: #EEF2F6;
  border-color: #8C621F;
}

/* Footer (.footer) — ruhiger K1-Abschluss */
body.home-page.v2 .footer {
  background: var(--k1-bg);
  color: var(--k1-ink);
  border-top: 1px solid var(--k1-line);
}
body.home-page.v2 .footer .footer-head,
body.home-page.v2 .footer .footer-claim,
body.home-page.v2 .footer .footer-address,
body.home-page.v2 .footer .footer-time,
body.home-page.v2 .footer .footer-base {
  color: var(--k1-ink-2);
}
body.home-page.v2 .footer a {
  color: var(--k1-ink);
}
body.home-page.v2 .footer .ctrl-text-btn {
  border: 1px solid var(--k1-line);
  color: var(--k1-ink);
  background: var(--k1-surface);
}

@media (max-width: 960px) {
  .k1-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .k1-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .k1-contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .k1-steps,
  .k1-price-grid {
    grid-template-columns: 1fr;
  }
  .k1-contact-facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
