/* =========================================================================
   DN PULSE - PULSE FINDER (visueller Prototyp)
   Eigenständiger, isolierter Baustein. Nutzt ausschließlich Tokens und
   Bausteine aus tokens.css / base.css / components.css / animations.css.
   Präfix "pf-" für alle neuen Klassen, damit nichts mit dem Rest der
   Seite kollidiert.
   ========================================================================= */

html, body { height: 100%; overflow: hidden; background: var(--color-bg); }

button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pf-app {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--color-bg);
}

.pf-stage {
  position: absolute;
  inset: 0;
  display: flex;
}

/* ================================================================== */
/* 1. STARTSCREEN                                                     */
/* ================================================================== */

/* Reset: der Startscreen ist bewusst kein eigenes visuelles System mehr,
   sondern nutzt exakt die Bausteine des echten DN-PULSE-Hero
   (hero__atmos, hero__brand, hero__title, hero__subline, hero__actions
   aus hero.css) - andere Copy, gleiche Sprache. Nur Layout/Buehne und
   der Uebergang zur Branchenauswahl sind hier neu. */
.pf-start {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg);
  transition: opacity var(--duration-slower) var(--ease-standard),
              filter var(--duration-slower) var(--ease-standard);
}
.pf-app[data-stage="industry"] .pf-start,
.pf-app[data-stage="finder"] .pf-start {
  opacity: 0;
  filter: blur(6px);
  pointer-events: none;
}
/* Beim Uebergang zur Branchen-Buehne bewusst langsamer und komplett
   abgeschlossen ausblenden, BEVOR die Buehne ueberhaupt zu erscheinen
   beginnt (siehe transition-delay auf .pf-industry/::before weiter
   unten) - kein Ueberblenden, ein klarer Szenenwechsel. */
.pf-app[data-stage="industry"] .pf-start {
  transition-duration: 900ms;
}

.pf-start__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(var(--space-5), 2.6vw, var(--space-7));
  max-width: 40rem;
  text-align: center;
  padding: var(--space-6);
}
.pf-start__content > * { animation: dnp-rise 0.7s var(--ease-out) both; }
.pf-start__content > *:nth-child(1) { animation-delay: 0.05s; }
.pf-start__content > *:nth-child(2) { animation-delay: 0.13s; }
.pf-start__content > *:nth-child(3) { animation-delay: 0.21s; }
.pf-start__content > *:nth-child(4) { animation-delay: 0.29s; }

.pf-start .hero__brand { align-items: center; }
.pf-start .hero__title { max-width: none; }

@keyframes pf-start-exit {
  to { opacity: 0; transform: scale(0.97); filter: blur(6px); }
}
.pf-app[data-stage="industry"] .pf-start__content,
.pf-app[data-stage="finder"] .pf-start__content {
  animation: pf-start-exit var(--duration-slower) var(--ease-in) both;
}
.pf-app[data-stage="industry"] .pf-start__content {
  animation-duration: 900ms;
}

/* ================================================================== */
/* 2. BRANCHENAUSWAHL                                                 */
/* ================================================================== */

.pf-industry {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-8), 6vh, var(--space-16));
  padding: var(--space-8) var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slower) var(--ease-standard);
}
.pf-app[data-stage="industry"] .pf-industry {
  opacity: 1;
  pointer-events: auto;
  /* Beginnt erst, NACHDEM der Startscreen komplett ausgeblendet ist
     (900ms) plus einer kurzen dunklen Pause (150ms) - kein Ueberblenden,
     ein klar getrennter Szenenwechsel: erst weg, dann Buehne. */
  transition: opacity 900ms var(--ease-out) 1050ms;
}
.pf-app[data-stage="finder"] .pf-industry {
  opacity: 0;
  pointer-events: none;
  transition-duration: var(--duration-base);
}

.pf-industry__q {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  text-align: center;
  animation: dnp-rise 0.7s var(--ease-out) both;
}

.pf-industry__stage {
  position: relative;
  width: min(100%, 84rem);
  height: clamp(20rem, 44vh, 28rem);
  perspective: 2000px;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.pf-industry__stage.is-dragging { cursor: grabbing; }

/* Buehnen-Szene: gerendertes Hintergrundbild (Sockel + Lichtkegel) statt
   nachgebauter CSS-Verlaeufe. Faellt per Definition immer auf die
   Bildmitte - genau dort steht immer die aktive Karte (die einzige mit
   offset 0) - und muss sich deshalb nie aktiv "mitbewegen": Karten
   wandern beim Ziehen durch die Szene hindurch, wie ein Auftritt unter
   einem fest installierten Buehnenlicht. Als ::before auf der Buehne
   selbst, damit buildCarousel()'s innerHTML-Ersetzung der Karten es
   nicht mit wegraeumt. Breite an die Kartengroesse gekoppelt (nicht an
   eine eigene vw-Klammer), damit Bild und Karte bei jeder Breakpoint-
   Groesse im gleichen Verhaeltnis zueinander bleiben. Der weiche
   Masken-Verlauf loest die Bildkante auf, damit kein Rechteck-Rand
   gegen den Seitenhintergrund sichtbar wird. */
.pf-industry__stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(clamp(13rem, 21vw, 18.5rem) * 2.6);
  aspect-ratio: 3 / 2;
  translate: -50% -40%;
  /* Bildinhalt bleibt scharf - nur der Rand verschmilzt mit der Seite.
     Statt einer Alpha-Maske (die nur "durchsichtig" wird und je nach
     Kontrast trotzdem hart wirken kann) liegt ein Verlauf ALS ZWEITE
     EBENE ueber dem Bild, der am Rand exakt zur echten Seiten-
     Hintergrundfarbe ueberblendet - das garantiert eine nahtlose Kante,
     unabhaengig vom Bildinhalt darunter. */
  background-image:
    radial-gradient(ellipse 58% 56% at 50% 54%, transparent 30%, var(--color-bg) 96%),
    url("/assets/img/pulse-finder-stage.png");
  background-size: 100% 100%, contain;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  pointer-events: none;
  z-index: 1;
}

/* Uebergang Start -> Branche: dieselbe Buehnengrafik (Sockel + Lichtkegel)
   faedet aus dem Dunkel ein und wird dabei zunehmend heller, statt einfach
   nur sichtbar zu werden - wirkt wie ein langsam hochgefahrenes Buehnen-
   licht, ohne dass eine neue Lichtquelle noetig waere. Startet mit einem
   kleinen Versatz zum Startscreen-Fadeout (siehe .pf-industry oben) und
   haelt per "both" den 0%-Zustand waehrend der Verzoegerung, damit nichts
   kurz aufblitzt. */
