/* staufest Halter-Konfigurator – Slate #2c3e50, Rot #d7352b. Große Bedienelemente, tablet-tauglich. */
:root {
  --slate: #2c3e50; --slate-hell: #44586d; --rot: #d7352b; --rot-dunkel: #b3271f;
  --grund: #f3f1ed; --karte: #ffffff; --linie: #d9d5cd; --text: #1f2a35; --leise: #5d6874;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font-family: "Barlow", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; line-height: 1.45;
}
.kopf {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.8rem max(16px, 4vw); background: var(--slate); color: #fff; border-bottom: 5px solid var(--rot);
}
.marke { font-weight: 700; font-size: 1.5rem; letter-spacing: 0.02em; }
.kopf .leise { color: #c5cfd9; margin-left: 0.6rem; }
main { max-width: 1100px; margin: 0 auto; padding: 1.2rem max(16px, 4vw) 3rem; display: grid; gap: 1.2rem; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.karte.schmal { max-width: 26rem; margin: 12vh auto 0; border-top: 5px solid var(--rot); }
h1 { margin: 0 0 0.6rem; font-size: 1.6rem; }
h2 { margin: 0 0 1rem; font-size: 1.35rem; display: flex; align-items: center; gap: 0.7rem; }
h3 { margin: 0 0 0.6rem; font-size: 1.25rem; }
.nr {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--slate); color: #fff; font-size: 1.05rem; flex: none;
}
.leise { color: var(--leise); font-size: 0.9rem; margin: 0.35rem 0 0; }
.felder { display: grid; gap: 1.2rem 1.6rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.feld { border: 0; padding: 0; margin: 0; min-width: 0; }
label, legend { display: block; font-weight: 600; margin-bottom: 0.35rem; padding: 0; }
input:not([type]), input[type="password"] {
  width: 100%; font: inherit; font-size: 1.5rem; padding: 0.55rem 0.7rem; color: var(--text);
  border: 2px solid var(--linie); border-radius: 8px; background: #fff;
}
input:focus-visible, button:focus-visible, a:focus-visible, .umschalter input:focus-visible + span {
  outline: 3px solid #f0a9a4; outline-offset: 2px; border-color: var(--rot);
}
.mit-einheit { display: flex; align-items: center; gap: 0.5rem; }
.mit-einheit span { font-size: 1.2rem; color: var(--leise); }
.umschalter { display: flex; border: 2px solid var(--linie); border-radius: 8px; overflow: hidden; }
.umschalter label { flex: 1; margin: 0; font-weight: 600; cursor: pointer; }
.umschalter input { position: absolute; opacity: 0; }
.umschalter span { display: block; text-align: center; padding: 0.7rem 0.5rem; }
.umschalter input:checked + span { background: var(--slate); color: #fff; }
.haken { display: flex; align-items: center; gap: 0.55rem; font-weight: 400; margin-top: 0.9rem; cursor: pointer; }
.haken input { width: 1.3rem; height: 1.3rem; accent-color: var(--slate); }

.kacheln { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); margin-top: 0.8rem; }
.kachel {
  font: inherit; text-align: left; cursor: pointer; background: #fff; color: var(--text);
  border: 2px solid var(--linie); border-radius: var(--radius); padding: 0.9rem 1rem; min-height: 6.2rem;
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
.kachel:hover { border-color: var(--slate); transform: translateY(-2px); box-shadow: 0 4px 14px rgb(44 62 80 / .14); }
.kachel[aria-pressed="true"] { border-color: var(--rot); background: #fdf3f2; }
.kachel b { display: block; font-size: 1.45rem; line-height: 1.15; }
.kachel span { display: block; color: var(--leise); font-size: 0.92rem; }
.kachel .teile { color: var(--rot-dunkel); font-weight: 600; }
.punkte { display: flex; gap: 4px; margin: 0.45rem 0 0.1rem; flex-wrap: wrap; }
.punkte i { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--slate); display: block; }
.punkte i.fuge { border: 0; width: 3px; border-radius: 0; background: var(--rot); }

button.haupt, a.knopf {
  display: inline-block; font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; text-decoration: none;
  background: var(--rot); color: #fff; border: 0; border-radius: 8px; padding: 0.85rem 1.4rem; margin-top: 1rem;
}
button.haupt:hover, a.knopf:hover { background: var(--rot-dunkel); }
button.still { font: inherit; font-size: 0.9rem; background: transparent; color: #fff; border: 1px solid #8fa0b1; border-radius: 6px; padding: 0.35rem 0.8rem; cursor: pointer; }
.meldung { background: #fdecea; border-left: 5px solid var(--rot); padding: 0.7rem 0.9rem; border-radius: 6px; margin: 0.8rem 0; }

.arbeit { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 0; font-size: 1.1rem; }
.kreisel { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 5px solid var(--linie); border-top-color: var(--rot); animation: dreh 0.9s linear infinite; flex: none; }
@keyframes dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .kreisel { animation-duration: 3s; } .kachel { transition: none; } }

.fertig { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); align-items: start; }
.ansicht { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: linear-gradient(#e9edf1, #cfd6de); touch-action: none; }
.ansicht canvas { display: block; width: 100%; height: 100%; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0; }
dt { color: var(--leise); }
dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) { .fertig { grid-template-columns: 1fr; } html { font-size: 17px; } }
[hidden] { display: none !important; }
