/* =====================================================================
   Demo-Schaufenster (beispiele.html): Branchenwahl, sechs Karten,
   «So geht es weiter», Preisanker, «Passt zu Ihrer Branche».
   Nur für diese Seite. Eigene Klassen (sf-*), damit bewegung.js,
   kino.js und galerie.js hier nichts greifen. Farben und Schriften aus
   assets/stil.css (:root). Ohne JavaScript ist alles sichtbar.
   ===================================================================== */

.sf { --sf-rand: var(--nacht-linie); --sf-flaeche: var(--nacht-2); }
.sf h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
.sf section { scroll-margin-top: 5.5rem; }

/* ---------- Kopf mit Branchenwahl ------------------------------------- */
.sf-kopf {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}
.sf-kopf::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -20% auto -20%;
  height: 180%;
  background:
    radial-gradient(48% 55% at 82% 8%, rgba(41, 89, 196, 0.30) 0%, rgba(41, 89, 196, 0) 70%),
    radial-gradient(30% 36% at 96% 0%, rgba(108, 231, 250, 0.14) 0%, rgba(108, 231, 250, 0) 70%);
  pointer-events: none;
}
.sf-wo { font-size: 0.85rem; color: var(--auf-nacht-still); margin-bottom: 1rem; display: flex; gap: 0.5rem; align-items: center; }
.sf-wo a { color: var(--auf-nacht-still); text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.sf-wo a:hover { color: var(--cyan); }
.sf-kopf h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem); max-width: 16ch; }
.sf-lead { margin-top: 1.1rem; max-width: 38em; font-size: clamp(1.04rem, 1rem + 0.3vw, 1.18rem); color: var(--auf-nacht-still); }

.sf-wahl { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.sf-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border: 1.5px solid var(--taste-linie);
  border-radius: 999px;
  color: var(--auf-nacht);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  background: rgba(12, 22, 40, 0.6);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.sf-chip:hover { border-color: var(--cyan); color: var(--auf-nacht); }
.sf-chip[aria-current="true"] { background: var(--cyan); border-color: var(--cyan); color: #041018; }

.sf-pfad {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 0.9rem;
  color: var(--auf-nacht-still);
}
.sf-pfad li { display: inline-flex; align-items: center; gap: 0.5rem; }
.sf-pfad span {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--feld-linie);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--auf-nacht);
}

