/* SK Shop 24 – Stylesheet */
:root {
    --primary: #FF9900;
    --primary-dark: #e68a00;
    --secondary: #232F3E;
    --accent: #146EB4;
    --bg: #f5f5f5;
    --white: #ffffff;
    --text: #111111;
    --text-light: #555555;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* HEADER */
.site-header {
    background: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--white);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.logo-icon { font-size: 1.5rem; }
.logo-text strong { color: var(--primary); }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #ccc;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #37475A 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--white);
}

.hero h1 span { color: var(--primary); }

.hero p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 24px;
}

/* CATEGORY GRID */
.section { padding: 40px 0; }
.section-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--secondary);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    text-decoration: none;
}

.category-card .cat-icon { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.category-card .cat-name { font-weight: 600; font-size: 0.9rem; }

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
}

.product-badge.bestseller { background: #e31837; color: white; }
.product-badge.neu { background: #00a650; color: white; }
.product-badge.angebot { background: var(--primary); color: var(--secondary); }

.product-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-info {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.stars { color: var(--primary); letter-spacing: 1px; }
.rating-count { color: var(--text-light); font-size: 0.8rem; }

.product-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: #B12704;
}

.price-old {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-amazon {
    display: block;
    background: var(--primary);
    color: var(--secondary);
    text-align: center;
    padding: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0 0 var(--radius) var(--radius);
}

.btn-amazon:hover {
    background: var(--primary-dark);
    text-decoration: none;
    color: var(--secondary);
}

/* BREADCRUMB */
.breadcrumb {
    background: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* CATEGORY PAGE HEADER */
.cat-header {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.cat-header h1 { font-size: 1.8rem; color: var(--secondary); }
.cat-header p { color: var(--text-light); margin-top: 6px; }

/* FOOTER */
.site-footer {
    background: var(--secondary);
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 30px;
}

.footer-col h3, .footer-col h4 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul a { color: #aaa; font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--primary); text-decoration: none; }
.footer-col p { font-size: 0.9rem; line-height: 1.6; }

.footer-bottom {
    border-top: 1px solid #3a4a5a;
    padding-top: 20px;
}

.affiliate-notice {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    line-height: 1.5;
}

.copyright { font-size: 0.85rem; color: #666; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary);
        padding: 16px;
        border-top: 1px solid #3a4a5a;
    }

    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .nav-toggle { display: flex; }

    .hero h1 { font-size: 1.6rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .product-img-wrap { height: 150px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ADMIN STYLES */
.admin-body {
    background: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 380px;
}

.admin-login-box h1 { text-align: center; margin-bottom: 24px; color: var(--secondary); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,153,0,0.15);
}

.btn { display: inline-block; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; cursor: pointer; border: none; font-size: 0.95rem; transition: var(--transition); }
.btn-primary { background: var(--primary); color: var(--secondary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: #e31837; color: white; }
.btn-danger:hover { background: #c0122c; }
.btn-success { background: #00a650; color: white; }
.btn-block { width: 100%; text-align: center; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.9rem; }
.alert-error { background: #fde8e8; color: #c0122c; border: 1px solid #f5c6c6; }
.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }

/* ADMIN DASHBOARD */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 240px;
    background: var(--secondary);
    color: var(--white);
    flex-shrink: 0;
    padding: 20px 0;
}

.admin-sidebar .sidebar-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid #3a4a5a;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.admin-sidebar ul { list-style: none; }
.admin-sidebar ul li a {
    display: block;
    padding: 10px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.admin-sidebar ul li a:hover, .admin-sidebar ul li a.active {
    background: rgba(255,153,0,0.15);
    color: var(--primary);
}

.admin-content { flex: 1; padding: 24px; overflow-y: auto; }

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 { font-size: 1.4rem; color: var(--secondary); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--secondary); }
.stat-card .stat-label { color: var(--text-light); font-size: 0.85rem; margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th { background: var(--secondary); color: var(--white); padding: 12px 16px; text-align: left; font-size: 0.85rem; }
.admin-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }

.admin-table img { width: 50px; height: 50px; object-fit: contain; border-radius: 4px; }

.action-btns { display: flex; gap: 6px; }
.btn-sm { padding: 4px 10px; font-size: 0.8rem; }

.card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card h2 { font-size: 1.1rem; margin-bottom: 16px; color: var(--secondary); border-bottom: 2px solid var(--primary); padding-bottom: 8px; }

.asin-preview { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px; background: #f9f9f9; border-radius: var(--radius); border: 1px solid var(--border); }
.asin-preview img { width: 80px; height: 80px; object-fit: contain; }
.asin-preview-info { flex: 1; font-size: 0.85rem; }
.asin-preview-info strong { display: block; margin-bottom: 4px; }

/* Produktkarte – Detail-Button */
.btn-detail {
    display: block;
    background: linear-gradient(135deg, #232f3e, #37475A);
    color: #FF9900;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}
.btn-detail:hover { background: linear-gradient(135deg, #37475A, #485769); color: #FF9900; }
.product-img-link { display: block; text-decoration: none; }
.product-title-link { text-decoration: none; color: inherit; }
.product-title-link:hover .product-title { color: #e47911; }
.info-box-section { margin: 20px 0 40px; }
.info-box { background: #fff8e1; border-left: 4px solid #FF9900; padding: 12px 16px; border-radius: 4px; font-size: 0.85rem; color: #666; }
.info-box a { color: #e47911; }
