/* ============================================================================
   dotmec – Designsystem
   CI-Farben: #ffffff, #000000, #dedd01 (Akzent), #001337 (Dunkelblau)
   Fonts: Montserrat (Überschriften), Numans (Fließtext) – lokal gehostet
   ========================================================================== */

/* ------------------------------------------------------------- Schriften */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-var-latin.woff2') format('woff2');
  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: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Numans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/numans-latin.woff2') format('woff2');
}

/* ------------------------------------------------------------- Variablen */

:root {
  --white:  #ffffff;
  --black:  #000000;
  --yellow: #dedd01;
  --navy:   #001337;
  /* Dritte CI-Farbe: NUR absolut sparsam einsetzen (Fehlerzustände, Warnakzent) */
  --red:    #be1337;

  --navy-04: rgba(0, 19, 55, 0.04);
  --navy-12: rgba(0, 19, 55, 0.12);
  --navy-25: rgba(0, 19, 55, 0.25);
  --navy-60: rgba(0, 19, 55, 0.60);
  --navy-78: rgba(0, 19, 55, 0.78);
  /* = navy-04 auf Weiß, als deckende Fläche (für Punkte auf Linien) */
  --paper: #f5f6f8;

  --font-head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Numans', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 72px;
  --container: 1160px;
  --radius: 6px;

  --dur: 0.45s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------------------------------------------- Basis */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Sicherheitsnetz: nie horizontal scrollen (mobile Layout-Ausreißer) */
html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
}

p { margin: 0 0 1em; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--black); }

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

ul, ol { margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container.narrow { max-width: 780px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%; left: 1rem;
  z-index: 200;
  background: var(--black); color: var(--white);
  padding: 0.6rem 1rem;
  font-family: var(--font-head); font-size: 0.85rem;
}
.skip-link:focus { top: 0.5rem; color: var(--white); }

/* Zweifarbiger Fokus-Ring: Navy-Kontur + gelber Halo – sichtbar auf hellen
   UND dunklen Flächen (Gelb allein ist auf Weiß praktisch unsichtbar) */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(222, 221, 1, 0.9);
}

::selection { background: var(--yellow); color: var(--black); }

/* ------------------------------------------------------------ Typo-Bausteine */

.kicker {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-60);
  margin-bottom: 0.9rem;
}
.kicker::before {
  content: '';
  display: inline-block;
  width: 0.55em; height: 0.55em;
  border-radius: 50%;
  background: var(--yellow);
  margin-right: 0.6em;
  vertical-align: 6%;
}

.section-heading { font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 22ch; text-wrap: balance; }
.section-intro   { max-width: 62ch; font-size: 1.05rem; color: var(--navy-78); }
h1, h2, h3 { text-wrap: balance; }
main p, main li { text-wrap: pretty; }

/* -------------------------------------------------------------- Buttons */

/* Der dotmec-Punkt sitzt im Button und läuft bei Hover/Fokus wie
   Flüssigkeit über die ganze Fläche. Hinein wie hinaus gleich langsam:
   symmetrische Kurve, und der Kreis wächst nur knapp über die Fläche
   hinaus (sonst wäre das Füllen sichtbar schneller als das Zurückziehen). */
.btn {
  --btn-dot: var(--yellow);
  --btn-flow: 0.7s cubic-bezier(0.6, 0, 0.4, 1);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  padding: 0.82rem 1.55rem 0.82rem 2.45rem;   /* links Platz für den Punkt */
  border-radius: var(--radius);
  border: 1.5px solid var(--black);
  transition: color var(--btn-flow), border-color var(--btn-flow);
  cursor: pointer;
  margin-right: 0.6rem;
  margin-bottom: 0.6rem;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-dot);
  clip-path: circle(0.25rem at 1.45rem 50%);
  transition: clip-path var(--btn-flow);
}
.btn:hover::before,
.btn:focus-visible::before { clip-path: circle(150% at 1.45rem 50%); }
.btn:active { translate: 0 1px; }
.btn-solid { background: var(--black); color: var(--white); }
.btn-solid:hover,
.btn-solid:focus-visible { color: var(--black); border-color: var(--yellow); }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover,
.btn-outline:focus-visible { color: var(--black); }

/* --------------------------------------------------------------- Header */

/* Startet schwarz (weißes Logo/weiße Schrift), wird beim Scrollen hell */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
body.scrolled .site-header {
  background: var(--white);
  border-bottom-color: var(--navy-12);
}

