/* ===========================================================================
   DJ Cataclysm — Shop stylesheet
   Palette matches the app (Graphite Light theme). Extracted from the former
   inline <style> blocks and extended with shop-home + product-page classes.
   =========================================================================== */

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

:root {
    --bg:      #C8D0DC;
    --surface: #BCC4D0;
    --card:    #C2CAD6;
    --accent:  #1E55BB;
    --accent-h:#1641A0;
    --text:    #101828;
    --muted:   #485888;
    --border:  #AAB6C8;
    --field:   #D2DAE8;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 24px 80px;
}

/* ---- Header ------------------------------------------------------------- */
header {
    width: 100%;
    max-width: 760px;
    border-left: 5px solid var(--accent);
    padding: 0 0 0 24px;
    margin-bottom: 48px;
    position: relative;
}
.site-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 2px solid var(--accent);
    display: block;
    margin-bottom: 18px;
}
header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--text);
}
header .tagline {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--muted);
}
header .version {
    display: inline-block;
    margin-top: 12px;
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
}

/* ---- Language switch ---------------------------------------------------- */
.lang-switch {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.lang-switch a {
    background: var(--field);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    padding: 5px 10px;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.lang-switch a:hover  { border-color: var(--accent); color: var(--text); }
.lang-switch a.active { border-color: var(--accent); background: var(--accent); color: #fff; pointer-events: none; }

/* ---- Generic section ---------------------------------------------------- */
section {
    width: 100%;
    max-width: 760px;
    margin-bottom: 40px;
}
section h2 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 16px;
}

/* ---- Breadcrumb / back-nav (product page) ------------------------------- */
.crumb {
    width: 100%;
    max-width: 760px;
    margin-bottom: 20px;
    font-size: .85rem;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

/* ---- Price box ---------------------------------------------------------- */
.price-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
}
.price-box .price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.price-box .price-sub {
    font-size: .85rem;
    color: var(--muted);
    margin-top: 6px;
}
.price-box .platforms {
    margin: 18px 0 4px;
    font-size: .9rem;
    color: var(--muted);
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.buy-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px 0;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.buy-btn:hover  { background: var(--accent-h); transform: translateY(-1px); }
.buy-btn:active { transform: translateY(0); }
.buy-btn:disabled {
    background: var(--border);
    color: var(--muted);
    cursor: not-allowed;
    transform: none;
}
.buy-note {
    margin-top: 12px;
    font-size: .78rem;
    color: var(--muted);
}

/* ---- Demo download ------------------------------------------------------ */
.demo-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 5px solid var(--accent);
    border-radius: 12px;
    padding: 24px 26px;
}
.demo-note {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.5;
}
.demo-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.demo-btn {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    padding: 14px 18px;
    transition: background .15s, transform .1s;
}
.demo-btn:hover  { background: var(--accent-h); transform: translateY(-1px); }
.demo-btn:active { transform: translateY(0); }
.demo-ic  { font-size: 1.6rem; line-height: 1; }
.demo-txt { display: flex; flex-direction: column; }
.demo-lbl { font-weight: 700; font-size: 1.05rem; }
.demo-sub { font-size: .78rem; opacity: .85; }

/* ---- Feature grid ------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 500px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.feature-item .fi { font-size: 1.2rem; flex-shrink: 0; padding-top: 1px; }
.feature-item .ft { font-size: .92rem; font-weight: 600; color: var(--text); }
.feature-item .fd { font-size: .8rem; color: var(--muted); margin-top: 3px; }

/* ---- Screenshots -------------------------------------------------------- */
.shots-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.lang-note  { font-size: .85rem; color: var(--muted); margin: -6px 0 16px; }
.shot-label { font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.shot-frame {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    line-height: 0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.shot-frame img { width: 100%; display: block; }

/* ---- Documentation list ------------------------------------------------- */
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-link {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .95rem;
    transition: border-color .15s, background .15s;
}
.doc-link:hover { border-color: var(--accent); background: #B4BCC8; }
.doc-link .doc-icon { font-size: 1.3rem; flex-shrink: 0; }
.doc-link .doc-sub  { font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* ---- Shop home: product grid ------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }

/* Startseite: breitere Blöcke (Header/Grid/Handbuch-Zeile) für 3 Kacheln — bündige Kanten. */
.home-wide { max-width: 1080px; }
.products-section { max-width: 1080px; }
.products-section .product-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .products-section .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .products-section .product-grid { grid-template-columns: 1fr; } }

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    position: relative;
    transition: border-color .15s, background .15s, transform .1s;
}
.product-card:hover {
    border-color: var(--accent);
    background: #B8C0CC;
    transform: translateY(-2px);
}
.product-card.disabled { pointer-events: none; opacity: .72; }
.product-card .pc-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid var(--accent);
    margin-bottom: 16px;
}
/* Bundle-Kacheln: Logo + Label ("Bundle 1"/"Bundle 2") nebeneinander */
.product-card .pc-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.product-card .pc-head .pc-logo { margin-bottom: 0; }
.product-card .pc-badge {
    font-size: 1.15rem;          /* wie .pc-name (Produktbezeichnung) */
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
/* Erzwingt eine neue Grid-Reihe (Bundles nebeneinander, Complete unter Konverter) */
.pc-rowbreak { grid-column-start: 1; }
.product-card .pc-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}
.product-card .pc-summary {
    font-size: .88rem;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.5;
    flex-grow: 1;
}
.product-card .pc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}
.product-card .pc-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}
.product-card .pc-cta {
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent);
}
.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
}
.badge.soon { background: #BB4411; color: #fff; }

/* ---- Footer ------------------------------------------------------------- */
footer {
    margin-top: auto;
    padding-top: 40px;
    font-size: .8rem;
    color: var(--muted);
    text-align: center;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* Handbücher-Link auf der Startseite */
.docs-cta { text-align: center; margin-top: 4px; }
.docs-cta a {
    display: inline-block; padding: 12px 26px; border-radius: 10px;
    border: 1px solid var(--accent); color: var(--accent); background: var(--field);
    text-decoration: none; font-weight: 600;
}
.docs-cta a:hover { background: var(--accent); color: #fff; }
