/* =========================================
   Benedikt Bestellsystem – modernes, eckiges Design
   ========================================= */

.bestellsystem {
    color: #111827;
    --bs-bg: #ffffff;
    --bs-bg-muted: #f9fafb;
    --bs-border: #e5e7eb;
    --bs-border-strong: #d1d5db;
    --bs-primary: #111827;
    --bs-primary-soft: #e5e7eb;
    --bs-accent: #f97316;
    --bs-danger: #b91c1c;
    --bs-radius-sm: 2px;
    --bs-radius-md: 4px;
    --bs-radius-lg: 6px;
    --bs-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
}

/* Grundlayout */

.bestellsystem * {
    box-sizing: border-box;
}

.bestellsystem .note {
    margin: 1rem 0 1.5rem;
    border: 1px solid var(--bs-border);
    background: var(--bs-bg-muted);
    border-radius: var(--bs-radius-md);
}

.bestellsystem .note-inner {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.bestellsystem .error {
    margin: 1rem 0 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--bs-radius-md);
    border: 1px solid rgba(185, 28, 28, 0.25);
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.9rem;
}

/* Panel-Grid Wrapper (Divi) */

.bestellsystem .panel-grid-cell {
    padding: 0;
}

/* Sektionen / Cards */

.bestellsystem section.white.c.offertanfrage,
.bestellsystem section.odd.gray.c {
    border-radius: var(--bs-radius-lg);
    border: 1px solid var(--bs-border);
    background: var(--bs-bg);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--bs-shadow-soft);
}

.bestellsystem section.odd.gray.c {
    background: #f3f4f6;
    border-color: var(--bs-border-strong);
    box-shadow: none;
}

.bestellsystem section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
    
    font-size: 28px;
    color: #111827;
}
.bestellsystem-overview .card h3, .bestellsystem-overview .card h4{
   
    font-size: 28px;
}
/* Layout innerhalb der Sektionen */

.bestellsystem .item {
    margin-bottom: 1rem;
}

.bestellsystem .item.eighty {
    width: 100%;
}

.bestellsystem .item.twenty {
    width: 100%;
}

/* Einfaches responsives Grid */

@media (min-width: 720px) {
    .bestellsystem section.white.c.offertanfrage,
    .bestellsystem section.odd.gray.c {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 0.75rem 1rem;
    }

    .bestellsystem section.white.c.offertanfrage > .item.eighty,
    .bestellsystem section.odd.gray.c > .item.eighty {
        grid-column: span 9 / span 9;
    }
    .bestellsystem section.white.c.offertanfrage > .item.twenty,
    .bestellsystem section.odd.gray.c > .item.twenty {
        grid-column: span 3 / span 3;
    }

    .bestellsystem section.white.c.offertanfrage > h3,
    .bestellsystem section.white.c.offertanfrage > input[type="hidden"],
    .bestellsystem section.odd.gray.c > h3,
    .bestellsystem section.odd.gray.c > input[type="hidden"] {
        grid-column: 1 / -1;
    }

    .bestellsystem section.odd.gray.c > .item {
        grid-column: span 4 / span 4;
    }

    .bestellsystem section.odd.gray.c p {
        grid-column: 1 / -1;
    }

    .bestellsystem section.white.c.offertanfrage > .col.col-1-1,
    .bestellsystem section.odd.gray.c > .col.col-1-1 {
        grid-column: 1 / -1;
    }
}

/* Labels, Tooltip */

.bestellsystem label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.bestellsystem .tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    border-radius: 999px;
    border: 1px solid #9ca3af;
    color: #4b5563;
    cursor: default;
}

/* Inputs / Textareas / Selects */

.bestellsystem input[type="text"],
.bestellsystem input[type="email"],
.bestellsystem input[type="tel"],
.bestellsystem input[type="number"],
.bestellsystem textarea {
    width: 100%;
    border-radius: var(--bs-radius-md);
    border: 1px solid var(--bs-border-strong);
    background-color: var(--bs-bg);
    padding: 0.5rem 0.65rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    color: #111827;
}

.bestellsystem textarea {
    min-height: 120px;
    resize: vertical;
}

.bestellsystem input[type="text"]:focus,
.bestellsystem input[type="email"]:focus,
.bestellsystem input[type="tel"]:focus,
.bestellsystem input[type="number"]:focus,
.bestellsystem textarea:focus {
    outline: none;
    border-color: #4b5563;
    box-shadow: 0 0 0 1px rgba(75, 85, 99, 0.4);
    background-color: #f9fafb;
}

/* Datei-Upload */

.bestellsystem .inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.bestellsystem .inputfile + label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: var(--bs-radius-md);
    border: 1px solid var(--bs-border-strong);
    background-color: var(--bs-bg-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.bestellsystem .inputfile + label span {
    white-space: nowrap;
}

.bestellsystem .inputfile:focus + label,
.bestellsystem .inputfile + label:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

/* Select-Wrapper */

.bestellsystem .select-style {
    display: inline-block;
    position: relative;
    width: 100%;
}

.bestellsystem .select-style select {
    width: 100%;
    border-radius: var(--bs-radius-md);
    border: 1px solid var(--bs-border-strong);
    background-color: var(--bs-bg);
    padding: 0.5rem 0.65rem;
    font-size: 0.95rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #111827;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.bestellsystem .select-style::after {
    content: "";
    position: absolute;
    pointer-events: none;
    right: 0.7rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1px solid #6b7280;
    border-bottom: 1px solid #6b7280;
    transform: translateY(-50%) rotate(45deg);
}

.bestellsystem .select-style select:focus {
    outline: none;
    border-color: #4b5563;
    box-shadow: 0 0 0 1px rgba(75, 85, 99, 0.4);
    background-color: #f9fafb;
}

/* Zusatz-Bild */

.bestellsystem img {
    max-width: 120px;
    height: auto;
    border-radius: var(--bs-radius-md);
    border: 1px solid var(--bs-border);
}

/* Add-Book Button */

.bestellsystem .add-book.button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background-color: var(--bs-primary-soft);
    color: #111827;
    border-radius: var(--bs-radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--bs-border-strong);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.bestellsystem .add-book.button span {
    display: inline-block;
    font-size: 1.1rem;
    line-height: 1;
}

.bestellsystem .add-book.button:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.bestellsystem .add-book.button:active {
    transform: translateY(0);
}

/* Submit-Button */

.bestellsystem button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.5rem;
    border-radius: var(--bs-radius-md);
    border: 1px solid #111827;
    background-color: #111827;
    color: #f9fafb;grid-column: span 2 / span 2;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.bestellsystem button[type="submit"]:hover {
    background-color: #020617;
    border-color: #020617;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}

.bestellsystem button[type="submit"]:active {
    box-shadow: none;
    transform: translateY(0);
}

/* Kleine Hilfen */

.bestellsystem hr {
    border: 0;
    border-top: 1px solid var(--bs-border);
    margin: 1.25rem 0;
}

.bestellsystem p {
    font-size: 18px;
    line-height: 1.5;
}

/* Tooltip-Container unsichtbar, nur Inhalt wird genutzt */
#tooltip-html-temp {
    display: none;
}
