/* Allgemeine Stile */
    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background-image: url('/jh-shop2/images/background.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: fixed;
        overflow-y: scroll;
    }

/* Container für alles */
    .container {
      max-width: 850px;
      min-height: 95vh;
      margin: 1rem auto;
      border-color: black;
      border-width: 1px;
      border-style: solid;
      box-shadow: 0px 0px 25px black;
      background-color: rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(10px);
    }

/* Fixierter Bereich oben */
    .fixed-header {
        position: fixed;
        top: 0;
        left: 0;
        /*width: auto;*/
        /*background-color: #333;\n */
        /*color: white;*/
        text-align: center;
        padding: 0;
        z-index: 1000; /* Damit es über anderen Elementen liegt */
        /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
        }

    .fixed-header img {
      width: 100%;
    }

    /* Banner-Bild */
    .banner {
      width: 100%;
      height: auto; 
/*      margin: 0px; 
      border: 1px solid black; */
    }

    /* Container für den Inhalt */
    .content {
      padding: 0rem 1rem 0rem 1rem;
      /*border: 1px solid violet;*/
      box-sizing: border-box;
      /* min-height: 1100px; */
    }

    /* Liste mit flexiblen Spalten */
    .list {
      display: grid;
      gap: 1rem; /* 20px; */
    }

    .list-item {
      background-color: #f0f0f0;
      padding: 1rem; /* 20px */
      border-radius: 5px;
      border-width: 1px;
      border-style: solid;
      /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    }

    .list-item.size-1 {
        grid-column: span 1; /* Nimmt 1 Spalte ein */
    }

    .list-item.size-2 {
        grid-column: span 2; /* Nimmt 2 Spalten ein */
    }

    .list-item.size-3 {
        grid-column: span 3; /* Nimmt 3 Spalten ein */
    }

    .list-item.size-4 {
        grid-column: span 4; /* Nimmt die gesamte Zeile ein */
    }

    .list-trenner {
      background-color: transparent;
      padding: 0px;
      border: none;
    }

    .list-trenner.size-1 {
        grid-column: span 1; /* Nimmt die gesamte Zeile ein */
    }

        .list-trenner.size-2 {
        grid-column: span 2; /* Nimmt die gesamte Zeile ein */
    }

        .list-trenner.size-3 {
        grid-column: span 3; /* Nimmt die gesamte Zeile ein */
    }

    .list-trenner.size-4 {
        grid-column: span 4; /* Nimmt die gesamte Zeile ein */
    }


    .toprow {
        width: 100%;
        height: auto;
        font-size: 0.6rem;
        padding: 0.5rem;
        text-align: right;
        border-top: 0px solid black;
        border-right: 0px solid black;
        border-bottom: 1px solid black;
        border-left: 0px solid black;
        /* background-color: lightslategray;*/
        box-sizing: border-box;
        /* margin: 0px; */
    }

    .footer {
        width: 100%;
        height: auto;
        font-size: 0.8rem;
        padding: 0.5rem;
        text-align: left;
        border-top: 1px solid black;
        border-right: 0px solid black;
        border-bottom: 1px solid black;
        border-left: 0px solid black;
        background-color: lightslategray;
        box-sizing: border-box;
        margin: 1rem 0rem 0rem 0rem;
    }

/* === Footer Basis === */
/* .footer {
    background: #222;
    color: #ddd;
    padding: 2rem;
    margin-top: 2rem;
} */

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    padding: 1rem;
    margin: 0 auto;
}

/* --- Adresse --- */
.footer-address {
    font-style: normal;
    line-height: 1.8;
    color: #fff;
}

.footer-address strong {
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
}

.footer-address a {
    color: #fff;
    text-decoration: none;
}

.footer-address a:hover {
    color: #bbb;
}

/* --- Links im Menü --- */
.footer-legal-menu {
    list-style: none;
    padding: 0.2rem 0 0 0;
    margin: 0;
}

.footer-legal-menu li {
    margin: 0.4rem 0;
}

.footer-legal-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-legal-menu a:hover {
    color: #a5a5a5;
    text-decoration: underline;
    font-size: 0.8rem;
}

