/**
 * WBS Starter Theme — Landing Page Styles
 *
 * Implementierung nach Wireframe v2.1 (@ui-ux-designer / @ux-architect)
 *
 * Design-Token:
 *   --wbs-primary-dark: #1a8cd8  → alle wbs-btn--primary (WCAG AA 4.5:1)
 *   --color-primary:    #2ea3f2  → Links, Fokus-Ring, Akzente
 *   --color-secondary:  #34d399  → Trust-Bar Icons, Akzente
 *
 * @package WBS_Starter
 * @since   1.1.0
 */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
    --wbs-primary-dark:   #1a8cd8; /* Buttons (WCAG AA 4.5:1 auf weiss) */
    --color-primary:      #2ea3f2; /* Links, Fokus, Dekor-Akzente */
    --color-secondary:    #34d399; /* Trust-Bar, Akzente */
    --color-text:         #1a1a1a;
    --color-muted:        #555555;
    --color-bg-light:     #f8f9fa;
    --color-bg-cta:       #f0faf5;
    --radius-btn:         6px;
    --font-h1-desktop:    48px;
    --font-h1-mobile:     28px;
    --container-max:      1280px;
    --container-pad:      clamp(16px, 4vw, 64px);
    --header-height:      64px;
}

/* ── Skip-Link ──────────────────────────────────────────────── */
.wbs-skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 8px 16px;
    background: var(--wbs-primary-dark);
    color: #fff;
    border-radius: var(--radius-btn);
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.1s;
}
.wbs-skip-link:focus {
    top: 8px;
}

/* ── Container ──────────────────────────────────────────────── */
.wbs-container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* ── Buttons ────────────────────────────────────────────────── */
.wbs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px; /* Touch-Target WCAG 2.5.8 */
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border: 2px solid transparent;
}
.wbs-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Primary: #1a8cd8 Hintergrund, weiss Text — WCAG AA 4.5:1 */
.wbs-btn--primary {
    background: var(--wbs-primary-dark);
    color: #fff;
    border-color: var(--wbs-primary-dark);
}
.wbs-btn--primary:hover,
.wbs-btn--primary:focus {
    background: #1578be;
    border-color: #1578be;
    color: #fff;
}

/* Ghost: transparent, primary-dark Rahmen */
.wbs-btn--ghost {
    background: transparent;
    color: var(--wbs-primary-dark);
    border-color: var(--wbs-primary-dark);
}
.wbs-btn--ghost:hover,
.wbs-btn--ghost:focus {
    background: var(--wbs-primary-dark);
    color: #fff;
}

.wbs-btn--sm {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ── Screen-Reader Only ─────────────────────────────────────── */
.wbs-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.wbs-header--landing {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    z-index: 100;
}
.wbs-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.wbs-header__brand a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}
.wbs-header__brand img {
    height: 40px;
    width: auto;
}
.wbs-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.wbs-hamburger,
.wbs-hamburger::before,
.wbs-hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.2s;
}
.wbs-hamburger {
    position: relative;
}
.wbs-hamburger::before,
.wbs-hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.wbs-hamburger::before { top: -7px; }
.wbs-hamburger::after  { top:  7px; }

.wbs-mobile-nav {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 16px var(--container-pad);
}
.wbs-mobile-nav__link {
    display: block;
    padding: 10px 0;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

/* ── HERO ───────────────────────────────────────────────────── */
.wbs-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: #fff;
    padding-block: 64px;
}
.wbs-hero__inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: center;
}
.wbs-hero__title {
    font-size: var(--font-h1-desktop);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.15;
    margin-block: 0 16px;
}
.wbs-hero__subline {
    font-size: 18px;
    color: var(--color-muted);
    margin-block: 0 32px;
}
.wbs-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-block-end: 32px;
}
.wbs-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.wbs-trust-bar__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--color-muted);
    font-weight: 500;
}
.wbs-hero__visual img {
    width: 100%;
    height: auto;
    max-width: 480px;
}

