/* Entwurf A · Abschnitt „Über uns“ mit Kennenlernvideo (#ueber-uns, Präfix .uu)
   Idee: Das Hochformat-Video sitzt als Scheibe in EINEM anthrazitfarbenen Fensterrahmen
   (so wie die Fenster, die TM einbaut: „außen Anthrazit“) – mit Flügelkante, Laibung und Fensterbank,
   eingebaut in eine helle Wandfläche mit feinem Aufmaß-Raster.
   Marken-Motiv: einmaliger Glas-Glanz, der beim Einblenden über die Scheibe läuft.
   Video-Zustände (data-zustand am #uuVideo, setzt ueber-uns.js): bereit · stumm · ton · pause · ende · poster.
   Nur transform/opacity animiert; ohne JS oder bei „weniger Bewegung“ ist alles sofort sichtbar.
   Farben/Schrift aus der Original-Seite (site.css): --ink, --ink-60, --glas-linie, --f-display, --f-mono, --e-out. */

.uu {
  --uu-rand: clamp(18px, 4.5vw, 120px);   /* = Innenabstand von .wrap */
  --uu-wand: var(--tm-hell);
  --uu-laibung: var(--tm-hell-2);
  --uu-akzent: var(--tm-grau, #6F7177);           /* Logo-Grau für Anführungszeichen – kein Rot im Abschnitt */
  --uu-r: 10px;                            /* Rahmenbreite */
  /* Breite der Video-Scheibe (9:16). Handy: so breit wie möglich, aber höchstens ~70 % der Bildschirmhöhe hoch */
  --uu-v: min(calc(100vw - 2 * var(--uu-rand) - 2 * var(--uu-r)), calc(70vh * 9 / 16));
  --uu-v: min(calc(100vw - 2 * var(--uu-rand) - 2 * var(--uu-r)), calc(70svh * 9 / 16));
  position: relative;
  background: #fff;
  border-top: 1px solid var(--glas-linie, var(--tm-linie-hell));
  border-bottom: 1px solid var(--glas-linie, var(--tm-linie-hell));
  overflow: clip;
}
.uu__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "kopf" "feld" "text";
  row-gap: 30px;
}
.uu__kopf { grid-area: kopf; }
.uu__kopf h2 { margin-bottom: 0; }
.uu__feld { grid-area: feld; }
.uu__text { grid-area: text; position: relative; z-index: 1; }

