/* --------------------------------------------------------------- */
/* Variablen & variables CSS                                       */
/* --------------------------------------------------------------- */
/* Ist ein spezieller CSS-Selektor, der das oberste Element des Dokuments auswählt. */
:root {
    /* Menu */
    --menu-breite: 600px;
    --menu-indent: 20px;
    /* Farben */
    --plastes_de_color_night: var(--plastes_de_color_night);
    --plastes_de_color_ultralight: var(--plastes_de_color_ultralight);
    --plastes_de_color_dark: var(--plastes_de_color_dark);
    --plastes_de_color_light: var(--plastes_de_color_light);
    --plastes_de_color_button: var(--plastes_de_color_button);
    --color_red: #d00000;
    --color_gray: #666;
    /* Breiten */
    --max-ausgabe-breite: 100vw;
    --max-ausgabe-breite-klein: 80vw;
    --max-padding-header: 32px;
    /* Text */
    --menu-drawner-fontsize: 2.4em;
    --text-fontsize: 1.2em;
    --product-price-fontsize: 1.1em;
    --text-fontsize-small: 0.9em;
    /* Buttons */
    --header-header-icon-size: 32px;
    --header-standard-icon-size: 36px;
    --header-big-icon-size: 49px;
    /* Suche */
    --header-search-max-width: 240px;
    /* Debug */
    --media_value: "none";
}

/* --------------------------------------------------------------- */
/* Header, Footer und Content                                      */
/* --------------------------------------------------------------- */
/* Basisdefinitiion für HTML und Body. */
html, body {
    min-width: 360px; /* Beispielwert, nach Bedarf anpassen */
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box;
}

.error-message {
    color: #d00000;
    font-weight: bold;
    margin: 2em 0;
    text-align: left;
}

.info-message {
    color: var(--plastes_de_color_dark);
    font-weight: bold;
    margin: 2em 0;
    text-align: left;
}

/* --------------------------------------------------------------- */
/* Werbung                                                         */
/* --------------------------------------------------------------- */
.advertising-area {
    position: fixed;
    right: 32px;
    top: 120px; /* Standardwert, wird per JS überschrieben */
    width: 300px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.advertising-box {
    background: var(--plastes_de_color_ultralight);
    border: 2px solid var(--plastes_de_color_dark);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 16px;
    text-align: left;
}

.advertising-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 8px;
}

.advertising-img-float-left {
    float: left;
    margin: 0 20px 10px 0;
    border-radius: 6px;
}

.advertising-html {
    font-size: var(--text-fontsize);
    color: #333;
}

/* --------------------------------------------------------------- */
/* Basket                                                          */
/* --------------------------------------------------------------- */

/* Tabelle im Korb. */
.basket-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    /* Optional: für bessere Lesbarkeit auf kleinen Bildschirmen */
    word-break: break-word;
}

    /* Tabelle im Korb. */
    .basket-table th,
    .basket-table td {
        padding: 4px 8px;
        font-size: var(--text-fontsize-small);
        min-width: 50px;
        max-width: 150px;
        white-space: nowrap;
    }

    /* Tabelle im Korb. */
    .basket-table th {
        background: #f5f5f5;
    }

    /* Tabelle im Korb. */
    .basket-table td {
        background: #fff;
    }

        /* Tabelle im Korb. */
        .basket-table td.border-right,
        .basket-table th.border-right {
            border-right: 2px solid #ddd;
        }

/* Tabelle im Korb. */
.basket-summe td,
.basket-summe th {
    border-right: none !important;
}

/* --------------------------------------------------------------- */
/* Bilder Header                                                   */
/* --------------------------------------------------------------- */
.rotator-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.rotator-btn-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
    margin-bottom: 8px;
}

.rotator-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.rotator-btn-left {
    left: 0;
}

.rotator-btn-right {
    right: 0;
}

.header-link {
    text-align: center;
    margin-top: 8px;
}

.combo,
.combobox-group select,
select {
    font-size: var(--product-price-fontsize);
    padding: 8px 8px !important;
}

