/*
 * order.css - Formular- und Ablauf-Elemente des Bestellsystems.
 * Nach page.css / header.css / footer.css einbinden. Nutzt deren Design-Tokens (--accent, --surface-*, ...).
 */

/* Fortschrittsanzeige */
.steps {
    display: flex;
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}
.steps li {
    flex: 1 1 0;
    padding: 8px 6px;
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    border-bottom: 4px solid var(--surface-border);
}
.steps li.done   { color: var(--text); border-bottom-color: var(--accent); }
.steps li.active { color: var(--heading); font-weight: bold; border-bottom-color: var(--heading); }
.steps .nr { display: block; font-size: 14px; }

/* Inhaltsflaeche */
.order-content { padding: 20px; margin-bottom: 20px; }
.order-content h2 { margin: 0 0 6px 0; font-size: 25px; color: var(--heading); }
.order-content h3 { margin: 24px 0 8px 0; font-size: 19px; color: var(--heading); border-bottom: 1px solid var(--surface-border); padding-bottom: 4px; }
.lead { margin: 0 0 16px 0; color: var(--text-muted); }

/* Hinweisbox (z.B. Beispielseite) */
.notice {
    margin: 0 0 20px 0; padding: 10px 14px;
    background: #fff8e1; border: 1px solid #f0d98a; border-radius: var(--radius);
    font-size: 16px;
}

/* Formularzeilen: Label oben, Feld darunter; zwei Spalten ab 700px */
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.field { box-sizing: border-box; width: 100%; padding: 0 8px; margin-bottom: 14px; }
.field.half  { width: 50%; }
.field.third { width: 33.333%; }
.field.wide  { width: 66.666%; }
.field label, .field .label { display: block; margin-bottom: 4px; font-weight: bold; font-size: 16px; }
.req { color: #b3261e; }
.hint { display: block; margin-top: 3px; font-size: 15px; color: var(--text-faint); }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field select, .field textarea {
    box-sizing: border-box; width: 100%;
    padding: 8px 10px;
    font: inherit; color: var(--text);
    background: #fff; border: 1px solid #b9c7d6; border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent);
}
.choice { display: inline-block; margin-right: 18px; font-weight: normal; }
.choice input { margin-right: 5px; }

/* Knopfleiste */
.actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.actions.has-back { flex-direction: row-reverse; }
.btn {
    display: inline-block; padding: 9px 22px; font: inherit; font-weight: bold; cursor: pointer;
    color: #fff; background: var(--accent); border: 1px solid var(--heading); border-radius: var(--radius);
    text-decoration: none;
}
.btn:hover { background: var(--heading); }
.btn.secondary { color: var(--link); background: #fff; border-color: #b9c7d6; }

@media screen and (max-width: 700px) {
    .field.half, .field.third, .field.wide { width: 100%; }
    .steps li { font-size: 14px; padding: 6px 2px; }
}

/* Fehleranzeige und Formularkleinteile */
.notice.error { background: #fdecea; border-color: #f1aeb5; }
.notice.error ul { margin: 6px 0 0 18px; padding: 0; }
[data-error] input, [data-error] select { border-color: #b3261e; }
[data-error] .label, [data-error] label { color: #b3261e; }
.phone input { width: auto; display: inline-block; }
.phone input[name$="cphone"] { width: 4.5em; } .phone input[name$="pphone"] { width: 6em; } .phone input[name$="nphone"] { width: 12em; }
.birth select, .birth input { width: auto; display: inline-block; min-width: 4.5em; }
.birth input[name="BYEAR"] { width: 5.5em; min-width: 0; }

.field .spam { margin-top: 8px; }
.field .spam .hint { display: block; margin: 2px 0 0 24px; }
#row-birth { margin-top: 18px; }

/* Domain-Seite: jede Option ist ein eigener Block mit abgesetzter Titelzeile (Hintergrund wie im Altsystem, nur dezenter) und leicht getoenter Flaeche */
fieldset.domopt { border: 1px solid #b9cbdd; border-radius: 6px; margin: 0 0 21px 0; padding: 0 14px 8px 14px; background: #f7fafd; }
fieldset.domopt .daction { display: block; margin: 0 -14px 10px -14px; padding: 9px 14px; background: #dbe7f3; border-bottom: 1px solid #b9cbdd; border-radius: 5px 5px 0 0; color: var(--heading); }
fieldset.domopt:has(input[type="radio"]:checked) { border-color: var(--accent); }
fieldset.domopt:has(input[type="radio"]:checked) .daction { background: #c3d8ee; border-bottom-color: var(--accent); }
.dom input[type=text] { width: 60%; display: inline-block; }
.dom select { width: auto; display: inline-block; }

table.products { width: 100%; border-collapse: collapse; margin: 8px 0; }
table.products th { text-align: left; font-size: 16px; color: var(--heading); border-bottom: 1px solid var(--surface-border); padding: 4px 8px; }
table.products td { padding: 8px; border-bottom: 1px solid var(--surface-border); vertical-align: top; }
table.products .num { text-align: right; white-space: nowrap; }
table.products td:first-child { width: 2em; }
.optblock { margin-top: 12px; }

fieldset.paybox { border: 1px solid var(--surface-border); border-radius: 6px; margin: 12px 0; padding: 8px 14px; }
fieldset.paybox legend { font-weight: bold; padding: 0 6px; }
table.pricetable tr.sum td { border-top: 2px solid var(--surface-border); }
table.pricetable tr.total td { font-size: 1.05em; }
dl.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 12px 0 18px 0; padding: 10px 14px; border: 1px solid var(--surface-border); border-radius: 6px; }
dl.summary dt { font-weight: 600; color: var(--heading); }
dl.summary dd { margin: 0; }

.order-content p.question { margin: 0 0 4px 0; font-size: 18px; }
.order-content p.intro { margin: 0 0 14px 0; }
.optinfo { margin: 4px 0 10px 0; font-size: 15px; color: var(--text-faint); }     /* wie der IDN-Hinweis oben auf der Seite (.hint) */
.optinfo p { margin: 0 0 8px 0; }
