/* ═══════════════════════════════════════════════════
   Widerrufs-Button – Marketing Landingpage
   ═══════════════════════════════════════════════════ */

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

:root {
    --primary: #2a7ae2;
    --primary-hover: #1a5bb5;
    --primary-light: #e8f1fc;
    --primary-bg: #f0f6ff;
    --dark: #1a1a2e;
    --text: #333;
    --text-light: #666;
    --text-muted: #888;
    --bg-white: #ffffff;
    --bg-light: #f8f9fb;
    --bg-alt: #f2f4f8;
    --border: #e2e6ea;
    --success: #27ae60;
    --error: #e74c3c;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --max-width: 1100px;
    --header-height: 64px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

/* ─── Site Header / Navigation ─────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.97);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
}

.site-header__logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-header__logo:hover {
    text-decoration: none;
    color: var(--primary);
}

.site-header__logo-icon {
    font-size: 1.3rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}

.site-nav a.nav-cta {
    background: var(--primary);
    color: #fff;
    margin-left: 8px;
}

.site-nav a.nav-cta:hover {
    background: var(--primary-hover);
    color: #fff;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--dark);
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 2px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    .site-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav a {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .site-nav a.nav-cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }
}

/* Offset for fixed header */
.hero {
    margin-top: var(--header-height);
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

/* ─── Layout ───────────────────────────────────────── */

.section {
    padding: 72px 24px;
}

.section--alt {
    background: var(--bg-light);
}

.section--dark {
    background: var(--dark);
    color: #fff;
}

.section--dark .section__subtitle {
    color: #b8c5d6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section__title {
    font-size: 1.85rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.section__subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin: 0 0 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Hero ─────────────────────────────────────────── */

.hero {
    background: linear-gradient(135deg, #1a5bb5 0%, #2a7ae2 50%, #4a9af5 100%);
    color: #fff;
    padding: 100px 24px 88px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero__badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.hero__sub {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ─── Buttons ──────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.btn--primary {
    background: #fff;
    color: var(--primary);
}

.btn--primary:hover {
    background: #f0f6ff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn--outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.btn--blue {
    background: var(--primary);
    color: #fff;
}

.btn--blue:hover {
    background: var(--primary-hover);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--white-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.35);
}

.btn--white-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.btn--large {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* ─── Problem ──────────────────────────────────────── */

.problem {
    text-align: center;
}

.problem__text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.08rem;
    color: var(--text-light);
    line-height: 1.7;
}

.problem__highlight {
    color: var(--primary);
    font-weight: 600;
}

/* ─── Benefit Cards ────────────────────────────────── */

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

.benefit-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.25s ease;
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.benefit-card__icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.benefit-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.benefit-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--dark);
}

.benefit-card__desc {
    font-size: 0.92rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.55;
}

/* ─── Steps ────────────────────────────────────────── */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    counter-reset: step;
}

.step {
    text-align: center;
    position: relative;
    counter-increment: step;
}

.step__number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--dark);
}

.step__desc {
    font-size: 0.92rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.55;
}

/* Connector line between steps */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 36px);
    width: calc(100% - 72px);
    height: 2px;
    background: var(--border);
}

/* ─── Compatibility ────────────────────────────────── */