/* Der Contenct Bereich über die ganze Seite.  */
/* Wird vorrangig für das Wegscrollen bei Auf- */
/* ruf des Menüs benötigt?                     */
.main-content {
    flex: 1 0 auto;
    max-width: var(--max-ausgabe-breite);
    width: var(--max-ausgabe-breite);
    margin: 0 auto;
    padding: 16px 0 0 0;
    background: #fff;
    font-size: var(--text-fontsize);
    transition: transform 0.3s;
}

    /* Verfeinerung. */
    .main-content.shifted {
        transform: translateX(var(--menu-breite));
    }

/* Content Bereich für den wahren Content der Seite. */
.content-container {
    flex: 1 0 auto;
    max-width: var(--max-ausgabe-breite-klein);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    background: #fff;
    font-size: var(--text-fontsize);
    overflow-x: auto;
    min-height: 400px;
    position: relative;
}

/* Macht aus einem Bild und einem Link eine 2 Reihige Einheit. */
.header-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
    /* Verfeinerung. */
    .header-image-wrapper img {
        margin-bottom: 0;
        display: block;
        line-height: 1;
    }

.content-container hr {
    border: none;
    border-top: 2px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

.desc-3lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 640px;
    line-height: 1.5em;
    height: 4.5em; /* 3 Zeilen x 1.5em */
}

/* Gibt Links im Header ein bestimmtes Aussehen. */
#header-link {
    text-align: center;
    margin-top: 0;
    padding-top: 0;
    line-height: 1.2;
}
    /* Verfeinerung. */
    #header-link a {
        font-size: var(--text-fontsize-small);
        color: var(--plastes_de_color_dark);
    }

/* Wird für das Logo in Verbindung mit einem Link verwendet. */
.logo-link {
    display: inline-block;
    vertical-align: middle;
    text-decoration: none; /* keine Unterstreichung */
    margin-right: 8px; /* Abstand zum nächsten Element, falls gewünscht */
}
    /* Verfeinerung. */
    .logo-link:focus,
    .logo-link:hover {
        outline: none;
        filter: brightness(0.85); /* optional: Logo leicht abdunkeln beim Hover */
    }

/* Cookie-Banner, der am unteren Rand der Seite erscheint. */
#cookie-banner {
    position: fixed;
    left: 150px;
    width: 190px;
    background: #fff !important;
    color: #000;
    z-index: 9999;
    padding: 1em 0;
    text-align: center;
    box-shadow: 0 4px 22px rgba(0,0,0,0.18);
    display: none;
    border-radius: 0 0 10px 10px;
    border-bottom: 2px solid #aaa;
    border-right: 2px solid #aaa;
    font-size: var(--text-fontsize);
    line-height: 1.4;
    padding: 1em 1.5em; /* vertikal und horizontal */
}

/* --------------------------------------------------------------- */
/* Globale Einstellungen                                           */
/* --------------------------------------------------------------- */
a {
    color: var(--plastes_de_color_night);
    text-decoration: none;
    transition: color 0.2s;
}

    /* Verfeinerung */
    a:hover,
    a:focus {
        color: var(--plastes_de_color_dark);
        text-decoration: none;
    }

ol.big-list li,
ul.big-list li {
    line-height: 1.2;
    margin-bottom: 0.5em;
}

.image-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--plastes_de_color_button);
    color: #000;
    border: 1px solid #e0b96a;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s, box-shadow 0.2s;
    padding: 2px; /* Button ist etwas größer als das Icon */
    min-width: 0;
    min-height: 0;
    margin-left: 4px;
    margin-right: 4px;
}

    .image-button span {
        padding-left: 2ch;
        padding-right: 2ch;
    }

.img-button-icon {
    max-height: 95%;
    max-width: 95%;
    display: inline-block;
    border: none !important;
    outline: none !important;
    box-sizing: border-box;
    vertical-align: middle;
    background: transparent;
}

