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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
nav {
    background: #0a0e1a;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: #a8b4cc;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    background: #0a0e1a;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: #6b7a99;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #57a5d8;
    margin-bottom: 0.9rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col ul a {
    color: #a8b4cc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 960px;
    margin: 1.2rem auto 0;
    text-align: center;
    font-size: 0.8rem;
    color: #4a5568;
}

/* Main content */
main {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

thead {
    background: #1a1a2e;
    color: #fff;
}

th {
    padding: 0.85rem 1.2rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

td {
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #f9f9ff;
}

td a {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
}

td a:hover {
    text-decoration: underline;
}

/* Detailseite */
.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 480px;
}

.product-card .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 1rem 0 1.5rem;
}

/* Startseite Hero */
.hero {
    background: #fff;
    border-radius: 10px;
    padding: 3rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.hero p {
    color: #555;
    margin: 0.8rem 0 1.5rem;
}

/* Buttons & Links */
.btn {
    display: inline-block;
    background: #4a6cf7;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn:hover {
    background: #3558e8;
}

.btn-secondary {
    background: transparent;
    color: #4a6cf7;
    border: 1.5px solid #4a6cf7;
}

.btn-secondary:hover {
    background: #f0f3ff;
}

/* Leer-Zustand */
.empty {
    color: #888;
    font-style: italic;
}

/* Product Detail Page */
:root {
    --primary: #4aafce;
    --primary-dark: #3a9aba;
    --primary-light: #e6f4f9;
    --primary-badge: #d4eef6;
    --bg: #f8f7f4;
    --card-bg: #ffffff;
    --border: #e5e2d9;
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b6b;
    --text-muted: #999;
    --radius: 12px;
    --shadow: none;
}

.pd-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg);
}

.pd-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pd-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.pd-breadcrumb a:hover {
    text-decoration: underline;
}

.pd-breadcrumb span {
    margin: 0 6px;
}

.pd-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.pd-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.pd-header-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f5f5;
    padding: 4px;
}

.pd-header-info {
    flex: 1;
}

.pd-header-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}

.pd-header-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.pd-header-price-col {
    text-align: right;
    flex-shrink: 0;
    min-width: 0;
}

@media (max-width: 480px) {
    .pd-header {
        flex-wrap: wrap;
    }

    .pd-header-price-col {
        width: 100%;
        text-align: left;
        border-top: 1px solid var(--border);
        padding-top: 12px;
        margin-top: 4px;
    }
}

.pd-header-price {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.pd-header-badge {
    display: inline-block;
    background: var(--primary-badge);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
}

.pd-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pd-tab {
    flex: 1;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    font-size: 13px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.pd-tab:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pd-tab:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pd-tab.active {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.pd-chart-wrap {
    margin-bottom: 20px;
}

.pd-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.pd-stat {
    background: var(--primary-light);
    border-radius: 10px;
    padding: 14px 16px;
}

.pd-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 4px;
    font-weight: 500;
}

.pd-stat-value {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.pd-stat-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.pd-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pd-btn-primary {
    display: block;
    text-align: center;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.pd-btn-primary:hover {
    background: var(--primary-dark);
}

.pd-btn-secondary {
    display: block;
    text-align: center;
    padding: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s;
}

.pd-btn-secondary:hover {
    border-color: #bbb;
}

.pd-details-table {
    width: 100%;
    border-collapse: collapse;
}

.pd-details-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.pd-details-table tr:last-child td {
    border-bottom: none;
}

.pd-details-table td:first-child {
    color: var(--text-secondary);
}

.pd-details-table td:last-child {
    text-align: right;
    font-weight: 600;
}


.pd-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #c0392b;
    background: #fdecea;
    padding: 4px 10px;
    border-radius: 6px;
}

.pd-savings {
    color: var(--primary);
    font-weight: 600;
}

.pd-bottom-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .pd-bottom-row {
        grid-template-columns: 1fr 1fr;
    }
}

.pd-bottom-row .pd-card {
    margin-bottom: 0;
}

/* Price Alert Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    max-width: 380px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.modal-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-store-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-store-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
    min-width: 130px;
}

.modal-store-btn:hover {
    opacity: 0.85;
}

.modal-store-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.modal-store-ios {
    background: #000;
    color: #fff;
}

.modal-store-play {
    background: #01875f;
    color: #fff;
}

.pd-summary {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}
