/* ============================================================
   TRK Services eG · seite.css (Fassung 2: Onest, klarere Raster, Farbspiel in Petrol/Aqua)
   Hero: Bühne „split". Darunter wechseln Hell, Tönung und Dunkel; je Bereich ein klares Raster.
   Farben: Petrol (Marke), Aqua (Hervorhebung auf Dunkel), Teal-Tinte (Hervorhebung auf Hell),
   Bernstein nur auf Primärknöpfen.
   ============================================================ */

@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/onest/onest-latin-wght-normal.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: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/onest/onest-latin-ext-wght-normal.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;
}

:root {
  --ton-hell:   oklch(0.42 0.075 212);      /* Petrol, oben links */
  --ton-dunkel: oklch(0.33 0.065 218);      /* ... unten rechts */
  --petrol-tief: oklch(0.25 0.045 218);     /* Band und Footer */
  --licht:      oklch(0.98 0.006 210);      /* Schrift auf Petrol */
  --licht-soft: oklch(0.88 0.02 205);       /* Zweitschrift auf Petrol */
  --aqua:       oklch(0.87 0.10 188);       /* Hervorhebung auf Dunkel */
  --teal-tinte: oklch(0.47 0.095 205);      /* Hervorhebung auf Hell (>= 6:1) */
  --tint:       oklch(0.963 0.017 205);     /* Tönung für wechselnde Bereiche */
  --linie:      oklch(0.86 0.02 210);
  --signal:     oklch(0.82 0.15 78);        /* Bernstein: NUR Primärknöpfe */
  --signal-hover: oklch(0.87 0.15 80);
  --weiss-veil: oklch(0.99 0.004 215);
}
:focus-visible { outline-offset: 3px; }
body { font-family: var(--font-body); font-feature-settings: "ss01" 0; }

/* ---- Kopf: Zeichen als Maske in Textfarbe + Name ---- */
.kopf { position: absolute; inset: 0 0 auto 0; z-index: var(--z-sticky); padding-inline: 5vw; }
.kopf .nav { padding-block: 1.3rem; }
.kopf__marke { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-display);
  font-weight: 650; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1; color: var(--licht);
  padding-block: 0.3rem; white-space: nowrap; }
.kopf__zeichen { width: 4.2rem; aspect-ratio: 1; flex: none; background: currentColor;
  -webkit-mask: url("img/trk-services-zeichen.svg") center / contain no-repeat;
  mask: url("img/trk-services-zeichen.svg") center / contain no-repeat;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease; }
.kopf__marke:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .kopf__marke:hover .kopf__zeichen { transform: rotate(-8deg) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .kopf__zeichen { transition: none; }
  .kopf__marke:hover .kopf__zeichen { transform: none; }
}
.kopf .nav-links { margin-left: auto; }
.kopf .nav-links a { font-family: var(--font-label); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0; text-transform: none; color: var(--ink); padding-block: 0.8rem; }
.kopf .nav-links a::after { background: currentColor; height: 2px; bottom: 0.5rem; }
.kopf__knopf { min-height: 44px; padding: 0 1.3em; }
.nav-menue { min-width: 44px; min-height: 44px; }

.btn { font-family: var(--font-label); font-weight: 600; letter-spacing: 0; }
.btn-primary { background: var(--signal); color: oklch(0.2 0.022 215); border-color: var(--signal); }
.btn.btn-text { min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--signal-hover); border-color: var(--signal-hover); box-shadow: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.buehne {
  --b-flaeche: var(--ton-hell);
  --b-split: 54% 46%;
  --b-fokus: 62% 50%;
  --b-oben-verlauf: linear-gradient(to bottom, color-mix(in oklab, var(--weiss-veil) 96%, transparent) 0,
    color-mix(in oklab, var(--weiss-veil) 94%, transparent) 5.5rem, transparent 11rem);
  --b-heranfahren: 1.04; --b-heranfahren-dauer: 1.8s;
}
.kicker { font-family: var(--font-label); font-weight: 600; font-size: 1.02rem; line-height: 1.3;
  letter-spacing: 0.01em; text-transform: none; color: var(--aqua); max-width: none;
  margin-bottom: clamp(1rem, 2.4vh, 1.5rem); }