.image-button, .image-button span {
    color: #000 !important;
}

    .image-button:hover {
        background: #fdd835; /* Helles Gelb */
        color: #000;
        box-shadow: 0 0 6px 2px var(--plastes_de_color_dark);
        outline: none;
        filter: brightness(1.2) drop-shadow(0 0 4px var(--plastes_de_color_night, var(--plastes_de_color_dark)));
        box-shadow: 0 0 6px 2px var(--plastes_de_color_night, var(--plastes_de_color_dark));
    }

    .image-button:focus-visible {
        background: #fdd835; /* Helles Gelb */
        color: #000;
        box-shadow: 0 0 6px 2px var(--plastes_de_color_dark);
        outline: none;
        filter: brightness(1.2) drop-shadow(0 0 4px var(--plastes_de_color_night, var(--plastes_de_color_dark)));
        box-shadow: 0 0 6px 2px var(--plastes_de_color_night, var(--plastes_de_color_dark));
    }

    /* Icon: keine Filter, kein Schatten, kein Rahmen, keine Transformation */
    .image-button .img-button-icon,
    .image-button:hover .img-button-icon,
    .image-button:focus .img-button-icon {
        filter: none !important;
        box-shadow: none !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        transition: none;
    }

    .image-button.disabled-by-consent,
    .image-button:disabled {
        background: #ccc !important;
        color: #888 !important;
        border: 1px solid #bbb !important;
        cursor: not-allowed !important;
        pointer-events: none;
        opacity: 0.7;
    }

        .image-button.disabled-by-consent:hover,
        .image-button:disabled:hover {
            background: #ccc !important;
            color: #888 !important;
        }

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

/* Standard: ausblenden */
.mobile-search-btn {
    display: none !important;
}

/* Standard-Button */
.image-button.std-btn img {
    height: var(--header-standard-icon-size) !important;
    width: var(--header-standard-icon-size) !important;
}

/* Such-Button */
.image-button.search-btn img {
    height: var(--header-header-icon-size) !important;
    width: var(--header-header-icon-size) !important;
}

/* Basket-Button */
.image-button.basket-btn img {
    height: var(--header-header-icon-size) !important;
    width: var(--header-header-icon-size) !important;
}

/* Big-Button */
.image-button.big-btn img {
    height: var(--header-big-icon-size) !important;
    width: var(--header-big-icon-size) !important;
}

/* --------------------------------------------------------------- */
/* Tabelle                                                         */
/* --------------------------------------------------------------- */
.display-table {
    width: 100%;
    table-layout: fixed;
    word-break: break-word;
}

    .display-table th,
    .display-table td {
        word-break: break-word;
        white-space: normal;
    }

    .display-table th, .display-table td {
        border: 1px solid #ccc;
        padding: 8px 12px;
        text-align: left;
    }

    .display-table th {
        background: #f5f5f5;
        font-weight: bold;
    }

    .display-table tr:nth-child(even) {
        background: #fafafa;
    }

    .display-table a {
        color: #0074d9;
        text-decoration: underline;
    }

        .display-table a:hover {
            color: #005fa3;
        }

.show-all-visitors table {
    width: 100%;
    border-collapse: collapse;
}

.show-all-visitors th, .show-all-visitors td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    word-wrap: break-word;
}

.show-all-visitors th {
    background-color: #f2f2f2;
}

.show-all-visitors td {
    max-width: 200px; /* Begrenze die Breite der Zellen */
    word-wrap: break-word; /* Ermöglicht Umbruch bei langen Wörtern */
    white-space: pre-wrap; /* Behalte Zeilenumbrüche */
}

.show-all-visitors td:nth-child(11), .show-all-visitors td:nth-child(12) {
    max-width: 150px; /* Spezifische Breite für Referrer und Search Terms */
}

.show-all-visitors th:first-child,
.show-all-visitors td:first-child {
    text-align: center;
    vertical-align: middle;
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    padding: 0;
}