@keyframes pf-stage-ignite {
  0%   { opacity: 0; filter: brightness(0.32) saturate(0.6); }
  60%  { opacity: 0.8; filter: brightness(0.6) saturate(0.82); }
  100% { opacity: 1; filter: brightness(1) saturate(1); }
}
.pf-app[data-stage="industry"] .pf-industry__stage::before {
  animation: pf-stage-ignite 900ms var(--ease-out) 1050ms both;
}

/* Waehrend die Karten sich zu Beginn aus der Buehnenmitte aufbauen, ist
   das Karussell bewusst nicht bedienbar - danach unveraendert wie zuvor.
   Ruehrt NICHT an setupCarouselDrag()/onCardTap() selbst. */
.pf-industry__stage.is-locked { pointer-events: none; }

/* Nur waehrend eines aktiven TOUCH-Drags: die sonst auf .pf-card
   liegende 420ms-Transform-Transition wuerde jede Fingerbewegung
   nachlaufend "eindaempfen" statt sie 1:1 zu uebernehmen - genau das
   fuehlte sich auf dem iPad verzoegert/ruckelig an. Bewusst auf Touch
   begrenzt (eigene Klasse), damit sich am bestehenden Desktop-Verhalten
   (Maus nutzt weiterhin .is-dragging) nichts aendert. */
.pf-industry__stage.is-touch-dragging .pf-card { transition: none; }

.pf-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(9.75rem, 16vw, 14.5rem);
  height: clamp(11rem, 18vw, 15.75rem);
  margin: calc(clamp(11rem, 18vw, 15.75rem) / -2) 0 0 calc(clamp(9.75rem, 16vw, 14.5rem) / -2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-5);
  /* Glasig statt blickdicht - bereitet die Karten auf Stockfotos als
     Kartenhintergrund vor (Frosted-Glass-Look: Foto scheint weich durch,
     backdrop-filter haelt den Text trotzdem lesbar). */
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--color-surface) 50%, transparent),
      color-mix(in srgb, var(--color-surface) 34%, transparent)) padding-box,
    var(--gradient-brand-soft) border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  /* Ohne overflow:hidden ragen quadratische Kind-Ebenen (z. B. das
     Duoton-Overlay auf dem Foto) mit scharfen Ecken über die runde
     Kontur der Karte hinaus - erst das schneidet wirklich alles auf
     den Radius zurecht. */
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: center;
  touch-action: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition:
    transform var(--duration-slow) var(--ease-out),
    filter var(--duration-slow) var(--ease-out),
    opacity var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
  will-change: transform, filter, opacity;
}
.pf-card__icon {
  position: relative;
  width: clamp(2.3rem, 3.8vw, 3rem);
  height: clamp(2.3rem, 3.8vw, 3rem);
  color: var(--color-text-strong);
}
.pf-card__icon svg { width: 100%; height: 100%; }
.pf-card__label {
  position: relative;
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: var(--leading-snug);
}

/* ---- Stockfoto-Karten: Foto + Duoton-Overlay in DN-PULSE-Farben statt
   Icon. Die vorhandene, distanzabhaengige Graustufen-/Helligkeits-
   Filterung in renderCarousel() (JS) liegt bereits auf der GANZEN Karte
   und wirkt automatisch auch hier: je weiter eine Karte von der Mitte
   entfernt ist, desto mehr verblasst sie zu Grau/Dunkel - "nur wenig
   Farbe kommt rueber". Fuer die aktive Karte (kein JS-Filter) bleibt
   dadurch nur das eigene, markentypische Blau-Gruen-Duoton uebrig - kein
   rohes Fotofarbenbild. Es braucht also keinen eigenen is-active-Zweig
   hier, die bestehende Logik uebernimmt das automatisch. ---- */
.pf-card--photo .pf-card__icon { display: none; }
.pf-card__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* Dunkle, stark entsaettigte Grundstufe - das ist die INAKTIV-Stufe.
     Die aktive Karte hebt das unten gezielt wieder auf, statt (wie
     zuvor) denselben gedaempften Zustand auch fuer die aktive Karte zu
     uebernehmen. */
  filter: brightness(0.46) contrast(1.02) saturate(0.7);
  transition: filter var(--duration-slow) var(--ease-out);
}
.pf-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  mix-blend-mode: color;
  opacity: 0.82;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.pf-card.is-active .pf-card__photo {
  filter: brightness(1.04) contrast(1.06) saturate(1.05);
}
.pf-card.is-active .pf-card__photo::after {
  opacity: 0.3;
}
.pf-card__shade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg,
    rgba(5, 7, 13, 0.05) 0%,
    rgba(5, 7, 13, 0.18) 45%,
    rgba(5, 7, 13, 0.66) 100%);
}
.pf-card--photo .pf-card__label {
  color: var(--color-text-strong);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.pf-card.is-active {
  box-shadow:
    var(--shadow-lg),
    0 0 46px -12px rgba(26, 134, 255, 0.30),
    0 0 76px -26px rgba(18, 184, 132, 0.22),
    /* Lichteinfall von oben auf die Kartenflaeche selbst - nicht nur
       Glow drumherum, sondern ein echter heller Schein auf der
       Oberflaeche, wie vom Buehnenlicht getroffen. */
    inset 0 54px 80px -38px rgba(255, 255, 255, 0.16),
    inset 0 2px 0 rgba(255, 255, 255, 0.10);
  border: 1px solid transparent;
}
.pf-card.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
/* Sehr dezenter Lichtreflex, der langsam ueber die aktive Karte laeuft -
   ein kurzer Schimmer, dann eine lange Pause. Technik: die Verlaufs-
   grafik wird als Kachel wiederholt (background-repeat) und um exakt
   eine Kachelbreite verschoben (0% -> 400% bei 400% Kachelgroesse).
   Start- und Endzustand sind dadurch bildidentisch, der Loop hat also
   keinen sichtbaren Sprung/Reset - nur EINE Bewegung, endlos nahtlos
   fortgesetzt, mit linear statt easing fuer gleichmaessiges Tempo. */
.pf-card.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(115deg,
    transparent 0%,
    transparent 44%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 56%,
    transparent 100%);
  background-repeat: repeat;
  background-size: 400% 400%;
  background-position: 0% 0%;
  pointer-events: none;
  animation: pf-card-shine 13s linear infinite;
}
@keyframes pf-card-shine {
  from { background-position: 0% 0%; }
  to   { background-position: 400% 400%; }
}
.pf-card.is-active .pf-card__label { color: var(--color-text-strong); }
.pf-card.is-hidden { pointer-events: none; }

