/* AI Proxy — Marketing Site
   Design system mirrors dockitmed.de (Dock-IT GmbH corporate style) so both
   sites read as siblings: same tokens, same button/card/nav/footer patterns. */

:root {
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --secondary-color: #00a86b;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --danger: #c0392b;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: var(--primary-color); text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

section { padding: 100px 0; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; }
.section-subtitle { font-size: 1.125rem; color: var(--text-light); }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.bg-light { background: var(--bg-light); }

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-dark); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; cursor: not-allowed; }

.hero-buttons, .cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Navbar ──────────────────────────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.nav-brand { display: flex; align-items: center; gap: 12px; }
.logo {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    flex-shrink: 0;
    padding: 6px;
    object-fit: contain;
}
.brand-name { font-weight: 700; font-size: 1.15rem; }
.brand-tag { color: var(--text-light); font-size: 0.85rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-dark); }

.nav-menu { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-link { font-weight: 500; color: var(--text-dark); padding: 8px 0; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
    padding: 170px 0 100px;
    background: linear-gradient(180deg, var(--bg-light), var(--white));
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-title { font-size: 3.2rem; font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
.hero-title span { color: var(--primary-color); }
.hero-subtitle { font-size: 1.2rem; color: var(--text-light); margin-bottom: 32px; max-width: 560px; }

.hero-graphic {
    width: 100%; height: 360px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
.hero-graphic svg { width: 100%; height: 100%; color: rgba(255,255,255,0.92); }

.hero-disclaimer { font-size: 0.75rem; color: var(--text-light); max-width: 560px; margin-bottom: 16px; }

.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary-color); }

/* ── Feature / service cards ─────────────────────────────────────────── */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.feature-card {
    background: var(--white);
    padding: 2.2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-color); }

.feature-icon {
    width: 56px; height: 56px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--white); }

.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.98rem; }

/* ── Screenshot gallery ──────────────────────────────────────────────── */

.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }

.screenshot-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.screenshot-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-color); }
.screenshot-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: top;
    background: var(--gray-100);
    display: block;
}
.screenshot-card figcaption {
    padding: 14px 16px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 12, 16, 0.92);
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.lightbox.active { display: flex; }
.lightbox-content { max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); }
.lightbox-content figcaption { color: rgba(255,255,255,0.85); margin-top: 16px; font-size: 0.95rem; text-align: center; }
.lightbox-close {
    position: absolute;
    top: 20px; right: 28px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
}
.lightbox-close:hover { color: var(--secondary-color); }

/* ── Two-column "about"-style sections ──────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-reverse .split-media { order: 2; }

.split-media-block {
    border-radius: 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: var(--shadow-lg);
    min-height: 320px;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
.split-media-block svg { width: 100%; max-width: 260px; color: rgba(255,255,255,0.92); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.stat-item { text-align: center; padding: 20px; background: var(--bg-light); border-radius: var(--border-radius); }
.stat-item strong { display: block; font-size: 1.6rem; color: var(--primary-color); }
.stat-item span { font-size: 0.9rem; color: var(--text-light); }

/* ── Code / config blocks ───────────────────────────────────────────── */

.code-block {
    background: var(--text-dark);
    color: #e6edf3;
    border-radius: var(--border-radius);
    padding: 24px;
    overflow-x: auto;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    box-shadow: var(--shadow-md);
}
.code-block .comment { color: #8b949e; }

.download-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }

/* ── Steps / numbered list ──────────────────────────────────────────── */

.steps { list-style: none; counter-reset: step; display: grid; gap: 20px; }
.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 52px;
    color: var(--text-light);
}
.steps li strong { color: var(--text-dark); display: block; margin-bottom: 4px; }
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
}

/* ── Status legend (whitelist/blacklist/passthrough) ────────────────── */

.status-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; border: 1px solid transparent; }
.status-chip.ok { background: #e8f8f0; color: #0a7a4c; border-color: #b9ecd3; }
.status-chip.danger { background: #fdecea; color: #a4291b; border-color: #f7c9c3; }
.status-chip.warn { background: #fff4e5; color: #a35b00; border-color: #ffdca8; }

/* ── Forms ───────────────────────────────────────────────────────────── */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-weight: 600; font-size: 0.92rem; }
.form-group .hint { font-weight: 400; color: var(--text-light); font-size: 0.82rem; }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0,102,204,0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--border-radius); box-shadow: var(--shadow-sm); padding: 2.5rem; }

