﻿/*
 * DEINE ORIGINALEN GLOBALE STILE
 * Diese Stile sind oft geräteunabhängig oder die Basis für die kleinsten Bildschirme.
 */
html {
    /* clamp() ist Mobile-First-freundlich, da es die Größe dynamisch anpasst. */
    /* Die 10px sind der MINDESTwert für kleine Bildschirme, 16px der MAX-Wert für große. */
    font-size: clamp(10px, 1.2vw, 16px);
    position: relative;
    min-height: 100%;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, Tahoma, Geneva, Verdana, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    color: #333;
    /* Generell overflow-x: hidden; ist ok. overflow-y: hidden; sollte man sehr vorsichtig einsetzen,
       da es Scrollen verhindert. Ich belasse es für jetzt, aber sei vorsichtig! */
    overflow-x: hidden;
    overflow-y: hidden;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
}

body {
    min-height: 100vh;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    outline: none;
}

.Navlinks {
    margin-left: 1rem;
    font-size: 1.2rem; /* Beachte: Wenn du die html font-size mit clamp() steuerst,
                       würden relative Einheiten wie 'em' oder 'rem' hier besser passen,
                       z.B. 'font-size: 1.2em;' */
}

#BackgroundContainer {
    padding: 1rem;
}
/*************************************************************************Newsletter Container*/

/* Globale Stile sind bereits in Ordnung */

/*************************************************************************Newsletter Modal*/
/* Stil für den Button, der das Modal öffnet */
#newsletterModal {
    display: none;
}

.newsletter-toggle-btn {
    background-color: #6a0dad; /* Ihre Markenfarbe */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* Optional: Ein kleiner Schatten, um es anklickbar aussehen zu lassen */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .newsletter-toggle-btn:hover {
        background-color: #510787;
    }

/* Modal Overlay (der dunkle Hintergrund) */
.modal-overlay {
    display: none; /* Standardmäßig versteckt */
    position: fixed; /* Über allem */
    z-index: 2000; /* Sehr hoch, um über anderen Inhalten zu sein */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Scrollbar, falls Inhalt zu lang */
    background-color: rgba(0,0,0,0.6); /* Dunkler, halbtransparenter Hintergrund */
    display: flex; /* Für Zentrierung des Inhalts */
    justify-content: center;
    align-items: center;
    padding: 15px; /* Kleiner Puffer an den Rändern für kleine Bildschirme */
}

/* Modal Inhalt (das Dialogfeld selbst) */
.modal-content {
    background-color: #fefefe;
    margin: auto; /* Für vertikale und horizontale Zentrierung */
    padding: 25px;
    border-radius: 10px; /* Leicht abgerundete Ecken */
    box-shadow: 0 4px 15px rgba(0,0,0,0.25); /* Deutlicherer Schatten */
    position: relative;
    max-width: 500px; /* Maximale Breite für größere Bildschirme */
    width: 95%; /* Flexibler für kleinere Bildschirme */
    text-align: center; /* Inhalt zentrieren */
    animation: fadeIn 0.3s ease-out; /* Einfache Einblendanimation */
}

/* Animation für das Modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Schließen-Button */
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .close-button:hover,
    .close-button:focus {
        color: #333;
        text-decoration: none;
    }

/* Stil für die Elemente im Modal */
.modal-content h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
}

.modal-content input[type="email"] {
    width: calc(100% - 30px); /* 100% Breite minus Padding */
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

    .modal-content input[type="email"]:focus {
        border-color: #6a0dad;
    }

.modal-content button[type="submit"] {
    background-color: #6a0dad;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .modal-content button[type="submit"]:hover {
        background-color: #510787;
    }

.modal-content .privacy-note {
    font-size: 0.8em;
    color: #777;
    margin-top: 20px;
}

    .modal-content .privacy-note a {
        color: #6a0dad;
        text-decoration: none;
    }

        .modal-content .privacy-note a:hover {
            text-decoration: underline;
        }
/******************************************Filterbutton*/
#IndexFilterButton {
    background-color: lightgray;
    color: Black;
    border: solid 0.2rem black;
}

/***************************************************** Angebotslaufband */
.card-img-top {
    max-width: 80%;
    margin-top: 3rem;
}

