* styles.css */
body {
    background: #f4f9fc;
    font-family: Arial, sans-serif;
    margin: 0; /* Verhindert weiße Ränder auf mobilen Geräten */
}
.container {
    max-width: 800px; /* Verbreitert für das Produkt-Grid */
    margin: 60px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px #aaa;
    padding: 40px 30px;
    text-align: center;
}
@media (max-width: 600px) {
  .container {
    max-width: 95vw;         
    margin: 20px auto;       
    padding: 20px 15px;      
    box-sizing: border-box;
  }
}
.logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin-bottom: 18px;
}
main {
    max-width: 700px;
    margin: 40px auto 0 auto;
    padding: 0 16px;
    flex: 1;
}
h1, h2, h3 {
    color: #444;
    margin-top: 32px;
    margin-bottom: 18px;
    font-weight: 600;
}
h1 {
    font-size: 2em;
    margin-top: 0;
}
.section-title {
    font-size: 1.5em;
    margin-top: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
/* Smaller screen adjustment */
@media (max-width: 600px) {
  h1 { font-size: 1.5em; margin-bottom: 15px; }
  p { font-size: 1em; margin-bottom: 20px; }
  .section-title { font-size: 1.3em; }
}
a.text-link {
    color: #0066cc;
    text-decoration: underline;
    transition: color 0.2s;
}
a.text-link:hover {
    color: #004999;
}
ul, ol {
    margin: 8px 0 8px 32px;      
    padding-left: 0px;            
}
ul { list-style-type: disc; }
ul li {
    margin-bottom: 8px;            
    padding-left: 4px;             
}
ul li:last-child { margin-bottom: 0; }
p {
    font-size: 1.1em;
    color: #555;
}

/* --- NEU: Produkt-Grid Styles --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 20px;
}
.product-card {
    border: 1px solid #e0ebf5;
    border-radius: 10px;
    padding: 20px;
    background-color: #f4f9fc; /* NEU: Der softe Stripe-Hintergrund */
    text-align: left; /* Überschreibt das Center vom Container */
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 15px;
    background-color: transparent;
    transition: transform 0.3s ease;
    position: relative;
}
.product-img:hover {
    transform: scale(1.15); /* Vergrößert das Bild um 15% */
    cursor: zoom-in; /* Zeigt eine Lupe als Mauszeiger an */
    z-index: 10;
}
.product-title {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}
.product-desc {
    font-size: 0.95em;
    flex-grow: 1; /* Schiebt Button nach unten, wenn Text kurz ist */
    margin-bottom: 15px;
}
.price-buy-wrapper {
    display: flex;
    justify-content: space-between; /* Schiebt Preis nach links, Button nach rechts */
    align-items: center; /* Zentriert beides auf gleicher Höhe */
    margin-top: auto; /* Drückt den Block immer ans untere Ende der Karte */
    gap: 10px; /* Abstand, falls der Platz auf kleinen Handys eng wird */
    flex-wrap: wrap; /* Erlaubt Umbruch auf SEHR kleinen Displays */
}

.price-info {
    text-align: left;
}
.product-price {
    font-size: 1.6em;
    font-weight: bold;
    color: #111;
    margin-bottom: 2px;
}
.tax-info {
    font-size: 0.8em;
    color: #777;
}
/* -------------------------------- */

.link-btn {
    display: inline-block;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
    margin: 0 auto 15px auto;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    cursor: pointer;
}
.link-btn:active {
    transform: scale(0.97); /* Kleiner Klick-Effekt */
}
.marketplace-wrapper {
    display: flex;
    flex-wrap: wrap; /* Bricht in die nächste Zeile um, wenn kein Platz mehr ist */
    justify-content: space-evenly; /* Verteilt den restlichen Platz automatisch zwischen den Buttons */
    gap: 20px; /* Abstand zwischen den Buttons */
    margin-bottom: 20px;
    align-items: center;
}

