/* Gemeinsame Basis fuer alle Seiten der Sanitaetsausbildung. */

:root {
  --rot: #E30613;
  --rot-dunkel: #A4000C;
  --schwarz: #1C1C1C;
  --grau-text: #5A5A5A;
  --grau-linie: #DFDFDF;
  --grau-flaeche: #F4F4F4;
  --weiss: #FFFFFF;
  --gruen: #1E7A4C;

  --radius: 10px;
  --schatten: 0 1px 3px rgba(0, 0, 0, .08), 0 6px 18px rgba(0, 0, 0, .05);
  --breite: 62rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--schwarz);
  background: var(--grau-flaeche);
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--rot-dunkel); }

.wrap {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Kopf und Fuss */

.site-header {
  background: var(--rot);
  color: var(--weiss);
  padding: 1rem 0;
}
.site-header h1 { margin: 0; }
.site-header .back {
  color: var(--weiss);
  text-decoration: none;
  font-size: .9rem;
  opacity: .9;
}
.site-header .back:hover { text-decoration: underline; }
.header-inner { display: flex; flex-direction: column; gap: .15rem; }

.site-footer {
  margin-top: 2.5rem;
  padding: 1.25rem 0 2rem;
  color: var(--grau-text);
  font-size: .85rem;
  border-top: 1px solid var(--grau-linie);
}
.site-footer p { margin: 0; }

/* Flaechen */

.panel {
  background: var(--weiss);
  border: 1px solid var(--grau-linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.25rem;
  margin: 1.25rem 0;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}

.hint, .fussnote {
  color: var(--grau-text);
  font-size: .875rem;
}
.fussnote { margin: 1rem 0 0; }

/* Formularelemente */

input[type="text"],
input[type="search"],
select {
  font: inherit;
  color: inherit;
  padding: .6rem .7rem;
  border: 1px solid #BFBFBF;
  border-radius: 8px;
  background: var(--weiss);
  width: 100%;
  min-height: 44px;
}
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--rot);
  outline-offset: 2px;
}

.btn {
  font: inherit;
  font-weight: 600;
  padding: .6rem 1rem;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--grau-flaeche);
  color: var(--schwarz);
}
.btn-primary { background: var(--rot); color: var(--weiss); }
.btn-primary:hover { background: var(--rot-dunkel); }
.btn-ghost { background: var(--weiss); border-color: #BFBFBF; }
.btn-ghost:hover { background: var(--grau-flaeche); }
.btn-danger { background: var(--weiss); border-color: var(--rot); color: var(--rot-dunkel); }
.btn-danger:hover { background: var(--rot); color: var(--weiss); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Startseite: Kachelraster */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  height: 100%;
  padding: 1.1rem;
  background: var(--weiss);
  border: 1px solid var(--grau-linie);
  border-left: 4px solid var(--rot);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  text-decoration: none;
  color: inherit;
}
.card:hover { border-left-color: var(--rot-dunkel); background: #FFFBFB; }
.card b { font-size: 1.05rem; }
.card span { color: var(--grau-text); font-size: .9rem; }
.card--soon {
  border-left-color: var(--grau-linie);
  background: var(--grau-flaeche);
  box-shadow: none;
  cursor: default;
}
.card--soon:hover { background: var(--grau-flaeche); border-left-color: var(--grau-linie); }
.badge {
  align-self: flex-start;
  margin-top: .35rem;
  padding: .1rem .5rem;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--grau-linie);
  color: var(--grau-text);
}

.kopf-sub { margin: 0; opacity: .9; font-size: .95rem; }

.badge-extern {
  background: transparent;
  border: 1px solid var(--grau-linie);
}
.badge-extern::after { content: " ↗"; }
