/* Blümel Ventures – eine Datei, keine Fremdserver (CSP: style-src/font-src/img-src 'self', siehe .htaccess). */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --paper: #F5F6F7;
  --mist: #EEF2FB;
  --sky: #B2C0F2;
  --ink: #151A30;
  --ink-soft: #545C72;
  --rule: #D8DDE5;
  --accent: #3352CC;       /* Blütenblau (Logo) */
  --accent-deep: #243E9E;
  --accent-light: #AFBDFF; /* Blütenblau auf Tinte */
  --eye: #F2B630;          /* Blütenauge — nur als kleiner Akzent */
  --on-ink: #C9CEDB;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 6.5rem);
  --edge: 2.75rem;         /* Höhe der schrägen Oberkante (Low-Poly-Kante) */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* Anker nicht unter dem festen Kopf verstecken */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-deep); }

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

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: 1em; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
}

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.625rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: #fff;
}
.btn-ghost {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.btn-small {
  min-height: 2.5rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ---------- Kopf (bleibt oben stehen) ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  box-shadow: 0 1px 0 var(--rule);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 2rem; height: 2rem; flex: none; }

.head-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 1rem;
}
.head-nav a,
.head-actions .lang {
  color: var(--ink);
  text-decoration: none;
}
.head-nav a:hover,
.head-actions .lang:hover {
  color: var(--accent);
  text-decoration: underline;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 1rem;
}

@media (max-width: 62rem) {
  .head-nav { display: none; }
  .head-actions { margin-left: auto; }
}
@media (max-width: 30rem) {
  .head-row { gap: 0.75rem; }
  .head-actions { gap: 0.875rem; }
  .head-actions .btn-small { padding: 0.5rem 0.875rem; font-size: 0.875rem; }
  .brand { font-size: 1rem; }
  .brand svg { width: 1.75rem; height: 1.75rem; }
}

/* ---------- Blütenbogen: die obere Kante jedes getönten Abschnitts ist EIN Bogen wie der Rand eines
   Blütenblatts (/design 26.10. — die Zickzack-Kante war ein Rest der verworfenen Landschaft) ---------- */

.edge-top {
  padding-top: calc(var(--section) + var(--edge));
  border-top-left-radius: 50% var(--edge);
  border-top-right-radius: 50% var(--edge);
}

/* Große Blütensilhouette hinter dem Hero-Bild — Blütenblau bei 6 %, kein neues Token */
.hero-bloom {
  position: absolute;
  top: -14%;
  right: -9%;
  width: clamp(26rem, 52vw, 50rem);
  color: var(--accent);
  opacity: 0.06;
  pointer-events: none;
}
.hero-bloom svg { display: block; width: 100%; height: auto; }
/* gestapelt (Handy/Tablet): hinter dem Bild unten, nicht hinter der Überschrift */
@media (max-width: 56rem) {
  .hero-bloom { top: auto; bottom: -12%; right: -28%; width: 30rem; }
}

/* ---------- Einstieg ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
  background: var(--mist);
}
.hero.edge-top { padding-top: calc(clamp(2rem, 4.5vw, 3.25rem) + var(--edge)); }

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: center;
}
.hero-text { text-align: center; }

.hero h1 {
  max-width: 15em;
  margin: 0 auto;
  font-size: clamp(2.5rem, 5.6vw, 4.375rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.032em;
  /* keine Silbentrennung in der Überschrift, auch mobil („Be-trieb“ auf dem
     Handy, Julius 26.10.) — das längste Wort „Software,“ passt bei 320 px */
  hyphens: manual;
}

.lead {
  max-width: 43em;
  margin: 1.5rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem 1rem;
  margin-top: 2rem;
}

/* Hero-Bild: ein Betrieb in Isometrie — gestapelt unter dem Text, ab 56rem rechts daneben */
.hero-art {
  max-width: 36rem;
  margin: 0 auto;
}
.hero-art img {
  width: 100%;
  height: auto;
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }
  .hero { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
  .hero-text { text-align: left; }
  /* keine Silbentrennung in der Überschrift („Ih-rem“ bei ~960 px gemessen) */
  .hero h1 { margin: 0; font-size: clamp(2.5rem, 4.9vw, 4.125rem); hyphens: manual; }
  .lead { margin-left: 0; }
  .actions { justify-content: flex-start; }
  .hero-art { max-width: none; margin: 0; }
}

/* ---------- Auf einen Blick ---------- */

.facts { padding: 1rem 0 1.75rem; }