/* ---------- Wand + Fenster ---------- */
/* Figur bleibt volle Breite (Wandband bis an beide Ränder), das Fenster sitzt mittig darin */
.uu__feld {
  position: relative; margin: 0; padding: 26px 0 8px;
  display: grid; grid-template-columns: max-content; justify-content: center;
}
/* Wandfläche, in die das Fenster „eingebaut“ ist – auf dem Handy ein Band über die ganze Breite */
.uu__feld::before,
.uu__feld::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  left: calc(var(--uu-rand) * -1); right: calc(var(--uu-rand) * -1);
  top: 0; bottom: -30px;
}
.uu__feld::before { background: var(--uu-wand); }
/* feines Aufmaß-Raster auf der Wand, zu den Rändern ausgeblendet */
.uu__feld::after {
  background-image:
    linear-gradient(rgba(31, 35, 38, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 35, 38, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 50%, transparent 30%, #000 60%, transparent 95%);
          mask-image: radial-gradient(ellipse 75% 60% at 50% 50%, transparent 30%, #000 60%, transparent 95%);
}

.uu-fenster {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: var(--uu-v);
  padding: var(--uu-r);
  border-radius: 4px;
  background: linear-gradient(160deg, #454C53 0%, var(--tm-anthrazit) 38%, #2D3032 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 0 0 1px rgba(0, 0, 0, .3),
    0 0 0 8px var(--uu-laibung),                 /* Laibung (Putzkante um den Rahmen) */
    0 0 0 9px rgba(31, 35, 38, .07),
    0 30px 50px -30px rgba(31, 35, 38, .55);
}
.uu-scheibe {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 1px;
  background: #2E3236;
  /* Flügelkante: hellere Profilstufe um die Scheibe */
  box-shadow: 0 0 0 2px #50585F, 0 0 0 3px rgba(0, 0, 0, .35);
}
/* Glasleiste: leichter Schatten am Scheibenrand */
.uu-scheibe::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45), inset 0 5px 10px -5px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(255, 255, 255, .07);
}
/* Glas-Glanz (Marken-Motiv) – liegt außerhalb der Scheibe, bis der Abschnitt erscheint */
.uu-scheibe::after {
  content: ''; position: absolute; z-index: 4; pointer-events: none;
  top: -25%; bottom: -25%; left: 0; width: 75%;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 18%,
    rgba(255, 255, 255, .32) 44%,
    rgba(255, 255, 255, .08) 52%,
    rgba(255, 255, 255, .18) 58%,
    rgba(255, 255, 255, 0) 80%);
  transform: translate3d(-120%, 0, 0) skewX(-14deg);
}

/* Fensterbank: helle Oberseite + Vorderkante, steht seitlich über */
.uu-bank {
  position: relative; z-index: 1; display: block;
  height: 15px; margin: 0 -14px;
  border-radius: 2px 2px 4px 4px;
  background: linear-gradient(180deg, #FDFEFE 0, #ECEDED 5px, var(--tm-linie) 6px, #BABEC1 100%);
  box-shadow: 0 1px 0 rgba(31, 35, 38, .08), 0 18px 24px -14px rgba(31, 35, 38, .55);
}

/* ---------- Video-Scheibe ---------- */
.uu-film { aspect-ratio: 9 / 16; }
.uu-film__poster,
.uu-film__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
}
/* Poster liegt über dem Video, bis das erste Bild läuft (kein schwarzes Aufblitzen) */
.uu-film__poster { z-index: 1; transition: opacity .45s var(--e-out, cubic-bezier(.16, 1, .3, 1)); }
.uu-film.hat-bild .uu-film__poster { opacity: 0; }
.uu-film[data-zustand="ende"] .uu-film__poster { opacity: 1; }

/* ganze Scheibe = ein Knopf (Ton an + von vorn · bei Ton: anhalten/fortsetzen) */
.uu-film__flaeche {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  width: 100%; padding: 0; margin: 0; border: 0;
  font: inherit; color: #fff; cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* Verlauf unten für die Namensleiste (eigene Ebene, damit nur opacity wechselt) */
.uu-film__flaeche::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(37, 41, 44, 0) 58%, rgba(37, 41, 44, .82) 100%);
  transition: opacity .4s var(--e-out, cubic-bezier(.16, 1, .3, 1));
}
.uu-film__flaeche:focus-visible { outline: 3px solid #fff; outline-offset: -6px; box-shadow: inset 0 0 0 9px rgba(37, 41, 44, .5); }

/* großer Play-Knopf: nur bei Poster (kein Autoplay), Pause und Ende */
.uu-film__play {
  position: relative;
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: #fff; color: var(--tm-text);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .65), 0 0 0 8px rgba(255, 255, 255, .16);
  opacity: 0; transform: scale(.82);
  transition: opacity .3s var(--e-out, cubic-bezier(.16, 1, .3, 1)), transform .35s var(--e-out, cubic-bezier(.16, 1, .3, 1));
}
.uu-film__play svg { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
.uu-film[data-zustand="poster"] .uu-film__play,
.uu-film[data-zustand="pause"] .uu-film__play,
.uu-film[data-zustand="ende"] .uu-film__play { opacity: 1; transform: none; }
.uu-film[data-zustand="poster"] .uu-film__flaeche:hover .uu-film__play,
.uu-film[data-zustand="pause"] .uu-film__flaeche:hover .uu-film__play,
.uu-film[data-zustand="ende"] .uu-film__flaeche:hover .uu-film__play { transform: scale(1.06); }

/* Namensleiste + „Ton an“ */
.uu-film__leiste {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 16px 16px 15px;
  text-align: left;
  transition: opacity .35s var(--e-out, cubic-bezier(.16, 1, .3, 1)), transform .45s var(--e-out, cubic-bezier(.16, 1, .3, 1));
}
.uu-film__namen { min-width: 0; }
.uu-film__namen b {
  display: block;
  font-family: var(--f-display); font-weight: 600; font-size: 1.06rem; line-height: 1.2; letter-spacing: -.005em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}
.uu-film__namen small {
  display: block; margin-top: 4px;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .84);
}
/* Hinweis-Pille: weiß „Ton an“ solange stumm · dunkel „1:43“ bei Poster/Ende */
.uu-film__ton {
  position: relative; flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 15px 10px 12px; border-radius: 999px;
  background: #fff; color: var(--tm-text);
  font-family: var(--f-display); font-size: .95rem; font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7);
  transition: transform .3s var(--e-out, cubic-bezier(.16, 1, .3, 1));
}
.uu-film__ton svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.uu-i-fl { fill: currentColor; stroke: none; }
.uu-film__dauer { display: none; }
.uu-film__flaeche:hover .uu-film__ton { transform: scale(1.04); }
/* sanfter Puls-Ring um „Ton an“ (3×, dann Ruhe) */
.uu-film__ton::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
  opacity: 0;
}
.uu-film[data-zustand="stumm"].hat-bild .uu-film__ton::after { animation: uuPuls 2.4s var(--e-out, cubic-bezier(.16, 1, .3, 1)) .6s 3; }
@keyframes uuPuls {
  0% { opacity: .9; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(1.35, 1.6); }
}
.uu-film[data-zustand="poster"] .uu-film__ton,
.uu-film[data-zustand="ende"] .uu-film__ton {
  padding: 7px 11px 7px 9px; gap: 6px;
  background: rgba(37, 41, 44, .65); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  font-size: .88rem;
}
.uu-film[data-zustand="poster"] .uu-film__ton svg,
.uu-film[data-zustand="ende"] .uu-film__ton svg { width: 16px; height: 16px; }
.uu-film[data-zustand="poster"] .uu-film__ton-txt,
.uu-film[data-zustand="ende"] .uu-film__ton-txt { display: none; }
.uu-film[data-zustand="poster"] .uu-film__dauer,
.uu-film[data-zustand="ende"] .uu-film__dauer { display: inline; }

