/* Beutler Tech – KI-Beratung am Bodensee
   Schriften werden lokal ausgeliefert (keine Verbindung zu Google). */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin-var.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/outfit-latin-var.woff2') format('woff2');
}

:root {
    color-scheme: dark;
    --bg-dark: #0f172a;
    --bg-elev: #131c31;
    --bg-card: #1e293b;
    --border: rgba(255, 255, 255, 0.07);
    --primary: #818cf8;
    --primary-strong: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --primary-soft: rgba(99, 102, 241, 0.12);
    --text-main: #f8fafc;
    --text-muted: #a3b1c6;
    --accent: #34d399;
    --accent-soft: rgba(16, 185, 129, 0.12);
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', system-ui, sans-serif;
    line-height: 1.2;
}

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

svg {
    flex-shrink: 0;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--primary-strong);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    z-index: 100;
}

.skip-link:focus {
    left: 8px;
}

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

/* --- HEADER --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
}

.logo img {
    width: 32px;
    height: 32px;
}

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

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

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

.nav-links .btn {
    padding: 10px 18px;
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    padding: 8px;
    cursor: pointer;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-strong);
    color: #fff;
    box-shadow: 0 10px 15px -3px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
    box-shadow: 0 20px 25px -5px var(--primary-glow);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

/* --- HERO --- */
.hero {
    position: relative;
    padding: 96px 0 112px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    max-width: 200vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
    z-index: -1;
    opacity: 0.55;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-soft);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 99px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.hero .badge {
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.4rem, 6.5vw, 4.4rem);
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(90deg, #a5b4fc, #818cf8 40%, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 40px;
}

.cta-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 48px;
    list-style: none;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.trust-row li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trust-row svg {
    color: var(--accent);
}

/* --- SECTIONS --- */
.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

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

.section-title h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.075rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.card p {
    color: var(--text-muted);
    font-size: 0.975rem;
}

.card ul {
    list-style: none;
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.card li {
    display: flex;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.card li svg {
    color: var(--accent);
    margin-top: 3px;
}

/* Problem-Kacheln */
.problem-card {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.problem-card .card-icon {
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
}

.bridge {
    text-align: center;
    margin-top: 48px;
    font-size: 1.15rem;
    color: var(--text-main);
}

.bridge strong {
    color: var(--accent);
}

/* --- USE CASES --- */
.usecase {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
}

.usecase .card-icon {
    margin-bottom: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.usecase h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.usecase p {
    font-size: 0.93rem;
}

.note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 32px;
}

/* --- STEPS --- */
.steps {
    counter-reset: step;
    list-style: none;
}

.step {
    position: relative;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-strong);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 18px;
}

.step .meta {
    display: block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

/* --- TECH SERVICES --- */
.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px;
}

.tech-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tech-item svg {
    color: var(--primary);
    margin-top: 2px;
}

.tech-item h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.tech-item p {
    color: var(--text-muted);
    font-size: 0.93rem;
}

/* --- ABOUT --- */
.about {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    align-items: center;
}

.avatar {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary-strong), #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
    object-fit: cover;
}

.about h2 {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    margin-bottom: 18px;
}

.about p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.about p strong {
    color: var(--text-main);
}

.reference {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.reference .card-icon {
    margin: 0;
}

.reference p {
    margin: 0;
    font-size: 0.93rem;
}

/* --- REGION --- */
.region-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

.region-list li {
    padding: 8px 16px;
    border-radius: 99px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.93rem;
    color: var(--text-muted);
}

/* --- FAQ --- */
.faq {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 24px;
    transition: var(--transition);
}

.faq details[open] {
    border-color: rgba(99, 102, 241, 0.35);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 0;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary svg {
    transition: transform 0.25s;
    color: var(--text-muted);
}

.faq details[open] summary svg {
    transform: rotate(180deg);
}

.faq details p {
    color: var(--text-muted);
    padding-bottom: 20px;
}

/* --- CONTACT --- */
.contact-box {
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 72px 32px;
    border-radius: 32px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.contact-box h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 16px;
}

.contact-box > p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 36px;
}

.contact-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 0.95rem;
    list-style: none;
}

.contact-meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-meta a {
    color: var(--text-main);
    text-decoration: none;
}

.contact-meta a:hover {
    text-decoration: underline;
}

/* --- FOOTER --- */
.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

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

/* --- LEGAL PAGES --- */
.legal {
    max-width: 780px;
    margin: 0 auto;
    padding: 72px 24px 96px;
}

.legal h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 32px;
}

.legal h2 {
    font-size: 1.4rem;
    margin: 40px 0 12px;
}

.legal h3 {
    font-size: 1.1rem;
    margin: 24px 0 8px;
}

.legal p,
.legal li {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.legal ul {
    padding-left: 22px;
}

.legal address {
    font-style: normal;
    color: var(--text-main);
    margin-bottom: 12px;
}

/* Platzhalter, die vor dem Livegang ersetzt werden müssen */
.todo {
    background: rgba(250, 204, 21, 0.18);
    color: #fde68a;
    padding: 0 4px;
    border-radius: 4px;
}

/* --- REVEAL (nur wenn JS aktiv) --- */
.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn-primary:hover {
        transform: none;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 20px;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
    }

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

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .nav-links .btn {
        margin-top: 8px;
        padding: 14px 18px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .avatar {
        max-width: 200px;
        font-size: 3.5rem;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 64px 0 72px;
    }

    .section {
        padding: 72px 0;
    }

    .cta-group .btn {
        width: 100%;
    }

    .card {
        padding: 24px;
    }

    .contact-box {
        padding: 56px 20px;
    }

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

/* --- ÜBER-MICH-SEITE --- */
.hero-page {
    text-align: left;
    padding: 80px 0 88px;
}

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

.hero-page h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}

.hero-page .lead {
    margin: 0;
}

.prose {
    max-width: 780px;
}

.prose h2 {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    margin-bottom: 20px;
}

.prose p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.prose p strong {
    color: var(--text-main);
}

@media (max-width: 900px) {
    .hero-page {
        text-align: center;
    }

    .hero-page .avatar {
        margin: 0 auto;
    }
}