.laufband-wrapper {
    overflow: hidden;
    margin: 0 auto; /* zentriert den Wrapper horizontal */
    position: relative;
    display: flex;
    justify-content: center;
}

.laufband-spur {
    display: flex;
    gap: 1rem;
    will-change: transform;
}

.angebot-item {
    background-color: white;
    flex: 0 0 auto;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
    max-width: 25rem;
    font-size: 1rem;
    position: relative;
}

.angebot-sticker {
    position: absolute;
    top: 1rem;
    right: -1rem;
    background: #ff0000;
    color: white;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    z-index: 10;
}

/*.AngebotImage {
    height: 15vh !important;
}*/

.AngebotImage {
    /* 1. Hauptregel: Das Bild darf maximal 100% der Breite des Containers einnehmen. */
    max-width: 70%;
    /* 2. Proportionale Höhe: Stellt sicher, dass die Höhe automatisch angepasst wird, 
       um Verzerrungen zu vermeiden, wenn die Breite skaliert wird. */
    height: auto;
}

.WerteAngebote {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateY(4rem);
}

/*****************************************************Angebotslider*/


/*.laufband-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

#UnsereAngeboteDiv {
    margin-top: 0.5rem;
}

.laufband-spur {
    margin-top: 2rem;
    display: flex;
    width: max-content;
}



.laufband-inhalt {
    display: flex;*/
/* animation: scrollLeft 20s linear infinite; */ /* Geschwindigkeit hier anpassen */
/*}

.angebot-sticker {
    position: absolute;
    top: 1rem;
    right: -1.8rem;
    background: #ff0000;
    color: white;
    padding: 0.2rem 1rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    z-index: 10;
}

.angebot-item {
    background-color: white;
    flex: 0 0 auto;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
    min-width: 200px;
    font-size: 1rem;
}

.AngebotImage {
    height: 15vh !important
}

.WerteAngebote {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateY(4rem);
}*/

/*@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}*/

/******************************************Getraenke der UK anzueigen*/
#GetraenkeUKAnzCard {
    border: 0.1rem solid black;
    background-color: lightgray;
}
/*****************************************************Sticke fuer Detailseite*/
#stickerfuerDetail {
    position: absolute;
    top: 4.5rem;
    right: -0.8rem;
    background: red;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
/*----------------------------------------------------------------------Warenkorb-counter*/
.pulse-animation {
    animation: pulse 0.5s ease-in-out;
}

.input-group {
    width: fit-content;
}

    .input-group .form-control {
        width: 4rem;
        text-align: center;
    }

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

    .back-link:hover {
        color: var(--secondary-color);
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

#cartCounter {
    font-size: 0.7rem;
    vertical-align: top;
    margin-left: -5px;
    position: relative;
    top: -5px;
}

#paymentModa {
    z-index: 1070 !important;
}

#paymentModamodal-backdrop {
    z-index: 1060 !important;
}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++css für Lieferadressenabfrage*/
.bg-primary-gradient {
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
}

.form-control {
    border-radius: 0.5rem !important;
    min-width: 250px; /* Dieser min-width kann auf sehr kleinen Geräten Probleme machen */
    flex-grow: 1;
}

.input-group-text {
    border-radius: 0.5rem 0 0 0.5rem !important;
}

input[type="date"].form-control,
input[type="time"].form-control {
    min-width: 200px; /* Dieser min-width kann auf sehr kleinen Geräten Probleme machen */
}

.form-control:focus {
    border-color: #3a7bd5;
    box-shadow: 0 0 0 0.25rem rgba(58, 123, 213, 0.25);
}

.card-body {
    padding: 1rem !important; /* Startwert für mobile */
}

/* ----------------------------- PARTIAL: UNTERKATEGORIEN ----------------------------- */
#partielviewunterkategorien {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    width: 100%;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    background-color: #f0f0f0;
    border: none;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    text-align: left;
}

    #partielviewunterkategorien img {
        max-height: 4rem;
        height: auto;
        margin-left: 1rem;
    }

.meinkunde {
    color: black;
}

/* ----------------------------- RESPONSIVES BILD ----------------------------- */
.centered-image {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 50vh; /* Dies war dein Originalwert, kann für Mobile zu groß sein */
    width: auto;
    height: auto;
    display: block;
    margin: 2rem auto;
    z-index: -1;
}

