/* Dr. Panic — medizinisch-illustriertes 2D-Design (D-14).
   Farben über CSS-Variablen; Dark und Light Mode vollständig über
   prefers-color-scheme, ohne Speicherung einer Präferenz. */

:root {
  --dp-hintergrund: #f7f3ee;
  --dp-flaeche: #ffffff;
  --dp-text: #2b2320;
  --dp-primaer: #a3283a;
  --dp-primaer-hell: #c94f5e;
  --dp-akzent: #2e6e63;
  --dp-linie: #d9cfc4;
  --dp-link: #8c2433;
}

@media (prefers-color-scheme: dark) {
  :root {
    --dp-hintergrund: #1b1614;
    --dp-flaeche: #262019;
    --dp-text: #ece4da;
    --dp-primaer: #d96a76;
    --dp-primaer-hell: #b34552;
    --dp-akzent: #7bb8ac;
    --dp-linie: #453a30;
    --dp-link: #e38994;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--dp-hintergrund);
  color: var(--dp-text);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.55;
}

.dp-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--dp-flaeche);
  border-bottom: 3px double var(--dp-primaer);
}

.dp-header__marke {
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--dp-primaer);
  letter-spacing: 0.04em;
}

.dp-header nav { display: flex; gap: 1rem; }

a { color: var(--dp-link); }
a:hover { color: var(--dp-primaer-hell); }

main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

h1, h2 {
  color: var(--dp-primaer);
  font-weight: 600;
  border-bottom: 1px solid var(--dp-linie);
  padding-bottom: 0.25rem;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: var(--dp-flaeche);
  border: 1px solid var(--dp-linie);
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
}

button {
  cursor: pointer;
  border-color: var(--dp-primaer);
}
button:hover { background: var(--dp-primaer); color: var(--dp-flaeche); }

table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--dp-linie); padding: 0.4rem 0.5rem; text-align: left; }

/* Spieloberfläche (dp_sessions) */

.dp-spiel canvas {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  border: 2px solid var(--dp-linie);
  border-radius: 6px;
  background: #e8c39e;
  touch-action: none;
}

#dp-werkzeuge {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

#dp-vital {
  font-variant-numeric: tabular-nums;
  padding: 0.4rem 0.7rem;
  background: var(--dp-flaeche);
  border-left: 4px solid var(--dp-primaer);
}

#dp-hinweise { color: var(--dp-akzent); font-style: italic; }
#dp-ende { font-size: 1.2rem; font-weight: bold; color: var(--dp-primaer); }

/* Fallliste (dp_cases) */

.dp-faelliste { list-style: none; padding: 0; }
.dp-faelliste li {
  background: var(--dp-flaeche);
  border: 1px solid var(--dp-linie);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

/* Footer mit Rechtslinks und Simulations-Hinweis (D-05) */

.dp-footer {
  border-top: 3px double var(--dp-primaer);
  background: var(--dp-flaeche);
  padding: 1rem 1.25rem 1.5rem;
  text-align: center;
}

.dp-footer nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.dp-footer__hinweis {
  font-size: 0.85rem;
  color: var(--dp-text);
  opacity: 0.75;
  max-width: 40rem;
  margin: 0 auto;
}