/* mit Ton: Leiste + Verlauf weg, Bild frei */
.uu-film[data-zustand="ton"] .uu-film__leiste,
.uu-film[data-zustand="pause"] .uu-film__leiste { opacity: 0; transform: translate3d(0, 10px, 0); }
.uu-film[data-zustand="ton"] .uu-film__flaeche::before { opacity: 0; }
.uu-film[data-zustand="pause"] .uu-film__flaeche::before { opacity: .55; }

/* Steuerung (Pause · Ton) unten rechts – nur bei Ton/Pause, sonst [hidden] */
.uu-film__steuer {
  position: absolute; right: 12px; bottom: 16px; z-index: 3;
  display: flex; gap: 8px;
}
.uu-film__steuer[hidden] { display: none; }
.uu-film__knopf {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; margin: 0;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
  background: rgba(37, 41, 44, .66); color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .25s var(--e-out, cubic-bezier(.16, 1, .3, 1)), background-color .25s;
}
.uu-film__knopf:hover { background: rgba(37, 41, 44, .86); }
.uu-film__knopf:active { transform: scale(.94); }
.uu-film__knopf:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 7px rgba(37, 41, 44, .55); }
.uu-film__knopf svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 0; stroke-linecap: round; }
.uu-film__knopf .uu-i-laut,
.uu-film__knopf .uu-i-stumm { fill: none; stroke-width: 2; stroke-linejoin: round; }
.uu-i-play, .uu-i-stumm { display: none; }
.uu-film[data-zustand="pause"] .uu-i-play,
.uu-film.ist-stumm .uu-i-stumm { display: block; }
.uu-film[data-zustand="pause"] .uu-i-pause,
.uu-film.ist-stumm .uu-i-laut { display: none; }
.uu-i-play { margin-left: 2px; }

