/* mychat: Vollbild-Video der Gegenstelle, eigenes Bild klein in der Ecke */
:root {
  --grund: #101418;
  --flaeche: rgba(16, 20, 24, .72);
  --text: #f2f4f6;
  --akzent: #2f9e6b;
  --warn: #d2453a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--grund);
  color: var(--text);
  font: 17px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

video { background: #000; }

#du {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#ich {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 12px);
  right: calc(env(safe-area-inset-right) + 12px);
  width: 28vw;
  max-width: 180px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, .35);
  display: none;
  z-index: 2;
}

.spiegeln { transform: scaleX(-1); }

#mitte {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  text-align: center;
  z-index: 1;
  pointer-events: none;
}

#mitte > * { pointer-events: auto; }

#status {
  margin: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--flaeche);
  max-width: 26em;
}

#status:empty { display: none; }

button {
  font: inherit;
  color: var(--text);
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--flaeche);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  touch-action: manipulation;
}

button:disabled { opacity: .5; }

#start {
  background: var(--akzent);
  font-size: 20px;
  padding: 18px 34px;
}

#leiste {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 12px;
  z-index: 3;
}

#leiste button { padding: 12px 16px; font-size: 15px; }
#leiste button.aus { background: rgba(210, 69, 58, .55); }
#auflegen { background: var(--warn); }

/* Zustände */
body.imanruf #start { display: none; }
body.imanruf #ich { display: block; }
body.imanruf #leiste { display: flex; }
body.verbunden #du { display: block; }
body.verbunden #mitte { justify-content: flex-start; padding-top: calc(env(safe-area-inset-top) + 16px); }
