/* Studio-Look: Schokobraun und Gold, Serif für Überschriften. Bewusst nur dunkel. */
:root {
  --ground: #241812;
  --panel: #2f2119;
  --raised: #3a2a1f;
  --line: #5a4334;
  --line-strong: #8a7058;
  --ink: #f3ead8;
  --soft: #d9cbb2;
  --muted: #bba88c;
  --gold: #d4af5a;
  --gold-hi: #e8c878;
  --on-gold: #241812;
  --alert: #f0a88a;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
a { color: var(--gold); } a:hover { color: var(--gold-hi); }
.wrap { max-width: 560px; margin: 0 auto; padding-inline: 20px; padding-block: 24px 40px; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.logo { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: 3px; color: var(--gold); }
.by { font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.progress { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.progress span { height: 4px; border-radius: 2px; background: var(--line); }
.progress span.on { background: var(--gold); }
.stepinfo { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
form { display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; flex-direction: column; gap: 18px; }
h1 { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.1; text-wrap: balance; }
.lead { margin: -8px 0 0; color: var(--soft); }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
legend, .label { font-weight: 700; padding: 0; margin-bottom: 10px; }
label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.muted { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: 12px 14px; font: inherit; font-weight: 400; }
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #9c8a70; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full { grid-column: 1 / -1; }
.seg { display: grid; gap: 8px; }
.seg.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--soft); font-weight: 400; cursor: pointer; }
.seg input:checked + span { border: 1.5px solid var(--gold); background: var(--raised); color: var(--ink); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; color: var(--soft); }
.check input { width: 22px; min-height: 22px; height: 22px; margin: 1px 0 0; padding: 0; flex: none; accent-color: var(--gold); }
.check.box { padding: 14px; border-radius: 10px; background: var(--raised); }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.note { padding: 14px; border-radius: 10px; background: var(--raised); color: var(--soft); font-size: 15px; }
.notice { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 10px; border: 1.5px solid var(--gold); background: var(--raised); color: var(--soft); font-size: 15px; }
.notice strong { color: var(--ink); font-size: 16px; }
.notice.stop { border-color: var(--alert); }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--raised); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(36,24,18,.85); color: var(--ink); font-size: 18px; cursor: pointer; }
.thumb select { position: absolute; left: 6px; right: 6px; bottom: 6px; width: auto; min-height: 32px; padding: 2px 6px; font-size: 12px; background: rgba(36,24,18,.9); }
.upload { position: relative; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload span { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 10px; border: 1.5px dashed var(--line-strong); color: var(--gold); font-weight: 700; cursor: pointer; }
.upload input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.estimate { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 12px; background: var(--raised); border: 1.5px solid var(--gold); }
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.k { font-size: 13px; color: var(--muted); }
.v { font-family: var(--display); font-size: 32px; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.15; }
.fine { margin: 0; font-size: 13px; color: var(--soft); }
#slot-area { display: flex; flex-direction: column; gap: 12px; }
.slots { display: flex; flex-direction: column; gap: 12px; }
.day { display: flex; flex-direction: column; gap: 6px; }
.day-name { font-size: 14px; font-weight: 700; color: var(--soft); }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.time { min-height: 44px; min-width: 72px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--soft); font: inherit; cursor: pointer; }
.time[aria-pressed="true"] { border: 1.5px solid var(--gold); background: var(--raised); color: var(--ink); font-weight: 700; }
.link { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }
.nav { display: flex; gap: 10px; }
.nav button { min-height: 54px; border-radius: 12px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.back { flex: 0 0 auto; padding: 0 18px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); }
.next { flex: 1; border: 0; background: var(--gold); color: var(--on-gold); }
.next:disabled { opacity: .6; cursor: wait; }
.error { margin: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--alert); color: #f6c8b4; font-size: 15px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.foot { text-align: center; font-size: 13px; color: var(--muted); }
.done h1 { color: var(--gold); }
@media (max-width: 380px) { .grid.two { grid-template-columns: minmax(0, 1fr); } .seg.three span { font-size: 14px; } }
@media (prefers-reduced-motion: no-preference) { .step { animation: in .25s ease-out; } @keyframes in { from { opacity: .4; transform: translateY(6px); } } }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-weight: 700; color: var(--ink); }
.choices span small { font-weight: 400; font-size: 14px; color: var(--muted); }
.choices input:checked + span { border: 1.5px solid var(--gold); background: var(--raised); }
.choices input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.counter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }

/* Formularfelder in zwei Spalten unten bündig, Datumsfeld nie breiter als die Spalte */
.grid > label { justify-content: space-between; min-width: 0; }
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.check span { flex: 1; min-width: 0; }

.next-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--soft); }
.next-steps li::marker { color: var(--gold); font-weight: 700; }
.v.small { font-size: 26px; }
.item-head { font-weight: 700; color: var(--gold, #d4b15a); margin: 4px 0 -4px; }
.item { border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; margin-top: 6px; display: grid; gap: 12px; }
#part-notices { display: grid; gap: 12px; }
#part-notices:has(> :not([hidden])) { margin: 4px 0; }
/* Rechtstexte */
.legal { display: grid; gap: 14px; }
.legal h2 { margin: 18px 0 0; font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--gold); }
.legal p, .legal li { margin: 0; color: var(--soft); }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.legal address { font-style: normal; color: var(--ink); }
.todo { background: #6b3a1f; color: #ffd9a8; padding: 0 4px; border-radius: 4px; }
/* Schriftzug oben: Blattgold mit leichtem Glanz, der langsam darüberläuft */
.logo, .by {
  background: linear-gradient(105deg, #9c7631 0%, #d4af5a 22%, #f6e3a8 38%, #d4af5a 52%, #a8823a 70%, #e8c878 86%, #9c7631 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: goldglanz 9s ease-in-out infinite;
}
.logo { filter: drop-shadow(0 1px 0 rgba(0,0,0,.45)); }
.by { font-family: var(--display); font-style: italic; font-size: 16px; letter-spacing: 1.5px; }
@keyframes goldglanz { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .logo, .by { animation: none; background-position: 40% 0; } }
.notice.ok { border-color: #9fc48a; }
.linklike { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--soft); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; }

.month-group { border: 1px solid var(--line, #3a2c22); border-radius: 10px; padding: 8px 12px; }
.month-group summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.month-days { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
#choices { flex-direction: column; }
#choices { gap: 12px; }
#choices .choice-day .k { margin-bottom: 6px; }
#choices .time { padding: 0 14px; }