/* Onest 650, zwei Zeilen: erste Zeile hell, zweite in Aqua. Größe aus Spaltenbreite (54vw - 2 x 5vw) */
.buehne h1.display { font-weight: 650; line-height: 1.02; letter-spacing: -0.035em;
  font-size: min(var(--display-buehne), 4.3vw); color: var(--licht); }
.buehne h1.display .zeile { display: block; white-space: nowrap; }
.buehne h1.display .zeile--akzent {
  color: var(--aqua);
  /* Platz für die Unterlänge des „g“, damit sie nicht abgeschnitten wird */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  line-height: 1.15;
  overflow: visible;
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1), letter-spacing .4s cubic-bezier(0.22, 1, 0.36, 1);
}
.buehne h1.display .zeile--akzent * { overflow: visible; padding-bottom: 0.18em; }
@media (hover: hover) and (pointer: fine) {
  .buehne h1.display .zeile--akzent:hover { transform: translateX(0.12em); letter-spacing: 0.01em; }
}
@media (prefers-reduced-motion: reduce) {
  .buehne h1.display .zeile--akzent { transition: none; }
}
.buehne__zeile { font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--licht);
  max-width: 29em; margin-top: clamp(1.1rem, 2.6vh, 1.75rem); }
.buehne__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem;
  margin-top: clamp(1.5rem, 3.6vh, 2.25rem); }
.buehne .btn-text { color: var(--licht); text-decoration-color: var(--aqua); text-underline-offset: 0.25em; }

/* ============================================================
   ABSCHNITTE: gemeinsames Raster
   ============================================================ */
.abschnitt { padding-block: clamp(4rem, 8vw, 7rem); }
.abschnitt .container { padding-inline: 5vw; max-width: none; }
.abschnitt--tint { background: var(--tint); }
.kopfblock { max-width: 44rem; }
.abschnitt h2 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.03em; line-height: 1.06;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); color: var(--ink); text-wrap: balance; }
.abschnitt h2 em { font-style: normal; color: var(--teal-tinte); }
.abschnitt p { color: var(--ink-soft); }
.abschnitt .lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; max-width: 36em;
  margin-top: 1.1rem; }

/* ---- Leistungen: 2 x 2 ---- */
.bausteine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 2.4vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3.25rem); }
.baustein { background: #fff; border: 1px solid var(--linie); border-top: 4px solid var(--teal-tinte);
  border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 2rem); display: flex; flex-direction: column; gap: 0.35rem; }
.baustein h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15;
  font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.65rem); color: var(--ink); overflow-wrap: normal; hyphens: none; }
.baustein > p { font-size: 1.02rem; color: var(--teal-tinte); font-weight: 500; }
.baustein ul { list-style: none; padding: 0; margin-top: 0.9rem; display: grid; gap: 0.6rem; }
.baustein li { position: relative; padding-left: 1.5rem; font-size: 0.98rem; line-height: 1.45; color: var(--ink); }
.baustein li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.7rem; height: 0.4rem;
  border-left: 2px solid var(--teal-tinte); border-bottom: 2px solid var(--teal-tinte); transform: rotate(-45deg); }
.hinweis { margin-top: 1.75rem; font-size: 1rem; line-height: 1.55; max-width: 52em; color: var(--ink); }

/* ---- Schwerpunkt Praxen: dunkles Band ---- */
.band { background: var(--petrol-tief); color: var(--licht); }
.band h2 { color: var(--licht); }
.band h2 em { color: var(--aqua); }
.band .lead, .band p { color: var(--licht-soft); }
.band__raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.band ul { list-style: none; padding: 0; display: grid; gap: 0; }
.band li { padding: 1.05rem 0; border-top: 1px solid color-mix(in oklab, var(--licht) 22%, transparent);
  font-size: 1.08rem; line-height: 1.4; color: var(--licht); }
