﻿/* ==================== BIT MASTER DESIGN SYSTEM v2 ==================== */
/* Mobile-first | Dark Theme | System Fonts | Lighthouse ≥95 */

:root,
html,
html[data-theme="dark"],
html[data-theme="light"] {
    --bg: #0E0F10;
    --bg-soft: #121416;
    --surface: #181A1D;
    --surface-2: #202328;
    --text: #F4F1EA;
    --text-muted: #B7B0A5;
    --text-soft: #D8D1C6;
    --gold: #B88A2A;
    --gold-soft: #D0A94A;
    --gold-muted: rgba(184, 138, 42, 0.16);
    --border: rgba(184, 138, 42, 0.24);
    --line: rgba(255,255,255,0.08);
    --shadow: rgba(0,0,0,0.40);

    --panel: var(--surface);
    --panel-2: var(--surface-2);
    --muted: var(--text-muted);
    --gold-dark: #6F5520;
    --gold-2: var(--gold-soft);
    --glow: var(--gold-muted);

    --background: var(--bg);
    --secondary-bg: var(--bg-soft);
    --card-bg: var(--surface);
    --text-primary: var(--text);
    --text-secondary: var(--text-muted);
    --primary: var(--gold);
    --primary-hover: var(--gold-soft);
    --accent: var(--gold);
    --card-border: var(--border);
    --card-shadow: var(--shadow);
    --hero-bg: var(--bg);
    --hero-text: var(--text);
    --hero-accent: var(--gold);
    
    /* Typography Scale (rem) */
    --font-h1: 2.0rem;
    --font-h2: 1.375rem;
    --font-h3: 1.125rem;
    --font-body: 1.0rem;
    --font-small: 0.875rem;
    
    /* Spacing Scale */
    --s1: 8px;
    --s2: 12px;
    --s3: 16px;
    --s4: 24px;
    --s5: 32px;
    --s6: 48px;
    
    /* Layout */
    --container-max: 1140px;
    --header-height: 200px;
    --radius: 8px;
    --radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
    font-size: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.theme-toggle-icon {
    font-size: 1.02rem;
    line-height: 1;
}

html[data-theme="light"] {
    --bg: #FAF8F4;
    --bg-soft: #F0EBE2;
    --surface: #FFFFFF;
    --surface-2: #F5F0E8;
    --text: #0F0E0D;
    --text-muted: #454038;
    --text-soft: #2E2A26;
    --gold: #8A6A22;
    --gold-soft: #9A7424;
    --gold-muted: rgba(154, 116, 36, 0.2);
    --border: rgba(120, 90, 28, 0.42);
    --line: rgba(0, 0, 0, 0.1);
    --shadow: rgba(0, 0, 0, 0.14);
    --background: var(--bg);
    --secondary-bg: var(--bg-soft);
    --card-bg: var(--surface);
    --text-primary: var(--text);
    --text-secondary: var(--text-muted);
    --primary: var(--gold);
    --primary-hover: var(--gold-soft);
    color-scheme: light;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--s3);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--s4);
    }
}

/* Typography */
h1 {
    font-size: var(--font-h1);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 var(--s3) 0;
}

h2 {
    font-size: var(--font-h2);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin: 0 0 var(--s3) 0;
}

h3 {
    font-size: var(--font-h3);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    margin: 0 0 var(--s2) 0;
}

p,
li,
small {
    color: var(--text-muted);
}

p {
    margin: 0 0 var(--s3) 0;
}

/* Header */
header,
.header,
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    height: auto;
    overflow: visible;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

html[data-theme="light"] header,
html[data-theme="light"] .header,
html[data-theme="light"] .site-header {
    background: #FFFFFF;
    box-shadow: 0 1px 0 var(--line);
}

.header-inner {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--s3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-height);
    gap: var(--s3);
}

@media (min-width: 768px) {
    .header-inner {
        padding: 0 var(--s4);
    }
}

.site-logo,
.logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    text-decoration: none;
}

.site-logo img,
.logo img {
    height: 132px;
    width: auto;
    max-width: 380px;
    object-fit: contain;
    display: block;
    opacity: 1;
    transform: none;
    filter: none;
    animation: none !important;
    transition: opacity .2s ease;
    box-shadow: none;
    text-shadow: none;
    -webkit-box-reflect: initial;
}

.logo-dark,
.logo-light {
    height: 132px !important;
    width: auto !important;
    max-width: 380px !important;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s3);
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.header-nav .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-nav .header-controls {
    flex: 0 0 auto;
    margin-left: 0;
}

.lang-switch {
    display: inline-flex;
    align-items: stretch;
    flex-shrink: 0;
    margin-left: var(--s2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.lang-switch .lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--text-muted) !important;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.lang-switch .lang-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.25rem;
    min-width: 1.25rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    user-select: none;
}

.lang-switch .lang-link::after {
    display: none;
}

.lang-switch .lang-link:hover,
.lang-switch .lang-link:focus {
    color: var(--text) !important;
    background: rgba(255, 255, 255, 0.06);
}