.pf-industry__hint {
  position: relative;
  z-index: 2;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  text-align: center;
  animation: dnp-fade-in 1s var(--ease-out) 0.3s both;
}

/* Auswahl-Übergang: Branchen-Bühne verschwindet, Karte wird zum Chip */
@keyframes pf-industry-exit {
  to { opacity: 0; transform: translateY(-18px) scale(0.96); }
}
.pf-app[data-stage="finder"] .pf-industry__q,
.pf-app[data-stage="finder"] .pf-industry__hint {
  animation: pf-industry-exit var(--duration-base) var(--ease-in) both;
}

/* ================================================================== */
/* 3. FINDER                                                           */
/* ================================================================== */

.pf-finder {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(320px, 34%) 1fr;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}
.pf-app[data-stage="finder"] .pf-finder {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0.15s;
}

/* ---- linke Spalte: Gespräch ---- */
.pf-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(var(--space-5), 3vw, var(--space-10)) clamp(var(--space-5), 3vw, var(--space-8));
  border-right: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-bg-subtle), var(--color-bg) 60%);
  overflow: hidden;
}

.pf-chat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-5);
  flex: 0 0 auto;
}
.pf-chat__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  font-size: var(--text-sm);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.pf-chat__brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: var(--glow-soft);
}

.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-strong);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  opacity: 0;
  transform: scale(0.9);
  animation: pf-chip-in var(--duration-slow) var(--ease-spring) 0.5s both;
}
.pf-chip svg { width: 14px; height: 14px; }
@keyframes pf-chip-in { to { opacity: 1; transform: none; } }

.pf-chat__log {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-right: var(--space-1);
  scroll-behavior: smooth;
}
.pf-chat__log::-webkit-scrollbar { width: 6px; }

/* Beantwortete Schritte: kompakte Rekapitulation */
.pf-step {
  animation: dnp-rise 0.5s var(--ease-out) both;
}
.pf-step--done {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  opacity: 0.75;
}
.pf-step--done .pf-step__q {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  margin-bottom: var(--space-1);
}
.pf-step--done .pf-step__a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.pf-step--done .pf-step__a span {
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-strong);
  font-size: var(--text-xs);
}

/* Aktueller Schritt: prominente Karte */
.pf-step--active {
  padding: var(--space-5) var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    var(--gradient-brand-soft) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md), var(--shadow-inset);
}
.pf-step__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.pf-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.pf-field .input {
  flex: 1;
  font-size: var(--text-lg);
  padding-inline-end: var(--space-10);
}
.pf-field__go {
  position: absolute;
  right: 6px;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--gradient-brand);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-fast) var(--ease-out);
}
.pf-field__go svg { width: 16px; height: 16px; }
.pf-field__go.is-ready { opacity: 1; transform: none; pointer-events: auto; box-shadow: var(--glow-soft); }
.pf-field__go:hover.is-ready { box-shadow: var(--glow-primary); }

.pf-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.pf-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-4);
  text-align: left;
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: var(--transition-colors), var(--transition-transform), box-shadow var(--duration-fast) var(--ease-out);
}
.pf-choice__icon {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--color-text-muted);
  transition: var(--transition-colors);
}
.pf-choice__icon svg { width: 100%; height: 100%; }
.pf-choice:hover { transform: translateY(-2px); border-color: var(--color-border-strong); }
.pf-choice.is-selected {
  background: color-mix(in srgb, var(--color-primary) 14%, var(--color-surface-raised));
  border-color: var(--color-primary);
  box-shadow: var(--glow-soft);
}
.pf-choice.is-selected .pf-choice__icon { color: var(--color-secondary-hover); }

.pf-step__next {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), var(--transition-colors);
}
.pf-step__next svg { width: 14px; height: 14px; }
.pf-step__next.is-ready { opacity: 1; transform: none; pointer-events: auto; }
.pf-step__next:hover { color: var(--color-text-strong); border-color: var(--color-primary); }

.pf-chat__progress {
  display: flex;
  gap: var(--space-2);
  padding-top: var(--space-5);
  flex: 0 0 auto;
}
.pf-chat__progress span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border-strong);
  transition: var(--transition-colors), var(--transition-transform);
}
.pf-chat__progress span.is-done { background: var(--color-secondary); }
.pf-chat__progress span.is-current { background: var(--color-primary); transform: scale(1.4); box-shadow: var(--glow-soft); }

/* Dynamische Gespraechs-Engine: dezente Zurueck-Funktion und optionaler
   "Weiss ich nicht"-Ausweg, direkt in der bestehenden Schritt-Karte - kein
   neuer Baustein, nur zwei kleine, ruhige Textbuttons im selben Vokabular
   wie .pf-step__next (gleiche Tokens, keine neuen Farben/Effekte). */
.pf-step__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: var(--transition-colors);
}
.pf-step__back svg { width: 13px; height: 13px; }
.pf-step__back:hover { color: var(--color-text-strong); }

.pf-step__skip {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: var(--transition-colors);
}
.pf-step__skip:hover { color: var(--color-text-muted); }

.pf-step--outro { text-align: left; }
.pf-step--outro .pf-step__title { margin-bottom: var(--space-2); }
.pf-step--outro p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }

/* Finaler Abschluss (Restaurant): ruhiger Hoehepunkt statt Formular-Ende.
   Nur bestehende Tokens/Abstaende, keine neue Farbwelt, keine neue
   Animation. Der Hinweis-Block nutzt bewusst dieselben neutralen
   Oberflaechen wie der Rest der Karte (kein Gelb/Rot) - sichtbar, aber
   kein Warnhinweis. */
.pf-outro__summary {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.pf-outro__row { display: grid; grid-template-columns: 8rem 1fr; gap: var(--space-4); align-items: baseline; }
.pf-outro__row dt { font-size: var(--text-xs); color: var(--color-text-subtle); }
.pf-outro__row dd { font-size: var(--text-sm); color: var(--color-text-strong); font-weight: var(--font-weight-medium); }

.pf-outro__note {
  position: relative;
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
}
.pf-outro__note::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-3);
  bottom: var(--space-3);
  width: 3px;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand-soft);
}
.pf-outro__note-title { font-weight: var(--font-weight-semibold); color: var(--color-text-strong); margin-bottom: var(--space-2); }
.pf-outro__note p + p { margin-top: var(--space-2); }

.pf-outro__cta {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.pf-outro__cta h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.pf-outro__cta .btn { margin-top: var(--space-4); }
.pf-outro__cta-status { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-text-subtle); }
.pf-outro__cta-status.is-ok { color: var(--color-success); }
.pf-outro__cta-status.is-err { color: var(--color-danger); }