/* --------------------------------------------------------------- */
/* Produkte                                                        */
/* --------------------------------------------------------------- */
.product-detail {
    max-width: 600px;
    max-height: auto;
    margin: 40px auto;
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Bild über der Beschreibung, i.d.R. ein Cockpit. */
.product-image-detail-over-text {
    display: block;
    max-width: 100%; /* nie breiter als der Container */
    width: auto; /* keine erzwungenes Vergrößerung */
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    margin: 0 0 8px 0;
}

/* Rahmen für Bilder im Beschreibungstext, die als Muster dienen, damit diese in einer Zeile bleiben. */
.product-image-row {
    display: flex;
    gap: 10px; /* Abstand zwischen den Bildern, nach Wunsch anpassen */
    align-items: flex-start;
    flex-wrap: wrap; /* Zeilenumbruch bei zu wenig Platz */
    max-width: 100%; /* nie breiter als der Container */
    box-sizing: border-box;
}

/* Bilder im Beschreibungstext, die als Muster dienen. */
.product-image-original {
    max-width: 100%;
    height: auto;
    width: auto; /* Bild bleibt in Originalbreite */
    max-height: 250px; /* Bild bleibt in Originalhöhe */
    object-fit: contain; /* Optional: Bild bleibt vollständig sichtbar */
    /* Verhindert Vergrößerung über Originalgröße hinaus */
    image-rendering: auto;
    border-radius: 6px;
}

.product-image-list {
    width: 60px; /* oder die Breite aus der Produktliste */
    height: 60px; /* oder die Höhe aus der Produktliste */
    object-fit: cover; /* Bild wird beschnitten, nicht verzerrt */
    border-radius: 4px; /* optional, für abgerundete Ecken */
    display: block;
    background: transparent; /* transparent so echte Bild-Transparenz sichtbar bleibt */
}

/* Produktseite Produktbild und Text: Produktbild und Text nebeneinander. Äußere Klasse. */
.product-detail-flex {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

/* Produktseite Produktbild und Text: Produktbild und Text nebeneinander. Innere Klasse für das Produktbild. */
.product-detail-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border-radius: 6px;
    min-width: 200px;
    margin-right: 32px;
    position: relative;
    display: inline-block;
}

.offer-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--plastes_de_color_dark);
    color: #fff;
    font-weight: bold;
    font-size: 0.85em;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    z-index: 10;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* Produktseite: Produktbild Hauptklasse. Es gibt noch Queformat und Hochformat. */
.product-image-detail {
    max-width: var(--max-ausgabe-breite-klein);
    max-height: 900px;
    display: block;
    border-radius: 6px;
    margin: 0 auto 8px auto;
}

/* Produktseite: Produktbild Nebenklasse von product-image-detail. */
.querformat {
    width: 300px;
    height: auto;
}

/* Produktseite: Produktbild Nebenklasse von product-image-detail. */
.hochformat {
    height: 300px;
    width: auto;
}

/* Produktseite Produktbild und Text: Produktbild und Text nebeneinander. Innere Klasse für den Text. */
.product-detail-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Produkseite: Restliche Items. */
.product-detail-title,
.product-detail-artikel,
.product-price {
    text-align: left;
    width: 100%;
    margin: 0 0 8px 0;
}

/* Verfeinerung. */
.product-price {
    text-align: left;
    font-size: var(--product-price-fontsize);
    margin-top: 10px;
    margin-bottom: 16px;
    color: var(--plastes_de_color_dark);
}

.product-title-small {
    width: 160px; /* exakt wie das Bild */
    font-size: var(--text-fontsize-small);
    font-weight: bold;
    margin: 4px auto 8px auto; /* etwas Abstand nach oben/unten, zentriert */
    word-break: break-word; /* Wortumbruch bei langen Wörtern */
    white-space: normal; /* Zeilenumbruch erlauben */
    text-align: center; /* zentrierter Text */
    line-height: 1.2;
    display: block;
}

    .product-title-small:hover {
        text-decoration: underline; /* Unterstreichung bei Hover */
    }

/* --------------------------------------------------------------- */
/* Helper                                                          */
/* --------------------------------------------------------------- */
/* Bereinigt die Angaben für Float. */
.clearfix {
    clear: both;
}

/* Floatende Bilder im Text. */
.img-float-right {
    float: right;
    margin: 0 0 10px 20px;
    border-radius: 6px;
}

/* Floatende Bilder im Text. */
.img-float-left {
    float: left;
    margin: 0 20px 10px 0;
    border-radius: 6px;
}

.product-image-small-link {
    text-decoration: none;
    color: inherit;
    position: relative;
    display: inline-block;
}

.product-list-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
}

.product-image-small-img {
    width: 160px !important;
    height: 128px !important;
    object-fit: cover !important;
    border-radius: 6px;
    display: block;
    margin: 0 auto 8px auto;
}

