/* Farben: festlich und freundlich */
:root {
  --bg: #fff6ec;
  --bg2: #ffe3ef;
  --fg: #3a2a36;
  --muted: #86707f;
  --card: #ffffff;
  --line: #f3cfdc;
  --accent: #f0467f;
  --accent2: #ff9f1c;
  --accent3: #2ec4b6;
  --accent-fg: #ffffff;
  --focus: #ffd166;
  --ok-bg: #d9f5ee;
  --err-bg: #ffe0e0;
  --shadow: 0 6px 20px rgba(240, 70, 127, .10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #231a2b;
    --bg2: #3a1f3d;
    --fg: #fbeef5;
    --muted: #c2a9b9;
    --card: #2e2338;
    --line: #4d3a58;
    --accent: #ff6b9d;
    --accent2: #ffb84d;
    --accent3: #4fd8c8;
    --accent-fg: #2a1230;
    --focus: #ffb84d;
    --ok-bg: #1d4a45;
    --err-bg: #5a2530;
    --shadow: 0 6px 20px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%) fixed;
  color: var(--fg);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
main { max-width: 680px; margin: 0 auto; padding: 40px 20px 72px; }
main.wide { max-width: 1100px; }
h1 {
  font-size: 2.2rem; line-height: 1.15; margin: 0 0 .5em;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: 1.3rem; margin: 2em 0 .6em; }
.lead { font-size: 1.2rem; margin: 0 0 1em; }
.hint, .opt { color: var(--muted); font-size: .9em; font-weight: 400; }
form { display: grid; gap: 28px; margin-top: 32px; }
fieldset {
  border: 0;
  border-top: 5px solid var(--accent);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 20px 24px 24px;
  margin: 0;
  display: grid;
  gap: 14px;
}
fieldset:nth-of-type(3n+2) { border-top-color: var(--accent2); }
fieldset:nth-of-type(3n) { border-top-color: var(--accent3); }
legend { font-weight: 700; font-size: 1.1rem; padding: 0 8px; }
fieldset label { display: flex; gap: 12px; align-items: center; cursor: pointer; }
fieldset label {
  padding: 8px 12px; margin: 0 -12px; border-radius: 12px;
  border: 2px solid transparent; transition: background .15s, opacity .15s;
}
fieldset label:has(input:checked) {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: var(--accent);
  font-weight: 700;
}
fieldset:has(input:checked) label:not(:has(input:checked)) { opacity: .5; }
fieldset:has(input:checked) label:not(:has(input:checked)):hover { opacity: .85; }
#details, #anreise { display: grid; gap: 28px; }
.field { display: grid; gap: 6px; font-weight: 700; }
.field input, .field textarea {
  font: inherit; font-weight: 400; color: inherit;
  padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--card); width: 100%;
}
.field input:focus, .field textarea:focus, button:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type=radio] { width: 1.3em; height: 1.3em; accent-color: var(--accent); flex: none; }
button, .btn {
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center;
  display: inline-block;
  padding: 14px 28px; border: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: var(--accent-fg); box-shadow: var(--shadow);
  transition: transform .15s;
}
button:hover, .btn:hover { transform: translateY(-2px); }
.box { padding: 18px 22px; border-radius: 16px; margin: 24px 0; }
.box.ok { background: var(--ok-bg); }
.box.err { background: var(--err-bg); }
.box h2 { margin-top: 0; }
.box ul { margin: 0; padding-left: 1.2em; }
.total { margin: 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent3) 18%, transparent); }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }
a { color: var(--accent); }

@media (min-width: 900px) {
  body { font-size: 20px; }
  main { max-width: 760px; padding-top: 64px; }
  h1 { font-size: 2.8rem; }
  fieldset { padding: 24px 32px 28px; }
}
@media (max-width: 480px) {
  .row { grid-template-columns: 1fr; }
}

/* Auswertung */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stat b { display: block; font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9em; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--card); font-size: .92rem; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td.num { text-align: right; }
.tag-no { color: var(--muted); }