/* Drei Werte (Julius 24.10.: „individuell – qualitativ – sicher“): ein Wort als Titel, ein Satz dazu. */
.fact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
  list-style: none;
  color: var(--ink-soft);
  font-size: 1rem;
}
.fact-list li { display: grid; align-content: start; gap: 0.375rem; } /* ohne align-content rückt der Satz in kürzeren Spalten nach unten (gemessen) */
.fact-list strong {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.fact-list li,
.ticks li {
  position: relative;
  padding-left: 1.375rem;
}
.fact-list li::before,
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--eye) 0 32%, var(--accent) 36%);
}
.fact-list strong { color: var(--ink); }
.fact-list li::before { top: 0.55em; }

@media (max-width: 56rem) {
  .fact-list { grid-template-columns: 1fr; justify-content: start; max-width: 30rem; }
}

/* ---------- Abschnitte ---------- */

.section { padding: var(--section) 0; }
.section.edge-top { padding-top: calc(var(--section) + var(--edge)); }
.tint { background: var(--mist); }

.section-head {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
.section-head h2,
.contact h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  letter-spacing: -0.025em;
}
.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
}

/* Leistungen: drei gleichrangige Spalten mit Illustration */
/* Unterraster: Bild, Titel, Text und Liste stehen in allen drei Spalten auf gleicher Höhe */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, auto);
  column-gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.service {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
}
.service img {
  width: 100%;
  margin-bottom: 1.25rem;
}
.service h3 { font-size: 1.5rem; }
.service > p {
  margin-top: 0.625rem;
  color: var(--ink-soft);
}

.ticks {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: 1rem;
}

@media (max-width: 56rem) {
  .services {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 3rem;
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
  }
  .service { grid-row: auto; grid-template-rows: none; }
}

/* Kundenreise: vier Etappen, zwei Spuren — „Ihr Part“ bewusst schmal, „Unser Part“ breit und blau.
   Unterraster: Kopf, Ihr Part und Unser Part stehen in allen Spalten auf gleicher Höhe. */
.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, auto);
  column-gap: 1.25rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}
.journey::before {
  content: "";
  position: absolute;
  top: 3.25rem;
  left: 12.5%;
  right: 12.5%;
  border-top: 2px dashed var(--sky);
}
.stage {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0.75rem;
  counter-increment: stage;
}
.stage-head { text-align: center; }
.stage-head img {
  position: relative;
  width: 6.5rem;
  margin: 0 auto 0.75rem;
}
.stage-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}
.stage-head h3::before {
  content: counter(stage);
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
}

.part {
  border-radius: 1rem;
  font-size: 1rem;
  line-height: 1.45;
}
.part-label {
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
}
.part-you {
  padding: 0.875rem 1rem;
  border: 1px solid var(--rule);
  background: var(--white);
}
.part-you .part-label { color: var(--ink-soft); }
.part-you .part-label::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.375rem;
  border-radius: 50%;
  background: var(--eye);
  vertical-align: 0.05em;
}
.part-us {
  padding: 1rem 1.125rem 1.125rem;
  background: var(--accent);
  color: #fff;
}
.part-us .part-label { color: var(--accent-light); }
.part-us ul {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.part-us li {
  position: relative;
  padding-left: 1.375rem;
}
.part-us li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.38em;
  width: 0.4375rem;
  height: 0.75rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg);
}

/* Vorteile unter der Reise */
.gains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: clamp(2rem, 4vw, 2.75rem) 0 0;
  border-top: 1px solid var(--sky);
  list-style: none;
}
.gains svg {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.875rem;
}
.gains h3 { font-size: 1.25rem; }
.gains p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

@media (max-width: 62rem) {
  .journey { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; row-gap: 3rem; }
  .journey::before { display: none; }
  .stage { grid-row: auto; grid-template-rows: none; }
}
@media (max-width: 46rem) {
  .gains { grid-template-columns: 1fr; }
}
@media (max-width: 36rem) {
  .journey { grid-template-columns: 1fr; }
}

/* ---------- Register: was im Einsatz ist ---------- */

.sheet {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--white);
}

.register {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
}

.register th,
.register td {
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.register thead th {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
}

.register tbody th {
  font-size: 1.0625rem;
  font-weight: 700;
}
.register tbody tr:last-child > * { border-bottom: 0; }
/* Link im Tabellenkopf (remoryo): Tippfläche ≥ 44 px hoch, ohne die Zeile zu verschieben.
   Sieht aus wie die Nachbarzeilen (Julius 04.11.: Link behalten, aber nicht als Link formatiert);
   Unterstrich nur beim Darüberfahren, Tastatur-Fokus über :focus-visible. */
.register tbody th a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; color: inherit; text-decoration: none; }
.register tbody th a:hover { color: inherit; text-decoration: underline; }

