/* Praxis-Portal – gemeinsames Design. Ruhig, kontraststark, große Klickflächen:
   die Patienten sind teils Kinder, teils ältere Menschen. */

@font-face {
  font-family: 'Lato';
  src: local('Lato'), local('Lato Regular');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f4f6f8;
  --karte: #ffffff;
  --rand: #dde3ea;
  --text: #1f2933;
  --gedaempft: #647485;
  --akzent: #2a7f8f;
  --akzent-dunkel: #1f6272;
  --gut: #2e7d54;
  --warn: #b06d1a;
  --fehler: #b3261e;
  --radius: 10px;
  --schatten: 0 1px 3px rgba(31, 41, 51, .08), 0 4px 14px rgba(31, 41, 51, .05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
}

h1, h2, h3 { margin: 0 0 .5em; font-weight: 700; line-height: 1.25; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }

a { color: var(--akzent); }

.kopf {
  background: var(--karte);
  border-bottom: 1px solid var(--rand);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.kopf .marke { font-weight: 700; font-size: 1.05rem; }
.kopf .fueller { flex: 1; }

.huelle { max-width: 1200px; margin: 0 auto; padding: 20px; }

.karte {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 18px;
  margin-bottom: 18px;
}

label { display: block; font-size: .85rem; font-weight: 700; color: var(--gedaempft); margin-bottom: 4px; }

input[type=text], input[type=password], input[type=email], input[type=tel],
input[type=date], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rand);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; border-color: var(--akzent); }
textarea { min-height: 80px; resize: vertical; }

.knopf {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 18px; min-height: 44px;
  border: 1px solid var(--akzent); border-radius: 8px;
  background: var(--akzent); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: none;
}
.knopf:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.knopf.sek { background: #fff; color: var(--text); border-color: var(--rand); }
.knopf.sek:hover { background: #eef2f5; }
.knopf.gefahr { background: var(--fehler); border-color: var(--fehler); }
.knopf.klein { padding: 6px 12px; min-height: 36px; font-size: .9rem; }

.reihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.feld { flex: 1; min-width: 180px; margin-bottom: 12px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--gedaempft); }

.plakette { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eef2f5; color: var(--gedaempft); }
.plakette.gut { background: #e3f3ea; color: var(--gut); }
.plakette.warn { background: #fbf0dd; color: var(--warn); }
.plakette.fehler { background: #fbe6e5; color: var(--fehler); }

.hinweis { padding: 12px 14px; border-radius: 8px; border-left: 4px solid var(--akzent); background: #eaf3f5; margin-bottom: 14px; }
.hinweis.warn { border-left-color: var(--warn); background: #fbf3e5; }
.hinweis.fehler { border-left-color: var(--fehler); background: #fbeceb; }

.leer { text-align: center; color: var(--gedaempft); padding: 30px 10px; }

/* ---------- Sitzungsraum ---------- */

.raum { position: fixed; inset: 0; display: flex; flex-direction: column; background: #10171d; color: #eef2f5; }
.raum .buehne { flex: 1; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 10px; min-height: 0; }
.raum .buehne.mit-material { grid-template-columns: 1fr 1fr; }

.videofeld { position: relative; background: #05090c; border-radius: var(--radius); overflow: hidden; min-height: 0; display: flex; align-items: center; justify-content: center; }
.videofeld video { width: 100%; height: 100%; object-fit: contain; background: #05090c; }
.videofeld .schild { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.6); padding: 4px 10px; border-radius: 6px; font-size: .85rem; }
.videofeld.eigenes { position: absolute; right: 16px; bottom: 86px; width: 200px; height: 120px; border: 2px solid rgba(255,255,255,.25); z-index: 5; }
.videofeld .warten { color: #8fa0ae; text-align: center; padding: 20px; }

.materialflaeche { background: #fff; border-radius: var(--radius); overflow: auto; display: flex; align-items: center; justify-content: center; min-height: 0; }
.materialflaeche img { max-width: 100%; max-height: 100%; object-fit: contain; }
.materialflaeche iframe { width: 100%; height: 100%; border: 0; }

.leiste { display: flex; gap: 10px; padding: 12px; background: #18222b; align-items: center; justify-content: center; flex-wrap: wrap; }
.leiste .knopf { background: #263440; border-color: #35485a; color: #eef2f5; min-width: 52px; }
.leiste .knopf:hover { background: #32424f; }
.leiste .knopf.an { background: var(--akzent); border-color: var(--akzent); }
.leiste .knopf.auflegen { background: var(--fehler); border-color: var(--fehler); }
.leiste .info { color: #8fa0ae; font-size: .85rem; margin-right: auto; padding-left: 8px; }

/* ---------- Chat ---------- */

.chatverlauf { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.blase { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: #eef2f5; }
.blase.eigen { align-self: flex-end; background: var(--akzent); color: #fff; }
.blase .zeit { display: block; font-size: .72rem; opacity: .75; margin-top: 4px; }
.blase a { color: inherit; text-decoration: underline; }

@media (max-width: 800px) {
  .raum .buehne.mit-material { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .videofeld.eigenes { width: 120px; height: 80px; right: 10px; bottom: 78px; }
  .huelle { padding: 12px; }
}