/* Logo-Varianten je Header-Zustand */
.brand .brand-black { display: none; }
.brand .brand-white { display: block; }
body.scrolled .brand .brand-black { display: block; }
body.scrolled .brand .brand-white { display: none; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

.brand { flex-shrink: 0; }
.brand img { width: 150px; height: auto; }

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-list a,
.sub-toggle {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  /* gleiche Zeilenhöhe für Links UND Buttons (Buttons erben sonst
     „normal“ – ihr Unterstrich säße höher als bei Home/Expertise) */
  line-height: 1.7;
  margin: 0;
  color: var(--white);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0.4rem 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease), color 0.4s var(--ease);
}
.nav-list a:hover,
.sub-toggle:hover { border-bottom-color: var(--yellow); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--yellow); }
body.scrolled .nav-list a,
body.scrolled .sub-toggle { color: var(--black); }

.caret { transition: transform var(--dur) var(--ease); }
.has-sub.open .caret { transform: rotate(180deg); }

.has-sub { position: relative; }

.sub-list {
  list-style: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  translate: -50% 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--navy-12);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0, 19, 55, 0.14);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
/* Nur die open-Klasse steuert das Panel – :focus-within hielt es sonst
   nach dem Zuklapp-Klick offen (Button behält den Fokus) */
.has-sub.open .sub-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-list a {
  display: block;
  padding: 0.55rem 1.2rem;
  border-bottom: 0;
  font-weight: 500;
  white-space: nowrap;
  color: var(--black); /* Panel ist immer weiß – unabhängig vom Header-Zustand */
}
.sub-list a:hover { background: var(--navy-04); }
.sub-list a[aria-current="page"] { color: var(--navy); font-weight: 700; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-60);
}
.lang-switch a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 0.3rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.4s var(--ease);
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a[aria-current="true"] {
  color: var(--white);
  border-bottom-color: var(--yellow);
}
body.scrolled .lang-switch a { color: var(--navy-60); }
body.scrolled .lang-switch a:hover,
body.scrolled .lang-switch a[aria-current="true"] { color: var(--black); }

/* Burger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle-box { display: block; width: 24px; }
.nav-toggle-box span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), background 0.4s var(--ease);
}
body.scrolled .nav-toggle-box span,
body.nav-open .nav-toggle-box span { background: var(--black); }
.nav-open .nav-toggle-box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------- Hero */

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  /* Bewegter Verlauf Schwarz → Navy: dunkle Bühne für die Wireframe-Szene */
  background:
    radial-gradient(ellipse 85% 65% at 55% 80%, rgba(0, 19, 55, 0.9), rgba(0, 19, 55, 0) 65%),
    linear-gradient(150deg, #000000 0%, #000000 28%, #000a24 55%, var(--navy) 85%);
  background-size: 100% 100%, 190% 100%;
  background-repeat: no-repeat;
  animation: hero-grad 26s ease-in-out infinite alternate;
  display: flex;
  flex-direction: column;
}
@keyframes hero-grad {
  from { background-position: 0 0, 0% 0; }
  to   { background-position: 0 0, 100% 0; }
}

/* Bühne der Unternehmens-Szene: füllt den gesamten Hero */
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-canvas,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Standbild ohne JavaScript: am Boden ausgerichtet wie der Film */
.hero-poster { object-fit: cover; object-position: 50% 100%; }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  margin-top: calc(var(--header-h) + 9vh);
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.1rem;
}

.hero-title {
  font-size: clamp(2rem, 5.6vw, 3.9rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 1rem;
  max-width: 18ch;
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  max-width: 52ch;
  margin: 0 auto;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}

/* HUD unten links: aktiver Pfeiler */
.hero-hud {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 4vw, 2.5rem);
  bottom: clamp(6.5rem, 13vh, 9rem);
  max-width: min(560px, 78vw);
  color: var(--white);
  text-shadow: 0 1px 14px rgba(0, 19, 55, 0.45);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.hero-hud.hud-swap { opacity: 0; transform: translateY(10px); }

.hud-num {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.3rem;
}
.hud-num::after { content: ''; display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--yellow); margin-left: 0.55em; }