.lang-switch .lang-link.active {
    background: var(--gold);
    color: #0E0F10 !important;
}

.lang-switch .lang-link.active:hover,
.lang-switch .lang-link.active:focus {
    color: #0E0F10 !important;
    background: var(--gold-soft);
}

html[data-theme="dark"] .logo .logo-dark,
html[data-theme="dark"] .logo-section .logo-dark,
html[data-theme="dark"] a.logo > .logo-dark {
    display: block !important;
}

html[data-theme="dark"] .logo .logo-light,
html[data-theme="dark"] .logo-section .logo-light,
html[data-theme="dark"] a.logo > .logo-light {
    display: none !important;
}

html[data-theme="light"] .logo .logo-light,
html[data-theme="light"] .logo-section .logo-light,
html[data-theme="light"] a.logo > .logo-light {
    display: block !important;
}

html[data-theme="light"] .logo .logo-dark,
html[data-theme="light"] .logo-section .logo-dark,
html[data-theme="light"] a.logo > .logo-dark {
    display: none !important;
}

.nav-links {
    display: flex;
    gap: var(--s4);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text) !important;
    text-decoration: none;
    font-size: var(--font-small);
    font-weight: 600;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--gold-soft) !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

/* Hero (layered background: landing-premium.css + .lp-hero) */
.hero {
    padding: var(--s6) 0 var(--s5);
    text-align: center;
}

.hero:not(.lp-hero) {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-subline {
    font-size: var(--font-body);
    color: var(--muted);
    margin-bottom: var(--s4);
}

.hero-ctas {
    display: flex;
    gap: var(--s3);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--s2);
}

.hero-microcopy {
    font-size: var(--font-small);
    color: var(--muted);
    margin-top: var(--s2);
}

/* Buttons */
.btn {
    display: inline-block;
    height: 44px;
    padding: 0 var(--s3);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: var(--font-body);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    line-height: 44px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #111;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 14px 35px var(--gold-muted);
}

.btn-primary:hover {
    background: var(--gold-2);
}

.btn-primary:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.btn-secondary {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    line-height: 42px;
}

.btn-secondary:hover {
    background: transparent;
    border-color: var(--gold-soft);
    color: var(--gold-soft);
}

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    line-height: 42px;
}

.btn-outline:hover {
    color: var(--gold-soft);
    border-color: var(--gold-soft);
}

.btn-secondary:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.btn-outline:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.lp-panel,
.lp-solution-module,
.lp-process-step,
.card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    color: var(--text);
    border: 1px solid var(--border);
}

.lp-panel p,
.lp-solution-module p,
.lp-term-list li,
.section-benefit {
    color: var(--text-muted);
}

@media (max-width: 1100px) {
    .header-nav > .nav-links {
        display: none !important;
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 152px;
    }

    .header-nav {
        gap: var(--s2);
    }

    .site-logo img,
    .logo img {
        height: 84px;
        max-width: 260px;
    }

    .logo-dark,
    .logo-light {
        height: 84px !important;
        max-width: 260px !important;
    }

    .lang-switch .lang-link {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
    }

    .hero-ctas {
        flex-direction: column;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .site-logo img,
    .logo img,
    .logo-dark,
    .logo-light {
        height: 116px !important;
        max-width: 340px !important;
    }
}

/* Contact highlights: only phone/mail contact anchors */
.footer-contact a[href^="mailto:"],
.footer-contact a[href^="tel:"],
a.contact-info[href^="mailto:"],
a.contact-info[href^="tel:"],
a.contact-btn[href^="mailto:"],
a.contact-btn[href^="tel:"],
.contact-card a[href^="mailto:"],
.contact-card a[href^="tel:"] {
    color: #C44536 !important;
    font-weight: 700;
    font-style: italic;
}

.footer-contact a[href^="mailto:"]:hover,
.footer-contact a[href^="tel:"]:hover,
a.contact-info[href^="mailto:"]:hover,
a.contact-info[href^="tel:"]:hover,
a.contact-btn[href^="mailto:"]:hover,
a.contact-btn[href^="tel:"]:hover,
.contact-card a[href^="mailto:"]:hover,
.contact-card a[href^="tel:"]:hover {
    color: #E05A4F !important;
    text-decoration: underline;
}

/* FAQ: landing-premium.css (Startseiten) */

/* Footer */
footer {
    padding: var(--s6) 0 var(--s4);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--s3);
}

@media (min-width: 768px) {
    .footer-inner {
        padding: 0 var(--s4);
    }
}

.footer-links {
    display: flex;
    gap: var(--s4);
    list-style: none;
    flex-wrap: wrap;
    margin-bottom: var(--s3);
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: var(--font-small);
    transition: color 0.2s ease;
}

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

.footer-contact {
    margin-bottom: var(--s3);
}

.footer-contact a {
    color: var(--muted);
    text-decoration: none;
    font-size: var(--font-small);
    display: block;
    margin-bottom: var(--s1);
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-copyright {
    text-align: center;
    padding-top: var(--s3);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: var(--font-small);
}
