/* =====================================================
   GLOBAL
   ===================================================== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.site-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ... HIER KOMMT DEIN GANZES BESTEHENDES CSS ...
   (Von deiner aktuellen style.css – unverändert) */

/* Ich lasse es hier aus Platzgründen weg,
   du ersetzt aber 1:1 deine komplette Datei
   und hängst nur diesen Block UNTEN dran: */

/* =====================================================
   INFO-GLOCKE (Benachrichtigungen)
   ===================================================== */

.info-bell {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.info-bell-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    font-size: 1.2rem;
    padding: 4px;
}

.info-bell-icon {
    display: inline-block;
}

.info-bell-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(40%, -40%);
    background: #e53935;
    color: #fff;
    border-radius: 999px;
    padding: 0 5px;
    font-size: 0.7rem;
    line-height: 1.2;
    min-width: 16px;
    text-align: center;
}

.info-bell-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 999;
    padding: 6px 0;
}

.info-bell.open .info-bell-dropdown {
    display: block;
}

.info-bell-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-bell-item {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

.info-bell-item:last-child {
    border-bottom: none;
}

.info-bell-item.is-unread {
    background: #f5f8ff;
    font-weight: 500;
}

.info-bell-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
    gap: 6px;
}

.info-bell-title {
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.info-bell-title:hover {
    text-decoration: underline;
}

.info-bell-time {
    font-size: 0.7rem;
    color: #888;
    white-space: nowrap;
}

.info-bell-message {
    color: #555;
    font-size: 0.8rem;
}

.info-bell-empty {
    margin: 0;
    padding: 8px 10px;
    font-size: 0.85rem;
    text-align: center;
    color: #777;
}

/* =====================================================
   INFO-GLOCKE (Benachrichtigungen)
   ===================================================== */

.info-bell {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.info-bell-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    font-size: 1.2rem;
    padding: 4px;
}

.info-bell-icon {
    display: inline-block;
}

.info-bell-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(40%, -40%);
    background: #e53935;
    color: #fff;
    border-radius: 999px;
    padding: 0 5px;
    font-size: 0.7rem;
    line-height: 1.2;
    min-width: 16px;
    text-align: center;
}

.info-bell-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 999;
    padding: 6px 0;
}

.info-bell.open .info-bell-dropdown {
    display: block;
}

.info-bell-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-bell-item {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    cursor: pointer;
}

.info-bell-item:last-child {
    border-bottom: none;
}

.info-bell-item.is-unread {
    background: #f5f8ff;
    font-weight: 500;
}

.info-bell-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
    gap: 6px;
}

.info-bell-title {
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.info-bell-title:hover {
    text-decoration: underline;
}

.info-bell-time {
    font-size: 0.7rem;
    color: #888;
    white-space: nowrap;
}

.info-bell-message {
    color: #555;
    font-size: 0.8rem;
}

.info-bell-empty {
    margin: 0;
    padding: 8px 10px;
    font-size: 0.85rem;
    text-align: center;
    color: #777;
}

/* ======================
   USER DROPDOWN MENÜ
   ====================== */

.user-dropdown-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.user-dropdown-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.user-dropdown-btn:hover {
    background: #444;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 180px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.user-dropdown a {
    display: block;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
}

.user-dropdown a:hover {
    background: #f2f2f2;
}

.user-dropdown.open {
    display: block;
}
.home-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px 40px;
}

/* =========================================
   HOME – SHELL
   ========================================= */

.home-shell {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 0 8px;
}

/* =========================================
   EYECATCHER-SLIDER (Mix: kompakt + etwas höher)
   ========================================= */

.home-slider-section {
    margin-bottom: 20px;
}

.home-section-title {
    font-size: 1.1rem;
    margin: 0 0 8px 2px;
    color: #111827;
}

.home-slider-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #dde1ea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 10px 14px;
    box-sizing: border-box;
}

.home-slider-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 6px;
    scroll-snap-type: x mandatory;
}

.home-slider-item {
    scroll-snap-align: start;
    min-width: 240px;   /* etwas breiter */
    max-width: 280px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #dde1ea;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    flex-shrink: 0;
    transition:
        box-shadow 0.15s ease,
        transform 0.1s ease,
        border-color 0.15s ease;
}

.home-slider-item:hover {
    transform: translateY(-2px);
    border-color: #2c7df7;
    box-shadow: 0 3px 10px rgba(37,99,235,0.18);
}

.home-slider-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.home-slider-image-wrap {
    width: 110px;       /* höher als mini, aber nicht riesig */
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.home-slider-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-slider-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-slider-title {
    margin: 0;
    font-size: 0.95rem;
    color: #111827;
}

.home-slider-price {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
}

/* =========================================
   HAUPTBEREICH – 70/30 LAYOUT
   ========================================= */

.home-main {
    margin-top: 18px;
}

.home-main-grid {
    display: grid;
    grid-template-columns: 7fr 3fr; /* 70 / 30 */
    gap: 16px;
}

/* Panels im Card-Look wie der Rest (Produkte/Admin) */

.home-panel {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #dde1ea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 14px 16px;
    box-sizing: border-box;
}

.home-panel-title {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
}

.home-panel-body {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

/* =========================================
   NEWS-KARTE RECHTS (kompakt)
   ========================================= */

.home-news-card {
    margin-top: 4px;
}

.home-news-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: flex-start;
}

.home-news-thumb {
    width: 100px;     /* kleiner als Detail-News */
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.home-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-news-title {
    margin: 0;
    font-size: 0.98rem;
}

.home-news-title a {
    color: #111827;
    text-decoration: none;
}

.home-news-title a:hover {
    text-decoration: underline;
}

.home-news-meta {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.home-news-teaser {
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
}

.home-news-more {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
}

.home-news-more:hover {
    text-decoration: underline;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
    .home-main-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .home-slider-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-slider-image-wrap {
        width: 100%;
        height: 140px;
    }

    .home-news-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-news-thumb {
        width: 100%;
        height: 120px;
    }
}