.hud-name {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.hud-line {
  font-size: 0.92rem;
  opacity: 0.82;
  margin: 0;
}

/* Phasen-Navigation */
.hero-progress {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 4vw, 2.5rem);
  bottom: clamp(3.4rem, 7vh, 5rem);
  display: flex;
  gap: 0.5rem;
}
.hero-seg {
  background: none;
  border: 0;
  padding: 0.8rem 0;
  cursor: pointer;
  width: clamp(34px, 5vw, 52px);
}
.hero-seg span {
  display: block;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.hero-seg span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
}
.hero-seg.is-active span::after { background: var(--yellow); }

/* Scroll-Hinweis */
.hero-scroll {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 4vw, 2.5rem);
  bottom: clamp(3.4rem, 7vh, 5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
}
/* Globales a:hover würde auf Schwarz umfärben – auf dunklem Grund unsichtbar */
.hero-scroll:hover,
.hero-scroll:focus-visible { color: var(--yellow); }
.hero-scroll svg { animation: scroll-bounce 2.2s infinite var(--ease); }
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Statische Pfeilerliste: sichtbar ohne JS bzw. bei reduzierter Bewegung */
.hero-pillars-static {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: auto 0 5.5rem;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  gap: 0.55rem;
  color: var(--white);
}
.hero-pillars-static li { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.hero-pillars-static .pillar-num  { font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; color: var(--yellow); }
.hero-pillars-static .pillar-name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.hero-pillars-static .pillar-line { font-size: 0.85rem; opacity: 0.75; }

/* Läuft die Animation, übernimmt das HUD – Liste bleibt für SEO/Screenreader im DOM */
.hero.hero-js .hero-pillars-static {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
/* Ohne JS bzw. bei reduzierter Bewegung: HUD/Progress ausblenden, Liste zeigt alle Pfeiler */
.hero:not(.hero-js) .hero-hud,
.hero:not(.hero-js) .hero-progress { display: none; }

/* ------------------------------------------------------------- Sektionen */

.section { padding-block: clamp(4rem, 9vw, 7rem); }

.page-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--navy-12);
}
.page-hero .section-heading { font-size: clamp(2rem, 4.5vw, 3.3rem); }

/* Wer wir sind */
.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: 1.5rem;
}
.who-text p { max-width: 58ch; }
.who-text .btn { margin-top: 0.8rem; }

/* D · O · T als Spalten mit Spaltenlinien (Satzspiegel statt Kachelraster) */
.dot-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3.2rem;
  border-top: 1px solid var(--navy-25);
}
.dot-tile {
  padding: 1.5rem clamp(1.2rem, 2.6vw, 2rem) 0.3rem 0;
}
.dot-tile + .dot-tile {
  border-left: 1px solid var(--navy-12);
  padding-left: clamp(1.2rem, 2.6vw, 2rem);
}
.dot-letter {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}
.dot-point { color: var(--yellow); }
.dot-tile h3 { font-size: 1.08rem; margin: 0.7rem 0 0.35rem; }
.dot-tile p { margin: 0; font-size: 0.95rem; color: var(--navy-78); }

/* Getönte Sektionen: Halbton-Verlauf aus der Ecke (Punkte werden zur Mitte
   kleiner und blasser) – nimmt das Punktraster des Hero-Films auf */
.section-project {
  --dots: rgba(0, 19, 55, 0.2);
  position: relative;
  isolation: isolate;
  background-color: var(--paper);
}
.section-project::before,
.section-project::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-size: 16px 16px;
}
.section-project::before {
  background-image: radial-gradient(circle, var(--dots) 1.1px, transparent 1.5px);
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 100% 0%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 78% at 100% 0%, #000, transparent 72%);
}
.section-project::after {
  background-image: radial-gradient(circle, var(--dots) 2.3px, transparent 2.7px);
  -webkit-mask-image: radial-gradient(ellipse 30% 40% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 30% 40% at 100% 0%, #000, transparent 70%);
}

/* Projekt-Schritte: Punkte auf einem Pfad (die Linie verbindet die Etappen) */
.steps {
  --step-bg: var(--white);
  position: relative;
  list-style: none;
  margin-top: 2.6rem;
  display: grid;
  gap: 0;
}
.section-project .steps { --step-bg: var(--paper); }
.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(1.1rem, 2.6vw, 1.9rem);
  padding: 1.35rem 0;
}
/* Verbindungslinie von Punkt zu Punkt */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.3rem;
  top: 3.95rem;
  bottom: -1.35rem;
  width: 1px;
  background: var(--navy-25);
}
.step-num {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--navy-25);
  background: var(--step-bg);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  line-height: 1;
}
.step-icon { width: 30px; height: 30px; margin-top: 0.35rem; }
.step h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.step p { margin: 0; max-width: 62ch; color: var(--navy-78); }

