/* Schlichtes Basis-Layout, Feinschliff folgt (Daniel). */
:root {
  --petrol: #1f3a3d;
  --accent: #f2b705;
  --bg: #f6f7f7;
  --text: #1b1b1b;
  --muted: #5b6566;
  --error: #a4161a;
  --ok: #1e6b3a;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

[hidden] { display: none !important; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--petrol);
  color: #fff;
}
.topbar h1 { font-size: 1.15rem; margin: 0; }

.menu { position: relative; }
.menu summary {
  cursor: pointer;
  list-style: none;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  min-height: 44px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 16rem;
  padding: 0.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.2);
}

main { max-width: 40rem; margin: 0 auto; padding: 1rem; }

h2 { font-size: 1.3rem; margin: 0.5rem 0 1rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }

label { display: block; margin: 1rem 0 0.35rem; font-weight: 600; }
fieldset { border: 0; margin: 1rem 0 0; padding: 0; }
legend { font-weight: 600; margin-bottom: 0.35rem; padding: 0; }
.source label { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.25rem 1.5rem 0.25rem 0; font-weight: 400; min-height: 44px; }

input[type="text"], input[type="date"], select {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  border: 1px solid #9aa5a6;
  border-radius: var(--radius);
  background: #fff;
}
input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--petrol); }
input[type="radio"] { width: 1.3rem; height: 1.3rem; accent-color: var(--petrol); }
output { font-weight: 700; font-size: 1.2rem; }

button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0.75rem 0 0;
  padding: 0.6rem 1rem;
  font: inherit;
  border: 1px solid var(--petrol);
  border-radius: var(--radius);
  background: #fff;
  color: var(--petrol);
  cursor: pointer;
}
button.primary { background: var(--petrol); color: #fff; font-weight: 600; }
button.danger { background: var(--error); border-color: var(--error); color: #fff; }
.menu nav button { margin: 0; text-align: left; }

.choice-list .choice { font-size: 1.1rem; text-align: left; }

.toggles { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.toggle { width: auto; margin: 0; }
.toggle[aria-pressed="true"] { background: var(--petrol); color: #fff; box-shadow: inset 0 -4px 0 var(--accent); }

.hint, .muted { color: var(--muted); }
.warning {
  padding: 0.75rem;
  border: 1px solid var(--accent);
  background: #fff8e1;
  border-radius: 4px;
}
.status { padding: 0.75rem; border-radius: 4px; background: #e8eeee; }
.status.error { background: #fbe9ea; color: var(--error); }
.status.ok { background: #e6f4ea; color: var(--ok); }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 0.5rem; border-bottom: 1px solid #dde2e2; text-align: left; }

.qr { display: block; width: 100%; max-width: 20rem; height: auto; margin: 1rem auto; image-rendering: pixelated; }