/* ----------------------------- MAIN ----------------------------- */
.main-container {
    margin: auto;
    padding: 0.3rem 1rem 2rem 1rem; /* Angepasst für Mobile */
    width: 100%;
}

#main-content-wrapper {
    position: fixed;
    top: 56px;
    bottom: 60px;
    left: 0;
    right: 0;
    overflow-y: auto;
    overflow-x: auto;
    padding: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #444;
    font-size: clamp(1.2rem, 2vw, 2rem);
}

/* -------------------------------------------------------------------------------------------------- GRID für IndexKategorie ----------------------------- */
/* Grundlegende Stil für alle Bildschirme, die horizontales Scrollen ermöglichen */
/* Container für das Scrollen auf allen Geräten */
.grid-wrapper {
    overflow-x: auto;
    /* Entferne unnötiges Padding, da der grid-container selbst
       die Abstände regelt */
    padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
    display: flex;
    // justify-content: center;
}

/* Der eigentliche Rastercontainer, der alle Karten enthält */
.grid-container {
    display: flex; /* Flexbox ist ideal für horizontales Scrollen */
    gap: 1rem;
    flex-wrap: nowrap; /* Wichtig: verhindert, dass Karten umbrechen */
    /* width: max-content; */ /* Diesen Wert ersetzen wir */
    /* Setze einen hohen, festen Wert, um sicherzustellen, dass
       immer genug Platz vorhanden ist */
    min-width: 100%;
}

/* Die einzelnen Karten im Raster */
.grid-card {
    /* ... deine vorhandenen Stile ... */
    /* Füge einen linken und rechten Rand hinzu, um Abstand
       zum Rand des grid-wrapper zu schaffen */
    margin: 0 0.5rem;
}

    /* Anpassung für die erste und letzte Karte */
    .grid-card:first-child {
        margin-left: 1rem;
    }

    .grid-card:last-child {
        margin-right: 1rem;
    }
/* Optional: Stile für die Scrollbar anpassen, falls gewünscht */
.grid-container::-webkit-scrollbar {
    height: 6rem;
    background: transparent; /* Versteckt die Scrollbar standardmäßig */
}

.grid-container:hover::-webkit-scrollbar {
    background: #f0f0f0; /* Zeigt eine helle Scrollbar beim Hovern an */
}

.grid-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.grid-card {
    flex: 0 0 auto;
    width: clamp(12rem, 30vw, 15rem); /* Gute Nutzung von clamp() hier */
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

    .grid-card:hover {
        transform: translateY(-0.5rem);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
    }

.grid-img {
    width: 100%;
    aspect-ratio: 3 / 2; /* oder 1 / 1 für quadratisch */
    object-fit: cover;
    border-radius: 10px;
}

.grid-info h4 {
    margin: 0.5rem 0 0;
    color: #222;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.grid-info p {
    color: #555;
}

.sticky-back-header {
    position: sticky;
    top: 0;
    margin-left: auto;
    margin-right: auto;
    width: 80%; /* Dies kann auf Mobile zu klein sein, überdenke diese feste Breite */
    background-color: #f8f9fa;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .sticky-back-header .back-link {
        font-size: 1.1rem;
        color: #007bff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .sticky-back-header .back-link:hover {
            color: #0056b3;
        }

/* ----------------------------- MODAL ----------------------------- */
.plz-modal {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.plz-container {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    width: 75%;
    max-width: 500px;
}

.plz-input {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

    .btn:hover {
        background-color: #218838;
    }

.plz-note {
    font-size: 0.85rem;
    color: #888;
}

/*************************************************************Getraenke der uk anzeigen*/

#BildBeiGetrrDerUkAnz {
    max-height: 40rem;
    object-fit: contain;
    oder 'cover' je nach gewünschtem Effekt
}
/* Lieferschein spezifische Styles (Basis für Mobile) */

.page .header h1 {
    font-size: 16pt; /* Angepasst für Mobile */
    margin-bottom: 5mm;
    text-align: center;
    font-weight: bold;
}

.page .content p, .page .summary p {
    margin-bottom: 3mm;
    font-size: 0.9rem; /* Relative Einheit nutzen */
}

.page .table {
    font-size: 0.7rem; /* Angepasst für Mobile */
    width: 100%;
    margin: 5mm 0;
}

    .page .table th {
        background-color: #f5f5f5;
        font-weight: bold;
        padding: 2mm;
    }

    .page .table td {
        padding: 1.5mm;
        border-bottom: 1px solid #eee;
    }

.page .summary {
    margin-top: 5mm;
    font-weight: bold;
}

    .page .summary p {
        margin: 2mm 0;
    }

.page .footer {
    margin-top: 5mm;
    font-size: 0.8rem;
    color: #666;
}

#summarytable {
    margin-left: auto;
    width: 100%;
}

    #summarytable p {
        margin-bottom: 0;
    }

    #summarytable td:last-child {
        text-align: right;
    }