/* ---- rechte Spalte: Live-Vorschau ---- */
.pf-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(var(--space-5), 3vw, var(--space-10));
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(26, 134, 255, 0.08), transparent 60%),
    var(--color-bg);
  overflow: hidden;
}

.pf-browser {
  width: 100%;
  max-width: 58rem;
  height: 100%;
  max-height: 46rem;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
}

.pf-browser__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-raised);
  border-bottom: 1px solid var(--color-border);
}
.pf-browser__dots { display: flex; gap: 6px; }
.pf-browser__dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border-strong); }
.pf-browser__url {
  flex: 1;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-site {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.pf-site__nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.pf-site__brand {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-md);
  color: var(--color-text-strong);
  transition: color var(--duration-base) var(--ease-out);
}
.pf-site__navlinks { display: flex; gap: var(--space-5); }
.pf-site__navlinks a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}
.pf-site__navlinks a:hover { color: var(--color-text-strong); }
.pf-site__navcta {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-spring);
}
.pf-site__navcta.is-on { opacity: 1; transform: none; pointer-events: auto; }

.pf-site__hero {
  position: relative;
  padding: clamp(var(--space-10), 8vw, var(--space-16)) var(--space-6) clamp(var(--space-8), 6vw, var(--space-12));
  text-align: center;
  background: var(--gradient-pulse);
  overflow: hidden;
}
.pf-site__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
  transition: opacity var(--duration-base) var(--ease-out);
}
.pf-site__title {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  color: var(--color-text-strong);
  transition: color var(--duration-base) var(--ease-out);
}
.pf-site__title.is-placeholder { color: var(--color-text-subtle); }
.pf-site__sub {
  max-width: 34rem;
  margin: var(--space-3) auto 0;
  color: var(--color-text-muted);
  font-size: var(--text-md);
}
.pf-site__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.pf-site__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  cursor: default;
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity var(--duration-slow) var(--ease-spring), transform var(--duration-slow) var(--ease-spring), max-width var(--duration-slow) var(--ease-out), margin var(--duration-slow) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.pf-site__cta.is-on { opacity: 1; transform: none; max-width: 16rem; }
.pf-site__cta--primary { background: var(--gradient-brand); color: #fff; }
.pf-site__cta--primary.is-on { box-shadow: var(--glow-soft); }
.pf-site__cta--ghost { border: 1px solid var(--color-border-strong); color: var(--color-text); }

/* ---- dynamische Module: sanftes Ein-/Ausblenden per Grid-Trick ---- */
.pf-module {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-slower) var(--ease-out);
}
.pf-module.is-on { grid-template-rows: 1fr; }
.pf-module__inner { overflow: hidden; min-height: 0; }
.pf-block {
  padding: clamp(var(--space-8), 6vw, var(--space-12)) var(--space-6);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
.pf-module.is-on .pf-block { opacity: 1; transform: none; transition-delay: 140ms; }
.pf-block + .pf-block { border-top: 1px solid var(--color-border); }

.pf-block__head { text-align: center; margin-bottom: var(--space-8); }
.pf-block__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}
.pf-block__title { font-size: var(--text-2xl); }

/* Block-Layout-Helfer, branchenunabhaengig wiederverwendbar */
.pf-block--split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-8);
  align-items: center;
}
.pf-block--center { max-width: 34rem; margin-inline: auto; text-align: center; }
.pf-block--center p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
@media (max-width: 640px) {
  .pf-block--split { grid-template-columns: 1fr; }
}

/* ---- Bild-Platzhalter: fuer noch nicht vorhandene Motive. Deutlich als
   Platzhalter erkennbar (gestrichelter Rand, Diagonal-Raster, Klartext-
   Label), keine echten Fotos, keine generierten Dummy-Bilder. ---- */
.pf-imgph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--color-border-strong) 60%, transparent) 0 1px,
      transparent 1px 14px),
    linear-gradient(160deg, var(--color-surface-raised), var(--color-surface));
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
}
.pf-imgph--bleed { border: 0; border-radius: 0; }

/* Echtes Foto an derselben Stelle wie zuvor der Platzhalter: gleiche
   Groesse (aspect-ratio kommt weiterhin per Inline-Style vom Aufrufer),
   gleiche Rundung, nur ohne Raster/Label - object-fit haelt das Bild
   unverzerrt, auch wenn das Quellbild ein anderes Seitenverhaeltnis hat. */
.pf-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.pf-photo--bleed { border-radius: 0; }
.pf-imgph__label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-subtle);
  padding: var(--space-1) var(--space-3);
  background: color-mix(in srgb, var(--color-bg) 65%, transparent);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ==================================================================== */
/* VISUELLE STILRICHTUNG (Restaurant)                                   */
/* Ein kleiner Satz --rs-*-Variablen treibt alle betroffenen Bauteile
   der KUNDEN-Vorschau gemeinsam an - keine Sonderfaelle pro Komponente.
   Ohne gewaehlten Stil (kein Inline-Wert von applyStyleVars() gesetzt)
   greifen die var(...)-Fallbacks und ergeben exakt das bisherige
   Erscheinungsbild ("Modern" braucht deshalb in pulse-finder.js keine
   eigenen Werte). Wirkt bewusst NUR innerhalb von #pfSiteRestaurant -
   das DN-PULSE-eigene Chrome (Chat, Buehne, Karussell) bleibt in seiner
   festen Markenfarbwelt unberuehrt. Eine spaetere Branche kann denselben
   Mechanismus 1:1 fuer ihren eigenen Vorschau-Container wiederverwenden. */
#pfSiteRestaurant .pf-site__title,
#pfSiteRestaurant .pf-block__title,
#pfSiteRestaurant .pf-site__brand {
  font-family: var(--rs-heading-font, var(--font-display));
  font-weight: var(--rs-heading-weight, var(--font-weight-semibold));
  letter-spacing: var(--rs-heading-tracking, normal);
}
#pfSiteRestaurant .pf-site__eyebrow,
#pfSiteRestaurant .pf-block__eyebrow {
  color: var(--rs-accent, var(--color-secondary));
}
#pfSiteRestaurant .pf-site__cta--primary,
#pfSiteRestaurant .pf-site__navcta {
  background: var(--rs-cta-gradient, var(--gradient-brand));
}
#pfSiteRestaurant .pf-photo { border-radius: var(--rs-photo-radius, var(--radius-lg)); }
#pfSiteRestaurant .pf-photo--bleed { border-radius: 0; }

