/*
 * 3claws — Dark / Clean: Oberflächen und synchroner Krallenwechsel.
 * Wird nach base.css, theme.css und pages.css geladen.
 * Alle Farbwerte stehen in colors.css; hier keine festen Hex-Farben.
 */

/* 1. Durchgehende Abschnittsflächen, keine zusätzlichen Container. */
.header,
.hero {
  background: var(--section-hero);
}

.hero {
  background: var(--section-hero);
}

.services {
  background: var(--section-services);
}

.freedom {
  background: var(--section-approach);
}

.team {
  background: var(--section-team);
}

.offers,
.projects {
  background: var(--section-offers);
}

.contact {
  background: var(--section-contact);
}

.services,
.freedom,
.team,
.offers,
.contact,
.footer {
  border-top: 1px solid var(--line-on-dark-soft);
}

/* 2. Navigation, Typografie und Kontraste. */
.header .pill-dark {
  border: 1px solid var(--line);
  background: var(--color-surface);
  color: var(--ink);
}

.header .pill-dark:hover {
  border-color: var(--blue);
  background: var(--primary-soft);
}

.brand-line {
  opacity: 0.85;
}

.hero h1 .blue {
  color: var(--color-heading-accent);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-art::before {
  background: none;
}

.hero-eyebrow,
.selector-caption,
.art-coordinate,
.brand-tag {
  color: var(--muted);
}

.selector-caption span:last-child,
.art-coordinate.tr {
  color: var(--blue);
}

.pill-dark,
.inquiry-form .pill,
.text-cta .round,
.contact-cta .round {
  background: var(--color-action);
  color: var(--color-on-action);
}

.pill-dark:hover,
.inquiry-form .pill:hover,
.text-cta:hover .round,
.contact-cta:hover .round {
  background: var(--color-action-hover);
  color: var(--color-on-action);
}

.pill-light {
  background: var(--ink);
  color: var(--paper);
}

.pill-light:hover {
  background: var(--primary-light);
  color: var(--paper);
}

.skip {
  background: var(--color-action);
  color: var(--color-on-action);
}

::selection {
  background: var(--color-action);
  color: var(--color-on-action);
}

/* 3. Klare Vektorkanten statt Blur-/Specular-Filter.
 * Keine Größen- oder Positionsänderung des bestehenden Motivs.
 * Die Materialflächen wechseln weiterhin synchron mit der Leistungsauswahl.
 */
.original-sculpture {
  shape-rendering: geometricPrecision;
}

.claw-edge-highlight {
  opacity: 0;
  transition: opacity var(--phase-transition);
}

.true-claw.active .claw-edge-highlight {
  opacity: 1;
}

.claw-highlight {
  opacity: 0;
  transition: opacity var(--phase-transition);
}

.true-claw.active .claw-highlight {
  opacity: 1;
}

.true-claw {
  transition: transform var(--phase-transition);
}

.track-detail {
  align-items: center;
  min-height: 52px;
}

/* Fortschrittsanzeige: progress.css; gemeinsame Zeitquelle in home.js. */

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

/* 4. Bestehende Inhalte auf dunklen Flächen gut lesbar halten. */
.service .plus,
.service[open] .plus {
  background: var(--color-surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.service[open] .plus::before,
.service[open] .plus::after {
  background: var(--blue);
}

.freedom .section-index,
.offers > .section-index {
  color: var(--blue);
}

.freedom .kiss-copy p,
.freedom .kiss-footnote,
.kiss-count,
.offer-heading p,
.offer-kicker,
.offer-price .period,
.offer-features,
.offer-specific,
.offer-disclaimer {
  color: var(--muted) !important;
}

.kiss-principles {
  color: var(--ink);
}

.kiss-star {
  color: var(--green);
}

.offers .tab {
  color: var(--muted);
}

.offers .tab[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--blue);
}

.offer-features li::before {
  color: var(--blue);
}

.person img {
  outline: 1px solid var(--green-line);
  outline-offset: 5px;
}

.footer-wordmark .footer-manifesto {
  color: var(--blue) !important;
}

.footer-top a[href^="mailto:"] {
  color: var(--ink);
}

/* 5. Unterseiten: gleiche Farbwelt, native Tabelle und Formularfelder. */
.page-intro {
  background:
    radial-gradient(ellipse at 85% 45%, var(--primary-glow-soft), transparent 60%),
    var(--section-hero);
}

.subpage .page-section {
  background: var(--section-services);
}

.subpage .page-section-tinted {
  background: var(--section-offers);
}

.page-outro {
  background: var(--section-contact);
  border-top: 1px solid var(--line-on-dark-soft);
}

.comparison-table thead {
  background: var(--section-approach);
}

.comparison-table thead th {
  border-color: var(--line);
}

.comparison-table thead span {
  color: var(--muted);
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--primary-wash);
}

.comparison-table td:nth-child(3),
.comparison-table th:nth-child(3) {
  background: var(--primary-faint);
}

.draft-notice {
  background: var(--primary-wash);
}

.field :is(input, textarea, select) {
  border-color: var(--line);
  background: var(--color-surface);
  color: var(--ink);
}

.field :is(input, textarea)::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field :is(input, textarea, select):focus {
  border-color: var(--blue);
}

dialog {
  border: 1px solid var(--line);
  background: var(--section-services);
}

/* 6. Mobil, Bewegungspräferenzen und Druck. */
@media (max-width: 650px) {
  .header nav {
    background: var(--color-surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 35px var(--shadow);
  }

  .no-js .header nav {
    border: 0;
  }

  .nav-toggle {
    background: var(--color-surface);
    color: var(--ink);
    border: 1px solid var(--line);
  }

  .track-detail {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .claw-highlight,
  .claw-edge-highlight,
  .true-claw,
  .track::before {
    transition: none;
  }

  .track::after {
    animation: none !important;
  }
}

/* Druckt bewusst ohne dunkle Flächen; Bildschirmfarben bleiben unverändert. */
@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: var(--color-shadow);
    background: var(--white);
  }

  main *,
  main *::before,
  main *::after {
    color: var(--color-shadow) !important;
    background: transparent !important;
    border-color: var(--color-muted) !important;
    -webkit-text-fill-color: currentColor !important;
  }
}


/* Die aktive Projektphase ist an der farbigen Krallenfläche erkennbar. */
.true-claw[role="button"] {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.true-claw[role="button"],
.true-claw[role="button"]:hover,
.true-claw[role="button"]:focus,
.true-claw[role="button"]:focus-visible,
.true-claw[role="button"]:active {
  outline: none;
}

.art-coordinate,
.brand-colors {
  pointer-events: none;
}
