/* NC-Ware – gemeinsames Stylesheet für alle Seiten.
   Palette 1:1 aus dem "Modern"-Theme von SiFaAssist/RangeLib übernommen
   (SiFaAssist.Web/Components/Layout/MainLayout.razor), damit die Promo-Seite optisch zu den
   beiden beworbenen Produkten passt. Reines statisches CSS, kein Build-Schritt nötig. */

:root {
    --primary: #1565C0;
    --primary-contrast: #ffffff;
    --secondary: #6C7479;
    --background: #EEF0F1;
    --surface: #F7F8F9;
    --surface-border: #E1E4E6;
    --text: #1B1F22;
    --text-secondary: #545C61;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(20, 30, 40, 0.06);
    --shadow-hover: 0 8px 24px rgba(20, 30, 40, 0.10);
    --max-width: 1120px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #2983E9;
        --primary-contrast: #ffffff;
        --secondary: #8B959B;
        --background: #12161A;
        --surface: #1C2226;
        --surface-border: #2A3238;
        --text: #EDEFF1;
        --text-secondary: #A7B0B5;
        --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
        --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.45);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Exo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--primary); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.brand .mark {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand .mark img {
    /* Nur das Icon (blauer Farbverlauf, echter Alpha-Kanal) - kein Hintergrund-Chip
       nötig, funktioniert direkt auf heller wie dunkler Kopfzeile. */
    width: 100%;
    height: 100%;
    display: block;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.hero-logo img {
    /* Transparenter Hintergrund - für den Dark Mode gibt es eine eigene Bildvariante
       mit aufgehelltem Schriftzug (per <picture>/prefers-color-scheme ausgewählt,
       siehe index.html), statt hier eine Hintergrundfläche zu erzwingen. */
    max-width: min(460px, 80vw);
    height: auto;
}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

nav.main-nav a:hover { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-contrast);
}

.btn-primary:hover { box-shadow: var(--shadow-hover); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover { background: rgba(21, 101, 192, 0.08); }

/* Hero */
.hero {
    padding: 84px 0 64px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.hero p.lead {
    max-width: 640px;
    margin: 0 auto 32px;
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.hero .actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section { padding: 56px 0; }

section h2 {
    font-size: 1.8rem;
    margin: 0 0 8px;
    text-align: center;
}

section p.section-lead {
    text-align: center;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
}

/* Product cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.product-card .icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.product-card h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.product-card p {
    color: var(--text-secondary);
    margin: 0 0 20px;
    flex-grow: 1;
}

.product-card .btn { align-self: flex-start; }

/* Über uns */
.about-box {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 780px;
    margin: 0 auto;
}

.about-box p { color: var(--text-secondary); margin: 0 0 14px; }
.about-box p:last-child { margin-bottom: 0; }

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.contact-card a { text-decoration: none; font-weight: 600; }

/* Footer */
footer.site-footer {
    border-top: 1px solid var(--surface-border);
    padding: 28px 0;
    margin-top: 40px;
}

footer.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

footer.site-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover { color: var(--primary); }

/* Legal pages */
.legal main {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.legal h1 { font-size: 1.9rem; margin-bottom: 4px; }

.legal .subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.legal .box {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.legal .box h2 {
    font-size: 1.05rem;
    margin: 0 0 10px;
    text-align: left;
}

.legal .box p { margin: 0; color: var(--text-secondary); }

@media (max-width: 640px) {
    nav.main-nav { display: none; }
    /* Kontakt bleibt über die Hero-Buttons weiter unten erreichbar - der Header-Button
       würde bei wenig Platz sonst zweizeilig umbrechen und den Header aufblähen. */
    .site-header .btn { display: none; }
}