.band li:last-child { border-bottom: 1px solid color-mix(in oklab, var(--licht) 22%, transparent); }
.band .hinweis { color: var(--licht-soft); margin-top: 1.5rem; }

/* ---- Mitglieder: zwei gleiche Felder ---- */
.felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 2.4vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3.25rem); }
.feld { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 2rem); }
.feld h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.65rem);
  line-height: 1.15; color: var(--ink); }
.feld p { margin-top: 0.7rem; line-height: 1.55; }

/* ---- Ablauf: drei Spalten ---- */
.ablauf { list-style: none; padding: 0; margin-top: clamp(2rem, 4vw, 3.25rem); display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: schritt; }
.ablauf li { counter-increment: schritt; border-top: 3px solid var(--teal-tinte); padding-top: 1.1rem; }
.ablauf li::before { content: counter(schritt); display: block; font-family: var(--font-display); font-weight: 650;
  font-size: 2.6rem; line-height: 1; letter-spacing: -0.04em; color: var(--teal-tinte); margin-bottom: 0.7rem; }
.ablauf h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.015em; font-size: 1.25rem; color: var(--ink); }
.ablauf p { margin-top: 0.5rem; font-size: 1rem; line-height: 1.55; max-width: 24em; }

/* ---- Kontakt ---- */
.kontakt__raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.kontakt__mail { margin-top: 1.5rem; font-size: 1.05rem; color: var(--ink); }
.kontakt__mail a { color: var(--ink); text-decoration-color: var(--teal-tinte); text-underline-offset: 0.2em; }
.kontakt__formular { display: grid; gap: 1.1rem; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(1.4rem, 2.6vw, 2.2rem); }
.kontakt__formular .field > label { color: var(--ink); }
.kontakt__formular .optional { font-weight: 400; color: var(--ink-soft); }
.kontakt__formular input, .kontakt__formular textarea { min-height: 48px; font-size: 1rem; }
.kontakt__formular textarea { resize: vertical; }
.kontakt__hinweis { font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); max-width: none; }
.kontakt__hinweis a { color: var(--ink); text-underline-offset: 0.2em; }
.kontakt__formular .btn { justify-self: start; }
.kontakt__falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Fuss ---- */
.fuss { background: var(--petrol-tief); color: var(--licht-soft); padding-block: 2.5rem; font-size: 0.95rem; line-height: 1.6; }
.fuss .container { padding-inline: 5vw; max-width: none; display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.fuss strong { color: var(--licht); font-weight: 600; }
.fuss ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.fuss a { color: var(--licht); text-underline-offset: 0.2em; }
.fuss small { display: block; margin-top: 0.75rem; font-size: 0.85rem; color: var(--licht-soft); max-width: 46em; }

/* ---- Rechtstexte ---- */
.rechtstext { padding-block: clamp(7rem, 12vw, 9rem) clamp(3rem, 6vw, 5rem); }
.rechtstext .container { max-width: 46rem; padding-inline: 20px; }
.rechtstext h1 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.03em; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: 1.08; color: var(--ink); }
.rechtstext h2 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; font-size: 1.45rem; line-height: 1.2; margin-top: 2.5rem; color: var(--ink); }
.rechtstext h3 { font-weight: 600; font-size: 1.05rem; margin-top: 1.5rem; color: var(--ink); }
.rechtstext p, .rechtstext li { margin-top: 0.75rem; line-height: 1.7; color: var(--ink); max-width: 68ch; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext a { color: var(--teal-tinte); text-underline-offset: 0.2em; }
.kopf--ruhig { position: absolute; }
.kopf--ruhig .kopf__marke { color: var(--ink); }

/* ============================================================
   Navigation auf eigener heller Fläche (liegt je nach Breite über Petrol oder Foto)
   ============================================================ */
@media (min-width: 900px) {
  .kopf .nav-links { gap: 1.9rem; }
  .kopf__knopf { display: none; }
}
/* Zwischen 900 und 1199 px reicht die Bildspalte nicht für alle Links: eigene helle Fläche */
@media (min-width: 900px) and (max-width: 1199px) {
  .kopf .nav-links { background: var(--weiss-veil); border-radius: var(--radius); padding-inline: 1.4rem; gap: 1.4rem; }
}

/* ============================================================
   Tablet und Handy
   ============================================================ */
@media (max-width: 1099px) {
  .band__raster, .kontakt__raster, .fuss .container { grid-template-columns: minmax(0, 1fr); }
  .ablauf { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .kopf { padding-inline: 20px; }
  .kopf .nav { padding-block: 0.9rem; gap: 0.5rem; }
  .kopf__marke { font-size: 1.05rem; color: var(--ink); gap: 0.55rem; }
  .kopf__zeichen { width: 3.4rem; }
  .kopf__knopf { margin-left: auto; }
  .kopf .nav-links:popover-open a { font-family: var(--font-display); font-weight: 650; font-size: 1.8rem; letter-spacing: -0.02em; }
  .buehne { --b-fokus-mobil: 55% 60%; --b-kopfbild-ueberlappung: 0px; --b-kopfbild-auslauf: 5rem;
    --b-kopfbild-hoehe: min(calc(100vw * 0.9), 40svh); --b-mobil-hoehe: 0px; }
  .buehne h1.display { font-size: calc((100vw - 40px) / 10.4); }
  .abschnitt .container, .fuss .container { padding-inline: 20px; }
  .bausteine, .felder { grid-template-columns: minmax(0, 1fr); }
}

@media print { .kopf { position: static; } .nav-menue { display: none; } }

.buehne .btn-zweit { color: var(--licht); border-color: color-mix(in oklab, var(--licht) 55%, transparent); padding-inline: 1.4em; min-height: 48px; }
@media (hover: hover) and (pointer: fine) { .buehne .btn-zweit:hover { border-color: var(--aqua); color: var(--aqua); } }

/* Vortragswesen: sanfter Hover + Einblendung */
.feld--vortrag { position: relative; overflow: hidden; animation: vortrag-ein 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s; }
.feld--vortrag::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent, currentColor);
  transform: scaleX(0.18); transform-origin: left; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.feld--vortrag h3 { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes vortrag-ein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) {
  .feld--vortrag:hover { transform: translateY(-4px); border-color: var(--accent, var(--linie)); box-shadow: 0 6px 8px rgba(0,0,0,0.06); }
  .feld--vortrag:hover::before { transform: scaleX(1); }
  .feld--vortrag:hover h3 { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .feld--vortrag, .feld--vortrag::before, .feld--vortrag h3 { animation: none; transition: none; }
}

/* Zweitknopf deutlicher, auf dem Handy volle Breite */
.buehne .btn-zweit { border-width: 2px; font-size: 1.02rem; font-weight: 600; }
@media (max-width: 899px) {
  .buehne .btn-zweit, .buehne .btn-hero { width: 100%; justify-content: center; }
  .buehne__zeile { line-height: 1.6; margin-top: 1rem; }
}
.buehne .btn-zweit { border-color: color-mix(in oklab, var(--licht) 88%, transparent); }
.nav-menue { min-width: 48px; min-height: 48px; margin-left: 0.5rem; }

/* Feinschliff nach Prüfung */
.hinweis { color: var(--ink); }
@media (max-width: 899px) {
  .buehne .kicker { margin-top: 1.25rem; }
}

@media (max-width: 899px) { .kontakt__formular .btn { justify-self: stretch; justify-content: center; } }