/* Laufbalken unten (nur bei Ton/Pause) */
.uu-film__lauf {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px;
  background: rgba(255, 255, 255, .22);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.uu-film__lauf i {
  display: block; height: 100%;
  background: #fff;
  transform-origin: 0 50%; transform: scaleX(0);
}
.uu-film[data-zustand="ton"] .uu-film__lauf,
.uu-film[data-zustand="pause"] .uu-film__lauf { opacity: 1; }

/* Schwebende Knöpfe der Seite (nach oben, Chat, Google-Schild) ausblenden, damit „Ton an“ und die Steuerung frei sind:
   Handy – solange das Video im Bild ist; ab Tablet – solange es mit Ton läuft (Klasse setzt ueber-uns.js) */
html.uu-film-an #btt-btn,
html.uu-film-an .chat-fab,
html.uu-film-an .gsticky { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

/* ---------- Text: Zitat, Steckbrief, Link ---------- */
.uu-zitat { margin: 0; }
.uu-zitat p {
  margin: 0; max-width: 23ch;
  text-indent: -.4em;                       /* „ hängt in den Rand, Text bleibt bündig */
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.4rem, 1.05rem + 1.2vw, 1.95rem); line-height: 1.26; letter-spacing: -.018em;
  color: var(--ink, var(--tm-text));
  text-wrap: balance;
}
.uu-zitat p span { color: var(--ink-60, var(--tm-text-3)); font-weight: 500; }
.uu-qm { color: var(--uu-akzent); font-weight: 600; }

.uu-daten {
  margin: 30px 0 0; padding: 4px 18px;
  max-width: 520px;
  border: 1px solid var(--glas-linie, var(--tm-linie-hell)); border-radius: 14px;
  background: var(--tm-hell-2);
}
.uu-daten > div {
  display: grid; grid-template-columns: 6.1rem minmax(0, 1fr); gap: 14px;
  align-items: baseline;
  padding: 13px 0;
}
.uu-daten > div + div { border-top: 1px solid var(--glas-linie, var(--tm-linie-hell)); }
.uu-daten dt {
  font-family: var(--f-mono); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-60, var(--tm-text-3));
}
.uu-daten dd {
  margin: 0;
  font-family: var(--f-display); font-size: 1rem; font-weight: 600; line-height: 1.35;
  color: var(--ink, var(--tm-text));
}
.uu-sterne { margin-right: 7px; color: var(--tm-stern); letter-spacing: .06em; font-size: .9em; }

