/* ==========================================================================
   Apex Software Solutions – Stylesheet
   Schrift: Schibsted Grotesk (selbst gehostet, SIL Open Font License)
   ========================================================================== */

@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;
}
@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;
}

:root {
  /* Farben */
  --ink: #0b1f3a;
  --ink-soft: #1d3557;
  --slate: #4b5d77;
  --blue: #0a5cc9;
  --blue-deep: #08479c;
  --cyan: #00b5e2;
  --glacier: #eff4f9;
  --glacier-deep: #e2ebf5;
  --line: #d6e0eb;
  --paper: #ffffff;
  --swiss: #d52b1e;

  /* Produktfarben (Wiedererkennung über Seite hinweg) */
  --c-rd: #0b8f91;
  --c-risks: #b77900;
  --c-qrf: #c42a57;
  --c-act: #23853f;

  /* Typografie */
  --font: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.85rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem);

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 72px;
  --radius: 8px;
  --radius-lg: 18px;
  --shadow-artifact: 0 1px 2px rgba(11, 31, 58, .06), 0 12px 32px -8px rgba(11, 31, 58, .18);
}

/* Basis ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.nw { white-space: nowrap; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border: 1.5px solid var(--blue); border-radius: var(--radius);
  background: var(--blue); color: #fff;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--glacier); border-color: var(--ink); color: var(--ink); }
.btn--small { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.btn[disabled] { opacity: .65; cursor: progress; }
.icon-ext { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand img { height: 26px; width: auto; mix-blend-mode: multiply; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .975rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav__list a:hover, .site-nav__list a.is-active { border-bottom-color: var(--blue); color: var(--ink); }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius); padding: 2px; }
.lang-switch a { padding: .3rem .6rem; font-size: .8125rem; font-weight: 600; color: var(--slate); text-decoration: none; border-radius: 6px; }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }
.lang-switch a:not([aria-current]):hover { color: var(--ink); background: var(--glacier); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -16px rgba(11, 31, 58, .25);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .site-nav__list a:hover { border-bottom-color: var(--line); color: var(--blue); }
  .lang-switch { align-self: flex-start; }
}

/* Hero ------------------------------------------------------------------- */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.hero__title { font-size: var(--step-4); font-weight: 750; letter-spacing: -0.035em; line-height: 1.02; max-width: 12ch; }
.hero__lead { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.55; color: var(--slate); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__origin { display: flex; align-items: center; gap: .6rem; margin-top: 2.25rem; font-size: var(--step--1); color: var(--slate); }

.swiss-mark { width: 16px; height: 16px; border-radius: 3px; background: var(--swiss); position: relative; flex: none; }
.swiss-mark::before, .swiss-mark::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.swiss-mark::before { width: 10px; height: 3px; }
.swiss-mark::after { width: 3px; height: 10px; }

/* Die "Werkbank": was die vier Produkte tatsächlich erzeugen */
.hero__desk {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: auto;
  gap: 1.25rem 1rem;
  align-items: start;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 31, 58, .09) 1px, transparent 0) 0 0 / 18px 18px,
    var(--glacier);
  border-radius: var(--radius-lg);
}
.artifact { display: flex; flex-direction: column; gap: .55rem; text-decoration: none; color: var(--ink); min-width: 0; }
.artifact > :first-child { background: #fff; border-radius: 10px; box-shadow: var(--shadow-artifact); overflow: hidden; transition: transform .2s; }
.artifact:hover > :first-child { transform: translateY(-3px); }
.artifact__label { display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }
.artifact__label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

.artifact--bill { grid-column: 1 / 9; grid-row: 1; }
.artifact--risk { grid-column: 9 / 13; grid-row: 1 / 3; }
.artifact--link { grid-column: 1 / 8; grid-row: 2; }
.artifact--activity { grid-column: 8 / 13; grid-row: 3; display: none; }

@media (min-width: 1101px) {
  .artifact--risk { grid-row: 1; }
  .artifact--activity { display: flex; grid-column: 8 / 13; grid-row: 2; }
}

/* Orchestrierter Auftritt: einmalig beim Laden */
@keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__desk .artifact { animation: settle .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__desk .artifact--bill { animation-delay: .15s; }
.hero__desk .artifact--risk { animation-delay: .3s; }
.hero__desk .artifact--link { animation-delay: .45s; }
.hero__desk .artifact--activity { animation-delay: .6s; }

/* QR-Rechnung (Zahlteil, nachempfunden der SIX-Vorgabe) */
.bill { display: grid; grid-template-columns: 42% 1fr; gap: 1rem; padding: 1rem 1.1rem 1.1rem; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; color: #000; border-top: 1px dashed #9aa8b8; }
.bill__head { font-weight: 700; font-size: .78rem; margin-bottom: .55rem; }
.bill__code { position: relative; aspect-ratio: 1; }
.bill__code svg { width: 100%; height: 100%; }
.bill__cross { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); background: #000; outline: 2px solid #fff; }
.bill__cross::before, .bill__cross::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; }
.bill__cross::before { width: 62%; height: 20%; }
.bill__cross::after { width: 20%; height: 62%; }
.bill__amounts { display: flex; gap: 1rem; margin-top: .6rem; font-size: .7rem; }
.bill__amounts b, .bill__info b { display: block; font-size: .62rem; font-weight: 700; margin-bottom: .1rem; }
.bill__info { font-size: .72rem; line-height: 1.4; padding-top: 1.35rem; min-width: 0; }
.bill__info span { display: block; overflow-wrap: anywhere; }
.bill__info b + span { margin-top: 0; }
.bill__info span + b { margin-top: .7rem; }

/* Risikomatrix */
.risk { padding: 1rem; }
.risk__title { font-size: .8rem; font-weight: 700; margin-bottom: .6rem; }
.risk__matrix { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.risk__cell { aspect-ratio: 1; border-radius: 3px; display: grid; place-items: center; }
.risk__cell[data-l="0"], .risk__cell[data-l="1"] { background: #d9efe0; }
.risk__cell[data-l="2"], .risk__cell[data-l="3"] { background: #eef3cf; }
.risk__cell[data-l="4"] { background: #fbe7b5; }
.risk__cell[data-l="5"], .risk__cell[data-l="6"] { background: #f8cdaa; }
.risk__cell[data-l="7"], .risk__cell[data-l="8"] { background: #f2a9a2; }
.risk__cell i { font-style: normal; font-size: .58rem; font-weight: 700; color: #fff; background: var(--ink); border-radius: 999px; padding: .1rem .3rem; line-height: 1.3; }
.risk__axes { font-size: .62rem; color: var(--slate); margin-top: .35rem; text-align: right; }
.risk__axes span::after { content: " \2192"; }
.risk__policy { margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.risk__policy-row { display: flex; flex-direction: column; font-size: .68rem; line-height: 1.35; gap: .1rem; }
.risk__policy-row span:first-child { font-weight: 700; }
.risk__policy-row span:last-child { color: var(--slate); }
.risk__bar { height: 5px; background: var(--glacier-deep); border-radius: 3px; margin-top: .45rem; overflow: hidden; }
.risk__bar span { display: block; height: 100%; background: var(--c-act); }

/* Dynamischer QR-Code */
.link-card { display: flex; gap: 1rem; padding: 1rem; align-items: stretch; }
.link-card__qr { width: 96px; height: 96px; flex: none; fill: var(--ink); }
.link-card__body { min-width: 0; flex: 1; font-size: .72rem; line-height: 1.4; }
.link-card__campaign { font-weight: 700; font-size: .8rem; }
.link-card__target { display: flex; flex-wrap: wrap; gap: .1rem .5rem; margin-top: .3rem; font-weight: 600; }
.link-card__target s { color: #8a97a8; font-weight: 500; }
.link-card__target span { color: var(--c-rd); }
.link-card__note { color: var(--slate); }
.link-card__chart { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-top: .5rem; }
.link-card__chart span { flex: 1; background: var(--c-rd); opacity: .8; border-radius: 2px 2px 0 0; }
.link-card__caption { color: var(--slate); font-size: .62rem; margin-top: .2rem; }

/* Activity Simulator Screenshot */
.shot { background: #1c2533; height: 100%; max-height: 190px; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { max-width: 14ch; }
  .hero__desk { max-width: 720px; }
}
@media (max-width: 560px) {
  .hero__desk { grid-template-columns: 1fr; }
  .artifact--bill, .artifact--risk, .artifact--link { grid-column: 1; grid-row: auto; }
  .artifact--risk { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* Sektionen -------------------------------------------------------------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--glacier); }
.section--ink { background: var(--ink); color: #dfe8f3; }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 1rem; font-size: var(--step-1); color: var(--slate); line-height: 1.5; }
.section--ink .section-head p { color: #b9c7d8; }
.section-head--wide { max-width: 52rem; }

/* Produkte --------------------------------------------------------------- */
.product-group + .product-group { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.product-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.product-group__head h3 { font-size: var(--step-2); }
.product-group__head p { color: var(--slate); margin: 0; }

.product {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.45fr) minmax(0, .8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
}
.product__name { display: flex; align-items: center; gap: .6rem; font-size: var(--step-1); font-weight: 700; }
.product__name::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; }
.product__tagline { margin-top: .9rem; font-size: var(--step-2); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.product__body > p { color: var(--ink-soft); max-width: 38em; }

.feature-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .55rem; }
.feature-list li { position: relative; padding-left: 1.6rem; line-height: 1.45; }
.feature-list li::before {
  content: ""; position: absolute; left: .15rem; top: .38em;
  width: .55rem; height: .32rem; border-left: 2px solid var(--c, var(--blue)); border-bottom: 2px solid var(--c, var(--blue));
  transform: rotate(-45deg);
}

.product__specs { margin: 0; display: grid; gap: 1.1rem; align-content: start; }
.product__specs dt { font-size: var(--step--1); color: var(--slate); }
.product__specs dd { margin: .15rem 0 0; font-weight: 500; line-height: 1.4; }
.product__cta { padding-top: .25rem; }
.store-note { display: inline-block; font-size: .9375rem; font-weight: 600; color: var(--ink-soft); padding: .6rem 0; }

@media (max-width: 980px) {
  .product { grid-template-columns: 1fr 1fr; }
  .product__intro { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .product { grid-template-columns: 1fr; }
}

/* Arbeitsweise ----------------------------------------------------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.compare__col { padding: 2.5rem clamp(0rem, 3vw, 3rem) 0 0; }
.compare__col + .compare__col { padding-left: clamp(1.5rem, 4vw, 3.5rem); border-left: 1px solid rgba(255, 255, 255, .16); }
.compare__icon { width: 44px; height: 44px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.25rem; }
.compare h3 { font-size: var(--step-2); max-width: 24ch; }
.compare .feature-list { --c: var(--cyan); margin-top: 1.5rem; }
.compare .feature-list li { color: #dfe8f3; }
.compare__examples { margin-top: 1.75rem; font-size: var(--step--1); color: #8fa3bc; }
@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
  .compare__col + .compare__col { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 2.5rem; }
}

/* Über uns --------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); }
.about__text h2 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.about__lead { font-size: var(--step-1); line-height: 1.55; }
.about__text p:not(.about__lead) { color: var(--slate); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; }
.principles li { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.principles p { color: var(--slate); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Einladung -------------------------------------------------------------- */
.invite { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.invite__block { padding-right: clamp(1.5rem, 4vw, 4rem); }
.invite__block + .invite__block { padding: 0 0 0 clamp(1.5rem, 4vw, 4rem); border-left: 1px solid var(--line); }
.invite h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.invite p { color: var(--slate); max-width: 34em; }
.invite .btn { margin-top: 1.5rem; }
@media (max-width: 760px) {
  .invite { grid-template-columns: 1fr; gap: 3rem; }
  .invite__block + .invite__block { padding: 3rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Kontakt ---------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-weight: 600; font-size: .9375rem; }
.field__opt { font-weight: 400; color: var(--slate); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; min-height: 48px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #b5c3d4; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 92, 201, .15); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(192, 57, 43, .15); }
.field__error { margin: 0; font-size: .875rem; color: #b02a1c; min-height: 0; }
.field__error:empty { display: none; }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: translateY(-70%) rotate(45deg);
}

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: .25rem; }
.form__privacy { font-size: .875rem; color: var(--slate); max-width: 30em; margin: 0; }
.form__status:empty { display: none; }
.form__status { padding: .9rem 1rem; border-radius: var(--radius); font-weight: 500; }
.form__status.is-ok { background: #e3f4e8; color: #17572b; border: 1px solid #b6dfc2; }
.form__status.is-error { background: #fbeaea; color: #8f2318; border: 1px solid #efc2bd; }

.contact-card { background: var(--glacier); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); }
.contact-card h3 { font-size: var(--step-1); margin-bottom: 1.25rem; }
.contact-card dl { margin: 0; display: grid; gap: 1rem; }
.contact-card dt { font-size: var(--step--1); color: var(--slate); }
.contact-card dd { margin: .1rem 0 0; font-weight: 500; line-height: 1.45; }
.contact-card dd a { color: var(--ink); text-decoration-color: var(--line); }
.contact-card dd a:hover { color: var(--blue); text-decoration-color: currentColor; }

.map { margin-top: 1.5rem; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); aspect-ratio: 4 / 3; position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map iframe[hidden] { display: none; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: start; gap: 1rem; padding: 1.5rem; font-size: .9rem; color: var(--slate);
  background: radial-gradient(circle at 1px 1px, rgba(11, 31, 58, .08) 1px, transparent 0) 0 0 / 16px 16px, #fff; }
.map__placeholder strong { color: var(--ink); }
.map__placeholder[hidden] { display: none; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b9c7d8; font-size: .9375rem; padding-top: clamp(3.5rem, 6vw, 5rem); }
.site-footer a, .site-footer .linklike { color: #dfe8f3; text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.site-footer__name { color: #fff; font-weight: 700; font-size: var(--step-1); margin-bottom: .6rem; }
.site-footer h2 { font-size: .9375rem; color: #fff; font-weight: 600; letter-spacing: 0; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer address { font-style: normal; line-height: 1.75; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.site-footer__bottom { margin-top: 3.5rem; padding: 1.5rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; color: #8fa3bc; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Cookie-Banner & Einstellungen ------------------------------------------ */
.cookie-consent[hidden], .cookie-modal[hidden] { display: none !important; }

.cookie-consent {
  position: fixed; z-index: 900; left: 50%; bottom: 1rem; transform: translateX(-50%);
  width: min(100% - 2rem, 960px);
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px -12px rgba(11, 31, 58, .35);
}
.cookie-consent__inner { display: flex; align-items: center; gap: 1.5rem 2rem; padding: 1.25rem 1.5rem; }
.cookie-consent__content { flex: 1; min-width: 0; }
.cookie-consent h2 { font-size: 1.0625rem; margin-bottom: .35rem; letter-spacing: -0.01em; }
.cookie-consent p { font-size: .9rem; color: var(--slate); line-height: 1.5; margin: 0; }
.cookie-consent__links { margin-top: .5rem; font-size: .85rem; display: flex; gap: 1rem; }
.cookie-consent__links span { display: none; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; flex: none; }
@media (max-width: 760px) {
  .cookie-consent__inner { flex-direction: column; align-items: stretch; }
  .cookie-consent__actions { justify-content: stretch; }
  .cookie-consent__actions .cookie-btn { flex: 1 1 auto; }
}

.cookie-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .55rem 1rem;
  border-radius: var(--radius); border: 1.5px solid var(--ink); font-weight: 600; font-size: .9rem; cursor: pointer;
  background: #fff; color: var(--ink); transition: background-color .15s, color .15s;
}
.cookie-btn--primary { background: var(--ink); color: #fff; }
.cookie-btn--primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.cookie-btn--secondary:hover { background: var(--glacier); }
.cookie-btn--text { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.cookie-btn--text:hover { background: var(--glacier); }

.cookie-modal { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 1rem; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(11, 31, 58, .55); }
.cookie-modal__dialog {
  position: relative; width: min(100%, 560px); max-height: calc(100vh - 2rem); overflow: auto;
  background: #fff; border-radius: 16px; padding: 2rem; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
}
.cookie-modal__close {
  position: absolute; right: 1rem; top: 1rem; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.cookie-modal__close:hover { background: var(--glacier); }
.cookie-modal__kicker { display: none; }
.cookie-modal__header h2 { font-size: var(--step-2); margin: 0 2.5rem .5rem 0; }
.cookie-modal__header p { color: var(--slate); font-size: .95rem; }
.cookie-category { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.cookie-category h3 { font-size: 1rem; margin-bottom: .3rem; }
.cookie-category p { font-size: .9rem; color: var(--slate); margin: 0; }
.cookie-category__status { font-size: .85rem; font-weight: 600; color: var(--c-act); white-space: nowrap; }
.cookie-toggle { position: relative; flex: none; cursor: pointer; }
.cookie-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie-toggle__track { display: block; width: 48px; height: 28px; border-radius: 999px; background: #c3cfdc; transition: background-color .15s; position: relative; }
.cookie-toggle__thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.cookie-toggle input:checked + .cookie-toggle__track { background: var(--blue); }
.cookie-toggle input:checked + .cookie-toggle__track .cookie-toggle__thumb { transform: translateX(20px); }
.cookie-toggle input:focus-visible + .cookie-toggle__track { outline: 3px solid var(--cyan); outline-offset: 2px; }
.cookie-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .875rem; }
.cookie-modal__links { display: flex; gap: 1rem; }
.cookie-modal__links span { display: none; }
body.cookie-modal-open { overflow: hidden; }


/* Rechtsseiten ------------------------------------------------------------ */
.legal-hero { background: var(--glacier); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.legal-hero h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.5rem); letter-spacing: -0.035em; line-height: 1.02; overflow-wrap: break-word; hyphens: auto; }
.legal-hero__lead { margin-top: 1.25rem; font-size: var(--step-1); color: var(--slate); max-width: 38em; line-height: 1.5; }
.legal-hero__meta { margin-top: 1.5rem; font-size: var(--step--1); color: var(--slate); }

.legal {
  display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 46rem);
  gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
}
.legal__toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; max-height: calc(100vh - var(--header-h) - 3rem); overflow: auto; }
.legal__toc h2 { font-size: var(--step--1); color: var(--slate); font-weight: 600; letter-spacing: 0; margin-bottom: .75rem; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal__toc a {
  display: flex; gap: .6rem; padding: .4rem 0 .4rem 1rem; margin-left: -1px;
  border-left: 2px solid transparent; color: var(--slate); text-decoration: none; font-size: .9rem; line-height: 1.35;
}
.legal__toc a:hover { color: var(--ink); }
.legal__toc a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--blue); }
.legal__toc .legal__num { min-width: 1.4em; color: #8a99ad; font-variant-numeric: tabular-nums; font-weight: 500; }

.legal__intro { font-size: var(--step-1); line-height: 1.55; margin-bottom: 2.5rem; }
.legal__section { padding: 2rem 0; border-top: 1px solid var(--line); }
.legal__section h2 { display: flex; gap: .75rem; font-size: var(--step-1); margin-bottom: .9rem; letter-spacing: -0.01em; }
.legal__section h2 .legal__num { color: var(--blue); font-variant-numeric: tabular-nums; min-width: 1.4em; }
.legal__section p, .legal__section li { color: var(--ink-soft); line-height: 1.7; }
.legal__section ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.legal__section strong { color: var(--ink); }
.legal__section code, .table-wrap code { font-size: .875em; background: var(--glacier); padding: .1em .4em; border-radius: 4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--line); line-height: 1.45; }
.table-wrap th { background: var(--glacier); font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }

.legal__contact { margin-top: 2rem; padding: 1.75rem; background: var(--glacier); border-radius: var(--radius-lg); }
.legal__contact h2 { font-size: var(--step-1); margin-bottom: .5rem; }
.legal__contact p { color: var(--ink-soft); }
.legal__back { margin-top: 2rem; font-weight: 600; }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; max-height: none; padding: 1.25rem 1.25rem .75rem; background: var(--glacier); border-radius: var(--radius-lg); }
  .legal__toc ol { columns: 2; column-gap: 1.5rem; border-left: 0; }
  .legal__toc a { padding-left: 0; border-left: 0; break-inside: avoid; }
}
@media (max-width: 520px) { .legal__toc ol { columns: 1; } }

.site-footer a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* Druck ------------------------------------------------------------------ */
@media print {
  .site-header, .hero__desk, .cookie-consent, .cookie-modal, .map, .form { display: none !important; }
  .section--ink { background: none; color: #000; }
}
