/* === RESET & BASIS === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0b0f19;
    color: #e2e8f0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* === NAVIGATION === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header > div {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4vw;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


header a.text-xl {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

header a.text-xl span span {
    color: #38bdf8;
}

header nav {
    display: flex;
    gap: 32px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5e1;
}

header nav a:hover {
    color: #38bdf8;
}

header > div > a:last-child {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #0b0f19;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

header > div > a:last-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* === HERO BEREICH === */
.hero-glow {
    padding: 160px 24px 100px 24px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.2) 0%, transparent 65%);
}

.hero-glow > div {
    max-width: 850px;
    margin: 0 auto;
}

.animate-pulse-slow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-glow h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-glow h1 span {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-glow p {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 40px auto;
}

.hero-glow .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero-glow .flex a:first-child {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #0b0f19;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
    transition: transform 0.2s ease;
}

.hero-glow .flex a:last-child {
    background: rgba(30, 41, 59, 0.8);
    color: #ffffff;
    border: 1px solid #334155;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-glow .flex a:hover {
    transform: translateY(-2px);
}
/* === DIENSTLEISTUNGEN GRID === */
#services {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 4vw;
}

#services > div:first-child {
    text-align: center;
    margin-bottom: 56px;
}

#services h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

#services > div:first-child p {
    color: #94a3b8;
    font-size: 1.05rem;
}

#services .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

@media (max-width: 820px) {
    #services .grid {
        grid-template-columns: 1fr;
    }
}

#services .glass-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#services .glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#services .glass-card:hover::before {
    opacity: 1;
}

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.card-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

#services .glass-card:hover .card-icon-box {
    transform: scale(1.08);
    background: rgba(56, 189, 248, 0.22);
}

.card-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #7dd3fc;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.92rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

.card-cta:hover {
    color: #7dd3fc;
    gap: 12px;
}



/* Moderne Glas-Karten */
.glass-card {
    background: rgba(30, 41, 59, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
    box-shadow: 0 15px 35px -10px rgba(56, 189, 248, 0.3);
}

/* NUR für die Icon-Boxen in den 4 Service-Karten */
#services .glass-card > div:first-child {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.glass-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.glass-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.glass-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.glass-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.glass-card ul li svg {
    width: 18px;
    height: 18px;
    color: #38bdf8;
    flex-shrink: 0;
}

/* === KONTAKTFORMULAR === */
#kontakt {
    padding: 80px 24px 110px 24px;
}

#kontakt > div {
    max-width: 680px;
    margin: 0 auto;
    padding: 44px;
    border-radius: 24px;
}

/* Kopfbereich im Kontaktformular sauber zentriert */
#kontakt .glass-card > div:first-child,
.kontakt-header {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
    border: none;
    text-align: center;
    margin-bottom: 32px;
}

#kontakt h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

#kontakt .glass-card > div:first-child p,
.kontakt-header p {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 0;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contactForm .grid,
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

#contactForm label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 13px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

#submitBtn {
    width: 100%;
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #0b0f19;
    font-weight: 800;
    font-size: 1rem;
    padding: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.25);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#submitBtn:hover {
    transform: translateY(-2px);
}

#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

.text-emerald-400 {
    color: #34d399;
    text-align: center;
    font-weight: 600;
}

.text-rose-400 {
    color: #fb7185;
    text-align: center;
    font-weight: 600;
}

/* === FOOTER === */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 24px;
    font-size: 0.9rem;
    color: #64748b;
}

footer > div {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

footer a:hover {
    color: #cbd5e1;
}

/* === MOBIL- & TABLET-OPTIMIERUNG === */
@media (max-width: 768px) {
    header nav {
        display: none;
    }
    header > div {
        padding: 0 16px;
        height: 64px;
    }
    header > div > a:last-child {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .hero-glow {
        padding: 120px 16px 70px 16px;
    }
    .hero-glow p {
        font-size: 1rem;
    }
    .hero-glow .flex {
        flex-direction: column;
        width: 100%;
    }
    .hero-glow .flex a {
        width: 100%;
        text-align: center;
    }
    #services {
        padding: 50px 16px;
    }
    #services .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .glass-card {
        padding: 24px 20px;
    }
    #kontakt {
        padding: 50px 16px 80px 16px;
    }
    #kontakt > div {
        padding: 28px 18px;
    }
    #contactForm input,
    #contactForm select,
    #contactForm textarea {
        font-size: 16px; /* Verhindert automatisches Heranzoomen am iPhone */
    }
}

