:root {
    --bg: #f5f5f7;
    --bg-alt: #ffffff;
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --accent: #0071e3;
    --accent-soft: rgba(0, 113, 227, 0.08);
    --border: #d2d2d7;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

/* Reset / Basics */

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

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hintergrund-Animation */

.background-layer {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #ffffff, #f5f5f7 40%, #e5e5ea 100%);
    z-index: -3;
}

.background-blob {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
    z-index: -2;
    animation: float 32s ease-in-out infinite alternate;
}

.blob-1 {
    top: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(0,113,227,0.3), transparent 70%);
}

.blob-2 {
    top: 40%;
    right: -80px;
    background: radial-gradient(circle, rgba(52,199,89,0.28), transparent 70%);
    animation-delay: 4s;
}

.blob-3 {
    bottom: -120px;
    left: 30%;
    background: radial-gradient(circle, rgba(88,86,214,0.28), transparent 70%);
    animation-delay: 8s;
}

@keyframes float {
    0%   { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(40px, -20px, 0); }
    100% { transform: translate3d(-30px, 30px, 0); }
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(245, 245, 247, 0.86);
    border-bottom: 1px solid rgba(210, 210, 215, 0.8);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0071e3, #34c759);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.main-nav a {
    margin-left: 1.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

/* Hero */

.hero {
    padding: 4rem 0 3.25rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: var(--accent);
    margin: 0 0 0.6rem;
}

.hero h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 0 0 0.9rem;
}

.hero-lead {
    color: var(--text-muted);
    margin: 0 0 1.2rem;
    max-width: 34rem;
}

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero-highlights li {
    margin-bottom: 0.25rem;
    position: relative;
    padding-left: 1.1rem;
}

.hero-highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.05rem;
    color: var(--accent);
}

.hero-note {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Intro-Animationen */

.hero-animate,
.hero-animate-delayed {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s ease-out forwards;
}

.hero-animate-delayed {
    animation-delay: 0.18s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Panel (rechts) */

.hero-panel {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(210, 210, 215, 0.9);
    overflow: hidden;
}

.hero-panel-header {
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 0.9rem;
    gap: 0.4rem;
    background: #f5f5f7;
    border-bottom: 1px solid rgba(210, 210, 215, 0.8);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.hero-panel-body {
    padding: 1.4rem 1.5rem 1.5rem;
}

.hero-panel-body h2 {
    margin: 0 0 0.7rem;
    font-size: 1.1rem;
}

.hero-panel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero-panel-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(229, 229, 234, 0.8);
}

.hero-panel-list li:last-child {
    border-bottom: none;
}

.hero-panel-foot {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sections */

.section {
    padding: 3rem 0;
}

.section-alt {
    padding: 3rem 0;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
}

.section h2 {
    font-size: 1.7rem;
    margin-bottom: 2rem;
}

/* Cards */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.6rem;
}

.card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(210, 210, 215, 0.95);
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 113, 227, 0.25);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.11);
}

.card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
}

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

/* Steps */

.steps {
    display: grid;
    gap: 1.25rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
}

.step p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Vorteile */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.6rem;
}

.benefits-grid h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.benefits-grid p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Kontakt */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-form {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.6rem 1.7rem;
    border: 1px solid rgba(210, 210, 215, 0.95);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fcfcff;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.form-hint {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-primary {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #0071e3, #0a84ff);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.35);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s;
}

.btn-primary:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(0, 113, 227, 0.4);
}

.btn-small {
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
}

/* Button Loading-State */

.btn-primary.loading {
    position: relative;
    cursor: default;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.28);
}

.btn-primary.loading::after {
    content: "";
    position: absolute;
    inset: 50%;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-top-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.contact-aside {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.6rem 1.7rem;
    border: 1px solid rgba(210, 210, 215, 0.95);
    box-shadow: var(--shadow-soft);
}

.contact-aside h3 {
    margin: 0 0 0.6rem;
}

.contact-info {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.contact-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Feedback */

.feedback {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    animation: feedbackSlideIn 0.4s ease-out;
}

.feedback-icon {
    font-size: 1.1rem;
}

.feedback-text {
    flex: 1;
}

.feedback.error {
    background: #fff2f2;
    border: 1px solid #ff3b30;
    color: #9b1c17;
}

.feedback.success {
    background: #ecfdf3;
    border: 1px solid #34c759;
    color: #166534;
}

@keyframes feedbackSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(210, 210, 215, 0.9);
    background: rgba(248, 248, 250, 0.9);
    padding: 1.2rem 0 1.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    text-align: center;
}

.footer-links a {
    color: var(--text-muted);
    margin: 0 0.3rem;
    font-size: 0.85rem;
}

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

/* Cookie-Banner */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(120%);
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    opacity: 0;
    z-index: 100;
    max-width: 520px;
    width: calc(100% - 2.5rem);
}

.cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-inner {
    background: #ffffff;
    border-radius: 999px;
    padding: 0.9rem 1.3rem;
    border: 1px solid rgba(210, 210, 215, 0.9);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-inner p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex: 1;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-link {
    font-size: 0.8rem;
}

/* Responsive */

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

    .hero {
        padding-top: 3rem;
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 0.6rem 0 0.8rem;
        gap: 0.6rem;
    }

    .main-nav {
        display: flex;
        gap: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a {
        margin-left: 0;
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .cookie-inner {
        border-radius: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        align-self: flex-end;
    }
}