/* Karten: Spalten auf einer Linie – kein Kasten, kein Schatten, kein Anheben.
   Ein kurzer gelber Strich markiert den Spaltenanfang (bei Links: wächst). */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.4rem clamp(1.4rem, 3vw, 2.6rem);
  margin-top: 2.8rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid var(--navy-25);
  padding: 1.3rem 0 0;
  text-decoration: none;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 2.4rem;
  height: 3px;
  background: var(--yellow);
  transition: width 0.5s var(--ease);
}
a.card:hover::before { width: 100%; }
a.card:hover h3 { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* Symbol rechts oben auf der Linie statt über jeder Überschrift */
.card > .card-icon,
.service > .service-icon {
  position: absolute;
  top: 1.2rem;
  right: 0;
  width: 30px;
  height: 30px;
  margin: 0;
}
.card:has(> .card-icon) h3,
.service:has(> .service-icon) h3 { padding-right: 2.6rem; }
.card-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-60);
}
.card h3 { font-size: 1.12rem; margin: 0; }
.card p { margin: 0; font-size: 0.95rem; color: var(--navy-78); flex-grow: 1; }
.card-more {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.4rem;
}
.card-static { cursor: default; }

/* --------------------------------- Portfolio-Kreislauf (Pfeil-Segmente) */

.loopchart {
  position: relative;
  width: min(680px, 94vw);
  aspect-ratio: 1;
  margin: 3.5rem auto 0;
}
.loopchart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.loop-seg { cursor: pointer; }
.loop-seg .seg-fill {
  fill: rgba(0, 19, 55, 0.07);
  stroke: var(--white);
  stroke-width: 1.6;
  transition: fill 0.5s var(--ease);
}
.loop-seg:hover .seg-fill,
.loop-seg.is-active .seg-fill { fill: var(--yellow); }
.loop-seg .seg-icon { color: var(--navy); }
.loop-seg .seg-icon-m { display: none; }
.loop-seg .seg-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 4.5px;
  letter-spacing: 0;
  fill: var(--navy);
}
.loop-seg.is-active .seg-label,
.loop-seg:hover .seg-label { font-weight: 700; fill: var(--black); }

/* Kompakte Variante (Expertise-Seitenkopf): nur Icons, Segmentname mittig */
.loopchart-mini { width: min(320px, 80vw); margin: 0 auto; }
.loopchart-mini .orbit-center { inset: 23%; padding: 0.4rem; }
.loopchart-mini .orbit-text h3 { font-size: 0.92rem; margin: 0; }

.orbit-center {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(0.8rem, 3vw, 1.4rem);
  pointer-events: none;
}
.orbit-logo { width: clamp(120px, 34%, 170px); height: auto; margin-bottom: 0.9rem; }
.orbit-texts {
  display: grid;
  width: 100%;
}
.orbit-text {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.orbit-text.is-active { opacity: 1; transform: none; pointer-events: auto; }
.orbit-text h3 { font-size: clamp(0.95rem, 2.4vw, 1.2rem); margin-bottom: 0.4rem; }
.orbit-text p {
  font-size: clamp(0.78rem, 1.9vw, 0.92rem);
  color: var(--navy-60);
  margin-bottom: 0.5rem;
}
.orbit-more {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
}
.orbit-more:hover { color: var(--black); }

/* Responsiv: Beschreibung UNTER dem Kreis statt in der Mitte (Vollvariante);
   Icons dann groß, mittig im Pfeil und ohne Drehung */
@media (max-width: 640px) {
  .loop-seg .seg-label { display: none; }
  .loop-seg .seg-icon-d { display: none; }
  .loop-seg .seg-icon-m { display: inline; }
  .loopchart:not(.loopchart-mini) { aspect-ratio: auto; }
  .loopchart:not(.loopchart-mini) .loopchart-svg { height: auto; aspect-ratio: 1; }
  .loopchart:not(.loopchart-mini) .orbit-center {
    position: static;
    inset: auto;
    border-radius: 0;
    padding: 0;
    margin-top: 1.5rem;
    pointer-events: auto;
  }
  .orbit-logo { display: none; }
}

/* Kontakt-Sektion (Home, dunkel) */
.section-contact { background: var(--navy); }
.section-contact .kicker { color: rgba(255, 255, 255, 0.65); }
.section-contact .section-heading { color: var(--white); }
.section-contact .section-intro { color: rgba(255, 255, 255, 0.75); }

/* CTA-Sektion: Halbton aus der linken unteren Ecke als Gegenstück zu den
   getönten Sektionen (rechts oben) */
.section-cta {
  --dots: rgba(0, 19, 55, 0.2);
  position: relative;
  isolation: isolate;
  text-align: center;
  background: var(--paper);
}
.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dots) 1.5px, transparent 1.9px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 45% 90% at 0% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 45% 90% at 0% 100%, #000, transparent 70%);
}
.section-cta .section-heading, .section-cta .section-intro { margin-inline: auto; }
.section-cta .btn { margin-right: 0; }