/* ==================================================================== */
/* VISUELLE STILRICHTUNG (Friseur & Beauty)                              */
/* Zweite Branche, derselbe Mechanismus wie oben bei Restaurant - eigenes
   Praefix (--fb-*) statt --rs-*, damit sich beide Branchen nie
   gegenseitig beeinflussen (jede ist ohnehin ueber ihren eigenen
   #pfSiteXxx-Container gekapselt). Werte bewusst innerhalb der
   bestehenden DN-PULSE-Farbwelt (blue-/green-Skala), kein Gold/Rosé/
   Pink/Violett - siehe FRISEUR_STYLES in pulse-finder.js. */
#pfSiteFriseur .pf-site__title,
#pfSiteFriseur .pf-block__title,
#pfSiteFriseur .pf-site__brand {
  font-family: var(--fb-heading-font, var(--font-display));
  font-weight: var(--fb-heading-weight, var(--font-weight-semibold));
  letter-spacing: var(--fb-heading-tracking, normal);
}
#pfSiteFriseur .pf-site__eyebrow,
#pfSiteFriseur .pf-block__eyebrow {
  color: var(--fb-accent, var(--color-secondary));
}
#pfSiteFriseur .pf-site__cta--primary,
#pfSiteFriseur .pf-site__navcta {
  background: var(--fb-cta-gradient, var(--gradient-brand));
}
#pfSiteFriseur .pf-photo,
#pfSiteFriseur .pf-imgph {
  border-radius: var(--fb-photo-radius, var(--radius-lg));
}
#pfSiteFriseur .pf-photo--bleed,
#pfSiteFriseur .pf-imgph--bleed {
  border-radius: 0;
}

/* ==================================================================== */
/* VISUELLE STILRICHTUNG (die 22 generischen Branchen)                   */
/* Derselbe Mechanismus wie oben bei Restaurant/Friseur, aber EIN
   gemeinsames Praefix (--gp-*) fuer alle generischen Branchen, da immer
   nur eine davon gleichzeitig sichtbar ist (siehe GENERIC_STYLES in
   pulse-finder.js) - kein 23. Farbschema, sondern dieselben DN-PULSE
   blue-/green-Werte wie bei Friseur. */
#pfSiteGeneric .pf-site__title,
#pfSiteGeneric .pf-block__title,
#pfSiteGeneric .pf-site__brand {
  font-family: var(--gp-heading-font, var(--font-display));
  font-weight: var(--gp-heading-weight, var(--font-weight-semibold));
  letter-spacing: var(--gp-heading-tracking, normal);
}
#pfSiteGeneric .pf-site__eyebrow,
#pfSiteGeneric .pf-block__eyebrow {
  color: var(--gp-accent, var(--color-secondary));
}
#pfSiteGeneric .pf-site__cta--primary,
#pfSiteGeneric .pf-site__navcta {
  background: var(--gp-cta-gradient, var(--gradient-brand));
}
#pfSiteGeneric .pf-photo,
#pfSiteGeneric .pf-imgph {
  border-radius: var(--gp-photo-radius, var(--radius-lg));
}
#pfSiteGeneric .pf-photo--bleed,
#pfSiteGeneric .pf-imgph--bleed {
  border-radius: 0;
}

/* Stilwahl-Karten (Frage "Welche Richtung gefaellt dir?"): jede Karte
   zeigt sich bereits in ihrer eigenen Typografie/Akzentfarbe (dieselben
   --rs-*-Variablen, per JS direkt auf die einzelne Karte gesetzt) - ein
   echter Vorgeschmack statt eines generischen Icon-Buttons. Layout und
   Zustaende folgen bewusst .pf-choice (gleiches Vokabular, keine neue
   Interaktions-/Animationssprache). */
.pf-style-grid { display: flex; flex-direction: column; gap: var(--space-3); }
.pf-style-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-colors), var(--transition-transform), box-shadow var(--duration-fast) var(--ease-out);
}
.pf-style-card:hover { transform: translateY(-2px); }
.pf-style-card.is-selected {
  background: color-mix(in srgb, var(--color-primary) 14%, var(--color-surface-raised));
  border-color: var(--color-primary);
  box-shadow: var(--glow-soft);
}
/* Jede Stil-Karte bekommt ihre Branchen-Variablen direkt per Inline-Style
   (question.applyStyleTo(), siehe pulse-finder.js) - welches Praefix
   tatsaechlich gesetzt ist, haengt davon ab, welche Branche gerade fragt.
   Verkettete Fallbacks (--rs-* -> --fb-* -> globaler Standard) machen
   dieselbe Karten-CSS fuer jede Branche richtig, ohne Sonderfaelle: nur
   das jeweils GESETZTE Praefix wirkt, die anderen bleiben ungenutzt. */
.pf-style-card__sample {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rs-photo-radius, var(--fb-photo-radius, var(--gp-photo-radius, var(--radius-md))));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-family: var(--rs-heading-font, var(--fb-heading-font, var(--gp-heading-font, var(--font-display))));
  font-weight: var(--rs-heading-weight, var(--fb-heading-weight, var(--gp-heading-weight, var(--font-weight-semibold))));
  letter-spacing: var(--rs-heading-tracking, var(--fb-heading-tracking, var(--gp-heading-tracking, normal)));
  color: var(--rs-accent, var(--fb-accent, var(--gp-accent, var(--color-secondary))));
  font-size: var(--text-lg);
  transition: var(--transition-colors);
}
.pf-style-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-style-card__label {
  font-family: var(--rs-heading-font, var(--fb-heading-font, var(--gp-heading-font, var(--font-display))));
  font-weight: var(--rs-heading-weight, var(--fb-heading-weight, var(--gp-heading-weight, var(--font-weight-semibold))));
  letter-spacing: var(--rs-heading-tracking, var(--fb-heading-tracking, var(--gp-heading-tracking, normal)));
  color: var(--color-text-strong);
  font-size: var(--text-sm);
}
.pf-style-card__sub { font-size: var(--text-xs); color: var(--color-text-subtle); }

/* Kompakte, DAUERHAFT anklickbare Variante in der "erledigt"-Kachel -
   anders als bei allen anderen Fragen bleibt diese Auswahl direkt im
   Gespraechsverlauf jederzeit aenderbar, ohne erst per "Zurueck"
   dorthin zurueckzumuessen. */
.pf-style-grid--sm { flex-direction: row; gap: var(--space-2); }
.pf-style-card--sm {
  flex: 1;
  padding: var(--space-2);
  gap: var(--space-2);
  border-radius: var(--radius-sm);
}
.pf-style-card--sm .pf-style-card__sample { width: 2rem; height: 2rem; font-size: var(--text-sm); }
.pf-style-card--sm .pf-style-card__label { font-size: var(--text-2xs); }

