/* ==========================================================================
   Sawton hell · Beta der Studio-Seite (nicht verlinkt, noindex)

   Titel, darunter der Film (läuft stumm von selbst), darunter die Funktionen
   des Kunden-Dashboards als Mindmap. Mehr nicht (Nutzer, 28.11.2026). Gestaltung aus start.css (Farben, Schrift,
   Kopf, Tasten, Fuß) und unterseite.css (Kopf ohne Leiste, Titel), hier
   nur Film und Mindmap. Eigene Klassen: „st-film“ und „mm“ (Mindmap).
   ========================================================================== */


/* --------------------------------------------------------------------------
   Titel und Film
   -------------------------------------------------------------------------- */
/* Der Film passt auf den ersten Blick ganz ins Bild: Breite aus der Fensterhöhe (16:9). */
.st-film {
  position: relative;
  width: min(100%, calc((100svh - 250px) * 16 / 9));
  min-width: min(100%, 640px);
  margin-top: clamp(28px, 3.4vw, 40px);
  aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden; background: #1c1c1c;
  box-shadow: 0 0 0 1px rgba(11, 11, 12, 0.14), 0 46px 64px -48px rgba(11, 11, 12, 0.55), 0 14px 26px -20px rgba(11, 11, 12, 0.22);
}
.st-film__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #1c1c1c; cursor: pointer; }

/* Bedienung in der Videofläche: unten rechts, dunkles Glas */
.st-film__steuer { position: absolute; right: 14px; bottom: 16px; display: flex; gap: 8px; z-index: 2; }
.st-film__knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  background: rgba(11, 11, 12, 0.62); color: #fff; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 600 14px/1 var(--grotesk); letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color 0.15s, transform 0.15s var(--raus), opacity 0.25s;
}
.st-film__knopf .ik { width: 17px; height: 17px; }
@media (hover: hover) { .st-film__knopf:hover { background: rgba(11, 11, 12, 0.82); transform: translateY(-1px); } }
.st-film__knopf:active { transform: translateY(1px); }
.st-film__knopf:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Stumm: der Tonknopf trägt Text und ist blau, damit man ihn sofort findet */
.st-film:not(.ist-laut) .st-film__knopf--ton { padding: 0 15px 0 13px; border-color: transparent; background: var(--blau); }
@media (hover: hover) { .st-film:not(.ist-laut) .st-film__knopf--ton:hover { background: var(--blau-hell); } }
/* Zustände: data-zeige-Kinder nur im passenden Zustand */
.st-film [data-zeige] { display: none; }
.st-film:not(.ist-pausiert) [data-zeige='laeuft'], .st-film.ist-pausiert [data-zeige='steht'] { display: block; }
.st-film:not(.ist-laut) [data-zeige='stumm'], .st-film.ist-laut [data-zeige='laut'] { display: block; }
.st-film:not(.ist-laut) span[data-zeige='stumm'] { display: inline; }
/* Fortschritt als feiner Strich am unteren Rand */
.st-film__fortschritt { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--blau); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; z-index: 1; pointer-events: none; }