/* ------------------------------------------------------------- Formular */

.contact-form { max-width: 760px; margin-top: 1.5rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field-wide { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--navy-25);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
  box-shadow: 0 0 0 5px rgba(222, 221, 1, 0.9);
}

.form-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.2rem;
  font-size: 0.9rem;
}
.form-consent input { width: 1.05rem; height: 1.05rem; margin-top: 0.25rem; flex-shrink: 0; accent-color: var(--yellow); }
.form-consent label { font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; letter-spacing: 0; }

.form-actions { margin-top: 1.4rem; }
.form-actions .btn { border: 0; }

.form-status:empty { display: none; }
.form-status, .form-note {
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}
.form-note.is-success, .form-status.is-success { background: var(--yellow); color: var(--black); }
.form-note.is-error, .form-status.is-error { background: var(--white); color: var(--navy); border: 1.5px solid var(--red); }

/* Dunkle Kontakt-Sektion: Labels/Status invertieren */
.section-contact .form-field label,
.section-contact .form-consent label { color: var(--white); }
.section-contact .form-consent a { color: var(--white); }
.section-contact .btn-solid { --btn-dot: var(--white); background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.section-contact .btn-solid:hover,
.section-contact .btn-solid:focus-visible { border-color: var(--white); color: var(--black); }
.section-contact .form-status.is-error { background: transparent; color: var(--white); }

/* Honeypot: für Menschen unsichtbar */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Kontaktseite */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info h2 { font-size: 1.2rem; }
.contact-email { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.contact-address { color: var(--navy-78); }

/* ---------------------- Abwechselnde Text/Bild-Reihen (Nachhaltigkeit) */

.split-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-row + .split-row { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.split-row--flip .split-media { order: -1; }
.split-row .img-dot { width: min(100%, 380px); }
@media (max-width: 960px) {
  .split-row { grid-template-columns: 1fr; }
  .split-row--flip .split-media { order: 0; } /* Bild mobil immer unter dem Text */
}

/* --------------------------------------------------- Expertise / Pfeiler */

.pillar-section { border-top: 1px solid var(--navy-12); scroll-margin-top: var(--header-h); }
.pillar-section:first-of-type { border-top: 0; }

.pillar-head {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: flex-start;
  margin-bottom: 2rem;
}
.pillar-big-num {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--navy-25);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--navy);
}
.pillar-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.pillar-intro { max-width: 68ch; color: var(--navy-78); margin: 0; }

.service-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.2rem clamp(1.4rem, 3vw, 2.6rem);
}
.service,
.service-front {
  position: relative;
  border-top: 1px solid var(--navy-25);
  padding: 1.2rem 0 0;
}
.service::before,
.service-front::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 2.4rem;
  height: 3px;
  background: var(--yellow);
}
.service h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.service p { margin: 0; font-size: 0.93rem; color: var(--navy-78); }

/* Flip-Karten: Rückseite verlinkt auf Produkte/Landing Pages.
   Vorderseite bleibt optisch identisch zur normalen Karte. */