/* Hero mit Bild-Platzhalter im Hintergrund statt reinem Verlauf -
   fuer Branchen, deren Vorschau mit einem grossflaechigen Motiv startet. */
.pf-site__hero--photo { text-align: center; }
.pf-site__hero-media { position: absolute; inset: 0; z-index: 0; }
.pf-site__hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg,
    rgba(5, 7, 13, 0.35) 0%,
    rgba(5, 7, 13, 0.72) 65%,
    var(--color-bg) 100%);
}
.pf-site__hero-content { position: relative; z-index: 1; }

/* Leistungen */
.pf-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); max-width: 56rem; margin-inline: auto; }
.pf-service-card { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); text-align: left; }
.pf-service-card__name { font-weight: var(--font-weight-semibold); color: var(--color-text-strong); margin-bottom: var(--space-1); }
.pf-service-card__price { font-size: var(--text-xs); color: var(--color-secondary); }

/* Galerie */
.pf-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); max-width: 50rem; margin-inline: auto; }
.pf-gallery__tile {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
}
.pf-gallery__tile svg { width: 26%; height: 26%; }
.pf-gallery__tile:nth-child(6n+1) { background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); }
.pf-gallery__tile:nth-child(6n+2) { background: linear-gradient(135deg, var(--green-700), var(--green-900)); }
.pf-gallery__tile:nth-child(6n+3) { background: linear-gradient(135deg, var(--pink-600), var(--ink-900)); }
.pf-gallery__tile:nth-child(6n+4) { background: linear-gradient(135deg, var(--ink-600), var(--blue-800)); }
.pf-gallery__tile:nth-child(6n+5) { background: linear-gradient(135deg, var(--green-600), var(--ink-800)); }
.pf-gallery__tile:nth-child(6n+6) { background: linear-gradient(135deg, var(--blue-600), var(--green-800)); }

/* Vertrauen / Bewertungen */
.pf-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); max-width: 46rem; margin-inline: auto; }
.pf-review { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); text-align: left; }
.pf-review__stars { color: var(--color-warning); font-size: var(--text-sm); letter-spacing: 0.15em; margin-bottom: var(--space-2); }
.pf-review__quote { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); margin-bottom: var(--space-3); }
.pf-review__name { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); color: var(--color-text); }

/* Team */
.pf-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); max-width: 44rem; margin-inline: auto; text-align: center; }
.pf-team__avatar {
  width: 4.2rem; height: 4.2rem; margin: 0 auto var(--space-3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--font-weight-bold);
  color: #fff; background: var(--gradient-brand);
}
.pf-team__name { font-weight: var(--font-weight-semibold); color: var(--color-text-strong); }
.pf-team__role { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Ueber uns */
.pf-about { max-width: 40rem; margin-inline: auto; text-align: center; }
.pf-about p { color: var(--color-text-muted); line-height: var(--leading-relaxed); }
.pf-about blockquote { margin-top: var(--space-5); font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text-strong); }

/* Preise */
.pf-pricing { max-width: 34rem; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-3); }
.pf-price-row { display: flex; justify-content: space-between; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); font-size: var(--text-sm); }
.pf-price-row strong { color: var(--color-secondary-hover); }

/* FAQ */
.pf-faq { max-width: 38rem; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-2); }
.pf-faq details { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); }
.pf-faq summary { cursor: pointer; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--color-text); }
.pf-faq p { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }

/* Standort */
.pf-location { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-6); max-width: 46rem; margin-inline: auto; align-items: center; text-align: left; }
.pf-location__map {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 45%, rgba(26,134,255,0.25), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 28px),
    var(--color-surface-raised);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
}
.pf-location__pin { width: 2rem; height: 2rem; color: var(--color-accent); filter: drop-shadow(var(--glow-accent)); }
.pf-location p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); }
.pf-location__addr { color: var(--color-text-strong); font-weight: var(--font-weight-medium); margin-bottom: var(--space-2); }

/* Kontakt */
.pf-contact { max-width: 30rem; margin-inline: auto; text-align: center; }
.pf-contact p { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-1); }
.pf-contact a.btn { margin-top: var(--space-4); }

.pf-site__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  border-top: 1px solid var(--color-border);
}

/* ================================================================== */
/* Responsive                                                          */
/* ================================================================== */