/* Großer Abspielknopf: nur, wenn der Film nicht von selbst läuft */
.st-film__play {
  position: absolute; inset: 0; z-index: 3; display: none; place-items: center;
  border: 0; padding: 0; background: rgba(11, 11, 12, 0.1); cursor: pointer;
}
.st-film.ist-wartend .st-film__play { display: grid; }
.st-film.ist-wartend .st-film__steuer { opacity: 0; pointer-events: none; }
.st-film__rund {
  display: grid; place-items: center; width: clamp(64px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%;
  background: var(--blau); color: #fff;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.22), inset -1px -1px 0 rgba(0, 0, 0, 0.35), 0 5px 0 var(--blau-kante), 0 22px 34px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s var(--raus), background-color 0.15s;
}
.st-film__rund .ik { width: 42%; height: 42%; margin-left: 6%; fill: currentColor; stroke: none; }
@media (hover: hover) { .st-film__play:hover .st-film__rund { background: var(--blau-hell); transform: translateY(-2px); } }
.st-film__play:focus-visible { outline: none; }
.st-film__play:focus-visible .st-film__rund { outline: 2px solid #fff; outline-offset: 4px; }

/* --------------------------------------------------------------------------
   Mindmap
   -------------------------------------------------------------------------- */
.st-karte { padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 112px); }
.mm { position: relative; }
.mm__linien { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mm__linien path { fill: none; stroke: var(--linie-fest); stroke-width: 1.5; stroke-linecap: round; transition: stroke 0.2s, opacity 0.2s; }
.mm__linien path.mm__ast-linie { stroke: var(--tinte); stroke-width: 1.6; }
.mm__linien circle { fill: #fff; stroke: var(--linie-fest); stroke-width: 1.5; transition: stroke 0.2s, fill 0.2s, opacity 0.2s; }

.mm__kern {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
}
.mm__goodie { width: 66px; height: auto; margin-bottom: -2px; position: relative; z-index: 1; }
.mm__name {
  display: block; padding: 17px 30px 19px; border-radius: 16px;
  background: var(--blau); color: #fff;
  font: 600 22px/1 var(--grotesk); letter-spacing: -0.02em; white-space: nowrap;
}

.mm__knoten {
  display: inline-flex; align-items: center; gap: 10px; width: max-content;
  padding: 11px 16px 12px 13px; border: 1.5px solid var(--tinte); border-radius: 13px; background: #fff;
  font: 600 17px/1 var(--grotesk); letter-spacing: -0.015em;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.mm__ik { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mm__gesicht { width: 19px; height: 19px; flex: none; }
.mm__ast--ki .mm__knoten { border-color: var(--blau); color: var(--blau); }
.mm__blaetter li { font-size: 15.5px; line-height: 1.3; color: var(--tinte-2); transition: color 0.2s; }

/* Hervorheben: Zeiger auf einem Ast färbt seine Linien blau, die anderen treten zurück */
.mm.ist-fokus .mm__linien path, .mm.ist-fokus .mm__linien circle { opacity: 0.45; }
.mm.ist-fokus .mm__linien .ist-an { opacity: 1; stroke: var(--blau); }
.mm.ist-fokus .mm__linien circle.ist-an { fill: var(--blau); }
.mm__ast.ist-an .mm__knoten { border-color: var(--blau); }
.mm__ast.ist-an .mm__blaetter li { color: var(--tinte); }

/* Breit: Äste links und rechts der Mitte, Blätter außen */
@media (min-width: 1180px) {
  .mm { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: clamp(64px, 6vw, 96px); }
  .mm__seite { display: grid; gap: 40px; }
  .mm__ast { display: flex; align-items: center; gap: 56px; }
  .mm__seite--links .mm__ast { flex-direction: row-reverse; }
  .mm__seite--links .mm__blaetter { text-align: right; }
  .mm__blaetter { display: grid; gap: 9px; }
  .mm__mitte { display: grid; place-items: center; }

  /* Auftritt: Mitte, dann Linien von innen nach außen, dann Knoten und Blätter (nur Deckkraft: die Linien messen die Lage) */
  html.fx-an .mm__kern, html.fx-an .mm__knoten, html.fx-an .mm__blaetter li { opacity: 0; transition: opacity 0.5s var(--raus) var(--d, 0ms); }
  html.fx-an .mm.ist-da .mm__kern, html.fx-an .mm.ist-da .mm__knoten, html.fx-an .mm.ist-da .mm__blaetter li { opacity: 1; }
  html.fx-an .mm__linien path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.7s var(--raus) var(--d, 0ms), stroke 0.2s, opacity 0.2s; }
  html.fx-an .mm.ist-da .mm__linien path { stroke-dashoffset: 0; }
  html.fx-an .mm__linien circle { opacity: 0; transition: opacity 0.3s var(--d, 0ms), stroke 0.2s, fill 0.2s; }
  html.fx-an .mm.ist-da .mm__linien circle { opacity: 1; }
}

/* Schmal: Baum. Mitte oben, darunter die Äste mit ihren Blättern als Verzweigung. */
@media (max-width: 1179px) {
  .mm__linien { display: none; }
  .mm { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 30px 28px; }
  .mm__seite { display: contents; }
  .mm__mitte { order: -1; grid-column: 1 / -1; justify-self: center; margin-bottom: 6px; }
  .mm__blaetter { margin-left: 22px; }
  .mm__blaetter li { position: relative; padding: 7px 0 7px 22px; }
  .mm__blaetter li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1.5px solid var(--linie-fest); }
  .mm__blaetter li:last-child::before { bottom: 50%; }
  .mm__blaetter li::after { content: ''; position: absolute; left: 0; top: 50%; width: 14px; border-top: 1.5px solid var(--linie-fest); }
}

/* --------------------------------------------------------------------------
   Schmal
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .st-film { border-radius: 14px; }
  .st-film__steuer { right: 10px; bottom: 11px; gap: 6px; }
  .st-film__knopf { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; }
  .st-film:not(.ist-laut) .st-film__knopf--ton { padding: 0 12px 0 10px; }
}


/* Licht im Kopf: Fläche und Ersatz stehen in unterseite.css (gemeinsam mit
   Leistungen), Fassung A „Papier zart" über data-licht="a" im HTML. Hier nur:
   der Film schaut von unten in das Licht herein. */
.st-film { margin-top: clamp(40px, 8svh, 84px); }

/* Handy (02.12.2026, Nutzer: „nicht so viel nach unten scrollen“): Mindmap im
   Kleinen. Mitte oben, ein Querbalken, darunter zwei Stämme (die linke und die
   rechte Seite der breiten Karte), an jedem Stamm drei Äste mit ihren Blättern
   als kurze Liste. Ersetzt bis 760 px den langen Baum. */
@media (max-width: 760px) {
  .st-karte { padding: 32px 0 48px; }
  .mm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .mm__mitte { grid-row: 1; position: relative; margin-bottom: 0; padding-bottom: 18px; }
  .mm__mitte::after { content: ''; position: absolute; left: 50%; bottom: 0; height: 18px; border-left: 1.5px solid var(--linie-fest); }
  .mm__goodie { width: 44px; }
  .mm__name { padding: 11px 20px 12px; border-radius: 12px; font-size: 17px; }
  .mm__seite { display: grid; grid-row: 2; align-content: start; gap: 14px; position: relative; padding-top: 16px; }
  .mm__seite--links { grid-column: 1; }
  .mm__seite--rechts { grid-column: 2; }
  .mm__seite::before { content: ''; position: absolute; top: 0; border-top: 1.5px solid var(--linie-fest); }
  .mm__seite--links::before { left: 8px; right: -5px; }
  .mm__seite--rechts::before { left: -5px; width: 13px; }
  .mm__ast { position: relative; padding-left: 20px; }
  .mm__ast::before { content: ''; position: absolute; left: 8px; top: -14px; bottom: 0; border-left: 1.5px solid var(--linie-fest); }
  .mm__ast:first-child::before { top: -16px; }
  .mm__ast:last-child::before { bottom: auto; height: 30px; }
  .mm__ast::after { content: ''; position: absolute; left: 8px; top: 16px; width: 12px; border-top: 1.5px solid var(--linie-fest); }
  .mm__knoten { gap: 7px; padding: 7px 10px 8px 8px; border-radius: 10px; font-size: 14.5px; }
  .mm__ik, .mm__gesicht { width: 15px; height: 15px; }
  .mm__blaetter { display: grid; gap: 3px; margin: 7px 0 0 3px; }
  .mm__blaetter li { padding: 0; font-size: 13px; line-height: 1.3; }
  .mm__blaetter li::before, .mm__blaetter li::after { content: none; }
}
