/* Bestellseite – nutzt die Farben aus main.css (schwarz / bisque) */

.orderLayout {
    max-width: 900px;
    margin: 0 auto;
}

.orderForm {
    max-width: none;
    margin: 0 0 6vh 0;
    padding-bottom: 2rem;
}

.orderForm h2 {
    margin-top: 0;
}

.orderForm h3 {
    margin: 1.8rem 0 0.6rem;
    border-bottom: 2px solid black;
    padding-bottom: 0.3rem;
}

/* Hinweisbox (Abholung / Bezahlung) */
.notice {
    background-color: bisque;
    color: black;
    border: 3px solid black;
    border-radius: 15px;
    padding: 0.9rem 1.25rem;
    margin: 1rem 0;
}

.notice ul {
    margin: 0.4rem 0 0;
    padding-left: 1.2rem;
}

.notice li {
    margin: 0.25rem 0;
    line-height: 1.4;
}

.sorbetNote {
    margin: 0 0 0.5rem;
    font-weight: bold;
}

.panel {
    background-color: rgb(24, 24, 24);
    color: bisque;
    border-radius: 15px;
    border: 3px solid black;
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
}

.panel label {
    display: block;
    font-size: 0.9rem;
    margin: 0.75rem 0 0.25rem;
}

.panel label:first-child {
    margin-top: 0;
}

.orderForm input[type="text"],
.orderForm input:not([type]),
.orderForm input[type="tel"],
.orderForm input[type="email"],
.orderForm input[type="datetime-local"],
.orderForm textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 0.1rem solid bisque;
    background-color: rgb(40, 40, 40);
    color: bisque;
    font: inherit;
    color-scheme: dark;
}

.orderForm select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 0.1rem solid bisque;
    background-color: rgb(40, 40, 40);
    color: bisque;
    font: inherit;
    color-scheme: dark;
}

.orderForm select:disabled {
    opacity: 0.6;
}

.dateHint {
    margin: 0.6rem 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.dateHint:empty {
    display: none;
}

.orderForm input:focus-visible,
.orderForm select:focus-visible,
.orderForm textarea:focus-visible {
    outline: 2px solid bisque;
    outline-offset: 2px;
}

/* Sortenlisten */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
    align-items: start;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 228, 196, 0.2);
}

.rtext {
    flex: 1;
    min-width: 0;
}

.rline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: block;
    font-size: 0.75rem;
    opacity: 0.75;
    margin-top: 0.1rem;
}

.info {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 0.1rem solid bisque;
    background-color: transparent;
    color: bisque;
    font: italic bold 0.85rem Georgia, serif;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex: none;
}

.info:hover,
.info:focus-visible,
.info[aria-expanded="true"] {
    background-color: bisque;
    color: black;
}

.detail {
    flex-basis: 100%;
    font-size: 0.85rem;
    line-height: 1.4;
    background-color: rgba(255, 228, 196, 0.12);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    margin: 0.25rem 0 0.25rem;
}

.detail[hidden] {
    display: none;
}

