/* ============================================
   IT-Beratung Markus Kuhlmann – Stylesheet
   ============================================ */

/* ===== SELF-HOSTED FONTS ===== */
/* DM Sans – Normal */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/dm-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/dm-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans – Italic */
@font-face {
    font-family: 'DM Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/dm-sans-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/dm-sans-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --accent: #0f2b5b;
    --accent-light: #1a3f7a;
    --accent-lighter: #e8eef6;
    --accent-glow: rgba(15, 43, 91, 0.08);
    --bg: #fafbfd;
    --bg-alt: #f2f4f8;
    --text: #1a1a2e;
    --text-secondary: #555e70;
    --text-light: #8891a4;
    --white: #ffffff;
    --border: #e2e6ee;
    --radius: 10px;
    --radius-lg: 16px;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --shadow-sm: 0 1px 3px rgba(15, 43, 91, 0.06);
    --shadow-md: 0 4px 20px rgba(15, 43, 91, 0.08);
    --shadow-lg: 0 8px 40px rgba(15, 43, 91, 0.10);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 251, 253, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 65px;
    width: auto;
}

.footer-logo-img {
    height: 26px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-logo-img:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 450;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    font-weight: 500 !important;
}

.nav-cta:hover {
    background: var(--accent-light) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 100vh;
    padding: 120px 24px 80px;
    max-width: 1120px;
    margin: 0 auto;
    gap: 40px;
    overflow: hidden;
}

.hero-bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-lighter);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease both;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 20px;
    animation: fadeUp 0.6s ease 0.1s both;
}

.text-accent {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease 0.3s both;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeUp 0.8s ease 0.3s both;
}

.hero-graphic {
    width: 100%;
    max-width: 380px;
}

.hero-svg {
    width: 100%;
    height: auto;
    animation: rotate-slow 60s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-lighter);
    color: var(--accent);
    border-radius: 12px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.015em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.01em;
}

/* ===== VALUES ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-item {
    position: relative;
}

.value-number {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.value-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.015em;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== CTA / CONTACT ===== */
.cta-section {
    padding: 80px 0 100px;
}

.cta-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}

.cta-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    background: var(--white);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
}

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

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== SUBPAGE HERO ===== */
.page-hero {
    padding: 140px 24px 60px;
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
}

.page-hero .hero-badge {
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    animation: fadeUp 0.6s ease 0.1s both;
}

.page-hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.7;
    animation: fadeUp 0.6s ease 0.2s both;
}

/* ===== PAGE BACKGROUND IMAGE (Subpages) ===== */
.page-main {
    position: relative;
    overflow: hidden;
}

.page-bg-image {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(700px, 80vw);
    height: auto;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transition: none;
}

.page-main .content-block,
.page-main .section {
    position: relative;
    z-index: 1;
}

/* ===== CONTENT SECTIONS (Subpages) ===== */
.content-block {
    padding: 60px 0;
}

.content-block + .content-block {
    border-top: 1px solid var(--border);
}

.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 500;
    padding-top: 4px;
}

.content-body h2 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.content-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-top: 32px;
    margin-bottom: 10px;
}

.content-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.content-body p:last-child {
    margin-bottom: 0;
}

.content-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(15, 43, 91, 0.3);
    text-underline-offset: 2px;
    transition: var(--transition);
}

.content-body a:hover {
    text-decoration-color: var(--accent);
}

.content-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.content-body ul li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 6px;
}

.content-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
}

/* Highlight box for key info */
.highlight-box {
    background: var(--accent-lighter);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 24px 0;
}

.highlight-box p {
    color: var(--text) !important;
    font-size: 0.92rem !important;
    margin-bottom: 0 !important;
}

/* Process steps */
.process-steps {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

.process-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
}

.step-number {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

/* ===== ABOUT / PORTRAIT ===== */
.about-intro {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    align-items: start;
}

.portrait-wrapper {
    position: sticky;
    top: 100px;
}

.portrait-placeholder {
    width: 220px;
    height: 280px;
    background: var(--bg-alt);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
}

.portrait-placeholder span {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.portrait-placeholder svg {
    opacity: 0.4;
}

.portrait-img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

@media (max-width: 680px) {
    .about-intro {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .portrait-wrapper {
        position: static;
    }

    .portrait-placeholder,
    .portrait-img {
        width: 180px;
        height: 230px;
    }

    .about-intro-text {
        text-align: left;
    }
}

/* ===== PROCESS STEPS (extended for wider labels) ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 120px 24px 60px;
        text-align: center;
    }

    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }

    .hero-visual {
        max-width: 260px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
        margin: 0 auto;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cta-box { padding: 40px 24px; }
}

@media (max-width: 680px) {
    .nav-links {
        display: none !important;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }

    .nav-links.open {
        display: flex !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    .nav-links a {
        padding: 10px 14px;
        width: 100%;
    }

    .hero h1 { font-size: 1.9rem; }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cb-inner {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cb-text {
    flex: 1;
}

.cb-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text);
}

.cb-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.cb-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cb-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cb-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.cb-btn-primary {
    background: var(--accent);
    color: white;
}

.cb-btn-primary:hover {
    background: var(--accent-light);
}

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

.cb-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 600px) {
    #cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }

    .cb-inner {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .cb-actions {
        width: 100%;
    }

    .cb-btn {
        flex: 1;
        text-align: center;
    }
}
