/* byte-up IT-Services — Stylesheet
 * Farbpalette: Primary #2A6B8A, Accent Orange #FF6B35
 * Theme via [data-theme] (auto = System), respektiert prefers-reduced-motion.
 */

/* ── Reset & Basis ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:        #2A6B8A;
    --primary-dark:   #1E5570;
    --orange:         #FF6B35;
    --orange-dark:    #E55A2B;

    --bg:             #F0F2F5;
    --bg-deep:        #E4E7EC;
    --bg-card:        rgba(0,0,0,0.04);
    --input-bg:       rgba(0,0,0,0.03);

    --text:           #1A2332;
    --text-muted:     #5A6577;
    --white:          #FFFFFF;
    --border:         rgba(0,0,0,0.08);

    --nav-bg:         rgba(255,255,255,0.95);
    --card-shadow:    rgba(0,0,0,0.08);
    --orange-subtle:  rgba(255,107,53,0.08);
    --orange-border:  rgba(255,107,53,0.20);

    --success:        #2EA66F;
    --error:          #D6453E;

    --radius-md:      10px;
    --radius-lg:      16px;
    --transition:     0.3s ease;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary:       #5BB8D4;
        --primary-dark:  #4A9AB8;
        --bg:            #111D2E;
        --bg-deep:       #0C1520;
        --bg-card:       rgba(255,255,255,0.05);
        --input-bg:      rgba(255,255,255,0.03);
        --text:          #E0E4EA;
        --text-muted:    #94A0B2;
        --border:        rgba(255,255,255,0.10);
        --nav-bg:        rgba(17,29,46,0.95);
        --card-shadow:   rgba(0,0,0,0.30);
        --orange-subtle: rgba(255,107,53,0.12);
        --orange-border: rgba(255,107,53,0.30);
    }
}

[data-theme="dark"] {
    --primary:       #5BB8D4;
    --primary-dark:  #4A9AB8;
    --bg:            #111D2E;
    --bg-deep:       #0C1520;
    --bg-card:       rgba(255,255,255,0.05);
    --input-bg:      rgba(255,255,255,0.03);
    --text:          #E0E4EA;
    --text-muted:    #94A0B2;
    --border:        rgba(255,255,255,0.10);
    --nav-bg:        rgba(17,29,46,0.95);
    --card-shadow:   rgba(0,0,0,0.30);
    --orange-subtle: rgba(255,107,53,0.12);
    --orange-border: rgba(255,107,53,0.30);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Skip-Link (a11y) */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--orange); color: var(--white);
    padding: 0.75rem 1rem; border-radius: 0 0 var(--radius-md) 0;
    font-weight: 600; z-index: 1100;
}
.skip-link:focus { left: 0; }

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0.8rem 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
}
.logo-container { text-decoration: none; display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; }
[data-theme="dark"] .logo-img,
:root:not([data-theme="light"]) .logo-img {
    /* Logo ist dunkel → bei Dark-Theme weiß hinterlegen */
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-img {
        background: rgba(255,255,255,0.92);
        padding: 4px 12px; border-radius: 8px;
    }
}
[data-theme="dark"] .logo-img {
    background: rgba(255,255,255,0.92);
    padding: 4px 12px; border-radius: 8px;
}

.nav-links {
    display: flex; gap: 2rem; list-style: none; align-items: center;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500; font-size: 0.95rem;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--orange); }

.nav-cta {
    background: var(--white) !important;
    color: var(--orange) !important;
    border: 2px solid var(--orange);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 700; font-size: 0.9rem;
    transition: all var(--transition);
}
.nav-cta:hover {
    background: var(--orange) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.25);
}