.footer-ust {
    font-size: 0.6rem;
    padding: 0.5rem;
    text-align: left;
}

    
/* Medienabfragen für Responsive Design */
        @media (max-width: 768px) {
            .list {
              /* grid-template-columns: 1fr; */
              grid-template-columns: repeat(2, 1fr);
            }
      
            body {
              background-image: none;
            }
      
            .container {
              margin: 0;
              border-width: 0px;
              box-shadow: none;
            }
             
            /* NEU: size-4 auf 2-Spalten-Grid anpassen */
            .list-item.size-4,
            .list-trenner.size-4 {
              grid-column: span 2;
            }
            

    .footer-inner {
        grid-template-columns: 1fr;
    }

    /* Desktop-Heading verstecken */
    .footer-legal-heading {
        display: none;
    }

    /* jhaccordion ans dunkle Footer-Design anpassen */
    .footer-legal .jhaccordion {
        background: transparent;
        color: #fff;
        border: none;
        border-bottom: 1px solid #444;
        margin-top: 0;
    }

    .footer-legal .jhaccordion:hover,
    .footer-legal .active {
        background: #333;
        border-bottom: 1px solid #555;
    }

    .footer-legal .jhaccordion:after {
        color: #fff;
    }

    /* Panel im Footer ohne Box-Border */
    .footer-legal .panel {
        border: none;
        border-bottom: 1px solid #444;
        padding: 0.5rem 0;
    }


          }
      
          @media (min-width: 769px) {
            .list {
              /* grid-template-columns: repeat(2, 1fr); */
              grid-template-columns: repeat(4, 1fr);
            }

    /* Button verstecken */
    .footer-legal-toggle {
        display: none;
    }

    /* Heading zeigen */
    .footer-legal-heading {
        color: #fff;
        font-size: 0.8rem;
        margin: 0 0 0.5rem 0;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Panel immer sichtbar – überschreibt das JS/CSS display:none */
    .footer-legal .panel {
        display: block !important;
        border: none;
        padding: 0;
    }


          }


    /* für Fehlerseite */
    .fehler-box {
        background-color: #fdf3f3;
        border: 1px solid #f0b8b8;
        border-radius: 4px;
        padding: 1rem 1.2rem;
        margin: 1rem 0;
        font-size: 0.95rem;
        line-height: 1.7;
        color: #333;
    }

    .fehler-kontakt {
        background-color: #f9f9f9;
        border: 1px solid #dddddd;
        border-radius: 4px;
        padding: 1rem 1.2rem;
        margin: 1rem 0;
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .fehler-kontakt a {
        color: #2980b9;
        text-decoration: none;
    }

    .fehler-btn-primary {
        display: inline-block;
        background-color: #2c3e50;
        color: #ffffff;
        padding: 0.6rem 1.2rem;
        border-radius: 4px;
        text-decoration: none;
        font-size: 0.95rem;
    }

    .fehler-btn-secondary {
        display: inline-block;
        background-color: #ecf0f1;
        color: #2c3e50;
        padding: 0.6rem 1.2rem;
        border-radius: 4px;
        text-decoration: none;
        font-size: 0.95rem;
        border: 1px solid #bdc3c7;
    }

/* ── Widerrufsbutton Footer ──────────────────────────────────────── */
.footer-widerruf {
    text-align: center;
    padding: 1.2rem 0 0.5rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.btn-widerruf {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    background-color: #8e1a0e;
    color: #fff !important;
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-widerruf:hover {
    background-color: #6b1309;
}

.footer-widerruf-hinweis {
    font-size: 0.78rem;
    color: #777;
    margin-top: 0.4rem;
}

.footer-widerruf-hinweis a {
    color: #555;
    text-decoration: underline;
}

/* ── Widerrufsformular ───────────────────────────────── */
.widerruf-wrap {
    max-width: 620px;
    margin: 0 auto;
    padding: 1.5rem;
}

.widerruf-form label {
    display: block;
    font-weight: bold;
    margin: 1rem 0 0.25rem;
}

.widerruf-form input,
.widerruf-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.widerruf-form input:focus,
.widerruf-form textarea:focus {
    border-color: #2980b9;
    outline: none;
}

.btn-widerruf-submit {
    margin-top: 1.2rem;
    padding: 0.65rem 1.8rem;
    background: #c0392b;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-widerruf-submit:hover {
    background: #a93226;
}

.widerruf-fehler {
    background: #fdecea;
    border-left: 4px solid #c0392b;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #c0392b;
}

.widerruf-erfolg {
    background: #eafaf1;
    border-left: 4px solid #27ae60;
    padding: 1rem 1.2rem;
}

.widerruf-datenschutz {
    font-size: 0.85rem;
    margin-top: 1rem;
    color: #555;
}

.pflicht { color: #c0392b; }

.pflicht-hinweis {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5rem;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #222;          /* Dunkelgrau/fast schwarz */
    text-decoration: none; /* Unterstreichung vom Link entfernen */
}

.cart-link:hover {
    color: #777;          /* Beim Hover: etwas heller werden */
}

.cart-total {
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none; /* Sicherheitshalber auch hier */
}

.cart-total:empty {
    display: none;
}