@media (max-width: 1024px) {
  .pf-finder { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pf-chat { border-right: none; border-bottom: 1px solid var(--color-border); max-height: 46vh; }
  .pf-services, .pf-team { grid-template-columns: repeat(2, 1fr); }
  .pf-trust, .pf-location { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pf-choices { grid-template-columns: 1fr; }
  .pf-services, .pf-team, .pf-gallery { grid-template-columns: repeat(2, 1fr); }
  .pf-site__navlinks { display: none; }
  .pf-outro__row { grid-template-columns: 1fr; gap: var(--space-1); }
}

/* Der Startscreen selbst braucht keine eigene reduced-motion-Regel mehr:
   er nutzt jetzt ausschliesslich hero.css-Klassen, deren Bewegung dort
   bereits sitesweit behandelt wird (siehe hero.css und base.css). */


/* ================================================================== */
/* NEUES DESIGN (2026-11): Farbwelt der Startseite + Bento-Branchenwahl */
/* Petrol-/Eisblau, Sand-Gold auf tiefem Navy - ersetzt hier das       */
/* globale Blau/Gruen/Pink aus tokens.css, wie auf der Startseite.     */
/* ================================================================== */
.pf-app {
  --color-bg:              #070B10;
  --color-bg-subtle:       #0A1118;
  --color-surface:         #0E1A24;
  --color-surface-raised:  #162836;
  --color-border:          #2B3F4D;
  --color-border-strong:   color-mix(in srgb, #2B3F4D 55%, #8FA3AE 45%);

  --color-text:            #E7E2D8;
  --color-text-strong:     #F1EDE6;
  --color-text-muted:      #8FA3AE;
  --color-text-subtle:     color-mix(in srgb, #8FA3AE 60%, #070B10 40%);

  --color-primary:         #3E7A99;
  --color-primary-hover:   #5B9BB8;
  --color-primary-active:  #1F4A5F;
  --color-secondary:         #8FD6F0;
  --color-secondary-hover:   #B3E6F7;
  --color-secondary-active:  #5FA8C4;
  --color-accent:          #D9A45A;

  /* Legacy-Skalen (Galerie-Kacheln u. a.) auf die neue Palette gelegt */
  --blue-600: #3E7A99;  --blue-700: #2F6783;  --blue-800: #1F4A5F;  --blue-900: #10303F;
  --green-600: #5B9BB8; --green-700: #2F6783; --green-800: #1F4A5F; --green-900: #162836;
  --pink-600: #B98A4A;
  --ink-600: #2B3F4D;   --ink-800: #0E1A24;   --ink-900: #070B10;

  --gradient-brand:      linear-gradient(120deg, #C9A876 0%, #B98A4A 100%);
  --gradient-brand-soft: linear-gradient(120deg, rgba(62, 122, 153, 0.16) 0%, rgba(143, 214, 240, 0.16) 100%);
  --gradient-text:       linear-gradient(100deg, #3E7A99 0%, #8FD6F0 55%, #D9A45A 100%);
  --glow-primary:   0 0 0 1px rgba(185, 138, 74, 0.28), 0 0 28px -4px rgba(185, 138, 74, 0.42);
  --glow-secondary: 0 0 0 1px rgba(95, 168, 196, 0.30), 0 0 28px -4px rgba(95, 168, 196, 0.42);
  --glow-accent:    0 0 24px -6px rgba(217, 164, 90, 0.5);
  --glow-soft:      0 0 40px -10px rgba(185, 138, 74, 0.22);
}

/* ---- Branchenauswahl: Raster statt Karussell ----------------------- */
.pf-industry {
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background:
    radial-gradient(52rem 34rem at 8% -8%, rgba(62, 122, 153, 0.34), transparent 68%),
    radial-gradient(40rem 30rem at 100% 14%, rgba(217, 164, 90, 0.10), transparent 68%),
    var(--color-bg);
}
.pf-industry__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.5rem, 5vh, 3rem) clamp(1rem, 4vw, 4rem) 2rem;
}
.pf-industry__inner { width: min(100%, 88rem); margin-inline: auto; }
.pf-industry__head { max-width: 46rem; }
.pf-industry__eyebrow {
  margin: 0 0 0.75rem;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.pf-industry__q {
  margin: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: 1.08;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.25rem);
  color: var(--color-text-strong);
}
.pf-industry__sub {
  margin: 1rem 0 0;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.pf-industry__grid {
  /* Kachelhoehe aus der Kachelbreite (Hochformat ~4:5): die Branchenfotos
     sind Hochformat und werden so kaum noch abgeschnitten. */
  --cols: 6;
  --gap: 1rem;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.15);
  grid-auto-flow: dense;
  gap: var(--gap);
  margin-top: clamp(1.5rem, 4vh, 2.75rem);
}
@media (max-width: 1000px) { .pf-industry__grid { --cols: 4; } }
@media (max-width: 640px)  { .pf-industry__grid { --cols: 2; --gap: 0.75rem; } }
.pf-industry__grid.is-locked { pointer-events: none; }

.pf-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: left;
  color: var(--color-text-strong);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pf-tile__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transition: transform 0.5s ease;
}
.pf-tile__icon {
  position: absolute; top: 1rem; left: 1rem;
  width: 2.5rem; height: 2.5rem;
  color: var(--color-secondary);
}
.pf-tile__icon svg { width: 100%; height: 100%; }
.pf-tile__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 16, 0.92) 0%, rgba(7, 11, 16, 0.15) 60%);
}
.pf-tile__text {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.pf-tile__label {
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.15rem);
  line-height: 1.2;
}
.pf-tile__sel, .pf-tile__tag { display: none; }
.pf-tile__check {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.25rem; height: 2.25rem;
  display: none; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #070B10;
}
.pf-tile__check svg { width: 1.1rem; height: 1.1rem; }

.pf-tile:hover {
  transform: translateY(-3px);
  border-color: var(--color-secondary);
  box-shadow: 0 12px 36px rgba(62, 122, 153, 0.35);
}
.pf-tile:hover .pf-tile__img { transform: scale(1.06); }
.pf-tile:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 3px; }

.pf-tile.is-active {
  grid-column: span 2;
  grid-row: span 2;
  border: 2px solid var(--color-secondary);
  border-radius: 1.5rem;
  box-shadow: 0 0 0 6px rgba(143, 214, 240, 0.12), 0 18px 50px rgba(62, 122, 153, 0.4);
}
.pf-tile.is-active .pf-tile__shade {
  background: linear-gradient(to top, rgba(7, 11, 16, 0.95) 0%, rgba(7, 11, 16, 0.4) 45%, rgba(7, 11, 16, 0.05) 100%);
}
.pf-tile.is-active .pf-tile__check { display: flex; }
.pf-tile.is-active .pf-tile__text { left: 1.75rem; right: 1.75rem; bottom: 1.6rem; gap: 0.5rem; }
.pf-tile.is-active .pf-tile__label { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: var(--font-weight-bold); }
.pf-tile.is-active .pf-tile__sel {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.pf-tile.is-active .pf-tile__tag { display: block; font-size: var(--text-sm); color: var(--color-text); }
@media (max-width: 640px) {
  .pf-tile.is-active .pf-tile__tag { display: none; }
  .pf-tile__check { top: 0.75rem; right: 0.75rem; width: 1.9rem; height: 1.9rem; }
}

/* gestaffeltes Einblenden nach dem Startscreen (translate statt transform,
   damit der Hover-Effekt der Kacheln unberuehrt bleibt) */
@keyframes pf-tile-in {
  0%   { opacity: 0; translate: 0 28px; scale: 0.82; }
  55%  { opacity: 1; translate: 0 -6px; scale: 1.05; }
  80%  { translate: 0 2px; scale: 0.99; }
  100% { opacity: 1; translate: 0 0; scale: 1; }
}
.pf-app[data-stage="industry"] .pf-tile {
  animation: pf-tile-in 0.75s ease-out both;
  animation-delay: calc(1500ms + var(--d, 0ms));
}
@media (prefers-reduced-motion: reduce) {
  .pf-app[data-stage="industry"] .pf-tile { animation: none; }
  .pf-tile, .pf-tile__img { transition: none; }
}

/* ---- feste Leiste unten: Auswahl + Weiter ------------------------- */
.pf-industry__bar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 4rem) calc(0.9rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(10px);
}
.pf-industry__pick { font-size: var(--text-sm); color: var(--color-text-muted); min-width: 0; }
.pf-industry__pick strong { color: var(--color-text-strong); font-weight: var(--font-weight-semibold); }
@media (max-width: 640px) {
  .pf-industry__pick-note { display: none; }
  .pf-industry__bar .btn { padding-inline: 1.5rem; }
}