.product-price-small {
    text-align: center;
    font-size: var(--text-fontsize-small);
    margin-top: 2px;
}

.product-price-old {
    color: var(--plastes_de_color_dark);
    text-decoration: line-through;
    font-weight: normal;
    margin-right: 8px;
    font-size: var(--text-fontsize-small);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 32px 0 16px 0;
    font-size: var(--text-fontsize);
}

    .pagination a {
        color: var(--plastes_de_color_dark);
        text-decoration: none;
        padding: 4px 10px;
        border-radius: 4px;
        transition: background 0.2s;
    }

        .pagination a:hover {
            background: var(--plastes_de_color_light);
        }

    .pagination .current-page {
        font-weight: bold;
        color: #000;
        background: var(--plastes_de_color_dark);
        padding: 4px 10px;
        border-radius: 4px;
    }

/* --------------------------------------------------------------- */
/* ComboBox-Layout und Design für das gesamte System               */
/* --------------------------------------------------------------- */

/* Layout für ComboBox-Reihen und Gruppen */
.combobox-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.combobox-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}

.combobox-header {
    font-weight: bold;
    margin-bottom: 4px;
    text-align: left;
    width: 100%;
}

.combobox-label {
    min-width: 120px;
    font-weight: bold;
    text-align: left;
}

/* Einheitliches Design für alle ComboBoxen */
.combo,
.combobox-group select,
select {
    font-size: var(--text-fontsize);
    min-height: 1.8em;
    padding: 8px 16px;
    border-radius: 6px;
    box-sizing: border-box;
    background: #fafafa;
    border: 1px solid #bbb;
    color: #222;
    margin-bottom: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .combo:focus,
    .combobox-group select:focus,
    select:focus {
        border-color: #0074d9;
        box-shadow: 0 0 4px #0074d9;
        outline: none;
    }

/* --------------------------------------------------------------- */
/* Menü                                                            */
/* --------------------------------------------------------------- */

.drawer {
    position: fixed;
    left: 0;
    width: var(--menu-breite);
    height: 100vh; /* Volle Höhe des Viewports */
    max-height: 100vh;
    background: #000;
    color: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    padding: 16px 0 0 0;
}

    .drawer.open {
        transform: translateX(0);
    }

.drawer-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2em;
    cursor: pointer;
    z-index: 10001;
    padding: 0;
    line-height: 1;
}

#drawerOpenBtn,
.drawer-open {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #222 !important;
    font-size: var(--menu-drawner-fontsize) !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    display: inline-block !important;
    line-height: 1 !important;
}

.drawer-content {
    max-height: calc(100vh - 48px); /* Platz für Button oben */
    overflow-y: auto;
}

.main-menu,
.sub-menu,
.menu-disabled {
    font-size: var(--text-fontsize) !important;
    font-family: inherit !important;
    font-weight: normal !important;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
}

.menu-disabled {
    cursor: default;
}

.main-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.sub-menu {
    margin-left: 24px;
    max-width: var(--menu-breite);
    box-sizing: border-box;
    word-break: break-word;
}

    .sub-menu > li {
        margin: 0;
        padding: 0;
        position: relative;
    }

.main-menu > li > a {
    font-size: var(--text-fontsize) !important;
    color: #fff;
    display: block;
    padding: 3px 16px;
    border-bottom: 1px solid #222;
    text-decoration: none;
}

.main-menu > li > .menu-disabled {
    font-size: var(--text-fontsize) !important;
    display: block;
    padding: 3px 16px;
    border-bottom: 1px solid #222;
    text-decoration: none;
    color: #aaa; /* Grau explizit für Root-Items ohne Link. */
}

