:root {
    --bg: #f4f7ff;
    --bg-dark: #0b1020;
    --primary: #377dff;
    --primary-light: #5bb5ff;
    --primary-dark: #2257c7;
    --accent: #ff4d5a;
    --text: #1b2330;
    --muted: #6b7280;
    --card-bg: #ffffff;
    --border-radius-xl: 32px;
}

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

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top left, #e1f0ff 0, #f7f9ff 40%, #fdfdff 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    text-decoration: underline;
}

/* LAYOUT */

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 64px;
    flex: 1 0 auto;
}

/* HEADER */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-wrap img {
    height: 40px;
    width: auto;
}

.brand-name {
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.02em;
    color: var(--primary-dark);
}

.header-links {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 14px;
}

.header-links a {
    color: var(--muted);
    font-weight: 500;
}

.header-links a.btn-contact {
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 24px rgba(55, 125, 255, 0.28);
    text-decoration: none;
}

.header-links a.btn-contact:hover {
    filter: brightness(1.05);
    text-decoration: none;
}

/* HERO */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 32px 24px;
    border-radius: var(--border-radius-xl);
    background: radial-gradient(circle at top left, rgba(87,151,255,0.2), transparent 55%),
                radial-gradient(circle at bottom right, rgba(255,255,255,0.9), #e6eeff);
    box-shadow: 0 20px 40px rgba(25, 39, 89, 0.10);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.4);
    top: -120px;
    right: -80px;
}

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

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 500;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.hero-pill span.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(255, 77, 90, 0.15);
}

.hero h1 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero h1 span {
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 18px;
    color: var(--muted);
}

.hero-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 14px;
    border-radius: 999px;
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(55, 125, 255, 0.4);
    font-weight: 500;
}

.btn-primary:hover {
    filter: brightness(1.06);
    text-decoration: none;
}

.hero-note {
    font-size: 12px;
    color: var(--muted);
}

/* HERO VISUAL */

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    border-radius: 28px;
    padding: 26px 22px 24px;
    background: linear-gradient(145deg, #ffffff, #e6f0ff);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    overflow: hidden;
}

.hero-cloud {
    position: relative;
    width: 160px;
    margin: 14px 0 14px 0;   /* nach unten geschoben, links ausgerichtet */
}

.hero-cloud img {
    width: 100%;
    height: auto;
    display: block;
}

.status-badge {
    position: absolute;
    top: 16px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(55, 125, 255, 0.1);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2; /* Badge bleibt über allem */
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
}

.hero-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.hero-card p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
}

.hero-metadata {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
}

.hero-metadata span strong {
    display: block;
    font-size: 12px;
    color: var(--text);
}

/* SERVICE PREVIEW */

.services-preview {
    margin-top: 40px;
}

.services-preview h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.services-preview p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

.services-grid {
    display: grid;
    gap: 16px;
}

/* Handy: 1 Spalte (Standard) */
@media (min-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Tablet: 2 Spalten */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop: 3 Spalten (bei 6 Cards dann 3×2) */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 16px 16px 18px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    font-size: 13px;
}

.service-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
}

/* IMPRESSUM CARD */

.impressum-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px 20px 26px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
    font-size: 13px;
    line-height: 1.7;
}

.impressum-card h1 {
    font-size: 24px;
    margin-bottom: 12px;
}

.impressum-card h2 {
    font-size: 18px;
    margin-top: 18px;
    margin-bottom: 6px;
}

.impressum-card p {
    margin-bottom: 6px;
    color: var(--muted);
}

/* FOOTER */

footer {
    padding: 18px 20px 26px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    background: transparent;
}

footer a {
    color: var(--muted);
    font-weight: 500;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        order: -1;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-links {
        align-self: stretch;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .page-wrapper {
        padding: 18px 16px 42px;
    }

    .hero {
        padding: 20px 16px 22px;
    }

    .hero-card {
        max-width: 100%;
    }

    .header-links {
        justify-content: space-between;
        width: 100%;
    }
}
