:root { --bg: #f7f4ec; --fg: #1a1a1a; --muted: #6b6a64; --accent: #1f5e5a; --accent-fg: #fff; --line: #e2ddd0; --card: #fffdf8; --danger: #a33a2a; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 1rem; }
code { font: .85em ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.top { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); font-size: 1.1rem; }
.top nav { display: flex; gap: 1rem; align-items: center; }
.top nav a { text-decoration: none; }
.wrap { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 1rem; border-top: 1px solid var(--line); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.cols { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cols { grid-template-columns: 1fr 1fr; } }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.error { color: var(--danger); } .ok { color: var(--accent); font-weight: 500; }
.hint { background: #efe9d8; border-radius: 8px; padding: .75rem 1rem; }
label { display: block; font-weight: 500; margin: .75rem 0 .3rem; }
label.check { font-weight: 400; display: flex; gap: .5rem; align-items: center; }
input:not([type=checkbox]), textarea { width: 100%; padding: .65rem .8rem; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: inherit; }
input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { resize: vertical; }
.btn { display: inline-block; margin-top: .75rem; padding: .7rem 1.2rem; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 8px; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { background: #17504c; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.small { padding: .4rem .8rem; font-size: .9rem; margin: 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
button.link.danger { color: var(--danger); }
form.inline { display: inline; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.tag { display: inline-block; font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: #e9e4d6; color: var(--muted); vertical-align: middle; }
.tag.coming { background: #d9ebe3; color: var(--accent); } .tag.message { background: #efe9d8; color: #6b5a1e; } .tag.away, .tag.timeout { background: #f0dcd8; color: var(--danger); }
.qr { display: block; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: .75rem; }
.quote { font-size: 1.15rem; }
.label { color: var(--muted); text-transform: none; font-size: .95rem; margin-bottom: .25rem; }

/* Besucher-Seiten */
body.visitor .wrap { display: flex; align-items: center; justify-content: center; text-align: center; }
.bell { width: 100%; max-width: 420px; padding: 1rem 0; }
.bell h1 { font-size: 2rem; margin-bottom: .5rem; }
.greeting { font-size: 1.1rem; }
.ringbtn { width: 220px; height: 220px; border-radius: 50%; border: 0; margin: 1.5rem auto; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font: inherit; font-size: 1.5rem; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(31, 94, 90, .25); -webkit-tap-highlight-color: transparent; }
.ringbtn:active { transform: scale(.97); }
.pulse { width: 96px; height: 96px; border-radius: 50%; margin: 1.5rem auto; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.82); opacity: .55; } }
.reply { font-size: 1.15rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
#msgform { text-align: left; margin-top: 1rem; }


/* Klingel-Banner im Dashboard */
.ring-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--accent); color: #fff; padding: .9rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.5rem; box-shadow: 0 6px 20px rgba(26, 26, 26, .25); animation: bannerin .3s ease-out; }
.ring-banner strong { font-size: 1.15rem; }
.ring-banner .row { gap: .5rem; }
.btn.light { background: #fff; color: var(--accent); margin: 0; }
.btn.light.outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .7); }
.btn.light:hover { background: #f7f4ec; } .btn.light.outline:hover { background: rgba(255, 255, 255, .12); }
body.has-banner { padding-top: 4.5rem; }
@keyframes bannerin { from { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .ring-banner { animation: none; } }
