/* ==========================================================================
   Prestitch – gemeinsames Design der Leistungs-Unterseiten
   (Lederausstattung, Sitze & Polster, Fahrzeugverdecke)

   Diese Datei wird NACH dem <style>-Block jeder Unterseite geladen und
   überschreibt das alte helle Design mit dem dunklen Look der Startseite.
   ========================================================================== */

/* Sanfter Übergang beim Wechsel zwischen Startseite und Unterseiten
   (Chrome, Edge, Safari – andere Browser wechseln einfach normal) */
@view-transition {
  navigation: auto;
}

:root {
  --bg: #111;
  --bg-alt: #161616;
  --bg-deep: #0c0c0c;
  --card: #1a1a1a;
  --line: rgba(255, 255, 255, 0.07);
  --text-muted: rgba(255, 255, 255, 0.58);
  --text-soft: rgba(255, 255, 255, 0.38);
  --gold: #c59d5f;
  --gold-line: rgba(197, 157, 95, 0.45);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

body {
  background: var(--bg);
  color: #fff;
}

/* ==========================================================================
   1. KOPFBEREICH (Hero) – "Atelier"-Look
   Foto rechts mit goldener Ziernaht, Text links, Leistungs-Umschalter unten
   ========================================================================== */

.hero-service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: clamp(660px, 94vh, 920px);
  padding-top: 90px; /* Platz für die fixe Navigation */
  background: var(--bg);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* Feine Leder-Körnung über dem ganzen Bereich */
.hero-service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Warmer Goldschimmer links unten */
.hero-service::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -30%;
  width: 50%;
  height: 80%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(197, 157, 95, 0.13), transparent);
}

/* --- Foto rechts --- */
.ph-media {
  position: absolute;
  top: 90px; /* unter der Navigation */
  right: 0;
  bottom: 0;
  width: 50%;
  z-index: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  animation: phReveal 1200ms var(--ease-in-out) both;
}

.ph-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ph-pos, center);
  animation: phSettle 1800ms var(--ease-out) both;
}

/* Übergang Foto → dunkler Hintergrund */
.ph-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, var(--bg) 2%, rgba(17, 17, 17, 0.6) 24%, rgba(17, 17, 17, 0) 58%),
    linear-gradient(to top, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0) 35%);
}

/* Goldene Ziernaht als Rahmen im Foto – das Sattler-Motiv */
.ph-stitch {
  position: absolute;
  inset: 26px 26px 96px 26px; /* unten Platz für den Umschalter */
  z-index: 1;
  border: 1.5px dashed rgba(197, 157, 95, 0.6);
  border-radius: 3px;
  pointer-events: none;
  animation: phFade 900ms var(--ease-out) 1000ms both;
}

/* --- Textspalte --- */
.ph-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  padding-bottom: 56px;
}

.ph-text {
  margin: auto 0;
  max-width: min(41vw, 600px);
  padding-top: 32px;
}

/* Breadcrumb jetzt dezent im Kopfbereich statt weisser Balken */
.hero-service .breadcrumb {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}
.hero-service .breadcrumb a {
  color: var(--text-soft);
  margin-right: 0;
  text-decoration: none;
  transition: color 200ms ease;
}
.hero-service .breadcrumb a:hover {
  color: var(--gold);
}
.hero-service .breadcrumb span {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.2);
}
.hero-service .breadcrumb strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.ph-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.ph-eyebrow i {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.ph-eyebrow em {
  font-style: normal;
  color: var(--text-soft);
}

.hero-service h1 {
  font-size: clamp(40px, 4.6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: #fff;
  margin: 0;
  opacity: 1;
  animation: none;
}

/* Ziernaht unter dem Titel – "näht" sich beim Laden von links nach rechts */
.ph-seam {
  display: block;
  width: min(340px, 70%);
  height: 10px;
  margin: 26px 0 26px;
  overflow: visible;
  clip-path: inset(0 0 0 0);
  animation: phSew 1100ms var(--ease-in-out) 750ms both;
}
.ph-seam line {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 9 6;
  stroke-linecap: round;
}

.hero-service p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0;
  opacity: 1;
  animation: none;
}

/* Kennzahlen */
.ph-facts {
  list-style: none;
  /* festes Raster: immer drei Spalten nebeneinander, Text bricht innerhalb um */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 540px;
  margin: 36px 0 40px;
  padding: 0;
}
.ph-facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.ph-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}
.ph-facts strong {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold);
  line-height: 1;
}
.ph-facts span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* Buttons */
.ph-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.ph-btn {
  display: inline-block;
  padding: 16px 30px;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out),
    transform 160ms var(--ease-out);
}
.ph-btn:active {
  transform: scale(0.97);
}