.form-note { font-size: 0.85rem; color: var(--text-light); margin-top: 16px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--border-radius); font-size: 0.92rem; display: none; }
.form-status.visible { display: block; }
.form-status.ok { background: #e8f8f0; color: #0a7a4c; }
.form-status.error { background: #fdecea; color: #a4291b; }

/* ── Contact / support info cards ───────────────────────────────────── */

.info-card { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.info-card:last-child { border-bottom: none; }
.info-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: var(--border-radius);
    background: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 20px; height: 20px; color: var(--primary-color); }
.info-card h4 { margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--text-light); }

/* ── CTA band ────────────────────────────────────────────────────────── */

.cta-band {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
}
.cta-band h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-band p { opacity: 0.92; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--white); color: var(--primary-color); border-color: var(--white); }
.cta-band .btn-primary:hover { background: var(--bg-light); }
.cta-band .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.6); }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* ── Footer ──────────────────────────────────────────────────────────── */

.footer { background: var(--text-dark); color: rgba(255,255,255,0.7); padding: 70px 0 24px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h4 { color: var(--white); margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; text-align: center; font-size: 0.88rem; }
.footer-bottom a { color: rgba(255,255,255,0.7); }

/* ── Legal pages (Impressum / Datenschutz) ──────────────────────────── */

.legal-content { max-width: 900px; margin: 0 auto; }
.legal-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 24px;
}
.legal-section h3 { margin-bottom: 14px; }
.legal-section h4 { margin: 18px 0 8px; }
.legal-section p, .legal-section li { color: var(--text-light); margin-bottom: 10px; }
.legal-section a { color: var(--primary-color); }
.legal-section ul, .legal-section ol { padding-left: 20px; }
.page-hero { padding: 150px 0 50px; background: var(--bg-light); text-align: center; }
.page-hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
.page-hero p { color: var(--text-light); max-width: 640px; margin: 0 auto; }

/* ── Help page (hilfe.html) ─────────────────────────────────────────── */

.help-layout { display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: start; }
.help-toc { position: sticky; top: 96px; background: var(--bg-light); border-radius: var(--border-radius); padding: 24px; }
.help-toc h4 { margin-bottom: 14px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); }
.help-toc ul { list-style: none; display: grid; gap: 10px; }
.help-toc a { color: var(--text-dark); font-size: 0.92rem; }
.help-toc a:hover { color: var(--primary-color); }

.help-article { max-width: 780px; }
.help-article section { padding: 0 0 56px; scroll-margin-top: 96px; }
.help-article h2 { font-size: 1.7rem; margin-bottom: 16px; padding-top: 8px; }
.help-article h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.help-article p { color: var(--text-light); margin-bottom: 14px; }
.help-article ul, .help-article ol { color: var(--text-light); padding-left: 22px; margin-bottom: 14px; }
.help-article li { margin-bottom: 6px; }
.help-article .code-block { margin: 16px 0; }
.help-article code { background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.help-article .code-block code { background: transparent; color: inherit; padding: 0; }

.callout { border-left: 4px solid var(--primary-color); background: var(--bg-light); padding: 16px 20px; border-radius: 0 var(--border-radius) var(--border-radius) 0; margin: 18px 0; }
.callout.warn { border-left-color: #a35b00; }
.callout p { margin-bottom: 0; color: var(--text-dark); }

/* ── Small utilities ─────────────────────────────────────────────────── */

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 28px; }
.card-grid-sm { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.form-card-narrow { max-width: 760px; margin: 0 auto; }
.cta-band .cta-buttons { justify-content: center; }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 968px) {
    .hero .container, .split, .help-layout { grid-template-columns: 1fr; }
    .split-reverse .split-media { order: 0; }
    .hero-title { font-size: 2.5rem; }
    .help-toc { position: static; }
}

@media (max-width: 768px) {
    section { padding: 70px 0; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 76px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    .nav-menu.active { transform: translateY(0); }
    .nav-link { padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
    .hero-title { font-size: 2rem; }
    .form-grid { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr; }
    .cta-band { padding: 40px 24px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.75rem; }
    .section-title { font-size: 1.9rem; }
}
