
/*
 * DMBS-SHOP-DARK-2026
 * Design für den öffentlichen DMBS-Shop
 * Keine Änderung an PHP, Datenbank oder Formularlogik
 */

:root {
    color-scheme: dark;

    --dmbs-bg: #0b0e12;
    --dmbs-surface: #11161d;
    --dmbs-card: #1a212b;
    --dmbs-card-hover: #222b37;
    --dmbs-border: #35404d;
    --dmbs-text: #f5f7fa;
    --dmbs-muted: #b9c3cf;
    --dmbs-yellow: #f5c542;
    --dmbs-yellow-hover: #ffda68;
}

/* GRUNDLAYOUT */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dmbs-bg) !important;
    color: var(--dmbs-text) !important;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

main {
    color: var(--dmbs-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff !important;
}

p,
small {
    color: var(--dmbs-muted);
}

a {
    color: var(--dmbs-yellow);
    transition: color .2s ease;
}

a:hover {
    color: var(--dmbs-yellow-hover);
}

/* KOPFBEREICH */

body > header,
header,
nav {
    background-color: #11161d;
    color: #ffffff;
}

header {
    border-bottom: 1px solid var(--dmbs-border);
}

header a,
nav a {
    color: #f5f7fa;
}

header a:hover,
nav a:hover {
    color: var(--dmbs-yellow);
}

/* SHOP-BEREICHE */

section {
    border-color: var(--dmbs-border);
}

.shop,
.shop-container,
.shop-section,
.products,
.products-section,
.catalog,
.catalog-section {
    color: var(--dmbs-text);
}

/* PRODUKTKARTEN */

.product,
.product-card,
.shop-product,
.shop-card,
.item-card,
.catalog-card,
.article-card {
    background: var(--dmbs-card) !important;
    color: var(--dmbs-text) !important;
    border: 1px solid var(--dmbs-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    overflow: hidden;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background-color .2s ease;
}

.product:hover,
.product-card:hover,
.shop-product:hover,
.shop-card:hover,
.item-card:hover,
.catalog-card:hover,
.article-card:hover {
    background: var(--dmbs-card-hover) !important;
    border-color: var(--dmbs-yellow) !important;
    transform: translateY(-3px);
}

.product h2,
.product h3,
.product-card h2,
.product-card h3,
.shop-product h2,
.shop-product h3,
.shop-card h2,
.shop-card h3 {
    color: #ffffff !important;
}

.product p,
.product-card p,
.shop-product p,
.shop-card p {
    color: var(--dmbs-muted);
}

/* PRODUKTBILDER */

.product img,
.product-card img,
.shop-product img,
.shop-card img,
.product-image img {
    max-width: 100%;
    height: auto;
}

.product-image,
.shop-image,
.product-photo {
    background: #222a35;
    border-radius: 12px;
    overflow: hidden;
}

/* PREISE UND STAFFELPREISE */

.price,
.product-price,
.shop-price,
.net-price,
.sale-price,
.tier-price,
.price-value {
    color: var(--dmbs-yellow) !important;
    font-weight: 800;
}

.price-tiers,
.tier-prices,
.pricing-tiers,
.quantity-prices {
    background: #131922 !important;
    color: #f5f7fa !important;
    border: 1px solid var(--dmbs-border);
    border-radius: 10px;
}

/* KATEGORIEN */

.category,
.product-category,
.shop-category,
.badge,
.tag {
    border-color: var(--dmbs-border);
}

/* FORMULARE */

form {
    color: var(--dmbs-text);
}

label {
    color: #edf1f6 !important;
}

input,
select,
textarea {
    background: #111821;
    color: #ffffff;
    border: 1px solid #465363;
    border-radius: 9px;
}

input::placeholder,
textarea::placeholder {
    color: #aeb8c5;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--dmbs-yellow);
    outline: 2px solid rgba(245,197,66,.20);
}

select option {
    background: #111821;
    color: #ffffff;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--dmbs-yellow);
}

/* SCHALTFLÄCHEN */

button,
input[type="submit"],
.button,
.btn,
.btn-primary,
.button-primary,
.submit-button {
    background: var(--dmbs-yellow);
    color: #111820;
    border: 1px solid var(--dmbs-yellow);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
.btn:hover,
.btn-primary:hover,
.button-primary:hover,
.submit-button:hover {
    background: var(--dmbs-yellow-hover);
    border-color: var(--dmbs-yellow-hover);
    color: #111820;
}

button:disabled,
input[type="submit"]:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* TABELLEN */

table {
    color: var(--dmbs-text);
    border-collapse: collapse;
}

th {
    background: #202936;
    color: #ffffff;
}

td {
    background: #151c25;
    color: #edf1f6;
}

th,
td {
    border-color: var(--dmbs-border);
}

/* HINWEISE UND MELDUNGEN */

.notice,
.info,
.message,
.alert {
    border-radius: 10px;
}

.success,
.alert-success {
    color: #b5f5c5;
    border-color: #34744a;
}

.error,
.alert-error,
.alert-danger {
    color: #ffb5b5;
    border-color: #914444;
}

/* ALLGEMEINE KARTEN */

.card,
.panel,
.box,
.info-box {
    background: var(--dmbs-card);
    color: var(--dmbs-text);
    border-color: var(--dmbs-border);
}

/* FUSSZEILE */

footer {
    background: #080a0e !important;
    color: #c8d0da !important;
    border-top: 1px solid var(--dmbs-border);
}

footer a {
    color: #e5e9ef;
}

footer a:hover {
    color: var(--dmbs-yellow);
}

/* BESSERE BEDIENBARKEIT */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--dmbs-yellow);
    outline-offset: 3px;
}

/* SMARTPHONE UND TABLET */

@media (max-width: 768px) {

    body {
        font-size: 15px;
    }

    .product,
    .product-card,
    .shop-product,
    .shop-card,
    .item-card {
        border-radius: 12px !important;
    }

    input,
    select,
    textarea,
    button {
        max-width: 100%;
    }

    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
}

/* REDUZIERTE BEWEGUNG */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .product,
    .product-card,
    .shop-product,
    .shop-card,
    .item-card {
        transition: none;
    }

    .product:hover,
    .product-card:hover,
    .shop-product:hover,
    .shop-card:hover,
    .item-card:hover {
        transform: none;
    }
}

