/* =========================================================================
   GARNERA Bestellliste – Styling angelehnt an den Papier-Folder 2026

   Hinweis Spezifität: Das Plugin rendert im Alt-Theme innerhalb von
   "#content" (all.css). Dessen ID-Regeln (#content h1/h3/p/a) haben höhere
   Spezifität als reine Klassen – deshalb an den betroffenen Stellen bewusst
   "!important".

   Farben:
     Rahmen / Akzent-Grün    #617e42
     Text auf grünen Zeilen  #4d6e2f
     Button-Grün             #45602f / Hover #38492a
     Tabellenkopf-Beige      #ece6dd
     Zeile grün              #e5ece8
     Zeile / Hintergrund     #ffffff
     Text                    #3a382f
     Gedämpft                #7c766a
   ========================================================================= */

.garnera-order {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.75rem 1.75rem;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    color: #3a382f;
    box-sizing: border-box;
}

.garnera-order *,
.garnera-order *::before,
.garnera-order *::after {
    box-sizing: border-box;
}

/* ---- Überschriften: Standard-Überschriften des Themes verwenden ---- */
/* (kein eigener Font / keine Überschreibungen mehr) */

/* ---- Tabelle ---- */
.garnera-order__table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #617e42;
    background: #fff;
    font-size: 0.9rem;
}

.garnera-order__table th {
    background: #ece6dd;
    color: #38492a;
    text-align: left;
    padding: 9px 11px;
    border: 1px solid #617e42;
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    vertical-align: bottom;
    font-weight: 700;
}

.garnera-order__table th span {
    display: block;
    font-weight: 400;
    font-size: 0.72rem;
    color: #6f6a5c;
    margin-top: 2px;
}

.garnera-order__table td {
    padding: 9px 11px;
    border: 1px solid #617e42;
    vertical-align: top;
}

/* Abwechselnde Zeilen: ungerade = weiß (Schrift schwarz),
   gerade = grün #e5ece8 (Schrift #4d6e2f) */
.garnera-order__table tbody tr:nth-child(odd) {
    background: #fff;
    color: #000;
}

.garnera-order__table tbody tr:nth-child(even) {
    background: #e5ece8;
    color: #4d6e2f;
}

/* Schrift folgt der Zeilenfarbe */
.product__title {
    display: block;
    font-weight: 700;
    color: inherit;
    font-size: 0.95rem;
}

.product__desc {
    display: block;
    font-size: 0.8rem;
    color: inherit;
    margin-top: 2px;
    line-height: 1.35;
}

.unit {
    white-space: nowrap;
    color: inherit;
}

.col-price,
.price {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: inherit;
}

.col-qty,
.qty {
    width: 120px;
    text-align: center;
}

.qty__input {
    width: 84px;
    padding: 6px 8px;
    border: 1px solid #617e42;
    text-align: right;
    font-size: 0.95rem;
    background: #fff;
}

.qty__input:focus {
    outline: none;
    border-color: #617e42;
    box-shadow: 0 0 0 2px rgba(97, 126, 66, 0.25);
}

/* ---- Kontaktdaten ---- */
.garnera-order__customer,
.garnera-order__delivery {
    margin: 1.4rem 0;
    border: 1px solid #617e42;
    padding: 1rem 1.2rem;
    background: #fff;
}

.garnera-order__customer legend,
.garnera-order__delivery legend {
    color: #38492a;
    font-weight: 700;
    padding: 0 0.4rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.garnera-order__customer p {
    margin: 0 0 0.75rem !important;
    padding: 0 !important;
}

.garnera-order__customer label {
    display: block;
    font-size: 0.88rem !important;
    color: #4a463c !important;
    margin-bottom: 0.25rem;
    line-height: 1.3 !important;
}

.garnera-order__customer input,
.garnera-order__customer textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #617e42;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
}

.garnera-order__customer input:focus,
.garnera-order__customer textarea:focus {
    outline: none;
    border-color: #617e42;
    box-shadow: 0 0 0 2px rgba(97, 126, 66, 0.25);
}

/* Dynamischer Pflichtfeld-Marker (per JS bei "Zustellung") */
.garnera-order__customer label.is-required::after {
    content: " *";
    color: #a4262c;
    font-weight: 700;
}

/* ---- Abholung / Zustellung ---- */
.delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.45rem 0;
    line-height: 1.4;
    cursor: pointer;
    color: #3a382f;
}

.delivery-option input[type="radio"] {
    margin-top: 0.15rem;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: #45602f;
}

.garnera-order__delivery-summary {
    margin: 0 0 1rem !important;
    padding-left: 1.2rem;
}

/* ---- Button ---- */
.garnera-order__submit {
    background: #45602f;
    color: #fff;
    border: 0;
    padding: 12px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    margin-top: 0.6rem;
}

.garnera-order__submit:hover {
    background: #38492a;
}

/* ---- Meldungen ---- */
.garnera-order__messages { margin: 0 0 1rem; padding: 0; list-style: none; }
.garnera-order__messages li {
    background: #fbe9e9;
    border: 1px solid #e3b4b4;
    color: #a4262c !important;
    padding: 8px 12px;
    margin-bottom: 6px;
    list-style: none;
    font-size: 0.9rem;
}

/* ---- Zusammenfassung ---- */
.garnera-order__table--summary tfoot td {
    background: #ece6dd;
    font-weight: 700;
    color: #38492a;
}

.total-label,
.total { text-align: right; }

.garnera-order__hint {
    font-size: 0.82rem !important;
    color: #7c766a !important;
    margin: 0.75rem 0 0 !important;
    line-height: 1.4 !important;
}

.garnera-order__note {
    font-size: 0.82rem !important;
    color: #a4262c !important;
    margin: 0.5rem 0 0 !important;
    line-height: 1.4 !important;
}

/* ---- Mobil / schmaler Container ---- */
@media (max-width: 620px) {
    .garnera-order { padding: 1rem 1rem 1.25rem; }
    .garnera-order__table thead { display: none; }
    .garnera-order__table,
    .garnera-order__table tbody,
    .garnera-order__table tr,
    .garnera-order__table td { display: block; width: 100%; }
    .garnera-order__table tr { border-bottom: 2px solid #617e42; margin-bottom: 6px; }
    .garnera-order__table td { border: 0; padding: 5px 10px; }
    .col-qty, .qty { width: auto; text-align: left; }
    .price, .col-price { text-align: left; }
}