/* =========================================
   1. BASIS-LAYOUT (APP-STYLE & GLOBALS)
   ========================================= */
html, body {
    height: 100%;           /* Nutze die volle Höhe des Bildschirms */
    margin: 0;
    overflow: hidden;       /* Verhindert, dass die ganze Seite scrollt */
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f8fb; /* Zartes Tech-Blau statt Grau */
    display: flex;
    flex-direction: column; /* Elemente untereinander anordnen */
}

main {
    flex-grow: 1;           /* Nimm den ganzen verfügbaren Platz */
    overflow-y: auto;       /* Hier entsteht der Scrollbalken! */
    width: 100%;
    max-width: 1000px;      /* Inhalt begrenzen */
    margin: 0 auto;         /* Zentrieren */
    padding: 20px;          /* Innenabstand */
    box-sizing: border-box; /* Padding zählt zur Breite */
}

/* Globale Text-Styles */
h1, h2, h3 { color: #2c3e50; }
a { color: #007bff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================
   2. DAS MENÜ
   ========================================= */
nav {
    flex-shrink: 0;
    background-color: #2c3e50;  /* Die gleiche Farbe wie der Footer */
    border-bottom: 4px solid #ff4500; /* Der orange Strich */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1000px;
    display: flex;
    gap: 30px;
    padding-left: 20px;
}

/* Die Links im Menü */
nav a {
    display: block;
    padding: 20px 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ecf0f1;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

/* Wenn man mit der Maus drüber fährt oder Link aktiv ist */
nav a:hover, 
li.active a {
    color: #ff4500;        /* Orange */
    text-decoration: none;
    border-bottom: 2px solid #ff4500; 
}

/* =========================================
   3. STARTSEITEN HERO & INHALTE
   ========================================= */
.hero {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border-left: 5px solid #ff4500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.hero h1 { margin-top: 0; font-size: 2.5rem; }

/* Der Einleitungstext */
.intro-text {
    font-size: 1.25rem;
    color: #555;
    font-weight: 300;
    margin-bottom: 30px;
}

/* Die Boxen für Abschnitte */
.content-section { margin-bottom: 40px; }

/* Hervorhebung */
.highlight-box {
    background: #e8f4fd;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

ul.feature-list li {
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 2px solid #ddd;
}

.cta-box {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    background-color: #ff4500;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #e03e00;
    text-decoration: none;
    color: white;
}

/* =========================================
   4. NORMALE SEITEN (Über uns, Doku...)
   ========================================= */
.static-page-content {
    background-color: #ffffff;
    padding: 40px;            
    border-radius: 8px;       
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
    border-top: 4px solid #ff4500;
    margin-bottom: 40px;
}

.static-page-content h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
}

.static-page-content h3 {
    margin-top: 40px;       
    color: #ff4500;          
    font-size: 1.4rem;
}

.static-page-content .intro-text {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* =========================================
   5. BREADCRUMBS (Pfadleiste)
   ========================================= */
.breadcrumb-bar {
    width: 100%;
    background-color: transparent;
    padding: 15px 0 20px 0;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.crumb-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-bar a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}

.breadcrumb-bar a:hover {
    color: #ff4500;
    border-bottom: 1px solid #ff4500;
}

.breadcrumb-bar .sep { margin: 0 8px; color: #bdc3c7; }
.breadcrumb-bar .current { color: #95a5a6; font-weight: normal; }

/* =========================================
   6. SHOP GRID & KARTEN
   ========================================= */
.shop-intro {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-left: 4px solid #ff4500;
}

.intro-grid {
    display: flex;
    gap: 30px;
    align-items: center;
}

.intro-image img {
    max-width: 100%;
    width: 300px;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.intro-content h1 {
    margin-top: 0;
    font-size: 2rem;
    color: #2c3e50;
}

@media (max-width: 700px) {
    .intro-grid { flex-direction: column; }
    .intro-image img { width: 100%; }
}

/* Das Produkt Gitter */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e1e8ed;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #ff4500;
}

/* Das Bild in der Karte */
.card-image {
    height: 160px;
    background-color: #fff;
    padding: 15px;
    
    /* REPARIERT: display:flex muss aktiv sein für Zentrierung! */
    display: flex; 
    align-items: center;
    justify-content: center;
    
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.card-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.02);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h2 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.card-content h2 a { text-decoration: none; color: #2c3e50; }

.card-content p {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: #ff4500;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more:hover { text-decoration: underline; }

/* =========================================
   7. SHOP DETAIL-ANSICHT
   ========================================= */
.product-detail-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: block; 
    overflow: hidden; 
}

.detail-image {
    float: left;
    width: 350px;
    margin-right: 40px;
    margin-bottom: 20px;
    text-align: center;
    background: #fdfdfd;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.detail-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.detail-content { display: block; }

.detail-content h1 {
    margin-top: 0;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
    border-bottom: 2px solid #ff4500;
    padding-bottom: 15px;
    display: inline-block;
}

.detail-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.back-link {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2px;
    display: inline-block;
    margin-top: 20px;
}

.back-link:hover { color: #ff4500; border-color: #ff4500; }

@media (max-width: 800px) {
    .detail-image {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    .detail-image img { max-height: 300px; }
}

/* =========================================
   8. DOKUMENTATION
   14. ACTION BUTTONS (Warenkorb & Doku)
   15. BUTTON INHALT & ICONS (CSS Only)
   ========================================= */

/* 1. Das WARENKORB-Icon (Standard für .snipcart-add-item) */
.snipcart-add-item::before {
    content: "";                /* Erzeugt das Pseudo-Element */
    display: block;
    width: 24px;                /* Größe des Icons */
    height: 24px;
    margin-right: 12px;         /* Abstand zum Text */
    flex-shrink: 0;             /* Icon darf nicht gequetscht werden */
    
    /* Hier ist das SVG als Hintergrundbild codiert (Weiß) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* 2. Das HANDBUCH-Icon (Zusatzklasse .is-doku) */
/* Wenn du dem Button ZUSÄTZLICH die Klasse "is-doku" gibst, 
   wird das Warenkorb-Icon durch ein Buch ersetzt */
.snipcart-add-item.is-doku::before,
.doku-btn::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'%3E%3C/path%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'%3E%3C/path%3E%3C/svg%3E");
}

/* Der Container für den Text im Button */
.btn-text-wrapper {
    display: flex;
    flex-direction: column; /* Text untereinander stapeln */
    align-items: flex-start; /* Linksbündig ausrichten */
    line-height: 1.2;       /* Engerer Zeilenabstand */
}

/* "In den Warenkorb" */
.btn-main-text {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Die Zeile mit Preis und ID */
.btn-sub-text {
    font-size: 0.75rem;     /* Kleiner */
    font-weight: 400;       /* Normal, nicht fett */
    opacity: 0.9;           /* Leicht transparent */
    margin-top: 2px;
}

/* Gemeinsames Design für BEIDE Buttons */
.doku-btn,
.snipcart-add-item {
    display: inline-flex;       /* Flexbox für saubere Ausrichtung von Icons/Text */
    align-items: center;
    justify-content: center;
    
    background-color: #ff4500;  /* Dein Marken-Orange */
    color: #ffffff !important;  /* Immer weiße Schrift */
    
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 550;           /* Schön fett */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    
    padding: 10px 20px;         /* Ordentlich Platz zum Klicken */
    border-radius: 8px;         /* Leicht abgerundet, aber technisch */
    border: none;               /* Kein Standard-Rahmen */
    
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(255, 69, 0, 0.2); /* Sanfter oranger Schatten */
    
    margin-right: 10px;         /* Abstand, falls sie nebeneinander stehen */
    margin-top: 10px;           /* Etwas Luft nach oben */
    min-width: 400px;           /* Beide Buttons sind mind. gleich breit */
    text-align: center;
}

/* Hover-Effekt (Maus drüber) */
.doku-btn:hover,
.snipcart-add-item:hover {
    background: #bdc3c7; 
    border-color: #95a5a6;
    transform: translateY(-2px);/* Button hebt sich leicht an */
    box-shadow: 0 6px 12px rgba(224, 62, 0, 0.3); /* Schatten wird stärker */
    color: #fff;
}

/* Klick-Effekt */
.doku-btn:active,
.snipcart-add-item:active {
    transform: translateY(0);   /* Geht beim Klicken runter */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.doku-list { margin-top: 30px; }

.doku-item {
    background: #fff;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.doku-item h3 { margin: 0 0 5px 0; font-size: 1.2rem; }
.doku-item h3 a { text-decoration: none; color: #2c3e50; }

.doku-cat {
    display: inline-block;
    background: #e8f6f3;
    color: #16a085;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.doku-article { max-width: 800px; }
.doku-meta {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* =========================================
   9. FOOTER (Drawer) & WARENKORB
   ========================================= */
.floating-cart {
    position: fixed;
    bottom: 75px;
    right: 15px;
    background: #2c3e50;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    font-weight: bold;
    z-index: 1000;
    transition: transform 0.2s;
}

.floating-cart:hover {
    transform: scale(1.1);
    background-color: #ff2200;
}

.drawer-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: #bdc3c7;
    z-index: 900;
    border-top: 4px solid #ff4500;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease-in-out;
}

.footer-handle {
    background-color: #34495e;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #2c3e50;
}

.footer-handle:hover {
    background-color: #3e5871;
    color: #ff4500;
}

.footer-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.drawer-footer.open .footer-content {
    max-height: 400px;
    opacity: 1;
    padding-top: 20px;
}

.footer-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.f-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 10px; text-transform: uppercase; }
.f-col p { font-size: 0.85rem; margin: 0; }
ul.footer-links { list-style: none; padding: 0; margin: 0; }
ul.footer-links li { margin-bottom: 5px; }
ul.footer-links a { color: #bdc3c7; text-decoration: none; }
ul.footer-links a:hover { color: #ff4500; }

.footer-copyright {
    text-align: center;
    background-color: #233240;
    padding: 10px 0;
    font-size: 0.75rem;
    color: #7f8c8d;
}

@media (max-width: 600px) {
    .main-footer { padding-top: 10px; }
    .footer-grid { text-align: center; }
    .f-col:first-child { 
        grid-column: 1 / -1; 
        border-bottom: 1px solid #3e5871;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
}

@media print {
    /* Versteckt Menü und Footer im PDF */
    nav, .drawer-footer, .floating-cart, .breadcrumb-bar {
        display: none !important;
    }

    /* Entfernt die Unterstreichung und Farbe von Links im Text */
    a {
        text-decoration: none !important;
        color: #000 !important;
        pointer-events: none; /* Macht Links unklickbar */
        cursor: default;
    }
    
    /* Optional: Zeigt die URL hinter dem Link in Klammern an (falls gewünscht) */
    /* a[href]:after { content: " (" attr(href) ")"; } */
}
