/* Copyright by W-Welz | Urheber: Werner | https://welzsoft.de */
/* Die Verwendung, Vervielfaeltigung oder Weitergabe dieses Codes ohne ausdrueckliche Zustimmung ist untersagt. */

/* =============================================
   Reset & Basis
   ============================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1e293b;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 0.5em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: #2563eb; text-decoration: none; transition: color 0.15s; }
a:hover { color: #1d4ed8; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   Header & Navigation
   ============================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 600;
}

.logo:hover { color: #0f172a; }

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #fff;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 700;
}

.logo-text strong { color: #2563eb; }

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover { background: #f1f5f9; color: #0f172a; }
.nav-link.active { color: #0f172a; background: #f1f5f9; }

.nav-cta {
    background: #0f172a;
    color: #ffffff !important;
}
.nav-cta:hover { background: #1e293b; color: #ffffff !important; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0f172a;
    margin: 5px 0;
    transition: transform 0.2s, opacity 0.2s;
}

/* =============================================
   Hero
   ============================================= */

.hero {
    position: relative;
    padding: 80px 0 60px;
    background:
        radial-gradient(circle at 20% 10%, rgba(99, 102, 241, 0.10), transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(59, 130, 246, 0.08), transparent 50%),
        #f8fafc;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero h1 {
    margin-bottom: 18px;
}
.hero h1 .accent {
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 28px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Code-Card im Hero */
.code-card {
    background: #0f172a;
    border-radius: 14px;
    padding: 22px 26px;
    color: #e2e8f0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    box-shadow: 0 25px 60px -20px rgba(15, 23, 42, 0.35);
    position: relative;
    overflow: hidden;
}
.code-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 36px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}
.code-card-dots {
    position: absolute;
    top: 12px; left: 16px;
    display: flex;
    gap: 6px;
}
.code-card-dots span {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #475569;
}
.code-card-dots span:nth-child(1) { background: #ef4444; }
.code-card-dots span:nth-child(2) { background: #f59e0b; }
.code-card-dots span:nth-child(3) { background: #10b981; }
.code-card pre {
    margin: 32px 0 0;
    padding: 0;
    background: transparent;
    color: inherit;
    overflow-x: auto;
}
.tk-key  { color: #c084fc; }
.tk-fn   { color: #60a5fa; }
.tk-str  { color: #86efac; }
.tk-com  { color: #64748b; font-style: italic; }
.tk-num  { color: #fbbf24; }

/* =============================================
   Buttons
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.1s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
    text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.55);
}
.btn-primary:hover { background: #1d4ed8; color: #ffffff; }

.btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}
.btn-secondary:hover { border-color: #94a3b8; }

.btn-block { width: 100%; }

/* =============================================
   Sektionen
   ============================================= */

.section {
    padding: 80px 0;
}
.section-alt {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}
.section-head .eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.section-head p {
    color: #475569;
    font-size: 1.05rem;
}

/* Feature-Karten */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 30px -12px rgba(15, 23, 42, 0.10);
}
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: #2563eb;
    margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: #64748b; margin-bottom: 0; }

/* Tech-Streifen */
.tech-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 22px;
    padding: 28px 0;
}
.tech-strip span {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Ablauf-Schritte */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: step;
}
.step {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    position: relative;
    counter-increment: step;
}
.step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 8px;
}
.step h3 { margin-bottom: 6px; font-size: 1.1rem; }
.step p { color: #64748b; margin: 0; }

/* CTA-Block */
.cta-block {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-radius: 18px;
    padding: 54px 40px;
    color: #ffffff;
    text-align: center;
}
.cta-block h2 { color: #ffffff; margin-bottom: 12px; }
.cta-block p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 24px;
    font-size: 1.05rem;
}
.cta-block .btn-primary { background: #ffffff; color: #0f172a; }
.cta-block .btn-primary:hover { background: #f1f5f9; color: #0f172a; }

/* =============================================
   Formular
   ============================================= */

.form-wrap {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
}
@media (max-width: 600px) {
    .form-wrap { padding: 24px; }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.form-row.single { grid-template-columns: 1fr; }
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 0;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-group textarea { min-height: 160px; resize: vertical; }
.form-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.captcha-row img {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f1f5f9;
    height: 50px;
}
.captcha-row input[type="text"] {
    width: 140px;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.checkbox-row input { margin-top: 4px; }
.checkbox-row label { font-weight: 400; color: #475569; font-size: 0.95rem; }

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.alert-error    { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success  { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Honeypot - unsichtbar */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =============================================
   Hilfsklassen
   ============================================= */

.page-head {
    padding: 60px 0 30px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: #475569; margin: 0; font-size: 1.05rem; }

.text-center { text-align: center; }

/* =============================================
   Footer
   ============================================= */

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 24px;
    margin-top: 80px;
}
.site-footer .logo { color: #ffffff; }
.site-footer .logo-text strong { color: #60a5fa; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 14px;
}
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #94a3b8; }
.footer-col ul a:hover { color: #ffffff; }

.footer-claim {
    color: #94a3b8;
    max-width: 380px;
    margin-top: 14px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
}

/* =============================================
   Responsive Nav (Mobile)
   ============================================= */

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .site-nav.is-open { max-height: 500px; }
    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px 24px;
        gap: 4px;
    }
    .site-nav ul li { width: 100%; }
    .nav-link { padding: 12px 14px; display: block; }
}

/* =============================================
   Hero Responsive
   ============================================= */

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding: 60px 0 40px; }
}