.uu__aktion { margin: 30px 0 0; }
.uu__mehr svg { transition: transform .3s var(--e-out, cubic-bezier(.16, 1, .3, 1)); }
.uu__mehr:hover svg { transform: translateX(3px); }
.uu .uu__mehr:focus-visible { outline: 2px solid var(--tm-anthrazit, #383E42); outline-offset: 3px; }

/* ---------- Einblenden beim Scrollen (Klasse kommt aus ueber-uns.js) ---------- */
.uu--anim [data-uu-auf] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .8s var(--e-out, cubic-bezier(.16, 1, .3, 1)), transform 1s var(--e-out, cubic-bezier(.16, 1, .3, 1));
  transition-delay: calc(var(--i, 0) * 90ms);
}
.uu--anim .uu__feld[data-uu-auf] { transform: translate3d(0, 30px, 0); }
.uu--anim [data-uu-auf].ist-da { opacity: 1; transform: none; }
.uu--anim .uu__feld.ist-da .uu-scheibe::after {
  transform: translate3d(175%, 0, 0) skewX(-14deg);
  transition: transform 1.6s cubic-bezier(.3, .6, .2, 1) calc(.55s + var(--i, 0) * 130ms);
}

/* ---------- ab Tablet: Fenster mittig über dem Text ---------- */
@media (min-width: 700px) {
  .uu {
    --uu-r: 12px;
    --uu-v: clamp(240px, calc((100vh - 220px) * 9 / 16), 360px);
    --uu-v: clamp(240px, calc((100svh - 220px) * 9 / 16), 360px);
  }
  .uu__feld { padding: 40px 0 10px; }
  .uu__feld::before, .uu__feld::after { bottom: -40px; }
  .uu__text { position: relative; z-index: 1; padding-top: 58px; }
  .uu-bank { margin-inline: -18px; height: 16px; }
  .uu-film__play { width: 84px; height: 84px; }
  .uu-film__play svg { width: 30px; height: 30px; }
}

/* ---------- Desktop: Text links (mittig zum Fenster), Fenster rechts in der Wand ---------- */
@media (min-width: 1100px) {
  .uu {
    --uu-r: 14px;
    /* so groß wie möglich, aber ganz im Bild (Höhe 16:9 der Breite) */
    --uu-v: clamp(280px, min(27vw, calc((100vh - 200px) * 9 / 16)), 410px);
    --uu-v: clamp(280px, min(27vw, calc((100svh - 200px) * 9 / 16)), 410px);
  }
  .uu__in {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: ". feld" "kopf feld" "text feld" ". feld";
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: clamp(64px, 7vw, 128px);
    row-gap: 0;
  }
  .uu__text { padding-top: 34px; }
  /* rechts etwas Luft, damit die schwebenden Knöpfe (nach oben, Chat) nicht auf dem Rahmen sitzen */
  .uu__feld { align-self: center; justify-content: start; padding: 56px 30px 16px 54px; }
  /* Wandfläche läuft bis an den rechten Rand */
  .uu__feld::before, .uu__feld::after {
    top: 0; bottom: -44px; left: 0;
    right: calc(var(--uu-rand) * -1);
  }
  .uu__feld::before { border-radius: 28px 0 0 28px; }
  .uu__feld::after {
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 45% 50%, transparent 30%, #000 55%, transparent 92%);
            mask-image: radial-gradient(ellipse 70% 70% at 45% 50%, transparent 30%, #000 55%, transparent 92%);
  }
  .uu-bank { margin-inline: -22px; height: 17px; }
}

/* ---------- Handy ---------- */
@media (max-width: 699px) {
  .uu.sect { padding-top: 56px; padding-bottom: 76px; }
  .uu__in { row-gap: 26px; }
  .uu__text { padding-top: 30px; }
  /* Steckbrief: Label über dem Wert, damit jede Angabe in eine Zeile passt */
  .uu-daten { padding: 2px 16px; }
  .uu-daten > div { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 12px 0 13px; }
  .uu-film__steuer { right: 10px; bottom: 14px; }
}
@media (max-width: 400px) {
  .uu-film__leiste { padding: 14px 12px 13px; gap: 8px; }
  .uu-film__namen b { font-size: .98rem; }
  .uu-film__namen small { font-size: .75rem; letter-spacing: .14em; }
  .uu-film__ton { padding: 9px 13px 9px 10px; font-size: .9rem; gap: 6px; }
  .uu-film__play { width: 70px; height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .uu-film__play, .uu-film__ton, .uu-film__leiste, .uu-film__poster, .uu-film__knopf, .uu__mehr svg { transition: none; }
  .uu-film__ton::after { animation: none !important; }
}

/* Responsive 18.11.2026: In schmalen Videokarten (Handy 320, quer) passte „KENNENLERNVIDEO“ nicht neben „Ton an“ →
   Namen bekommen mindestens 128 px, sonst rutscht der Ton-Knopf in eine eigene Zeile */
.uu-film__leiste { flex-wrap: wrap; }
.uu-film__namen { flex: 1 1 128px; }