.ctr {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ctr .q {
    min-width: 1.5rem;
    text-align: center;
    font-weight: bold;
}

.ctr button {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    border: 0.1rem solid bisque;
    background-color: rgb(24, 24, 24);
    color: bisque;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.ctr button:hover:not(:disabled),
.ctr button:focus-visible {
    color: rgb(184, 165, 142);
    border-color: rgb(184, 165, 142);
}

.ctr button:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Reiter pro Packung */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tab,
.btn {
    background-color: rgb(24, 24, 24);
    color: bisque;
    padding: 0.6rem 1rem;
    border-radius: 10% / 50%;
    border: 0.1rem solid bisque;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.tab {
    max-width: 100%;
}

.tab:hover,
.tab:focus-visible,
.btn:hover:not(:disabled),
.btn:focus-visible {
    color: rgb(184, 165, 142);
    border-color: rgb(184, 165, 142);
}

.tab.on {
    background-color: bisque;
    color: black;
}

.tab.done:not(.on) {
    border-color: #9ccc9c;
    color: #9ccc9c;
}

.tab.add {
    border-style: dashed;
}

.btn {
    margin-top: 1rem;
    font-weight: bold;
}

.btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.btn.sec {
    font-weight: normal;
    font-size: 0.9rem;
    margin: 1rem 0.5rem 0 0;
}

.privacy {
    font-size: 0.85rem;
    margin: 1.25rem 0 0.5rem;
}

.check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.95rem;
}

.check input {
    margin-top: 0.25rem;
    accent-color: rgb(24, 24, 24);
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

#msg {
    margin-top: 0.75rem;
    font-weight: bold;
    white-space: pre-wrap;
}

/* ===== Mitlaufende Übersicht ===== */
.summary {
    background-color: black;
    color: bisque;
    border: 2px solid bisque;
}

.sumHead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: 0;
    color: bisque;
    font: inherit;
    font-weight: bold;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.prog {
    height: 10px;
    background-color: rgba(255, 228, 196, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin: 0.4rem 0;
}

.prog i {
    display: block;
    height: 100%;
    width: 0;
    background-color: bisque;
    transition: width 0.2s;
}

.prog.ok i {
    background-color: #9ccc9c;
}

.sumRow {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    background: none;
    color: bisque;
    border: 1px solid bisque;
    border-top-width: 0;
    padding: 0.4rem 0.6rem;
    font: inherit;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.sumRow:first-child {
    border-top-width: 1px;
}

.sumRow span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sumRow span:last-child {
    font-weight: bold;
    flex: none;
}

.sumRow.cur {
    background-color: rgba(255, 228, 196, 0.18);
}

.sumRow.done span:last-child {
    color: #9ccc9c;
}

.sumRow:hover,
.sumRow:focus-visible {
    color: rgb(184, 165, 142);
}

.summary small {
    display: block;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Handy / Tablet: Leiste unten, einklappbar */
@media (max-width: 1099px) {
    .summary {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        border-width: 2px 0 0 0;
        padding: 0.6rem 1rem;
    }

    .sumBody {
        display: none;
        max-height: 45vh;
        overflow-y: auto;
        max-width: 900px;
        margin: 0 auto;
    }

    .summary.open .sumBody {
        display: block;
    }

    .sumHead,
    .summary .prog {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    footer {
        padding-bottom: 7rem;
    }
}

/* Desktop: Kasten läuft rechts neben dem Formular mit */
@media (min-width: 1100px) {
    .orderLayout {
        max-width: 1200px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 1.5rem;
        align-items: start;
    }

    .summary {
        position: sticky;
        top: 5.5rem;
        border-radius: 15px;
        padding: 0.9rem 1rem;
    }

    .sumHead {
        cursor: default;
        pointer-events: none;
    }

    .chev {
        display: none;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 0.75rem 0.9rem;
    }
}

/* Nicht verfügbare Sorten */
.row.na .rline span,
.row.na .tag {
    opacity: 0.55;
}

.row.na .ctr {
    opacity: 0.5;
}

/* Überblick vor dem Bestellen */
.ovPack {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 228, 196, 0.2);
}

.ovPack .warn {
    color: #ff9c9c;
}

.ovTotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 1.2rem;
    padding: 0.7rem 0 0.2rem;
}

.ovTotal strong {
    font-size: 1.5rem;
}

.ovDate {
    margin-top: 0.6rem;
    font-weight: bold;
}

.panel small {
    display: block;
    opacity: 0.8;
}

.sumTotal {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.detail .enth {
    margin-bottom: 0.35rem;
}

/* Pflichtfelder: Was fehlt noch? */
.bad {
    outline: 2px solid #ff6b6b !important;
    outline-offset: 2px;
    border-radius: 6px;
}

.missing {
    background-color: #fff0f0;
    color: #5a1010;
    border: 3px solid #c0392b;
    border-radius: 15px;
    padding: 0.8rem 1.1rem;
    margin: 1rem 0 0;
}

.missing[hidden] {
    display: none;
}

.missing ul {
    margin: 0.4rem 0 0;
    padding-left: 1.2rem;
}

.missing .miss {
    background: none;
    border: 0;
    padding: 0.2rem 0;
    font: inherit;
    color: #8b1a1a;
    text-decoration: underline;
    text-align: left;
    cursor: pointer;
}

.contactHint {
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.nextBox #nextStatus {
    font-weight: bold;
}

.tabs {
    scroll-margin-top: 5rem;
}

.detail .spuren {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    opacity: 0.85;
}

.allergyLink {
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

.tag.allergen {
    opacity: 0.95;
}