.sub-menu > li > a {
    font-size: var(--text-fontsize) !important;
    display: block;
    color: #fff;
    border-bottom: 1px solid #222;
    text-decoration: none;
    padding: 3px 16px 3px var(--menu-indent);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-menu > li > .menu-disabled {
    font-size: var(--text-fontsize) !important;
    display: block;
    border-bottom: 1px solid #222;
    text-decoration: none;
    padding: 3px 16px 3px var(--menu-indent);
    color: #aaa; /* Grau explizit für Submenü */
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.main-menu > li > a:hover,
.sub-menu > li > a:hover,
.main-menu > li > a:focus,
.sub-menu > li > a:focus {
    font-size: var(--text-fontsize) !important;
    background: #fff;
    color: #000;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

/* --------------------------------------------------------------- */
/* Header                                                          */
/* --------------------------------------------------------------- */
.header-fullwidth-image {
    position: relative;
    width: 100%;
    max-width: var(--max-ausgabe-breite);
    margin: 0 auto;
    box-sizing: border-box;
    display: block;
    padding-left: var(--max-padding-header);
    padding-right: var(--max-padding-header);
    background: #fff;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.rotator-image-wrapper,
#header-rotating-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    display: block;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-header-4-cockpit {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.header-placeholder {
    width: var(--max-ausgabe-breite);
    margin: 0 auto;
    display: block;
    background: transparent;
    padding: 0;
    border: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.header-fullwidth-image {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    z-index: 10000;
}

#search-bar {
    display: none;
    right: 0px;
    left: auto;
    transform: translateX(-50%);
    width: var(--header-search-max-width);
    max-width: var(--header-search-max-width);
    margin: 0 auto;
    box-sizing: border-box;
    position: fixed;
    z-index: 11999; /* below header (12000) so the divider stays visible above the search box */
    /*background: #fff;*/
}

    #search-bar.active {
        display: flex;
        align-items: center;
        width: auto; /* width will be constrained by left/right values set below */
        /* Place search-bar edge-to-edge within the header paddings so it sits directly under the divider */
        left: var(--max-padding-header);
        right: var(--max-padding-header);
        transform: none;
        padding: 8px 12px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border-radius: 6px;
    }

.header-table-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 12000;
    width: 100%;
    max-width: var(--max-ausgabe-breite);
    margin: 0 auto;
    box-sizing: border-box;
    /* reduced vertical padding to bring divider closer to header content */
    padding: 4px var(--max-padding-header) 4px var(--max-padding-header);
    background: #fff;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    /* Trennlinie direkt unter dem Header (fein und dezent) */
    border-bottom: 1px solid #e0e0e0;
}

header {
    display: flex;
    flex-direction: column;
}

.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Logo in Header */
img.img-logo {
    height: auto;
    max-height: 48px; /* Maximalhöhe für das Logo */
    width: auto;
    display: block;
    margin-right: 16px;
}

/* Header ausgeklappt */
.header-open {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* --------------------------------------------------------------- */
/* External Links                                                 */
/* --------------------------------------------------------------- */
.external-link {
    position: relative;
    color: #0074d9;
    text-decoration: none;
}

.external-link::after {
    content: "↑";
    font-size: 0.9em;
    color: #0074d9;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.external-link:hover {
    text-decoration: underline;
}

.external-link[disabled] {
    pointer-events: none;
    color: #bbb;
    text-decoration: none;
}

.external-link-modal-content {
    font-size: var(--text-fontsize);
}

.customer-image {
    display: block;
    max-width: 220px;
    max-height: 220px;
    height: auto;
    width: auto;
    margin: 8px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    object-fit: contain;
}

/* News Artikel */
.news-item {
    display: block;
    overflow: auto; /* für floatende Inhalte */
}

.gallery-img {
    max-width: 220px;
    max-height: 180px;
}

.news-image {
    display: block;
    max-width: 220px;
    max-height: 220px;
    height: auto;
    width: auto;
    margin: 8px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    object-fit: contain;
}

.news-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0;
    margin-bottom: 24px;
    background: #fafafa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.news-table-gallery {
    width: 40%;
    min-width: 0;
    max-width: 100%;
    max-height: auto;
    box-sizing: border-box;
    vertical-align: top;
    margin: 8px auto;
}

.news-table-text {
    width: 60%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    vertical-align: top;
    margin: 8px auto;
}

#gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}


/* --------------------------------------------------------------- */
/* Media Bereich                                                   */
/* --------------------------------------------------------------- */

/* Desktop Small / Tablet Portrait (bis ca. 768px) */
/* CSS für Tablets im Hochformat + kleine Laptops */
@media (max-width: 768px) {
    :root {
        --max-ausgabe-breite: 100vw;
        --max-ausgabe-breite-klein: 100vw;
        --max-padding-header: 0px;
        --text-fontsize: 1.05em;
        --product-price-fontsize: 0.9em;
        --text-fontsize-small: 0.7em;
        --header-header-icon-size: 19px;
        --header-standard-icon-size: 24px;
        --header-big-icon-size: 32px;
        --media_value: "@media (max-width: 768px)";
    }

    .header-fullwidth-image,
    .rotator-image-wrapper,
    #header-rotating-image,
    .site-header-4-cockpit {
        max-width: var(--max-ausgabe-breite);
        padding-left: var(--max-padding-header);
        padding-right: var(--max-padding-header);
    }

    .img-logo_title {
        max-height: 42px !important;
        height: auto !important;
        width: auto !important;
        display: block !important;
    }

    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        padding: 0 !important;
        margin: 0 !important;
    }

    .content-container,
    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding-left: 5 !important;
        padding-right: 5 !important;
    }

    #gallery-modal {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
    }

    .news-image {
        display: block;
        max-width: 80% !important;
        max-height: 80% !important;
        height: auto;
        width: auto;
        margin: 8px auto;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        object-fit: contain;
    }

    .product-list-small {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product-image-small-img {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        max-height: 130px !important;
        object-fit: cover !important;
        display: block !important;
        margin: 0 auto 8px auto !important;
    }

    .product-detail-flex {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .basket-table th,
    .basket-table td {
        font-size: 0.7em;
        padding: 2px 4px;
        min-width: 30px;
        max-width: none;
        white-space: normal; /* Zeilenumbruch erlauben */
        word-break: break-word;
    }

    .basket-table {
        font-size: 0.9em;
        display: block;
        overflow-x: auto;
    }
}

/* Mobile Geräte (bis ca. 480px) */
/* CSS für Smartphones in Hochformat */
@media (max-width: 480px) {
    :root {
        --menu-breite: 460px;
        --menu-drawner-fontsize: 1.0em;
        --text-fontsize: 1.0em;
        --product-price-fontsize: 0.9em;
        --text-fontsize-small: 0.6em;
        --header-header-icon-size: 15px;
        --header-standard-icon-size: 20px;
        --media_value: "@media (max-width: 480px)";
    }

    .img-logo_title {
        max-height: 36px !important;
        height: auto !important;
        width: auto !important;
        display: block !important;
    }

    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        padding: 0 !important;
        margin: 0 !important;
    }

    .content-container,
    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding-left: 5 !important;
        padding-right: 5 !important;
    }

    #gallery-modal {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
    }

    .news-image {
        display: block;
        max-width: 50% !important;
        max-height: 50% !important;
        height: auto;
        width: auto;
        margin: 8px auto;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        object-fit: contain;
    }

    .product-detail-flex {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .basket-table th,
    .basket-table td {
        font-size: 0.7em;
        padding: 2px 4px;
        min-width: 30px;
        max-width: none;
        white-space: normal; /* Zeilenumbruch erlauben */
        word-break: break-word;
    }

    .basket-table {
        font-size: 0.9em;
        display: block;
        overflow-x: auto;
    }
}