/* DMBS-SHOP-KONTRAST-START */

/*
 * DMBS Shop - Kontrastkorrektur
 * Dunkle Flächen und gut lesbare Schrift
 */

/* Allgemeine Shop-Karten und Hinweise */

body :is(
    .notice,
    .info,
    .message,
    .alert,
    .card,
    .panel,
    .box,
    .info-box,
    .empty,
    .empty-state,
    .hint,
    .shop-notice,
    .shop-info,
    .shop-empty,
    .service-form,
    .service-inquiry,
    .service-request,
    .service-box,
    .service-card,
    .inquiry-card,
    .form-card,
    .form-section
) {
    background: #1a212b !important;
    background-color: #1a212b !important;
    color: #f5f7fa !important;
    border-color: #35404d !important;
}

/* Auch Bereiche mit eigenen Hintergrundfarben abdunkeln */

main section,
main article,
main aside {
    background-color: #151b24 !important;
    color: #f5f7fa !important;
}

/* Formularbereiche */

main form {
    background-color: #1a212b !important;
    color: #f5f7fa !important;
}

/* Standardtexte in Shop-Bereichen */

main p,
main label,
main small,
main li {
    color: #dce3ec !important;
}

/* Überschriften */

main h1,
main h2,
main h3,
main h4 {
    color: #ffffff !important;
}

/* Wichtige Preise weiterhin gelb */

main :is(
    .price,
    .product-price,
    .shop-price,
    .net-price,
    .sale-price,
    .tier-price,
    .price-value
) {
    color: #f5c542 !important;
}

/* Eingabefelder */

main input:not([type="checkbox"]):not([type="radio"]),
main select,
main textarea {
    background: #101720 !important;
    color: #ffffff !important;
    border: 1px solid #4a5666 !important;
}

main input::placeholder,
main textarea::placeholder {
    color: #aeb8c5 !important;
}

main select option {
    background: #101720 !important;
    color: #ffffff !important;
}

/* Schaltflächen */

main button,
main input[type="submit"],
main .button-primary,
main .btn-primary {
    background: #f5c542 !important;
    color: #101820 !important;
    border-color: #f5c542 !important;
}

main button:hover,
main input[type="submit"]:hover,
main .button-primary:hover,
main .btn-primary:hover {
    background: #ffda68 !important;
    color: #101820 !important;
}

/* Sichtbare Rahmen und Trennlinien */

main hr {
    border-color: #35404d !important;
}

/* Tastaturbedienung */

main :focus-visible {
    outline: 3px solid #f5c542;
    outline-offset: 3px;
}

/* DMBS-SHOP-KONTRAST-ENDE */
