/* Interessenten anrufen — Oberfläche in der CI des HB-Programms (Physio+ Schwartz) */
:root {
  --paper: #f7f8f6;
  --surface: #ffffff;
  --ink: #223034;
  --ink-soft: #5b6b70;
  --line: #dfe3dd;
  --accent: #0f766e;
  --accent-ink: #0b5a54;
  --accent-soft: #e4f1ef;
  --warn: #b45309;
  --warn-soft: #fbf0e1;
  --crit: #b91c1c;
  --crit-soft: #fbeaea;
  --ok: #15803d;
  --ok-soft: #e7f3eb;
}

* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 'Segoe UI', system-ui, sans-serif; background: var(--paper); color: var(--ink); }

#kopf {
  background: var(--surface); border-bottom: 2px solid var(--accent);
  padding: 12px 26px; display: flex; align-items: center; gap: 16px;
}
#kopf .logo { height: 36px; width: auto; }
#kopf h1 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
#kopf h1 span { color: var(--accent); }
.untertitel { color: var(--ink-soft); font-size: 13px; margin-top: 1px; }
#kopf-rechts { margin-left: auto; display: flex; gap: 12px; align-items: center; color: var(--ink-soft); font-size: 13.5px; }
#kopf-rechts a.hilfe { text-decoration: none; font-size: 16px; }

main { max-width: 980px; margin: 0 auto; padding: 20px 26px 60px; }

h2 { color: var(--ink); font-size: 19px; margin: 6px 0 14px; letter-spacing: -0.01em; }
h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-ink); margin: 22px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 5px;
}
label { display: block; font-weight: 600; margin: 12px 0 4px; }
label .hinweis { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
input[type=text], input[type=date], input[type=time], input[type=password], select, textarea {
  font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); width: 100%; max-width: 420px;
}
textarea { min-height: 64px; resize: vertical; max-width: 640px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.zeile { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.zeile > div { min-width: 0; }
.schmal { max-width: 130px !important; }
.mittel { max-width: 220px !important; }

button { font: inherit; padding: 9px 16px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; font-weight: 600; }
button:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
button:disabled { opacity: .45; cursor: default; }
button.sekundaer { background: var(--surface); color: var(--accent-ink); }
button.sekundaer:hover { background: var(--accent-soft); }
button.gruen { background: var(--ok); border-color: var(--ok); }
button.gruen:hover { background: #116330; border-color: #116330; }
button.rot { background: var(--crit); border-color: var(--crit); }
button.rot:hover { background: #931919; border-color: #931919; }
button.klein { padding: 5px 10px; font-size: 13px; }
button.geist { background: transparent; border-color: var(--line); color: var(--ink-soft); font-weight: 400; }
button.geist:hover { background: var(--paper); border-color: var(--line); }

.karte { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 16px; }
.kasten-blau { background: var(--accent-soft); border: 1px solid #c4dedb; border-radius: 6px; padding: 12px 14px; color: var(--accent-ink); font-size: 14px; }
.kasten-gelb { background: var(--warn-soft); border: 1px solid #ecd9b8; border-radius: 6px; padding: 12px 14px; }
.kasten-gruen { background: var(--ok-soft); border: 1px solid #c2ddc9; border-radius: 6px; padding: 12px 14px; }

.statistik { color: var(--ok); font-weight: 600; font-size: 16px; margin: 8px 0 14px; }

.liste { list-style: none; margin: 6px 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); max-height: 300px; overflow-y: auto; }
.liste li { padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.liste li:last-child { border-bottom: 0; }
.liste li:hover { background: var(--accent-soft); }
.liste li.leer { color: var(--ink-soft); cursor: default; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
.tag.wv { background: var(--warn-soft); color: var(--warn); }
.tag.ne { background: var(--crit-soft); color: var(--crit); }

.fusszeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.fusszeile .rechts { display: flex; gap: 10px; margin-left: auto; }

.skript-layout { display: grid; grid-template-columns: 1fr 290px; gap: 14px; align-items: start; }
@media (max-width: 800px) { .skript-layout { grid-template-columns: 1fr; } }
.skript-text { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; white-space: pre-wrap; line-height: 1.55; font-size: 14.5px; }
.seitenspalte > div { margin-bottom: 12px; }
.seitenspalte label { margin-top: 8px; font-size: 13px; }
.seitenspalte input, .seitenspalte select, .seitenspalte textarea { max-width: 100%; font-size: 14px; }

.checkgruppe label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 8px 0; cursor: pointer; }
.checkgruppe input { width: auto; max-width: none; }

.behandlung { white-space: pre-wrap; line-height: 1.5; font-size: 14px; }

.zusammenfassung { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px; font-size: 13.5px; line-height: 1.6; }

.se-block { border: 1px solid var(--line); border-radius: 6px; margin: 8px 0; padding: 10px 14px; background: var(--surface); }
.se-block summary { cursor: pointer; padding: 4px 0; }
.se-block summary:hover { color: var(--accent-ink); }
.se-block textarea { font-family: inherit; font-size: 13.5px; line-height: 1.5; resize: vertical; }
.se-block label { margin-top: 10px; }

.fehler { background: var(--crit-soft); color: var(--crit); border: 1px solid #eec4c4; border-radius: 6px; padding: 10px 14px; margin: 10px 0; }
.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #c2ddc9; border-radius: 6px; padding: 10px 14px; margin: 10px 0; }
.meta { color: var(--ink-soft); font-size: 13px; }

.login-box {
  max-width: 380px; margin: 60px auto;
  border-top: 3px solid var(--accent); box-shadow: 0 8px 30px rgba(30, 45, 45, 0.08);
}
.menue { position: relative; }
.menue-inhalt { position: absolute; right: 0; top: 110%; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.15); min-width: 240px; z-index: 10; }
.menue-inhalt a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-size: 14px; }
.menue-inhalt a:hover { background: var(--accent-soft); }

table.benutzer { border-collapse: collapse; width: 100%; background: var(--surface); }
table.benutzer th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); padding: 9px 10px; background: #eef0ec; border-bottom: 1px solid var(--line);
}
table.benutzer td { border-bottom: 1px solid var(--line); padding: 6px 10px; }
table.benutzer tbody tr:hover { background: var(--accent-soft); }

.timerzeile { display: flex; gap: 10px; align-items: center; margin: 10px 0 14px; flex-wrap: wrap; }
.timeranzeige { font-weight: 700; color: var(--accent-ink); }