.marketplace-btn { 
    background: #666;
    color: #fff;
    min-width: 140px; /* Sorgt für eine einheitliche Mindestbreite */
    max-width: 200px; /* Verhindert, dass sie riesig werden */
}
.marketplace-btn:hover { background: #1e3a8a; color: #f4f9fc; }

.buy-btn { background: #1e3a8a; margin-bottom: 0; }
.buy-btn:hover { background: #55e6ff; color: #1e3a8a; box-shadow: 0 4px 12px rgba(85, 230, 255, 0.4);}

/* Container für die Fußnoten */
.legal-footnotes {
    margin: auto;
    padding: 0 20px;
    font-family: sans-serif; /* Oder deine Shop-Schriftart */
    color: #666; /* Dezentes Grau */
    line-height: 1.5;
    text-align: left; /* Oder center, je nach Wunsch */
}

/* Die Überschrift der Fußnote */
h3.legal-footnotes {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444; /* Etwas dunkler als der Text */
}

/* Der Text der Fußnote */
p.legal-footnotes {
    font-size: 13px;
    margin-bottom: 6px;
    margin-top: 0;
}

/* Die Logo-Gruppe */
.payment-logos {
    display: flex;
    justify-content: center; /* Mittig ausrichten */
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Alle Logos standardmäßig auf Graustufen & leicht transparent */
.payment-logos img {
    height: 40px;
    width: auto;
    max-width: 100px; /* Verhindert, dass breite Logos zu dominant werden */
    object-fit: contain;
    opacity: 1;
    display: block;
}

.divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

/* Mobile: full width buttons */
@media (max-width: 600px) {
  .link-btn {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; 
    box-sizing: border-box;
    padding: 15px 15px;     
  }
  .marketplace-btn {
    max-width: 100%; /* Auf Handys dürfen sie die volle Breite nehmen */
    width: 100%;
  }
  .price-buy-wrapper {
    flex-direction: column; /* Auf SEHR engen Displays (Handy hochkant) untereinander */
    align-items: stretch;
    text-align: center;
  }
  .price-info {
    text-align: center;
  }
  .product-desc {
    margin-bottom: 10px;
  }
  .legal-footnotes {
    padding: 0 10px;
  }
}

footer {
    background: #222;
    color: #f4f9fc;
    padding: 20px 0 15px 0;
    font-size: 0.97em;
    margin-top: auto;
}
.footer-container {
    color: #f4f9fc;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.footer-container nav {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap; /* Erlaubt Umbruch auf sehr kleinen Screens */
    justify-content: center;
}
.footer-container a {
    color: #55e6ff;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.footer-container a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-container span {
    color: #f4f9fc;
    font-size: 1em;
}
.footer-container p {
    color: #f4f9fc;
    margin: 0;
    line-height: 1.2;
    margin-top: 10px;
    
}
@media (max-width: 600px) {
    .footer-container {
        max-width: 95vw;
        padding: 0 10px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* --- GPSR --- */
.safety-wrapper {
    margin-bottom: 30px; /* Schafft etwas Luft zum Produkt-Grid */
    display: flex; 
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.safety-btn {
    display: inline-block;
    font-size: 0.85em;
    color: #555;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.safety-btn:hover {
    background-color: #eee;
    border-color: #aaa;
    color: #222;
}
.safety-note {
    color: #d32f2f;
    font-size: 0.85em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 300px;
}

.safety-logos {
    display: flex;
    gap: 15px; /* Abstand zwischen CE- und 0-3-Logo */
    margin: 15px 0; /* Abstand nach oben und unten zum Text */
    align-items: center; /* Setzt beide Bilder auf die gleiche Höhe */
}

.safety-icon {
    height: 50px; /* Zwingt beide Logos auf eine einheitliche, unaufdringliche Höhe */
    width: auto;
    object-fit: contain;
}
/* --- NEU: GPSR POP-UP (MODAL) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dunkelt den Hintergrund ab */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden; /* Standardmäßig versteckt */
    opacity: 0;
    z-index: 1000; /* Liegt ganz oben über allen Bildern */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Der Zaubertrick: Wenn der Link #gpsr-popup geklickt wird, zeige dies! */
.modal-overlay:target {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 85%;
    position: relative;
    text-align: left; /* Text im Pop-up linksbündig */
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 2;
}

.modal-content h3 {
    margin-top: 0;
    font-size: 1.3em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2em;
    text-decoration: none;
    color: #888;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #111;
}

/* Klick-daneben zum Schließen für das GPSR Pop-up */
.modal-bg-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    z-index: 1; /* Liegt ganz hinten im Pop-up */
    cursor: default; /* Keine klickbare Hand anzeigen */
}

/* --- BILDER LIGHTBOX (POP-UP) --- */
.product-img-link {
    display: block;
    position: relative;
    text-decoration: none;
}

/* Der unsichtbare Gesamt-Container */
.image-modal-container {
    position: fixed; 
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1100; 
    visibility: hidden; opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    height: 100dvh;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Wenn das Bild angeklickt wird */
.image-modal-container:target { 
    visibility: visible; opacity: 1; 
}

/* Der dunkle Hintergrund als Schließen-Link */
.image-modal-bg-link {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: block;
    z-index: 1; /* Explizit GANZ HINTEN im Pop-up */
    cursor: default;
}

/* Die Box, die Bild und X zusammenhält */
.image-box-wrapper {
    position: relative;
    z-index: 2; /* Explizit VOR dem dunklen Hintergrund */
    max-width: min(95vw, 95dvh);
    max-height: min(95vw, 95dvh);
    width: auto;
    height: auto;
    display: flex; /* Zwingt den Browser, die Box nicht auf 0 Pixel schrumpfen zu lassen */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Das große Bild selbst */
.modal-img-large {
    display: block;
    max-width: min(95vw, 80dvh);;
    max-height: min(95vw, 80dvh);;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); /* Schatten direkt ans Bild */
    background-color: #fff;
    aspect-ratio: 1 / 1;
}

/* Das Schließen-X */
.image-close-x {
    position: absolute;
    top: 0;
    right: 0;
    color: #1e3a8a;
    background: #fff; /* Optional: Ein kleiner weißer Kreis hinter dem X macht es besser klickbar */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, background-color 0.2s;
    z-index: 3; 
}
.image-close-x:hover { 
    transform: scale(1.1);
    background-color: #55e6ff; 
    color: #eee; 
}

/* Container für die kleinen Vorschau-Bilder im Pop-up */
.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2dvh;
    flex-wrap: wrap;
}

/* Die Thumbnails selbst */
.gallery-thumb {
    width: auto;
    height: 12vh;
    max-width: 120px;
    max-height: 120px;
    object-fit: cover; /* Verhindert Verzerrungen */
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    background-color: #fff;
    aspect-ratio: 1 / 1;
}

.gallery-thumb:hover {
    border-color: #55e6ff; /* Deine Shop-Farbe, wenn man drüberfährt */
}

/* Mobile Anpassung für das X */
@media (max-width: 600px) {
    .image-close-x {
        top: -35px;
        right: 0px;
        font-size: 2.5em;
    }
}
/* Rechtstexte Unterseiten */
/* Container für die Breite und Zentrierung */
.legal-content-container {
    max-width: 850px; /* Beste Breite für Lesbarkeit von Fließtext */
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.6;
    color: #333;
    font-family: sans-serif; /* Oder deine Shop-Schriftart */
    background: #fff;
    border: 1px solid #e0ebf5;
    border-radius: 12px;
    box-shadow: 0 2px 10px #aaa;
}

/* Überschriften-Design */
.legal-text h1 {
    font-size: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 15px;
}

.legal-text h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    color: #000;
}

.legal-text h3 {
    font-size: 1.2rem;
    margin-top: 25px;
    color: #444;
}

/* Die Box für das Widerspruchsrecht (Blockquote) */
.legal-text blockquote {
    margin: 30px 0;
    padding: 10px 25px;
    background-color: #f4f9fc; /* Ganz leichtes Grau/Weiß */
    border: 1px solid #e6eef4;   /* Dezenter Rahmen */
    border-left: 4px solid #333; /* Der "Hervorhebungs-Balken" */
    border-radius: 4px;
    line-height: 1.5;
}
.legal-text blockquote h3 {
    font-weight: 1000;
    color: #444;
}
.legal-text blockquote p {
    font-weight: 600; 
    color: #444;
}

/* Listen-Abstände (für die Betroffenenrechte) */
.legal-text ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-text li {
    margin-bottom: 12px;
}

/* Klickbare Links hervorheben */
.legal-text a {
    color: #0056b3;
    text-decoration: underline;
}

.legal-text a:hover {
    color: #003d80;
}

/* Navigation innerhalb der Legal-Box */
.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.legal-nav a {
    text-decoration: none;
    color: #555;
    padding: 8px 16px;
    border-radius: 6px;
    background-color: #f4f7f9; /* Dein Box-Hintergrund */
    border: 1px solid #e0ebf5;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.legal-nav a:hover {
    background-color: #e6eef4;
    color: #333;
}

/* Der aktive Tab wird hervorgehoben */
.legal-nav a.active {
    background-color: #333; /* Dunkel (wie dein Balken) */
    color: #fff;
    border-color: #333;
}
/* Container für die Tabs */
.legal-tabs {
    display: flex;
    gap: 12px; /* Etwas mehr Abstand */
    margin: 30px 0 15px 0;
    border-bottom: 2px solid #ddd; /* Eine klare Linie darunter */
    padding-bottom: 15px;
    flex-wrap: wrap;
}

/* Die Buttons selbst */
.tab-button {
    background-color: #f0f0f0; /* Deutlicher grau als vorher */
    border: 2px solid #ddd;   /* Dickerer Rahmen */
    border-radius: 8px;       /* Rundere Ecken */
    padding: 12px 24px;       /* Größere Klickfläche */
    cursor: pointer;
    font-size: 1rem;
    color: #444;
    font-weight: 700;         /* Fetterer Text */
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Leichter Schatten */
    position: relative;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    color: inherit;
    outline: none;
}

/* Hover-Effekt (Maus drüber) */
.tab-button:hover {
    background-color: #e2e6ea;
    border-color: #ccc;
    transform: translateY(-2px); /* Button kommt leicht entgegen */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Nur der aktive Button ändert sich */
.tab-button.active {
    background-color: #006db7; /* Ein schönes BrickLink-Blau */
    color: #fff;
    border-color: #005a99;
}

/* Optional: Ein kleiner "Pfeil" unten am aktiven Tab */
.tab-button.active::after {
    content: '';
    display: block;
    width: 0; 
    height: 0; 
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #006db7;
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}
/* Responsive: Auf Handy untereinander, falls nötig */
@media (max-width: 600px) {
    .legal-content-container {
        margin: 20px auto;
    }
    .legal-text h1 { font-size: 1.6rem; }
    .legal-text h2 { font-size: 1.3rem; }
    .legal-nav {
        justify-content: center;
    }
}