.service.has-flip {
  border: 0;
  padding: 0;
  background: transparent;
  perspective: 1000px;
}
.service.has-flip::before { content: none; }
.service.has-flip,
.service.has-flip .service-flip { min-height: 10.5rem; }
.service.has-flip .service-flip {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease);
  height: 100%;
}
.service.has-flip:hover .service-flip,
.service.has-flip:focus-within .service-flip,
.service.has-flip.is-flipped .service-flip { transform: rotateY(180deg); }
.service-front,
.service-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.service-front { height: 100%; background: var(--white); }
.service-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  overflow: auto;
  padding: 0.9rem 1rem 0.6rem;
  background: var(--navy);
  border-top: 3px solid var(--yellow);
}
.service-back h3 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.2rem; }
.service-links {
  list-style: none;
  margin-top: 0.4rem;
}
.service-links li + li { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.service-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0;
  font-family: var(--font-head);
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.service-links a > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.service-links .link-arrow {
  flex-shrink: 0;
  color: var(--yellow);
  transition: translate 0.2s var(--ease), color 0.2s;
}
.service-links a:hover { color: var(--yellow); }
.service-links a:hover .link-arrow { translate: 4px 0; }
@media (prefers-reduced-motion: reduce) {
  .service.has-flip .service-flip { transition: none; }
}

/* ----------------------------------------- Landing Pages (z. B. M365) */

.service-icon { width: 30px; height: 30px; }

.license-for {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-78);
  margin-bottom: 0.7rem;
}
.license-points {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}
.license-points li {
  font-size: 0.92rem;
  color: var(--navy-78);
  padding-left: 1.15rem;
  position: relative;
}
.license-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 1px;
  background: var(--navy);
}
.license-focus {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--navy-12);
  padding-top: 0.8rem;
  margin: auto 0 0;
}
.license-grid .card-static { display: flex; flex-direction: column; }

/* Trainings: Kurskarten (MOC-Katalog) */
.course-code {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--navy);
  color: var(--white);
  padding: 0.28rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.7rem;
}
.course-meta {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-78);
  margin-bottom: 0.6rem;
}
.course-cert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--navy-12);
  padding-top: 0.8rem;
  margin: auto 0 0;
}
.course-cert .icon-inline { flex-shrink: 0; margin-top: 0.05rem; }
.course-grid .course { display: flex; flex-direction: column; }
.course-note {
  margin-top: 1.8rem;
  font-size: 0.95rem;
  color: var(--navy-78);
}

/* ------------------------------------------------------------ Management */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 440px));
  gap: 2.4rem clamp(1.6rem, 4vw, 3rem);
}
.person {
  border-top: 1px solid var(--navy-25);
  padding: 1.8rem 0 0;
}
.person-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin-bottom: 1.2rem; }
.person-monogram {
  display: grid;
  place-items: center;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.person h2 { font-size: 1.3rem; margin-bottom: 0.15rem; }
.person-role {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-78);
}

/* ----------------------------------------------------------------- Jobs */

/* Stellen als Zeilen einer Liste (Linie oben, Punkt markiert den Anfang) */
.job-list { list-style: none; display: grid; gap: 0; border-bottom: 1px solid var(--navy-25); }
.job {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--navy-25);
  padding: 1.7rem 0;
}
.job::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}
.job h2 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.job-type {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-78);
}
.job p:last-child { margin: 0; max-width: 64ch; }
.job .btn { margin: 0; flex-shrink: 0; }

/* ---------------------------------------------------------- Legal-Seiten */

.legal-text h2 { font-size: 1.15rem; margin-top: 2.2rem; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text h3 { font-size: 1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
/* Globaler Reset nimmt ul/ol das Padding – hier Marker bündig einrücken */
.legal-text ul,
.legal-text ol {
  padding-left: 1.3rem;
  margin: 0.65rem 0 1rem;
}
.legal-text li { margin-bottom: 0.45rem; }
.legal-text li::marker { color: var(--navy); }

/* ---------------------------------------------------------------- Footer */

.site-footer {
  background: var(--black); /* Logo-Regel: weißes Logo nur auf Schwarz */
  color: var(--white);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand img { width: 140px; margin-bottom: 1.1rem; }
.footer-slogan {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}
.footer-tagline { font-size: 0.88rem; color: rgba(255, 255, 255, 0.65); max-width: 34ch; }

.footer-col h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.45rem; }
.footer-col a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-legal a:hover { color: var(--yellow); }

.footer-contactline {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.7;
}
.footer-contactline a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-contactline a:hover { color: var(--yellow); }

.footer-social {
  list-style: none;
  display: flex;
  gap: 0.85rem;
  margin-top: 1.15rem;
  padding: 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--yellow);
  border-color: var(--yellow);
}
/* Basisregel .icon setzt color: var(--navy) – hier muss die Linkfarbe gelten */
.footer-social .icon { width: 20px; height: 20px; color: inherit; }

/* ---- Ablauf-Schritte (alle .steps): aktive Zahl wächst und färbt sich (Scroll) */

.step .step-num {
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), scale 0.4s var(--ease);
}
.step.is-hot .step-num {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  scale: 1.12;
}