/* Mobile Geräte (bis ca. 360px) */
/* Mobile bis ca. 360px (kleinere Smartphones) */
/* Extra kleine Geräte */
@media (max-width: 360px) {
    :root {
        --menu-breite: 340px;
        --text-fontsize: 0.95em;
        --product-price-fontsize: 0.8em;
        --text-fontsize-small: 0.6em;
        --header-header-icon-size: 11px;
        --header-standard-icon-size: 16px;
        --media_value: "@media (max-width: 360px)";
    }

    .img-logo_title {
        max-height: 21px !important;
        height: auto !important;
        width: auto !important;
        display: block !important;
    }

    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        padding: 0 !important;
        margin: 0 !important;
    }

    .content-container,
    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding-left: 5 !important;
        padding-right: 5 !important;
    }

    #gallery-modal {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
    }

    .product-detail-flex {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .basket-table th,
    .basket-table td {
        font-size: 0.7em;
        padding: 2px 4px;
        min-width: 30px;
        max-width: none;
        white-space: normal; /* Zeilenumbruch erlauben */
        word-break: break-word;
    }

    .basket-table {
        font-size: 0.9em;
        display: block;
        overflow-x: auto;
    }
}

/* Tablet Landscape bis ca. 1024px */
/* CSS für Tablets im Querformat */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --text-fontsize: 1.1em;
        --product-price-fontsize: 0.95em;
        --text-fontsize-small: 0.75em;
        --media_value: "@media (min-width: 769px) and (max-width: 1024px)";
    }

    .img-logo_title {
        max-height: 48px !important;
        height: auto !important;
        width: auto !important;
        display: block !important;
    }
}

