/* === MOGELPACKUNG.AT — STYLE.CSS === */
/* Design: white bg, red accent, clean tables, card-based deals, responsive */

:root {
    --red: #e63946;
    --red-light: #f8d7da;
    --green: #2a9d8f;
    --green-light: #d4edda;
    --orange: #f4a261;
    --orange-light: #fff3cd;
    --dark: #264653;
    --gray: #6c757d;
    --light-gray: #f1faee;
    --border: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --dark: #e0e0e0;
        --gray: #999;
        --light-gray: #1a1a2e;
        --border: #333;
        --white: #16213d;
        --shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    body { background: #0f0f1e; color: #e0e0e0; }
    .hero { background: linear-gradient(135deg, #1a1a2e, #16213d); }
    .bg-light { background: #1a1a2e; }
    .monitor-widget { background: #1a1a2e; }
    input, select, textarea { background: #16213d; color: #e0e0e0; border-color: #444; }
    .product-table th { background: #16213d; }
    .product-table tr:nth-child(even) { background: #1a1a2e; }
    .compliance-table th { background: #16213d; }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

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

/* === HEADER === */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}
.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}
.logo-accent { color: var(--red); }
nav { display: flex; gap: 1.25rem; }
.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--red); }

@media (max-width: 768px) {
    nav { display: none; }
}

/* === BUTTONS === */
.btn {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #c1121f; }
.btn-secondary { background: var(--white); color: var(--red); border: 2px solid var(--red); }
.btn-secondary:hover { background: var(--red-light); }
.btn-full { width: 100%; padding: 0.8rem; }

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--light-gray), #e8f4f0);
    padding: 3rem 1rem 2.5rem;
    text-align: center;
}
.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.highlight { color: var(--red); }
.hero-sub {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-search {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}
.hero-search input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--red);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

@media (max-width: 600px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-search { flex-direction: column; }
    .hero-stats { gap: 1.5rem; }
}

/* === MONITOR WIDGET === */
.monitor-widget {
    background: var(--light-gray);
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--border);
}
.monitor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.monitor-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.monitor-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 0.75rem;
}
.monitor-big-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 0.25rem;
}
.monitor-desc {
    font-size: 0.85rem;
    color: var(--gray);
}
.monitor-list { text-align: left; }
.monitor-list-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.monitor-list-item:last-child { border-bottom: none; }
.monitor-list-item .brand { font-weight: 600; }
.monitor-list-item .reduction { color: var(--red); font-weight: 600; }
.monitor-updated {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .monitor-grid { grid-template-columns: 1fr; }
}

/* === SECTIONS === */
.section { padding: 2.5rem 1rem; }
.bg-light { background: var(--light-gray); }
.section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.section-sub {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.link-more {
    color: var(--red);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.link-more:hover { text-decoration: underline; }

/* === DEALS GRID === */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.deal-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    transition: box-shadow 0.2s;
}
.deal-card:hover { box-shadow: var(--shadow); }
.deal-store {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    background: var(--dark);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.deal-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.deal-sizes {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}
.deal-sizes .old { text-decoration: line-through; color: var(--gray); }
.deal-sizes .new { color: var(--red); font-weight: 600; }
.deal-prices {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}
.deal-unit {
    font-size: 0.8rem;
    color: var(--gray);
}
.deal-unit .old { text-decoration: line-through; }
.deal-unit .new { color: var(--red); font-weight: 600; }
.deal-reduction {
    margin-top: 0.5rem;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    background: var(--red);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}
.deal-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--green);
    background: var(--green-light);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.3rem;
}

/* === FILTER BAR === */
.filter-bar {
    margin-bottom: 1.5rem;
}
.filter-bar input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.store-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.pill {
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    color: var(--gray);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.pill.active { background: var(--red); color: var(--white); border-color: var(--red); }
.pill:hover:not(.active) { border-color: var(--red); color: var(--red); }
.filter-controls { display: flex; gap: 0.75rem; }
.filter-controls select {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

/* === PRODUCT TABLE === */
.table-wrap { overflow-x: auto; }
.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.product-table th {
    background: var(--light-gray);
    padding: 0.6rem 0.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.product-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.product-table tr:nth-child(even) { background: var(--light-gray); }
.product-table tr:hover { background: var(--red-light); }
.product-table .store-cell { font-weight: 600; }
.product-table .name-cell { font-weight: 500; min-width: 120px; }
.product-table .reduction { color: var(--red); font-weight: 600; }
.product-table .increase { color: var(--red); }
.product-table .decrease { color: var(--green); }
.product-table .status-confirmed { color: var(--red); font-weight: 600; }
.product-table .status-pending { color: var(--orange); }
.product-table .status-disputed { color: var(--gray); }
.product-table .status-positive { color: var(--green); font-weight: 600; }
.product-table .old-val { text-decoration: line-through; color: var(--gray); }
.product-table .new-val { color: var(--red); font-weight: 600; }

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

/* === SUBMIT FORM === */
.submit-form {
    max-width: 600px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
}
.form-status {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}
.form-status.success { display: block; background: var(--green-light); color: var(--green-deep, var(--green)); }
.form-status.error { display: block; background: var(--red-light, #fee2e2); color: var(--red); }

/* === CAPTCHA === */
.captcha-group { margin-top: 0.5rem; }
.captcha-group label { font-weight: 600; }
#mathQuestion { color: var(--blue); font-weight: 700; font-size: 1.05rem; }

/* === PAGINATION === */
.pagination-controls {
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    margin-top: 1.25rem; padding-bottom: 0.5rem;
}
.page-info { font-size: 0.85rem; color: var(--gray); }
.page-buttons { display: flex; gap: 0.5rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

/* === COMPLIANCE === */
.compliance-table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.compliance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.compliance-table th {
    background: var(--light-gray);
    padding: 0.7rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}
.compliance-table td {
    padding: 0.7rem;
    border-bottom: 1px solid var(--border);
}
.compliance-bar {
    display: inline-block;
    height: 8px;
    border-radius: 4px;
    background: var(--red);
    margin-right: 0.5rem;
    vertical-align: middle;
}
.compliance-bar.high { background: var(--green); }
.compliance-bar.medium { background: var(--orange); }
.compliance-bar.low { background: var(--red); }
.compliance-note {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

/* === ABOUT === */
.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .about-content { grid-template-columns: 1fr; }
}
.about-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.about-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--red);
}
.about-card p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* === FOOTER === */
footer {
    background: var(--dark);
    color: #ccc;
    padding: 2rem 1rem 1rem;
    margin-top: 2rem;
}
@media (prefers-color-scheme: dark) {
    footer { background: #0a0a16; }
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    color: var(--white);
}
.footer-col a {
    display: block;
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}