/* ==========================================================================
   1. GLOBALE VARIABLEN & BASICS
   ========================================================================== */
:root {
    --primary-color: #0066cc;       /* Ihre Haupt-Markenfarbe */
    --primary-hover: #0052a3;       /* Hover-Effekt für die Hauptfarbe */
    --text-color: #333333;          /* Standard-Schriftfarbe */
    --text-muted: #777777;          /* Gedämpfter Text (z.B. Beschreibungen) */
    --bg-body: #f8f9fa;             /* Hintergrundfarbe der gesamten Website */
    --bg-card: #ffffff;             /* Hintergrundfarbe für Boxen/Karten */
    --border-color: #eaeaea;        /* Farbe für feine Linien und Ränder */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --border-radius: 8px;           /* Eckenabrundung für Boxen */
    --transition-speed: 0.2s;       /* Geschwindigkeit für Animationen/Hovers */
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-body);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (web_layout.btk)
   ========================================================================== */
header {
    background-color: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 10px 20px;
    margin-bottom: 25px;
}

#hdr-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

#hdr-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

#logo img {
    max-width: 180px;
    height: auto;
    transition: opacity var(--transition-speed);
}

#logo img:hover {
    opacity: 0.9;
}

.welcome-msg {
    font-size: 0.9rem;
    color: var(--text-muted);
}

#hdr-right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Sprachauswahl */
#lang-box {
    display: flex;
    gap: 5px;
}

#lang-box img {
    border-radius: 3px;
    transition: transform var(--transition-speed);
}

#lang-box img:hover {
    transform: scale(1.1);
}

/* Login-Bereich */
#login-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

#login-box input {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
}

#login-box button {
    background-color: #333333;
    color: #ffffff;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color var(--transition-speed);
}

#login-box button:hover {
    background-color: #555555;
}

/* Funktionslinks (Warenkorb & Co.) */
#func-box {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

#func-box a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

#func-box a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   3. SEITEN-LAYOUT & SEITEN-NAVIGATION
   ========================================================================== */
.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    gap: 30px;
}

nav {
    width: 240px;
    flex-shrink: 0;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-card);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav a {
    color: #444444;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.nav a:hover, 
.navGroup_active, 
.subNavGroup_active {
    background-color: #f1f3f5;
    color: var(--primary-color) !important;
    font-weight: 600;
}

section {
    flex-grow: 1;
    min-width: 0;
}

/* ==========================================================================
   4. STARTSEITE (home.btk)
   ========================================================================== */
/* Überschriften */
.section-header {
    font-size: 1.4rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    margin: 35px 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #222222;
}

.section-header a {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: normal;
}

.section-header a:hover {
    text-decoration: underline;
}

/* Produkt-Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Produktkarten */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #dddddd;
}

.card-image-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    margin-bottom: 12px;
}

.card-image-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-title-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.card-title-link:hover {
    color: var(--primary-color);
}

.card-price-container {
    text-align: right;
    margin-top: auto;
    font-size: 1.1rem;
    font-weight: 600;
}

.old_price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-right: 8px;
}

.special_price {
    color: #d9534f;
}

/* ==========================================================================
   5. FOOTER & COOKIE BANNER
   ========================================================================== */
footer {
    margin-top: 50px;
    padding: 20px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

#cookieInfo {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 450px;
    background-color: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 500ms;
    padding: 20px;
    z-index: 9999;
}

/* ==========================================================================
   6. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media screen and (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    
    nav {
        width: 100%;
    }
    
    #hdr-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    #hdr-right-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    #login-box {
        flex-direction: column;
        align-items: stretch;
    }
}