/* ── FEATURES ───────────────────────────────────────────────── */
.wbs-features {
    padding-block: 64px;
    background: var(--color-bg-light);
}
.wbs-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-block-start: 32px;
}
.wbs-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.wbs-feature-card__icon {
    font-size: 2rem;
    display: block;
    margin-block-end: 12px;
}
.wbs-feature-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-block: 0 8px;
}
.wbs-feature-card__text {
    font-size: 0.9375rem;
    color: var(--color-muted);
    margin: 0;
}

/* ── SO GEHT'S ──────────────────────────────────────────────── */
.wbs-steps {
    padding-block: 64px;
    background: #fff;
}
.wbs-steps__title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin-block: 0 40px;
}
.wbs-steps__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.wbs-step-card {
    position: relative;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px 24px 24px;
    text-align: center;
}
.wbs-step-card__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wbs-primary-dark);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-inline: auto;
    margin-block-end: 16px;
}
.wbs-step-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text);
    margin-block: 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.wbs-step-card__sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-muted);
}
.wbs-step-card__text {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 8px 0 0;
}

/* ── REGISTRIERUNGS-CTA ─────────────────────────────────────── */
.wbs-reg-cta {
    padding-block: 64px;
    background: var(--color-bg-cta);
    text-align: center;
}
.wbs-reg-cta__title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-text);
    margin-block: 0 24px;
}
.wbs-reg-cta__dsgvo {
    margin-block-start: 16px;
    font-size: 0.875rem;
    color: var(--color-muted);
    max-width: 560px;
    margin-inline: auto;
}
.wbs-reg-cta__dsgvo a {
    color: var(--wbs-primary-dark);
    text-underline-offset: 2px;
}

/* ── LOGIN-BEREICH ──────────────────────────────────────────── */
.wbs-login-section {
    padding-block: 64px;
    background: var(--color-bg-light);
}
.wbs-login-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin-block: 0 24px;
}
.wbs-login-box {
    max-width: 420px;
    margin-inline: auto;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.wbs-login-lost {
    margin-block-start: 12px;
    text-align: center;
    font-size: 0.875rem;
}
.wbs-login-lost a {
    color: var(--wbs-primary-dark);
    text-decoration: none;
}
.wbs-login-lost a:hover {
    text-decoration: underline;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.wbs-footer--landing {
    background: #1a1a1a;
    color: #e5e7eb;
    padding-block: 32px;
}
.wbs-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.wbs-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
}
.wbs-footer__link {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.875rem;
}
.wbs-footer__link:hover {
    color: #fff;
    text-decoration: underline;
}
.wbs-footer__sep {
    color: #4b5563;
}
.wbs-footer__copy {
    margin: 0;
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* ── prefers-reduced-motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── RESPONSIVE — Tablet (≤ 900px) ─────────────────────────── */
@media (max-width: 900px) {
    .wbs-hero__inner {
        grid-template-columns: 1fr;
    }
    .wbs-hero__visual {
        display: none; /* Illustration auf Tablet/Mobile ausblenden */
    }
    .wbs-features__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .wbs-steps__list {
        grid-template-columns: 1fr;
    }
}

/* ── RESPONSIVE — Mobile (≤ 600px) ─────────────────────────── */
@media (max-width: 600px) {
    :root {
        --header-height: 56px;
    }

    .wbs-header__nav {
        display: none;
    }
    .wbs-mobile-menu-toggle {
        display: flex;
    }

    .wbs-hero {
        min-height: auto;
        padding-block: 40px;
    }
    .wbs-hero__title {
        font-size: var(--font-h1-mobile);
    }
    .wbs-hero__subline {
        font-size: 1rem;
    }
    .wbs-hero__ctas {
        flex-direction: column;
    }
    .wbs-hero__ctas .wbs-btn {
        width: 100%;
    }

    .wbs-steps__title {
        font-size: 1.5rem;
    }

    .wbs-reg-cta__title {
        font-size: 1.375rem;
    }
    .wbs-reg-cta .wbs-btn {
        width: 100%;
    }
}