.ph-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  transition: color 200ms ease, border-color 200ms ease;
}
.ph-link b {
  font-weight: 400;
  transition: transform 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .ph-btn:hover {
    background: transparent;
    color: var(--gold);
  }
  .ph-link:hover {
    color: var(--gold);
    border-color: var(--gold);
  }
  .ph-link:hover b {
    transform: translateY(3px);
  }
}

/* --- Leistungs-Umschalter unten (wie die 3 Karten auf der Startseite) --- */
.ph-switch {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ph-switch .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
}
.ph-switch a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 24px 24px 24px 0;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 200ms ease;
}
.ph-switch a + a {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
/* Link "Alle Leistungen" – führt zur Übersicht auf der Startseite */
.ph-switch a.ph-all {
  gap: 10px;
  color: var(--gold);
}
.ph-switch a.ph-all b {
  font-weight: 400;
  transition: transform 220ms var(--ease-out);
}
/* Goldbalken oben – beim aktiven Eintrag voll, sonst beim Hover */
.ph-switch a::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
}
.ph-switch a[aria-current="page"] {
  color: #fff;
}
.ph-switch a[aria-current="page"]::before {
  transform: scaleX(1);
}
@media (hover: hover) and (pointer: fine) {
  .ph-switch a:hover {
    color: #fff;
  }
  .ph-switch a:hover::before {
    transform: scaleX(1);
  }
  .ph-switch a.ph-all:hover {
    color: #fff;
  }
  .ph-switch a.ph-all:hover b {
    transform: translateX(4px);
  }
}

/* --- Einblend-Animation beim Laden (gestaffelt) --- */
.hero-service .ph-in {
  animation: phUp 900ms var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}

