/* --------------------------------------------------------------- */
/* 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: #df7508;
    --plastes_de_color_ultralight: #fffbe6;
    --plastes_de_color_dark: #ffc04d;
    --plastes_de_color_light: #efc52d;
    --plastes_de_color_button: #fbc531;
    --color_red: #d00000;
    --color_gray: #666;
    /* Breiten */
    --max-ausgabe-breite: 95vw;
    --max-ausgabe-breite-head: 88vw;
    --max-ausgabe-breite-klein: 80vw;
    --max-ausgabe-breite-menu: 90vw;
    /* Text */
    --menu-drawner-fontsize: 2.4em;
    --text-fontsize: 1.2em;
    --product-price-fontsize: 1.1em;
    --text-fontsize-small: 0.9em;
    /* Buttons */
    --header-search-icon-size: 32px;
    --header-basket-icon-size: 36px;
    --header-standard-icon-size: 36px;
    --header-big-icon-size: 49px;
    /* Logo */
    --header-logo-max-height: 64px;
    /* Suche */
    --header-search-max-width: 240px;
}

/* 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-head: 100vw;
        --max-ausgabe-breite-klein: 100vw;
        --max-ausgabe-breite-menu: 100vw;
        --text-fontsize: 1.05em;
        --product-price-fontsize: 0.9em;
        --text-fontsize-small: 0.7em;
        --header-search-icon-size: 19px;
        --header-basket-icon-size: 19px;
        --header-standard-icon-size: 24px;
        --header-big-icon-size: 26px;
        --header-logo-max-height: 26px;
        --header-search-max-width: 150px;
    }
}

/* Mobile Geräte (bis ca. 480px) */
/* CSS für Smartphones in Hochformat */
@media (max-width: 480px) {
    :root {
        --menu-breite: 460px;
        --max-ausgabe-breite: 100vw;
        --max-ausgabe-breite-head: 100vw;
        --max-ausgabe-breite-klein: 100vw;
        --max-ausgabe-breite-menu: 100vw;
        --menu-drawner-fontsize: 1.0em;
        --text-fontsize: 1.0em;
        --product-price-fontsize: 0.9em;
        --text-fontsize-small: 0.6em;
        --header-search-icon-size: 14px;
        --header-basket-icon-size: 14px;
        --header-standard-icon-size: 15px;
        --header-big-icon-size: 18px;
        --header-logo-max-height: 18px;
        --header-search-max-width: 110px;
    }
}

/* Mobile Geräte (bis ca. 360px) */
/* Mobile bis ca. 360px (kleinere Smartphones) */
/* Extra kleine Geräte */
@media (max-width: 360px) {
    :root {
        --menu-breite: 340px;
        --max-ausgabe-breite: 100vw;
        --max-ausgabe-breite-head: 100vw;
        --max-ausgabe-breite-klein: 100vw;
        --max-ausgabe-breite-menu: 100vw;
        --text-fontsize: 0.95em;
        --product-price-fontsize: 0.8em;
        --text-fontsize-small: 0.6em;
        --header-search-icon-size: 10px;
        --header-basket-icon-size: 10px;
        --header-standard-icon-size: 11px;
        --header-big-icon-size: 15px;
        --header-logo-max-height: 15px;
        --header-search-max-width: 100px;
    }
}

/* Tablet Landscape bis ca. 1024px */
/* CSS für Tablets im Querformat */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --max-ausgabe-breite: 100vw;
        --max-ausgabe-breite-head: 100vw;
        --max-ausgabe-breite-klein: 100vw;
        --max-ausgabe-breite-menu: 100vw;
        --text-fontsize: 1.1em;
        --product-price-fontsize: 0.95em;
        --text-fontsize-small: 0.75em;
        --header-search-icon-size: 21px;
        --header-basket-icon-size: 21px;
        --header-standard-icon-size: 29px;
        --header-big-icon-size: 32px;
        --header-logo-max-height: 42px;
        --header-search-max-width: 170px;
    }
}