footer.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
    background-color: #fff;
}

/**********************************************************************************Cookie style*/
.cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* Startwert für Mobile */
    height: auto; /* Höhe flexibler lassen */
    max-width: 600px; /* Begrenzung für größere Bildschirme */
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px; /* Etwas weniger Padding für Mobile */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Etwas weniger Gap für Mobile */
}

    .cookie-banner p {
        margin-bottom: 0;
        font-size: 1em; /* Mobile: 1em, wird von html font-size skaliert */
    }

    .cookie-banner button {
        padding: 8px 15px; /* Kleinere Buttons für Mobile */
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 0.9em;
        min-width: 120px; /* Kleinere min-width für Mobile */
        margin: 3px;
    }

    .cookie-banner .button-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

/*
 * MOBILE-FIRST MEDIA QUERIES
 * Die Breakpoints sind hier so gewählt, dass sie auf die effektiven Viewport-Breiten reagieren,
 * auch wenn das Betriebssystem skaliert.
 */

/* Small devices (phones, 576px and up) */
@media (min-width: 576px) {
    .centered-image {
        max-height: 40vh; /* Etwas größer auf größeren Handys */
    }

    .cookie-banner {
        width: 85%;
        padding: 25px;
        gap: 15px;
    }

        .cookie-banner button {
            padding: 10px 20px;
            min-width: 150px;
        }

    /*Newsletter*/
    .newsletter-input-group {
        flex-direction: row; /* Nebeneinander für größere Bildschirme */
        justify-content: center; /* Zentriert die nebeneinander liegenden Elemente */
        align-items: unset; /* Setzt align-items zurück, da flex-grow es übernimmt */
        gap: 10px; /* Bleibt bei 10px Abstand */
    }

        .newsletter-input-group input[type="email"] {
            flex-grow: 1; /* Ermöglicht dem Eingabefeld, den verfügbaren Platz einzunehmen */
            max-width: 350px; /* Begrenzung für größere Bildschirme */
            width: auto; /* Breite zurücksetzen, da flex-grow wirkt */
        }

        .newsletter-input-group button {
            width: auto; /* Breite zurücksetzen, Button wird nach Inhalt und Padding skaliert */
            margin-top: 0; /* Kein zusätzlicher Margin, wenn nebeneinander */
        }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .card-body {
        padding: 1.5rem 2rem !important; /* Originalwert wiederhergestellt */
    }

    .page {
        /* Für Mobile nehmen wir 95% Breite und passen das Padding an */
        width: 95%;
        min-height: 100vh; /* vh statt mm, da Bildschirme keine feste mm-Größe haben */
        margin: auto;
        padding: 1rem; /* Angepasst für Mobile */
        font-family: Arial, sans-serif;
        font-size: 10pt; /* Kleinere Basisgröße für Mobile */
        line-height: 1.4;
        color: #333;
        border: 0.1rem solid black;
    }


        .page .header h1 {
            font-size: 18pt;
        }

        .page .content p, .page .summary p {
            font-size: 1rem;
        }

        .page .table {
            font-size: 0.8rem;
        }

        .page .footer {
            font-size: 0.9rem;
        }

    .grid-card {
        width: clamp(14rem, 25vw, 16rem); /* Etwas größer auf Tablets */
    }

    .centered-image {
        max-height: 50vh; /* Dein Originalwert für das Bild */
    }

    .main-container {
        padding: 0.3rem 2rem 2rem 2rem; /* Originalwert */
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

    /* html font-size sollte bereits durch clamp() gut geregelt sein */
    /* Hier könntest du spezifische Layout-Anpassungen für größere Laptops und Desktops machen */
    /*Einstellung für Tabellen*/
    /* Schriftgröße und Zellverhalten optimieren */
    .Getraenketabelle {
        font-size: 0.85rem; /* etwas kleinere Schrift */
        table-layout: auto; /* oder 'fixed', wenn du feste Spaltenbreiten möchtest */
        white-space: normal; /* erlaubt Zeilenumbruch */
        word-break: break-word; /* lange Wörter umbrechen */
    }

        /* Kopfzeile kleiner machen */
        .Getraenketabelle th {
            font-size: 0.8rem;
            padding: 4px;
            vertical-align: middle;
        }

        /* Tabellenzellen optimieren */
        .Getraenketabelle td {
            font-size: 0.85rem;
            padding: 4px;
            vertical-align: middle;
        }

        /* Bilder in Zellen kleiner halten */
        .Getraenketabelle img {
            max-height: 60px;
            height: auto;
        }

        .Getraenketabelle td {
            white-space: pre-wrap; /* erhält Zeilenumbrüche und erlaubt Umbruch */
            word-wrap: break-word; /* für ältere Browser */
            overflow-wrap: break-word; /* moderner Standard */
            max-width: 18rem; /* maximale Spaltenbreite */
        }

    /* Scrollbar für sehr breite Tabellen auf kleineren Geräten */
    .table-responsive {
        overflow-x: auto;
    }

    /*Ende Einstellung für Tabellen*/

    .page {
        width: 70%; /* Noch breiter */
        font-size: 12pt; /* Originalgröße für Lieferschein auf Desktop */
    }

        .page .header h1 {
            font-size: 20pt; /* Originalgröße für Lieferschein auf Desktop */
            margin-bottom: 10mm;
        }

        .page .content p, .page .summary p {
            font-size: 11pt; /* Originalgröße für Lieferschein auf Desktop */
            margin-bottom: 5mm;
        }

        .page .table {
            font-size: 0.9rem;
        }

        .page .summary {
            margin-top: 10mm;
        }

        .page .footer {
            margin-top: 10mm;
            font-size: 9pt;
        }

    .sticky-back-header {
        width: 60%; /* Breite für Desktop-Ansicht */
    }

    .grid-card {
        width: clamp(15rem, 20vw, 18rem); /* Noch größere Cards */
    }
}

/* kleiner Laptop (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Wenn du noch größere Anpassungen für sehr große Monitore brauchst */
    html {
        font-size: 12px;
    }

    .grid-container {
        display: flex;
        gap: 1rem;
        width: 100%;
        height: 13rem;
        overflow-x: auto;
        padding-bottom: 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap; /* Wichtig für horizontales Scrollen */
    }


    .grid-card {
        flex: 0 0 auto;
        width: clamp(8rem, 20vw, 13rem); /* Gute Nutzung von clamp() hier */
        height: 11rem;
        background-color: #fff;
        border-radius: 1rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .grid-container::-webkit-scrollbar {
        height: 0.4rem;
    }


    /*****************************************************Angebotslider*/

    .laufband-wrapper {
        overflow: hidden;
        width: 100%;
    }

    .laufband-spur {
        display: flex;
        gap: 1rem;
        width: max-content;
    }

    /*.laufband-spur {
        display: flex;
        gap: 1rem;
        white-space: nowrap;
        position: relative;
        width: max-content;*/ /* nur so breit wie der Inhalt */
    /*margin: 0 auto;*/ /* mittig ausrichten */
    /*}*/

    .angebot-item {
        flex: 0 0 auto;
        background-color: white;
        border: 1px solid #ddd;
        padding: 10px 15px;
        border-radius: 10px;
        box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
        min-width: 5rem;
        font-size: 1rem;
    }

    .AngebotImage {
        height: 12vh !important;
    }

    .WerteAngebote {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        transform: translateY(2rem);
    }

    .angebot-sticker {
        position: absolute;
        top: 1rem;
        right: -1rem;
        background: #ff0000;
        color: white;
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
        font-weight: bold;
        transform: rotate(45deg);
        box-shadow: 0 0 5px rgba(0,0,0,0.3);
        z-index: 10;
    }





    .page {
        width: 60%; /* Dein ursprünglicher DIN A4 Wert */
    }

    .cookie-banner {
        width: 50%; /* Wenn es auf sehr großen Bildschirmen kompakter sein soll */
    }
}



@media (min-width: 1400px) {
    /* Wenn du noch größere Anpassungen für sehr große Monitore brauchst */
    html {
        font-size: 12px;
    }

    .grid-card {
        flex: 0 0 auto;
        width: clamp(12rem, 30vw, 15rem); /* Gute Nutzung von clamp() hier */
        height: 13rem;
        background-color: #fff;
        border-radius: 1rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .page {
        width: 60%; /* Dein ursprünglicher DIN A4 Wert */
    }

    .cookie-banner {
        width: 50%; /* Wenn es auf sehr großen Bildschirmen kompakter sein soll */
    }
}

/* Wenn dein Desktop-PC 1920px ohne Skalierung hat, kann diese Query greifen. */
/* Aber die clamp() auf html sollte die Schriftgröße generell gut regeln. */
/* Diese Query ist für die Schriftgröße in html nicht unbedingt nötig, wenn clamp() richtig eingestellt ist. */
/* Aber du könntest sie für andere Elemente nutzen, die nicht proportional skaliert werden sollen. */
@media (min-width: 1920px) {
    html {
        font-size: 16px;
    }

    .grid-container {
        display: flex;
        gap: 1rem;
        width: 100%;
        height: 14rem;
        overflow-x: auto;
        padding-bottom: 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap; /* Wichtig für horizontales Scrollen */
    }

    #main-content-wrapper {
        position: fixed;
        top: 70px;
        bottom: 60px;
        left: 0;
        right: 0;
        overflow-y: auto;
        overflow-x: auto;
        padding: 1rem;
    }
}
/* =======================
   A4-VORSCHAU (Desktop)
   ======================= */
@media screen {
    body {
        background: #ccc; /* grauer Hintergrund für realistische "Papier-Vorschau" */
    }

    .page {
        width: 210mm; /* A4-Breite */
        min-height: 297mm; /* A4-Höhe */
        margin: 0 auto; /* Zentrieren */
        background: white;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
        padding: 15mm 20mm; /* Seitenränder */
        overflow: hidden;
    }

        /* Wenn mehrere Seiten gerendert werden */
        .page + .page {
            margin-top: 20px;
        }

    html, body {
        overflow-y: auto;
    }
}



/* =======================
   DRUCK / PDF
   ======================= */
@media print {
    html, body {
        margin: 0;
        width: 210mm;
        height: 297mm;
        background: white;
    }

    .page {
        box-shadow: none;
        margin: 0;
        padding: 15mm 20mm;
        page-break-after: always;
        page-break-inside: avoid;
    }

    body {
        overflow: visible !important;
    }

    /* Buttons etc. ausblenden */
    .no-print {
        display: none !important;
    }
}
/* ================================
   DESKTOP-VORSCHAU ALS DIN-A4
   ================================ */
/*@media screen {
    body {
        background: #ccc;*/ /* grauer Hintergrund für realistische "Papier-Vorschau" */
/*padding: 20px;
    }

    .page {
        width: 210mm;*/ /* A4-Breite */
/*min-height: 297mm;*/ /* A4-Höhe */
/*margin: 0 auto;*/ /* Zentrieren */
/*background: white;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
        padding: 15mm 20mm;*/ /* Seitenränder */
/*overflow: hidden;
    }*/

/* Damit mehrere Seiten untereinander erscheinen */
/*.page + .page {
            margin-top: 20px;
        }
}*/
/*Scrollfahige Vorschauseite*/
/*@media screen {
    html, body {
        overflow-y: auto;
    }
}*/

/* ================================
   DRUCK / PDF
   ================================ */
/*@media print {
    html, body {
        width: 210mm;
        height: 297mm;
        margin: 0;
        background: white;
    }

    .page {
        margin: 0;
        padding: 10mm 15mm;
        box-shadow: none;
        page-break-after: always;
        page-break-inside: avoid;
    }
}*/