@keyframes phUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes phFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes phReveal {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes phSettle {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
@keyframes phSew {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* --- Tablet & Handy: Foto oben, Text darunter --- */
@media (max-width: 900px) {
  .hero-service {
    min-height: 0;
    padding-top: 90px;
  }
  .ph-media {
    position: relative;
    top: 0;
    width: 100%;
    height: 46vh;
    min-height: 280px;
    order: -1;
    animation-name: phRevealUp;
  }
  .ph-media::after {
    background: linear-gradient(to top, var(--bg) 0%, rgba(17, 17, 17, 0) 55%);
  }
  .ph-stitch {
    inset: 16px 16px 24px 16px;
  }
  .ph-body {
    padding-top: 8px;
    padding-bottom: 40px;
  }
  .ph-text {
    max-width: none;
    padding-top: 28px;
  }
  .ph-facts li {
    padding: 0 18px;
  }
  .ph-facts strong {
    font-size: 22px;
  }
  .ph-switch .container {
    width: 100%;
    padding: 0;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .ph-switch .container::-webkit-scrollbar {
    display: none;
  }
  .ph-switch a,
  .ph-switch a + a {
    padding: 20px;
    scroll-snap-align: start;
  }
}

@keyframes phRevealUp {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@media (max-width: 560px) {
  .hero-service h1 {
    font-size: 36px;
  }
  .hero-service p {
    font-size: 15px;
  }
  .ph-facts {
    margin: 28px 0 32px;
  }
  .ph-facts li {
    padding: 0 12px;
  }
  .ph-facts span {
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.06em;
  }
  .ph-actions {
    gap: 22px;
  }
}

/* Weniger Bewegung, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
  .ph-media,
  .ph-media img,
  .ph-seam,
  .hero-service .ph-in {
    animation: phFade 400ms ease both;
  }
  .ph-media {
    clip-path: none;
  }
}

/* Alter weisser Breadcrumb-Balken (falls noch vorhanden) */
body > .breadcrumb {
  display: none;
}

/* ==========================================================================
   2. INHALTS-BEREICHE – dunkel wie die Startseite
   ========================================================================== */

.section {
  background: var(--bg);
  color: #fff;
}
.section.section-alt,
.before-after-section,
.faq-section {
  background: var(--bg-alt);
}
.dark-section,
.materials-section {
  background: var(--bg-deep);
}
.intro-section,
.process-section {
  background: var(--bg);
}

/* Überschriften wie "Unsere Leistungen" auf der Startseite */
.section-header h2 {
  color: #fff;
}
.section-header h2:after {
  height: 2px;
}
.section-header p {
  color: var(--text-soft);
}

/* Text-Blöcke */
.content-text h3,
.intro-text h3,
.hero-content h3 {
  color: #fff;
  letter-spacing: -0.02em;
}
.content-text p,
.content-text ul li,
.intro-text p,
.hero-content p {
  color: var(--text-muted);
}

/* Bilder */
.content-img,
.intro-img,
.hero-img {
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.content-img img,
.intro-img img {
  transition: transform 700ms var(--ease-out);
}

/* Karten */
.feature-card,
.timeline-content,
.stat-box,
.before-after-card,
.material-showcase-card,
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: none;
}
.feature-card:hover,
.material-showcase-card:hover,
.before-after-card:hover {
  box-shadow: none;
  border-color: var(--gold-line);
}

.feature-card h4,
.timeline-content h4,
.ba-content h5,
.material-content h4,
.process-step h4,
.faq-question h4 {
  color: #fff;
}
.feature-card p,
.timeline-content p,
.stat-label,
.ba-content p,
.material-content p,
.material-features li,
.process-step p,
.faq-answer p {
  color: var(--text-muted);
}

.material-card,
.comparison-card {
  border-width: 1px;
  border-radius: 4px;
}

/* Prozess-Schritte (Verdecke) */
.step-number {
  color: #111;
}

/* FAQ (Verdecke) */
.faq-question {
  background: transparent;
}
.faq-question:hover {
  background: rgba(255, 255, 255, 0.03);
}
.faq-toggle {
  color: #111;
}

/* Material-Bilder (Verdecke) */
.material-img {
  background: #222;
}
.material-badge {
  color: #111;
  border-radius: 2px;
  letter-spacing: 0.08em;
}

/* Timeline-Nummern (Leder) */
.timeline-marker {
  color: #111;
  box-shadow: 0 0 0 10px rgba(197, 157, 95, 0.12);
}

/* ==========================================================================
   3. ABSCHLUSS (Call-to-Action) – genähter Rahmen statt Farbverlauf
   ========================================================================== */

.cta-section {
  position: relative;
  padding: 110px 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 110%, rgba(197, 157, 95, 0.2), transparent 70%),
    var(--bg-deep);
}
.cta-section .container {
  position: relative;
  max-width: 980px;
  padding: 70px 40px;
  border: 1.5px dashed var(--gold-line);
  border-radius: 4px;
}
.cta-section h2 {
  color: #fff;
  letter-spacing: -0.02em;
}
.cta-section p {
  color: var(--text-muted);
}

/* Buttons wie auf der Startseite */
.btn {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #111;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 30px;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out),
    border-color 220ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:hover {
  background: transparent;
  color: var(--gold);
}
.btn:active {
  transform: scale(0.97);
}
.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.btn-secondary:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 70px 0;
  }
  .cta-section .container {
    width: calc(100% - 32px);
    padding: 48px 8px;
  }
}

footer {
  background: #0a0a0a;
  border-top: 1px solid var(--line);
}


/* Lange Wörter in den Kennzahlen dürfen umbrechen (Handy) */
.ph-facts span {
  hyphens: manual;
  overflow-wrap: break-word;
}
@media (max-width: 560px) {
  .ph-facts strong {
    font-size: 20px;
  }
}

/* Umschalter-Einträge immer einzeilig */
.ph-switch a {
  white-space: nowrap;
}

/* ==========================================================================
   4. ABLAUF-SCHRITTE – "Ziernaht"-Zeitleiste
   Grosse Kontur-Ziffer · Nahtknoten · Text. Beim Scrollen füllt sich die
   Ziffer mit Gold und die Naht "näht" sich zum nächsten Schritt.
   ========================================================================== */

.steps {
  --num-w: 104px;
  --col-gap: 34px;
  --node: 15px;
  --node-top: 16px;
  list-style: none;
  max-width: 880px;
  margin: 10px auto 0;
  padding: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--num-w) var(--node) minmax(0, 1fr);
  column-gap: var(--col-gap);
  align-items: start;
  padding-bottom: 68px;
}
.step:last-child {
  padding-bottom: 0;
}

/* Die Naht vom Knoten bis zum nächsten Knoten */
.step::before {
  content: "";
  position: absolute;
  left: calc(var(--num-w) + var(--col-gap) + var(--node) / 2 - 1px);
  top: calc(var(--node-top) + var(--node) + 8px);
  bottom: calc(8px - var(--node-top));
  width: 2px;
  background-image: linear-gradient(to bottom, var(--gold) 0 7px, transparent 7px 13px);
  background-size: 2px 13px;
  opacity: 0.7;
  clip-path: inset(0 0 0 0);
}
.step:last-child::before {
  display: none;
}

/* Ziffer – kursive Serifenschrift wie eine handgeschriebene Werkstatt-Nummer */
.step-num {
  margin-top: -14px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 66px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: right;
  font-variant-numeric: lining-nums;
  color: var(--gold);
  user-select: none;
}

/* Nahtknoten */
.step-node {
  position: relative;
  margin-top: var(--node-top);
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--bg);
  box-shadow: 0 0 0 6px rgba(197, 157, 95, 0.08);
}
.step-node::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.step-body {
  padding-top: 8px;
}
.step-body h4 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.step-body p {
  margin: 0;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* --- Einblenden beim Scrollen (nur wenn das Skript läuft) --- */
.steps.is-armed .step-num {
  opacity: 0.22;
  transform: translateY(8px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.steps.is-armed .step-node::after {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 300ms var(--ease-out) 150ms, transform 300ms var(--ease-out) 150ms;
}
.steps.is-armed .step-body {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease-out) 80ms, transform 600ms var(--ease-out) 80ms;
}
.steps.is-armed .step::before {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms var(--ease-in-out) 250ms;
}

.steps.is-armed .step.is-in .step-num {
  opacity: 1;
  transform: translateY(0);
}
.steps.is-armed .step.is-in .step-node::after {
  opacity: 1;
  transform: scale(1);
}
.steps.is-armed .step.is-in .step-body {
  opacity: 1;
  transform: translateY(0);
}
.steps.is-armed .step.is-in::before {
  clip-path: inset(0 0 0 0);
}

@media (max-width: 900px) {
  .steps {
    --num-w: 72px;
    --col-gap: 24px;
  }
  .step-num {
    margin-top: -10px;
    font-size: 54px;
  }
}

@media (max-width: 600px) {
  .steps {
    --num-w: 38px;
    --col-gap: 16px;
    --node: 13px;
    --node-top: 9px;
  }
  .step {
    padding-bottom: 44px;
  }
  .step-num {
    margin-top: -6px;
    font-size: 36px;
  }
  .step-body {
    padding-top: 2px;
  }
  .step-body h4 {
    font-size: 19px;
  }
  .step-body p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps.is-armed .step-body,
  .steps.is-armed .step-num {
    transform: none;
  }
  .steps.is-armed .step::before {
    clip-path: none;
  }
}