.theme-toggle, .mobile-toggle {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.theme-toggle:hover { background: var(--orange-subtle); border-color: var(--orange); }
.mobile-toggle { display: none; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    padding: 160px 2rem 100px;
    position: relative; overflow: hidden;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute; top: -50%; left: 50%;
    width: 800px; height: 800px;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--orange-subtle) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
    display: inline-block;
    background: var(--orange-subtle);
    border: 1px solid var(--orange-border);
    color: var(--orange);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900; line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.hero h1 .accent {
    background: linear-gradient(135deg, var(--orange) 0%, #F0A878 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 650px; margin: 0 auto 2.5rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
    padding: 0.9rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600; font-size: 1rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all var(--transition);
    border: 1.5px solid transparent;
    cursor: pointer;
}
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255,107,53,0.25);
}
.btn-outline {
    background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ── Trust-Bar ─────────────────────────────────────────────── */
.trust-bar {
    padding: 4rem 2rem;
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.trust-grid {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    text-align: center;
}
.trust-num {
    font-size: 2.5rem; font-weight: 800; color: var(--orange);
    line-height: 1; margin-bottom: 0.3rem;
}
.trust-label { font-size: 0.9rem; color: var(--text-muted); }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: 100px 2rem; }
.section.alt { background: var(--bg-deep); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
    display: inline-block;
    color: var(--orange);
    font-weight: 600; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800; line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}
.section-desc {
    font-size: 1.1rem; color: var(--text-muted); line-height: 1.8;
    max-width: 600px;
}

/* ── Services ──────────────────────────────────────────────── */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    margin-top: 3.5rem;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}
.service-card:hover {
    border-color: var(--orange-border);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--card-shadow);
}
.service-icon {
    width: 48px; height: 48px;
    background: var(--orange-subtle);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* ── About ─────────────────────────────────────────────────── */
.about-grid {
    display: grid; grid-template-columns: auto 1fr;
    gap: 4rem; align-items: center; margin-top: 3rem;
}
.about-photo {
    width: 160px; height: 160px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid var(--orange-border);
    box-shadow: 0 20px 50px var(--card-shadow);
    flex-shrink: 0;
}
.about-text p { color: var(--text-muted); line-height: 1.9; font-size: 1.05rem; margin-bottom: 1rem; }
.about-text .name-line { font-weight: 700; color: var(--text); font-size: 1.1rem; margin-top: 1.5rem; }
.about-text .role-line { color: var(--orange); font-size: 0.9rem; font-weight: 500; }

/* ── Kontakt ───────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.contact-card h3 { font-size: 1.4rem; margin-bottom: 1.5rem; }

.contact-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.contact-row-icon {
    width: 42px; height: 42px;
    background: var(--orange-subtle); border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.contact-row strong { display: block; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.contact-row a, .contact-row span { color: var(--text); text-decoration: none; font-weight: 600; }
.contact-row a:hover { color: var(--orange); }

/* Form */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; color: var(--text-muted); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--text);
    font-family: inherit; font-size: 0.95rem;
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--orange); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }

.submit-btn {
    background: var(--orange); color: var(--white);
    padding: 0.85rem 2rem; border: none;
    border-radius: var(--radius-md);
    font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: all var(--transition); width: 100%;
}
.submit-btn:hover:not(:disabled) {
    background: var(--orange-dark); transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,107,53,0.25);
}
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-msg {
    padding: 0.8rem 1rem;
    border-radius: 8px; margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}
.form-msg[data-state="success"] {
    display: block;
    background: rgba(46,166,111,0.12); border: 1px solid rgba(46,166,111,0.3);
    color: var(--success);
}
.form-msg[data-state="error"] {
    display: block;
    background: rgba(214,69,62,0.12); border: 1px solid rgba(214,69,62,0.3);
    color: var(--error);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-links { margin-bottom: 1rem; }
.footer-links a {
    color: var(--text-muted); text-decoration: none;
    margin: 0 1rem; font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1.5rem 2rem; gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.is-open { display: flex; }
    .mobile-toggle { display: flex; }

    .services-grid { grid-template-columns: 1fr; }
    .trust-grid    { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .about-grid    { grid-template-columns: 1fr; text-align: center; }
    .about-photo   { margin: 0 auto; width: 130px; height: 130px; }
    .contact-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-buttons  { flex-direction: column; align-items: center; }
    .btn           { width: 100%; justify-content: center; }
}