.compat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.compat-list li {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 28px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.compat-list li:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ─── Demo Preview ─────────────────────────────────── */

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

.demo-frame {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto 32px;
    background: #fff;
}

.demo-frame iframe {
    width: 100%;
    height: 660px;
    border: 0;
    display: block;
}

.demo-frame__bar {
    background: #f4f4f4;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.demo-frame__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}

.demo-frame__dot--red { background: #ff5f57; }
.demo-frame__dot--yellow { background: #ffbd2e; }
.demo-frame__dot--green { background: #28c940; }

.demo-frame__url {
    flex: 1;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: left;
}

/* ─── Trust / Security ─────────────────────────────── */

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
}

.trust-item__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-item__icon svg {
    width: 18px;
    height: 18px;
    color: #7cb8ff;
}

.trust-item__text {
    font-size: 0.92rem;
    line-height: 1.5;
}

.trust-item__text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

/* ─── CTA Section ──────────────────────────────────── */

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
}

.cta-section .section__title {
    font-size: 2rem;
}

.cta-email {
    display: inline-block;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 20px 0 32px;
    color: var(--primary);
    transition: all 0.2s;
}

.cta-email:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

/* ─── Contact Form ─────────────────────────────────── */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form__row {
    display: flex;
    gap: 16px;
}

.contact-form__field {
    margin-bottom: 20px;
    flex: 1;
}

.contact-form__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.contact-form__label .optional {
    font-weight: 400;
    color: var(--text-muted);
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 122, 226, 0.12);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
    tab-index: -1;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    min-width: 180px;
}

.contact-form__submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.contact-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-form__submit .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.contact-form__submit.loading .spinner {
    display: block;
}

.contact-form__submit.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.contact-form__feedback {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    display: none;
    text-align: center;
}

.contact-form__feedback.success {
    display: block;
    background: #eafaf1;
    color: #1a7f42;
    border: 1px solid #b8e6cc;
}

.contact-form__feedback.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #f5c6c6;
}

.contact-form__thankyou {
    text-align: center;
    padding: 48px 24px;
}

.contact-form__thankyou .btn {
    margin-top: 8px;
}

@media (max-width: 480px) {
    .contact-form__row {
        flex-direction: column;
        gap: 0;
    }
}

/* ─── Legal Pages ──────────────────────────────────── */

.legal-page {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 72px;
}

.legal-page .container {
    max-width: 780px;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.legal-page .legal-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 40px;
}

.legal-page h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 40px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.legal-page h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-page h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin: 24px 0 8px;
}

.legal-page p {
    color: var(--text-light);
    margin: 0 0 14px;
    line-height: 1.7;
}

.legal-page ul, .legal-page ol {
    color: var(--text-light);
    margin: 0 0 14px;
    padding-left: 24px;
    line-height: 1.7;
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-page .placeholder {
    background: #fff7e6;
    color: #b45309;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
}

.legal-page address {
    font-style: normal;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 14px;
}

/* ─── Footer ───────────────────────────────────────── */

.footer {
    background: var(--dark);
    color: #8896a8;
    padding: 32px 24px;
    font-size: 0.85rem;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer a {
    color: #a8b8cc;
}

.footer a:hover {
    color: #fff;
}

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

/* ─── Responsive ───────────────────────────────────── */

@media (max-width: 768px) {
    .hero {
        padding: 64px 20px 56px;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .hero__sub {
        font-size: 1rem;
    }

    .section {
        padding: 48px 20px;
    }

    .section__title {
        font-size: 1.5rem;
    }

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

    .step:not(:last-child)::after {
        display: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .demo-frame iframe {
        height: 500px;
    }

    .btn--large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .footer .container {
        flex-direction: column;
        gap: 12px;
    }

    .legal-page {
        padding-top: calc(var(--header-height) + 32px);
    }

    .legal-page h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.5rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .compat-list {
        flex-direction: column;
        align-items: center;
    }

    .compat-list li {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }
}

/* ─── Animation ────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
    .benefit-card,
    .step,
    .trust-item {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeUp 0.5s ease forwards;
    }

    .benefit-card:nth-child(1) { animation-delay: 0.05s; }
    .benefit-card:nth-child(2) { animation-delay: 0.1s; }
    .benefit-card:nth-child(3) { animation-delay: 0.15s; }
    .benefit-card:nth-child(4) { animation-delay: 0.2s; }
    .benefit-card:nth-child(5) { animation-delay: 0.25s; }
    .benefit-card:nth-child(6) { animation-delay: 0.3s; }

    .step:nth-child(1) { animation-delay: 0.05s; }
    .step:nth-child(2) { animation-delay: 0.15s; }
    .step:nth-child(3) { animation-delay: 0.25s; }

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