/* ============================================================
   Graustufen-Theme – gemeinsame Basis für alle Seiten
   ============================================================ */
:root {
  --bg-from: #fdfdfd;
  --bg-to: #f4f4f5;
  --surface: #ffffff;
  --surface-muted: #f5f5f5;
  --panel-bg: #e7e8ea; /* etwas dunkler als die weißen Formularfelder */
  --border: #dcdcdc;
  --border-strong: #c4c4c4;
  --text: #2e2e2e;
  --text-soft: #4a4a4a;
  --muted: #707070;
  --accent: #4a4a4a;
  --accent-hover: #2f2f2f;
  --header-from: #dadada;
  --header-to: #c4c4c4;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
  --radius: 12px;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-to);
  background-image: linear-gradient(180deg, var(--bg-from) 0%, var(--bg-to) 100%);
  background-attachment: fixed;
  padding-top: 100px; /* Platz für den fixierten Header */
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: linear-gradient(180deg, var(--header-from), var(--header-to));
  border-bottom: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
.site-header img.logo {
  height: 52px;
  width: auto;
  border-radius: 8px;
}
.site-header h1 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 92%;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
}

h2 {
  font-weight: 600;
  color: #2a2a2a;
}
.lead-muted {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ---------- Karten-/Panel-Fläche ---------- */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.panel + .panel {
  margin-top: 20px;
}

/* ---------- Links ---------- */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 500;
}

/* ---------- Formularfelder ---------- */
.form-label {
  font-weight: 600;
  color: var(--text-soft);
}
.form-control,
.form-select {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}
.form-control:focus,
.form-select:focus {
  border-color: #8a8a8a;
  box-shadow: 0 0 0 0.2rem rgba(120, 120, 120, 0.25);
}
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
.form-check-input:focus {
  border-color: #8a8a8a;
  box-shadow: 0 0 0 0.2rem rgba(120, 120, 120, 0.25);
}

/* ---------- Buttons (Bootstrap-Primary auf Grau umfärben) ---------- */
.btn {
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  font-weight: 500;
}
.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
  --bs-btn-disabled-bg: #9a9a9a;
  --bs-btn-disabled-border-color: #9a9a9a;
}
.btn-outline-secondary {
  --bs-btn-color: var(--accent);
  --bs-btn-border-color: var(--border-strong);
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
}

/* ---------- Trenner ---------- */
hr {
  border: 0;
  border-top: 1px solid #d2d3d5;
  margin: 1.25rem 0;
  opacity: 1;
}

/* ---------- Liste verfügbarer Formulare (Startseite) ---------- */
.list-group {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.list-group-item {
  border-color: #ececec;
  padding: 1.1rem 1.25rem;
}
.list-group-item-action {
  transition: background-color 0.15s ease;
}
.list-group-item-action:hover {
  background: var(--surface-muted);
}
.list-group-item .chevron {
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
}

/* ---------- Allgemeine Listen ---------- */
ul {
  list-style-type: none;
  padding: 0;
}
li {
  margin: 10px 0;
  padding: 10px;
  background-color: var(--surface);
  border-radius: 5px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #4a4a4a;
  color: #fff;
  padding: 7px;
  text-align: center;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Hinweis-/Berechtigungsbox ---------- */
.form-box {
  border: 1px solid var(--border);
  background-color: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 10px;
}

/* ---------- Druck ---------- */
@media print {
  body {
    padding-top: 30px;
    background: #fff;
  }
  .site-header {
    position: static;
    box-shadow: none;
    margin-bottom: 20px;
  }
  .panel,
  .list-group,
  .form-box {
    box-shadow: none;
  }
}