/* Spaltenbreiten nur für die Tabellenansicht — auf dem Handy stapeln sich die Zellen (siehe unten). */
@media (min-width: 46.0625rem) {
  .register tbody th { width: 21%; }
  .register tbody td:nth-of-type(1) { width: 25%; }
}

@media (max-width: 46rem) {
  .register thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .register,
  .register tbody,
  .register tr,
  .register tbody th,
  .register tbody td {
    display: block;
    width: auto;
  }
  .register tbody tr {
    padding: 1.25rem;
    border-bottom: 1px solid var(--rule);
  }
  .register tbody tr:last-child { border-bottom: 0; }
  .register tbody th,
  .register tbody td {
    padding: 0;
    border: 0;
  }
  .register tbody td { margin-top: 0.625rem; }
  .register tbody td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-soft);
    font-size: 0.8125rem;
    font-weight: 600;
  }
}

/* ---------- Kontakt + Fuß (auf Tinte) ---------- */

.contact {
  padding: var(--section) 0;
  background: var(--ink);
  color: #fff;
}
.contact.edge-top { padding-top: calc(var(--section) + var(--edge)); }

.contact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem 4rem;
}
.contact p {
  max-width: 34em;
  margin-top: 1rem;
  color: var(--on-ink);
}
.contact .contact-mail { margin-top: 2rem; }
.contact-mail a {
  color: #fff;
  font-size: clamp(1.5rem, 4.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-decoration-color: var(--accent-light);
  text-decoration-thickness: 0.08em;
}
.contact-mail a:hover { color: var(--accent-light); }
.contact-art { width: clamp(11rem, 22vw, 16rem); }

@media (max-width: 46rem) {
  .contact-row { grid-template-columns: 1fr; }
  .contact-art { grid-row: 1; width: 11rem; }
}

.site-foot {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid #2B3252;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.9375rem;
}
.foot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1.5rem 3rem;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.foot-brand svg { width: 1.75rem; height: 1.75rem; flex: none; }
.foot-claim { margin-top: 0.625rem; color: #fff; }
.foot-addr { margin-top: 1rem; }
@media (max-width: 46rem) {
  .foot-row { grid-template-columns: 1fr; }
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--accent-light); }

.contact :focus-visible,
.site-foot :focus-visible { outline-color: var(--accent-light); }

/* ---------- Rechtstexte + Fehlerseite ---------- */

.legal {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--section);
}
.legal .wrap > * { max-width: 42rem; }
.legal h1 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}
.legal h2 {
  margin-top: 2rem;
  font-size: 1.1875rem;
}
.legal h1 + p,
.legal h2 + p { margin-top: 0.625rem; }
.legal .stand {
  margin-top: 2.5rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.back { font-size: 1rem; }
.not-found-mark {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  margin-top: 2.5rem;
  color: var(--sky);
}

/* Kurzer Knopftext auf schmalen Bildschirmen (nur eine Fassung ist je sichtbar und wird vorgelesen) */
.cta-short { display: none; }
@media (max-width: 30rem) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* ---------- /ux 24.10.: Tippflächen ≥ 44 px, kein Querscrollen bis 320 px ---------- */

/* Lange deutsche Wörter (z. B. „Datenschutzerklärung“) trennen statt seitlich überzustehen */
h1, h2, h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}

.brand,
.head-actions .lang,
.foot-nav a,
.back {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.head-actions .lang {
  justify-content: center;
  min-width: 2.75rem;
}
.contact-mail a {
  display: inline-block;
  padding: 0.375rem 0;
}

@media (max-width: 40rem) {
  .btn-small { min-height: 2.75rem; }
}
@media (max-width: 22.5rem) {
  .head-row { gap: 0.5rem; }
  .head-actions { gap: 0.25rem; }
  .brand { gap: 0.5rem; font-size: 0.9375rem; }
  .head-actions .btn-small { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
}

/* Hinweis unter dem Register: es gibt mehr als die gezeigte Auswahl */
.more {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 1rem;
  text-align: center;
}

/* Fußzeile: Abschnittslinks (auch auf Handys, wo das Kopfmenü fehlt) über den Rechtslinks */
.foot-navs {
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}
@media (max-width: 40rem) {
  .foot-navs { justify-items: start; }
}
.foot-nav a { min-width: 2.75rem; justify-content: center; }