/* ------------------------------------------------------ Kartenausschnitt */

.map-embed {
  margin: 3rem 0 0;
}
.map-embed iframe {
  width: 100%;
  height: 340px;
  border: 1px solid var(--navy-12);
  border-radius: var(--radius);
  display: block;
}
.map-embed figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
}
.map-embed figcaption a {
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
}

/* ------------------------------------------------------ Scroll-Reveals */

/* Ruhige Einblendung; Überschriften nur per Deckkraft (kein Hochrutschen) */
.reveal {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal:is(h1, h2, .section-heading, .kicker) { translate: none; }
.reveal.is-visible { opacity: 1; translate: none; }

/* Anker-Ziele nicht unter dem Header verschwinden lassen */
section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ------------------------------------------------------------ Responsive */

@media (max-width: 960px) {
  .who-grid, .contact-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .dot-tiles { grid-template-columns: 1fr; }
  .dot-tile { padding-right: 0; padding-bottom: 1.2rem; }
  .dot-tile + .dot-tile { border-left: 0; border-top: 1px solid var(--navy-12); padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .nav-wrap {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    visibility: hidden;
  }
  .nav-open .nav-wrap { transform: translateX(0); visibility: visible; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }
  .nav-list > li { border-bottom: 1px solid var(--navy-12); }
  .nav-list a, .sub-toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--black); /* Mobiles Menü-Panel ist immer weiß */
  }

  .sub-list {
    position: static;
    translate: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0.5rem 1rem;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-sub.open .sub-list { display: block; }
  .sub-list a { padding: 0.6rem 0; white-space: normal; }

  .lang-switch { margin-top: 1.5rem; font-size: 1rem; }
  .lang-switch a { color: var(--navy-60); }
  .lang-switch a:hover, .lang-switch a[aria-current="true"] { color: var(--black); }

  .form-grid { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .step-icon { display: none; }   /* schmale Spalte: Text vor Symbol */
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-scroll span { display: none; }
  .hero { min-height: 560px; }
}

/* Flache Landscape-Viewports (Smartphone quer): Titel kompakter */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero-inner { margin-top: calc(var(--header-h) + 2vh); }
  .hero-title { font-size: 1.9rem; margin-bottom: 0.5rem; }
  .hero-eyebrow { margin-bottom: 0.5rem; }
  .hero-sub { font-size: 0.85rem; }
  .hud-name { font-size: 1.1rem; }
  .hud-line { display: none; }
}

/* Hero im Hochformat: Szene liegt ÜBER dem HUD-Textblock, nichts überdeckt sie */
@media (max-width: 760px) and (orientation: portrait) {
  .hero-scene { inset: 0 0 225px 0; }
  .hero-hud {
    bottom: 108px;
    left: 1.25rem;
    right: 1.25rem;
    max-width: none;
  }
  .hud-name { font-size: 1.2rem; }
  .hud-line { font-size: 0.82rem; }
  .hero-progress { bottom: 52px; left: 1.25rem; }
  .hero-scroll { bottom: 52px; right: 1.25rem; }
}

/* ----------------------------------------------------------------- Icons */

.icon {
  width: 44px;
  height: 44px;
  color: var(--navy);
  flex-shrink: 0;
}
.card-icon { width: 38px; height: 38px; }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.step-icon { width: 36px; height: 36px; margin-top: 0.15rem; }
.icon-inline { width: 22px; height: 22px; }
.contact-line { display: flex; align-items: flex-start; gap: 0.6rem; }
.contact-line .icon-inline { margin-top: 0.2rem; }
.pillar-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.pillar-icon { width: 46px; height: 46px; }

/* ------------------------------------------- Bilder: rund, im dot-Motiv */

.img-dot {
  position: relative;
  margin: 0 auto;
  aspect-ratio: 1;
  width: min(100%, 460px);
}
.img-dot img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0, 19, 55, 0.2);
}
/* Überlappende Punkte – das „dot“ aus dotmec */
.img-dot::before {
  content: '';
  position: absolute;
  width: 25%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  right: -5%;
  bottom: 5%;
  z-index: 2;
}
.img-dot::after {
  content: '';
  position: absolute;
  width: 13%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
  left: 4%;
  top: -3%;
}
.img-dot .dot-ring {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--navy-25);
  left: -7%;
  bottom: -4%;
}
/* Runde Logovariante als Badge (schwarz auf weißem Kreis – CI-Regel) */
.img-dot .dot-badge {
  position: absolute;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  padding: 2.5%;
  box-shadow: 0 10px 28px rgba(0, 19, 55, 0.22);
  right: -3%;
  top: -5%;
  z-index: 2;
}
/* CI-Farbfilter: moderner Duotone-Verlauf (Navy → Weiß → Gelb, minimal Rot)
   über allen Bildern; der Verlauf bewegt sich langsam */