/* Das globale "button { background: none }" dieser Datei (ungeschichtet)
   schlaegt die geschichtete .btn-Flaeche - hier explizit setzen. */
.pf-app .btn {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
}

/* Container fuer die cqw-Rechnung der Kachelhoehe (Eltern des Rasters) */
.pf-industry__inner { container-type: inline-size; }

/* ---- Startbildschirm: mehr Praesenz (Fotos, Akzent, Fakten) ---------- */
.pf-start__content { max-width: 46rem; gap: clamp(1.1rem, 2.4vw, 1.75rem); }
.pf-start__content > *:nth-child(5) { animation-delay: 0.37s; }
.pf-start__content > *:nth-child(6) { animation-delay: 0.45s; }
.pf-start .hero__title { display: flex; flex-direction: column; gap: 0.1em; }
.pf-start .hero__title-line { display: block; }
.pf-start .hero__title .accent {
  background: linear-gradient(100deg, #3E7A99 0%, #8FD6F0 55%, #D9A45A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pf-start .hero__subline { max-width: 34rem; margin: 0 auto; line-height: 1.6; }
.pf-start .hero__actions { margin-top: clamp(0.25rem, 1vw, 0.75rem); }
.pf-start .btn--lg { padding: 1rem 2.4rem; font-size: 1.08rem; box-shadow: 0 10px 34px -8px rgba(185, 138, 74, 0.55); }

.pf-start__facts {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.9rem;
}
.pf-start__facts li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-surface) 80%, transparent);
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.pf-start__facts li::before {
  content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--color-secondary); box-shadow: 0 0 10px rgba(143, 214, 240, 0.7);
}

.pf-start__photos { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pf-start__ph {
  /* Groesse aus Breite UND Hoehe, damit drei Fotos pro Seite nie ueberlappen */
  --w: clamp(4.25rem, min(8.5vw, 14vh), 9.5rem);
  position: absolute; width: var(--w); margin: 0;
  rotate: var(--r, 0deg);
  animation: pf-float 7s ease-in-out infinite alternate; animation-delay: var(--fd, 0s);
}
.pf-start__ph img {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 0.9rem; border: 1px solid rgba(143, 214, 240, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  opacity: 0.6;
}
.pf-start__ph figcaption {
  margin-top: 0.55rem; text-align: center;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-text-muted); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
/* naeher am Text: Abstand zur Mitte statt zum Rand; aussen etwas weiter */
.pf-start__ph--l1 { left: max(0.75rem, calc(50% - 25rem - var(--w)));  top: 8%;     --r: -6deg; }
.pf-start__ph--l2 { left: max(0.75rem, calc(50% - 20.5rem - var(--w))); top: 38%;    --r: 4deg;  --fd: -2s; }
.pf-start__ph--l3 { left: max(0.75rem, calc(50% - 25rem - var(--w)));  bottom: 5%;  --r: -3deg; --fd: -4s; }
.pf-start__ph--r1 { right: max(0.75rem, calc(50% - 25rem - var(--w))); top: 10%;    --r: 5deg;  --fd: -1s; }
.pf-start__ph--r2 { right: max(0.75rem, calc(50% - 20.5rem - var(--w))); top: 40%;   --r: -4deg; --fd: -3s; }
.pf-start__ph--r3 { right: max(0.75rem, calc(50% - 25rem - var(--w))); bottom: 6%;  --r: 3deg;  --fd: -5s; }
@keyframes pf-float { from { translate: 0 -9px; } to { translate: 0 11px; } }
@media (max-width: 700px) { .pf-start__photos { display: none; } }
@media (prefers-reduced-motion: reduce) { .pf-start__ph { animation: none; } }

/* Zurueck zur Homepage (schliesst den Finder-Tab): neben "Los geht's" */
.pf-start .hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1rem; }
.pf-app .pf-start .pf-back {
  --btn-bg: transparent; --btn-fg: var(--color-text-muted); --btn-border: transparent;
  padding: 0.7rem 1.1rem; font-size: 0.95rem; text-decoration: none; box-shadow: none;
}
.pf-app .pf-start .pf-back:hover, .pf-app .pf-start .pf-back:focus-visible {
  --btn-fg: var(--color-text-strong); --btn-border: var(--color-border);
}

/* Drei Schritte unter dem Start-Button */
.pf-start__steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem 0;
}
.pf-start__steps li {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0 1.4rem; font-size: var(--text-sm); color: var(--color-text-muted);
}
.pf-start__steps li + li::before {
  content: ""; position: absolute; left: -0.2rem; top: 50%; width: 0.4rem; height: 0.4rem;
  border-top: 1.5px solid var(--color-border-strong, #3a5163); border-right: 1.5px solid var(--color-border-strong, #3a5163);
  transform: translateY(-50%) rotate(45deg);
}
.pf-start__step-n {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-secondary) 50%, var(--color-border));
  background: rgba(62, 122, 153, 0.14); color: var(--color-secondary);
  font-family: var(--font-mono); font-size: 0.75rem;
}
@media (max-width: 560px) {
  .pf-start__steps { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .pf-start__steps li { padding: 0; }
  .pf-start__steps li + li::before { display: none; }
}

/* Wechselndes Branchen-Wort */
.pf-start__for { margin: 0; font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.3vw, 1.9rem); line-height: 1.3; color: var(--color-text-strong); }
.pf-start .hero__subline { font-size: var(--text-base); color: var(--color-text-muted); }
.pf-start__word {
  display: inline-block; font-weight: var(--font-weight-semibold);
  background: linear-gradient(100deg, #3E7A99 0%, #8FD6F0 55%, #D9A45A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity 170ms ease, translate 170ms ease;
}
.pf-start__word.is-out { opacity: 0; translate: 0 0.35em; }
.pf-start__ph img { transition: opacity 300ms ease, box-shadow 300ms ease, border-color 300ms ease; }
.pf-start__ph.is-lit img {
  opacity: 1; border-color: rgba(143, 214, 240, 0.7);
  box-shadow: 0 0 0 4px rgba(143, 214, 240, 0.12), 0 0 34px rgba(143, 214, 240, 0.35), 0 18px 44px rgba(0, 0, 0, 0.55);
}
.pf-start__ph.is-lit figcaption { color: var(--color-secondary); }

/* Wechselzeile: Wort immer in eigener, fester Zeile - kein Umbruch, kein Springen */
.pf-start__for { display: flex; flex-direction: column; align-items: center; gap: 0.1em; }
.pf-start__word { display: block; white-space: nowrap; min-height: 1.3em; }