@media (max-width: 768px), (max-width: 480px), (max-width: 360px), (min-width: 769px) and (max-width: 1024px) {
    .product-detail-flex {
        flex-direction: row;
        flex-wrap: wrap; 
        align-items: flex-start;
    }

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

    .search-form {
        flex: 1 1 100%;
        min-width: 0;
        margin: 4px 0;
        justify-content: flex-start;
        font-size: var(--text-fontsize); /* Schriftgröße aus Variable */
    }

    .header-table-fixedheader-table-fixed {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: var(--max-ausgabe-breite);
        margin: 0 auto;
        background: #fff;
        z-index: 10000;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }

    .img-logo_title {
        max-height: var(--header-logo-max-height) !important;
        height: auto !important;
        width: auto !important;
        display: block !important;
    }

    @media (max-width: 480px) {
        .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;
        }
    }
}

@media (min-width: 1025px) and (max-width: 1280px), (min-width: 1281px) and (max-width: 1440px), (min-width: 1441px) and (max-width: 1920px), (min-width: 1921px) and (max-width: 2559px), (min-width: 2560px) {
    .img-logo_title {
        max-height: var(--header-logo-max-height) !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;
        --header-search-max-width: 200px;
        --header-logo-max-height: 50px;
    }
}

/* 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;
        --header-search-max-width: 220px;
        --header-logo-max-height: 58px;
    }
}

/* 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;
        --header-search-max-width: 240px;
        --header-logo-max-height: 64px;
    }
}

/* 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;
        --header-search-max-width: 240px;
        --header-logo-max-height: 64px;
    }
}

/* 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;
        --header-search-max-width: 240px;
        --header-logo-max-height: 64px;
    }
}

/* --------------------------------------------------------------- */
/* Header, Footer und Content                                      */
/* --------------------------------------------------------------- */
/* Basisdefinitiion für HTML und Body. */
html, body {
    min-width: 360px; /* Beispielwert, nach Bedarf anpassen */
}

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;
}

/* Logo der Homepage. */
/*.img-basket_title {
    max-height: 64px;
    height: auto;
    width: auto;
    display: block;
    border-radius: 6px;
}*/

/* 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: 88vw;
    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: 80vw;
    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-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-search-icon-size) !important;
    width: var(--header-search-icon-size) !important;
}

/* Basket-Button */
.image-button.basket-btn img {
    height: var(--header-basket-icon-size) !important;
    width: var(--header-basket-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;
        }

/* --------------------------------------------------------------- */
/* 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 erzwungene 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: #f8f8f8; /* optional, für einheitlichen Hintergrund */
}

/* 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;
    height: 128px;
    object-fit: cover;
    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-placeholder {
    height: 20px; /* war 90px */
    background: rgba(255,255,255,0.1);
}

.rotator-image-wrapper {
    position: relative;
    /*width: 100%;*/ main max-width: var(--max-ausgabe-breite);
    margin: 0 auto;
    box-sizing: border-box;
    display: block;
}

.header-fullwidth-image,
.site-header-4-cockpit,
#header-rotating-image {
    width: 100%;
    max-width: var(--max-ausgabe-breite);
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
}

.header-table-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /*width: var(--max-ausgabe-breite-head);*/
    width: 88vw;
    max-width: var(--max-ausgabe-breite);
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    z-index: 10000;
    box-sizing: border-box;
    overflow-x: hidden;
}

    .header-table-fixed > table {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .search-form input[type="text"] {
        width: var(--header-search-max-width);
        min-width: 0;
        max-width: var(--header-search-max-width);
        flex-basis: var(--header-search-max-width);
        flex-shrink: 1;
        font-size: var(--text-fontsize); /* Schriftgröße aus Variable */
    }

    .search-form .image-button {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

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

.news-image {
    max-width: 150px;
    max-height: 150px;
    height: auto;
    width: auto;
    float: left;
    margin-right: 16px;
    /*margin-bottom: 8px;*/
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    object-fit: contain;
}

.news-table {
    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: 240px;
    min-width: 180px;
    vertical-align: top;
    padding: 16px 16px 16px 0;
}

.news-table-text {
    vertical-align: top;
    padding: 16px 0 16px 16px;
}

