/* Bewusst grosse Schrift/Buttons: Zielgruppe schliesst Senioren mit ein. */

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #10131a;
  color: #f2f4f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
}

.screen {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.3rem;
  margin: 0 0 .5rem;
}

.panel {
  background: #1a1f2b;
  border: 1px solid #2a3040;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: .5rem;
  color: #b7bfcc;
}

.hint {
  color: #9aa3b2;
  font-size: 1rem;
  margin: .25rem 0 1rem;
}

input[type="text"] {
  width: 100%;
  font-size: 1.4rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 2px solid #2a3040;
  background: #10131a;
  color: #f2f4f7;
  margin-bottom: 1rem;
}

input[type="text"]:focus {
  outline: none;
  border-color: #4d8dff;
}

.btn {
  display: block;
  width: 100%;
  font-size: 1.3rem;
  padding: 1rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary { background: #4d8dff; color: #0a0f1a; }
.btn-secondary { background: #2a3040; color: #f2f4f7; }
.btn-danger { background: #e5484d; color: #fff; }
.btn-control { background: #2a3040; color: #f2f4f7; }

.btn:active { transform: scale(0.98); }

.error {
  color: #ff9b9b;
  background: #3a1a1c;
  border: 1px solid #5c2328;
  border-radius: 12px;
  padding: .75rem 1rem;
  font-size: 1.1rem;
}

.status {
  text-align: center;
  font-size: 1.2rem;
  padding: .5rem;
  color: #b7bfcc;
}

.room-code {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.room-code strong {
  font-size: 1.8rem;
  letter-spacing: .1em;
  color: #4d8dff;
}

.video-area {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.remote-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.remote-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.local-container {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30%;
  max-width: 160px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #2a3040;
}
.local-container video {
  width: 100%;
  display: block;
  transform: scaleX(-1); /* Selbstansicht gespiegelt, wie ein Spiegel */
}

.controls {
  display: flex;
  gap: .75rem;
}
.controls .btn { flex: 1; }

@media (max-width: 420px) {
  body { font-size: 18px; }
  h1 { font-size: 1.8rem; }
}

.btn-call {
  font-size: 1.8rem;
  padding: 1.75rem;
}

.family-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.family-card .btn { width: auto; flex: 0 0 auto; }

select {
  width: 100%;
  font-size: 1.2rem;
  padding: .6rem .75rem;
  border-radius: 12px;
  border: 2px solid #2a3040;
  background: #10131a;
  color: #f2f4f7;
  margin-bottom: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: .5rem .4rem;
  border-bottom: 1px solid #2a3040;
}
.admin-table .btn-small {
  width: auto;
  display: inline-block;
  padding: .35rem .7rem;
  font-size: .85rem;
  border-radius: 8px;
  margin-right: .3rem;
}