.img-dot img:first-child {
  filter: grayscale(55%) contrast(1.06) brightness(1.02);
}
.img-dot .img-tint {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(125deg,
    rgba(0, 19, 55, 0.85) 0%,
    rgba(0, 19, 55, 0.35) 38%,
    rgba(255, 255, 255, 0.10) 55%,
    rgba(222, 221, 1, 0.35) 84%,
    rgba(190, 19, 55, 0.30) 100%);
  background-size: 180% 180%;
  mix-blend-mode: overlay;
  animation: tint-shift 16s ease-in-out infinite alternate;
}
@keyframes tint-shift {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 100%; }
}

/* Halbtransparentes rundes Kreislogo: oben rechts, halb überlappend */
.img-dot .dot-logo-overlay {
  position: absolute;
  top: -6%;
  right: -6%;
  width: 42%;
  height: auto;
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
}
.contact-info .img-dot { margin-top: 2.2rem; width: min(100%, 300px); margin-inline: 0; }

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* ------------------------------------------------------------- Preloader */
/* Bei jedem Seitenwechsel: Logo setzt sich wireframe-artig zusammen, füllt
   sich weiß und zoomt bei 100 % durch den Punkt über dem „t“ in die Seite. */

html.preloading { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100001; /* über dem Cookie-Banner (Silktide: 99999) */
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s ease 0.25s;
}
.preloader.pl-zoom { opacity: 0; pointer-events: none; }

.pl-inner { text-align: center; }

.pl-logo {
  width: min(420px, 70vw);
  height: auto;
  overflow: visible;
  /* Zoomzentrum = der Punkt über dem „t“ (787.4/38.9 im 1598.9×260.4-ViewBox) */
  transform-origin: 49.23% 14.94%;
}
.preloader.pl-zoom .pl-logo {
  transform: scale(40);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.85, 0.25);
}

/* Buchstaben zeichnen sich nacheinander und füllen sich einzeln,
   sobald ihr Strich fertig ist (Lesereihenfolge d-o-t-Punkt-m-e-c). */
.pl-path {
  fill: var(--white);
  fill-opacity: 0;
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.preloader.pl-draw .pl-path {
  stroke-dashoffset: 0;
  fill-opacity: 1;
  transition:
    stroke-dashoffset 0.6s ease-in-out var(--pd, 0s),
    fill-opacity 0.3s ease calc(var(--pd, 0s) + 0.55s);
}
.pl-path:nth-of-type(1) { --pd: 0s; }     /* d */
.pl-path:nth-of-type(2) { --pd: 0.14s; }  /* o */
.pl-path:nth-of-type(3) { --pd: 0.28s; }  /* t */
.pl-path:nth-of-type(7) { --pd: 0.42s; }  /* Punkt */
.pl-path:nth-of-type(4) { --pd: 0.56s; }  /* m */
.pl-path:nth-of-type(6) { --pd: 0.70s; }  /* e */
.pl-path:nth-of-type(5) { --pd: 0.84s; }  /* c */

.pl-count {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
  margin: 2.2rem 0 0;
}
.preloader.pl-zoom .pl-count { opacity: 0; transition: opacity 0.2s; }

/* -------- Mobile/Tablet: Seitenkopf-Grids umbrechen (Text über Bild/Kreis)
   WICHTIG: muss NACH der .page-hero-grid-Basisregel stehen (Quelltext-Reihenfolge) */
@media (max-width: 960px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid .img-dot { margin-top: 0.5rem; }
  .page-hero-grid .loopchart-mini { margin-top: 0.5rem; }
}

/* --------------------------------------------------- Reduzierte Bewegung */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .hero-scroll svg { animation: none; }
  .hero { animation: none; }
  .preloader { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
