body {
background-color: #b0b0b0;
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}

/* HEADER STYLING */
.shop-header {
display: flex;
flex-direction: row;
height: 85px;
width: 100%;
border-bottom: 1px solid #ccc;
background-color: #fff;
flex-shrink: 0;
}

.logo-box {
width: 160px;
height: 85px;
background-color: #e8e8e8;
border-right: 1px solid #ccc;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-sizing: border-box;
}

.logo-text-wrap {
text-align: center;
transform: scale(1.1);
}

.logo-title {
font-size: 30px;
font-weight: 700;
letter-spacing: -0.5px;
}

.logo-subtitle {
font-size: 9px;
letter-spacing: 0.15em;
font-weight: 700;
color: #475569;
margin-top: 2px;
border-top: 1px solid #cbd5e1;
padding-top: 2px;
}

.header-banner {
flex-grow: 1;
height: 85px;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}

.banner-top {
width: 100%;
height: 50%;
background-color: #a8c1d9;
}

.banner-bottom {
width: 100%;
height: 50%;
background-color: #83a5c3;
}

.banner-content {
position: absolute;
inset: 0;
display: flex;
align-items: center;
padding-left: 20px;
}

.header-svg-logo {
max-height: 45px;
width: auto;
}

.cart-box {
width: 85px;
height: 85px;
background-color: #e0e0e0;
border-left: 1px solid #ccc;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
box-sizing: border-box;
position: relative;
}

.cart-icon-wrap {
font-size: 18px;
color: #334155;
position: relative;
margin-bottom: 2px;
}

#cart-badge {
position: absolute;
top: -6px;
right: -8px;
background-color: #dc2626;
color: white;
font-size: 9px;
font-weight: bold;
width: 15px;
height: 15px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}

.cart-label {
font-size: 9px;
font-weight: bold;
color: #475569;
text-transform: uppercase;
}

#cart-footer {
font-size: 11px;
font-weight: bold;
color: #1e3a8a;
margin-top: 2px;
}

/* LAYOUT & SIDEBAR */
.main-layout {
display: flex;
flex-direction: row;
flex-grow: 1;
height: calc(100vh - 85px);
overflow: hidden;
}

aside {
width: 120px;
background-color: #e0e0e0;
display: flex;
flex-direction: column;
height: 100%;
border-right: 1px solid #949494;
flex-shrink: 0;
overflow-y: auto;
}

/* Akkordeon / Gruppen in der Sidebar */
.nav-group {
border-bottom: 1px solid #949494;
}

.nav-header {
background-color: #719abf;
color: white;
font-weight: bold;
font-size: 12px;
text-transform: uppercase;
padding: 10px 12px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
letter-spacing: 0.05em;
user-select: none;
}

.nav-header:hover {
background-color: #5f86a9;
}

.toggle-icon {
font-size: 11px;
transition: transform 0.2s ease;
}

.nav-group.collapsed .toggle-icon {
transform: rotate(-90deg);
}

.nav-content {
display: flex;
flex-direction: column;
background-color: #e0e0e0;
overflow: hidden;
transition: max-height 0.25s ease-out;
}

.nav-group.collapsed .nav-content {
max-height: 0;
}

.nav-content button {
width: 100%;
padding: 9px 12px;
text-align: left;
background: none;
border: none;
border-bottom: 1px solid #949494;
cursor: pointer;
font-size: 13px;
color: #334155;
display: flex;
align-items: center;
gap: 8px;
}

.nav-content button i {
width: 14px;
color: #64748b;
font-size: 12px;
}

.nav-content button:hover {
background-color: #f1f5f9;
color: #0f172a;
}

/* MAIN CONTENT */
main {
    flex-grow: 1;
    padding: 10px 25px 25px 25px; /* Oben kompakter (10px), an den Seiten und unten wie gehabt */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #ffffff63;
}

/* Zwingt die Überschrift direkt nach oben an den Rand des Inhaltsbereichs */
main h2:first-child {
    margin-top: 0;
}

.product-item {
background: #ebeaea;
padding: 12px;
margin-bottom: 10px;
border: 1px solid #cbd5e1;
border-radius: 6px;
display: flex;
align-items: center;
gap: 15px;
cursor: pointer;
}

.product-item:hover {
background-color: #f8fafc;
}

.product-img {
width: 55px;
height: 35px;
object-fit: cover;
border-radius: 3px;
border: 1px solid #e2e8f0;
}

.detail-img {
width: 100%;
max-width: 400px;
display: block;
margin-bottom: 15px;
border-radius: 6px;
border: 1px solid #cbd5e1;
}

.delete-btn {
background: none;
border: none;
cursor: pointer;
padding: 5px;
color: #dc2626;
}

.description-container {
margin-top: 15px;
padding: 10px;
background: #f8fafc;
border-left: 3px solid #719abf;
border-radius: 4px;
}


/* Geteilter Titelbalken mit schwebenden blauen Streifen */
.section-title-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.section-title-banner .banner-line {
    flex-grow: 1;
    height: 4px;
    background-color: #719abf;
}

.section-title-banner h2 {
    margin: 0;
    white-space: nowrap;
    font-size: 1.5em;
    color: #0f172a;
}

/* Teaser-Grid für die Startseite */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.teaser-card {
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.teaser-card:hover {
    background-color: #f8fafc;
    border-color: #719abf;
}

.teaser-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.teaser-title {
    font-weight: bold;
    font-size: 13px;
    color: #0f172a;
    margin: 0;
}

.view-toggle-group {
    display: flex;
    gap: 4px;
    margin-left: 5px;
    flex-shrink: 0;
}

.view-toggle-btn {
    background-color: #e0e0e0;
    border: 1px solid #949494;
    color: #334155;
    padding: 5px 9px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}

.view-toggle-btn:hover {
    background-color: #f1f5f9;
}

.view-toggle-btn.active {
    background-color: #719abf;
    color: #ffffff;
    border-color: #5388b1;
}

/* 2-SPALTEN-GRID CONTAINER */
.product-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

/* Auf schmalen Bildschirmen (z. B. Handy) automatisch 1 Spalte */
@media (max-width: 850px) {
    .product-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* EINZELNE PRODUKTKARTE (Bild links, Text rechts; springt bei Platzmangel untereinander) */
.product-card-2col {
    background: #ebeaea;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
    transition: background-color 0.2s, border-color 0.2s;
}

.product-card-2col:hover {
    background-color: #f8fafc;
    border-color: #719abf;
}

.card-img-wrap {
    flex: 1 1 180px;
    max-width: 240px;
    text-align: center;
    cursor: pointer;
    background: #c5cdd6; /* statt #ffffff – ruhiges Mittelgrau */
    border: 1px solid #b0bac5;
    border-radius: 4px;
    padding: 6px;
    box-sizing: border-box;
}

.card-img-wrap img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
}

.card-info-wrap {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.card-header {
    cursor: pointer;
    margin-bottom: 8px;
}

.card-title {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 6px;
font-weight: bold;
font-size: 15px;
color: #0f172a;
margin-bottom: 4px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #475569;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 4px;
}

.card-price {
    font-size: 14px;
    color: #0f172a;
}

.card-desc {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
    margin: 0 0 12px 0;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-details, .btn-cart-add {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #949494;
}

.btn-details {
    background: #ffffff;
    color: #334155;
}

.btn-cart-add {
    background: #719abf;
    color: #ffffff;
    border-color: #5388b1;
    font-weight: bold;
}

.btn-cart-add:hover {
    background: #5f86a9;
}