/* Small Desktop bis 1280px */
/* CSS für kleinere Desktop-Bildschirme */
@media (min-width: 1025px) and (max-width: 1280px) {
    :root {
        --text-fontsize: 1.1em;
        --product-price-fontsize: 1.0em;
        --text-fontsize-small: 0.8em;
        --media_value: "@media (min-width: 1025px) and (max-width: 1280px)";
    }

    .img-logo_title {
        max-height: 55px !important;
        height: auto !important;
        width: auto !important;
        display: block !important;
    }
}

/* Desktop Standard bis 1440px */
/* CSS für normale Desktops */
@media (min-width: 1281px) and (max-width: 1440px) {
    :root {
        --text-fontsize: 1.2em;
        --product-price-fontsize: 1.1em;
        --text-fontsize-small: 0.9em;
        --media_value: "@media (min-width: 1281px) and (max-width: 1440px)";
    }

    .img-logo_title {
        max-height: 62px !important;
        height: auto !important;
        width: auto !important;
        display: block !important;
    }
}

/* Large Desktop bis 1920px */
/* CSS für große Monitore */
@media (min-width: 1441px) and (max-width: 1920px) {
    :root {
        --text-fontsize: 1.2em;
        --product-price-fontsize: 1.1em;
        --text-fontsize-small: 0.9em;
        --media_value: "@media (min-width: 1441px) and (max-width: 1920px)";
    }

    .img-logo_title {
        max-height: 64px !important;
        height: auto !important;
        width: auto !important;
        display: block !important;
    }
}

/* Extra Large Desktop bis 2560px */
@media (min-width: 1921px) and (max-width: 2559px) {
    :root {
        --text-fontsize: 1.2em;
        --product-price-fontsize: 1.1em;
        --text-fontsize-small: 0.9em;
        --media_value: "@media (min-width: 1921px) and (max-width: 2559px)";
    }

    .img-logo_title {
        max-height: 64px !important;
        height: auto !important;
        width: auto !important;
        display: block !important;
    }
}

/* 4K Monitoren (2560px und größer) */
/* CSS für 4K bzw. sehr große Displays */
@media (min-width: 2560px) {
    :root {
        --text-fontsize: 1.2em;
        --product-price-fontsize: 1.1em;
        --text-fontsize-small: 0.9em;
        --media_value: "@media (min-width: 2560px)";
    }

    .img-logo_title {
        max-height: 64px !important;
        height: auto !important;
        width: auto !important;
        display: block !important;
    }
}

/* --------------------------------------------------------------- */
/* Tracking Besucher Übersicht                                     */
/* --------------------------------------------------------------- */

.show-all-visitors th:first-child,
.show-all-visitors td:first-child {
    text-align: center;
    vertical-align: middle;
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    padding: 0;
}

.show-all-visitors td:first-child .image-button {
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.content-container #visitorChart {
    width: 800px !important;
    height: 400px !important;
    display: block;
}

/* Inline logo next to text, matches current font height */
.inline-logo {
    display: inline-block;
    vertical-align: text-bottom; /* aligns with text baseline */
    height: var(--text-fontsize); /* matches current font size */
    margin-left: 0em;
}

/* Logo text next to logo image */
.logo-text {
    /* make logo text 0.4em larger than base text size */
    font-size: calc(var(--text-fontsize) + 0.2em);
    color: var(--plastes_de_color_button);
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1;
}

