/* rent-my-eyes — gemeinsames Aussehen (Farben der rent-my-Familie) */
[hidden] { display: none !important; }
:root {
    --blau: #1e3a8a; --blau-hell: #3b82f6; --akzent: #f97316; --dunkel: #0f172a;
    --grau: #64748b; --hell: #f8fafc; --weiss: #fff; --linie: #e2e8f0;
    --gruen: #16a34a; --rot: #dc2626; --gelb: #ca8a04;
    --flaeche: var(--weiss); --text: var(--dunkel); --grund: var(--hell);
}
@media (prefers-color-scheme: dark) {
    :root { --flaeche: #1e293b; --text: #e2e8f0; --grund: #0f172a; --linie: #334155; --grau: #94a3b8; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--grund); color: var(--text); line-height: 1.5; }
a { color: var(--blau-hell); }
.kopf { background: var(--blau); color: var(--weiss); padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kopf .marke { font-weight: 700; color: var(--weiss); text-decoration: none; font-size: 1.1rem; }
.kopf .marke span { color: var(--akzent); }
.kopf nav { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.kopf nav a { color: #dbeafe; text-decoration: none; }
.kopf nav a:hover { color: var(--weiss); }
.beta { background: var(--akzent); color: var(--weiss); font-size: .7rem; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: 1.5rem; margin: 0 0 16px; }
h2 { font-size: 1.15rem; margin: 24px 0 10px; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.knopf, button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; padding: 9px 16px;
    font: inherit; font-weight: 600; cursor: pointer; background: var(--blau-hell); color: var(--weiss); text-decoration: none; min-height: 40px; }
.knopf:hover, button:hover { filter: brightness(1.08); }
button:disabled, .knopf[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: none; }
.knopf.zweit, button.zweit { background: transparent; color: var(--text); border: 1px solid var(--linie); }
.knopf.akzent, button.akzent { background: var(--akzent); }
.knopf.gefahr, button.gefahr { background: var(--rot); }
button.klein, .knopf.klein { padding: 4px 10px; min-height: 30px; font-size: .9rem; }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
    width: 100%; padding: 9px 11px; border: 1px solid var(--linie); border-radius: 8px; font: inherit; background: var(--flaeche); color: var(--text); }
textarea { min-height: 80px; resize: vertical; }
.zeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.zeile > * { flex: 0 0 auto; }
.zeile .wachsen { flex: 1 1 200px; }
.leise { color: var(--grau); font-size: .9rem; }
.meldung { padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; background: #dbeafe; color: #1e3a8a; }
.meldung.fehler { background: #fee2e2; color: #991b1b; }
.meldung.ok { background: #dcfce7; color: #166534; }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--grau); vertical-align: middle; }
.punkt.an { background: var(--gruen); } .punkt.live { background: var(--rot); animation: puls 1.2s infinite; }
@keyframes puls { 50% { opacity: .35; } }
.abzeichen { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--linie); color: var(--text); }
.abzeichen.live { background: var(--rot); color: var(--weiss); }
.abzeichen.warn { background: #fef3c7; color: #92400e; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .85rem; color: var(--grau); font-weight: 600; }
.tabelle-huelle { overflow-x: auto; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; word-break: break-all; background: var(--grund); padding: 6px 8px; border-radius: 6px; border: 1px solid var(--linie); }
/* Player */
.buehne { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.buehne video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.buehne .ueber { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
    color: #e2e8f0; background: rgba(15, 23, 42, .55); font-size: 1.05rem; }
.buehne .ueber[hidden] { display: none; }
.buehne .ecke { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.ptt { width: 100%; min-height: 64px; font-size: 1.1rem; user-select: none; -webkit-user-select: none; touch-action: none; }
.ptt.spricht { background: var(--rot); }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: 6px 0; border-bottom: 1px solid var(--linie); font-size: .92rem; }
.liste li:last-child { border-bottom: 0; }
.qr { background: #fff; padding: 12px; border-radius: 8px; display: inline-block; }
.zweispaltig { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 820px) { .zweispaltig { grid-template-columns: 1fr; } }
.schmal { max-width: 420px; margin: 40px auto; }

/* Leinwand (leinwand.php): Vollbild, kein Rahmen */
body.leinwand { margin: 0; background: #000; overflow: hidden; }
.buehne.vollbild { position: fixed; inset: 0; aspect-ratio: auto; border-radius: 0; }
.buehne.vollbild video { width: 100%; height: 100%; object-fit: contain; }
.buehne.vollbild .ueber { font-size: clamp(1.2rem, 3vw, 2.4rem); }
body.ohne-zeiger, body.ohne-zeiger * { cursor: none !important; }

/* Handy-Sender: Text der Helfer über dem eigenen Kamerabild */
.hud-einblendung { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 14px; border-radius: 8px;
    background: rgba(15, 23, 42, .82); color: #fff; font-size: 1.1rem; line-height: 1.35; }
.hud-einblendung.wichtig { background: rgba(185, 28, 28, .9); font-weight: 600; }