/* ---------- Raster der sechs Karten ----------------------------------- */
.sf-raster-teil { padding-block: clamp(1rem, 2vw, 1.5rem) clamp(3.5rem, 7vw, 6rem); }
.sf-raster { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .sf-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .sf-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sf-karte {
  display: flex;
  flex-direction: column;
  background: var(--sf-flaeche);
  border: 1px solid var(--sf-rand);
  border-radius: 6px;
  overflow: hidden;
  scroll-margin-top: 6rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.sf-karte:hover { border-color: var(--feld-linie); }
.sf-karte.ist-gewaehlt { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 18px 40px -24px rgba(108, 231, 250, 0.45); }

.sf-bild { display: block; aspect-ratio: 16 / 10; background: var(--nacht-3); overflow: hidden; border-bottom: 1px solid var(--sf-rand); }
.sf-bild img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s cubic-bezier(.22,.61,.36,1); }
.sf-karte:hover .sf-bild img { transform: scale(1.02); }

.sf-text { padding: 1.25rem 1.35rem 0; flex: 1 1 auto; }
.sf-marke { display: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.35rem; }
.sf-karte.ist-gewaehlt .sf-marke { display: block; }
.sf-text h3 { font-size: clamp(1.9rem, 1.5rem + 1vw, 2.3rem); }
.sf-text h3 a { color: var(--auf-nacht); text-decoration: none; }
.sf-text h3 a:hover { color: var(--cyan); }
.sf-betrieb { margin-top: 0.35rem; font-size: 0.86rem; color: var(--auf-nacht-still); }
.sf-nutzen { margin-top: 0.8rem; font-size: 1rem; line-height: 1.5; }
.sf-variante { margin-top: 0.6rem; font-size: 0.92rem; color: var(--auf-nacht-still); }
.sf-variante a { font-weight: 600; min-height: 2.75rem; display: inline-flex; align-items: center; }

.sf-tun { padding: 1rem 1.35rem 1.25rem; display: grid; gap: 0.35rem; }
.sf-haupt { width: 100%; }
.sf-preis-hin { font-size: 0.82rem; color: var(--auf-nacht-still); text-align: center; }
.sf-demo {
  justify-self: center;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}
.sf-demo:hover { text-decoration: underline; }

.sf-zwischen { margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.4rem; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.sf-weitere { margin-top: 1.6rem; color: var(--auf-nacht-still); display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.6rem; }
.sf-weitere a { font-weight: 600; min-height: 2.75rem; display: inline-flex; align-items: center; }

/* ---------- So geht es weiter (hell) ---------------------------------- */
.sf-schritte-teil { background: var(--papier); color: var(--tinte); padding-block: clamp(3.5rem, 7vw, 6rem); }
.sf-schritte-teil h2, .sf-schritte-teil h3 { color: var(--tinte); }
.sf-schritte { list-style: none; margin: clamp(1.8rem, 3vw, 2.6rem) 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: none; }
@media (min-width: 52rem) { .sf-schritte { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.sf-schritt { background: #fff; border: 1px solid var(--papier-linie); border-radius: 6px; padding: 1.4rem 1.4rem 1.5rem; }
.sf-nr {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--marine);
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.sf-schritt h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.sf-schritt p { color: var(--auf-papier-still); }
.sf-schritte-teil :where(a, button):focus-visible { outline-color: var(--akzent-text); }

/* ---------- Preisanker ------------------------------------------------- */
.sf-preis-teil { padding-block: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--sf-rand); }
.sf-preis { max-width: 54rem; text-align: center; }
.sf-preis-marke { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.8rem; }
.sf-preis h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.sf-preis-satz { margin-top: 1rem; color: var(--auf-nacht-still); font-size: 1.06rem; }
.sf-preis-tun { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.sf-vertrauen { margin-top: 1.3rem; font-size: 0.9rem; color: var(--auf-nacht-still); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 0.55rem; }
.sf-vertrauen a { min-height: 2.75rem; display: inline-flex; align-items: center; }

/* ---------- Passt zu Ihrer Branche ------------------------------------ */
.sf-passt-teil { padding-block: clamp(3.5rem, 7vw, 6rem); }
.sf-passt-lead { margin-top: 0.9rem; color: var(--auf-nacht-still); max-width: 40em; }
.sf-passt { margin: 1.8rem 0 0; display: grid; border-top: 1px solid var(--sf-rand); }
.sf-passt-zeile {
  display: grid;
  gap: 0.2rem 1.5rem;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--sf-rand);
  border-left: 2px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
@media (min-width: 46rem) { .sf-passt-zeile { grid-template-columns: 13rem 1fr; align-items: center; } }
.sf-passt-zeile.ist-gewaehlt { background: rgba(108, 231, 250, 0.06); border-left-color: var(--cyan); }
.sf-passt dt { font-weight: 600; }
.sf-passt dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.sf-passt dd a { min-height: 2.75rem; display: inline-flex; align-items: center; }

/* ---------- Referenz und andere Branche ------------------------------- */
.sf-schluss-teil { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(5rem, 9vw, 7rem); background: var(--nacht-2); border-top: 1px solid var(--sf-rand); }
.sf-schluss { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .sf-schluss { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.sf-schluss h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.4rem); margin-bottom: 0.8rem; }
.sf-schluss p { color: var(--auf-nacht-still); }
.sf-echt-marke { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.6rem; }
.sf-echt-links { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.sf-echt-links a, .sf-andere-tun a:not(.taste) { min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 600; }
.sf-andere-tun { margin-top: 1.2rem; }

/* Handy: die 13 Branchenwahl-Chips stehen in EINER Zeile und lassen sich seitlich wischen (die Karten darunter sind alle sichtbar) */
@media (max-width: 39.99rem) {
  .sf-wahl { flex-wrap: nowrap; gap: 0.5rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 0.35rem; margin-inline: calc(var(--rand, 1rem) * -1); padding-inline: var(--rand, 1rem); -webkit-overflow-scrolling: touch; }
  .sf-chip { flex: 0 0 auto; scroll-snap-align: start; padding: 0.5rem 0.95rem; font-size: 0.94rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-bild img, .sf-karte, .sf-chip, .sf-passt-zeile { transition: none; }
  .sf-karte:hover .sf-bild img { transform: none; }
}
