/* ===== SBB Lohnbüro - Stylesheet (Modern) ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #4A7FB5;
    --primary-dark: #2C5F8A;
    --primary-light: #A8C8E8;
    --silver-blue: #C5D5E4;
    --bg-light: #EDF3F8;
    --bg-white: #FAFCFE;
    --text: #2D3748;
    --text-light: #5A6A7E;
    --white: #ffffff;
    --shadow: 0 2px 12px rgba(44, 95, 138, 0.10);
    --shadow-hover: 0 8px 32px rgba(44, 95, 138, 0.18);
    --radius: 14px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg-white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

img { max-width: 100%; height: auto; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Scroll Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }

/* --- Header & Navigation (Glassmorphism) --- */
.site-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(197, 213, 228, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.4s ease, background 0.4s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 24px rgba(44, 95, 138, 0.10);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    transition: transform var(--transition);
}

.logo:hover { transform: scale(1.03); }

.logo span {
    color: #3A6FA5;
    font-weight: 400;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 4px;
    transition: transform var(--transition);
}

.nav-toggle:hover { transform: scale(1.15); }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 8px 18px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.main-nav a:hover {
    color: var(--primary-dark);
    background: rgba(74, 127, 181, 0.06);
}

.main-nav a.active {
    color: var(--primary-dark);
    font-weight: 600;
}

/* --- Hero Section (Animated Gradient) --- */
.hero {
    background: linear-gradient(-45deg, #1a3a5c, var(--primary-dark), var(--primary), #6ba3d6);
    background-size: 300% 300%;
    animation: heroGradient 12s ease infinite;
    color: var(--white);
    padding: 100px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.06) 0%, transparent 60%),
                radial-gradient(circle at 70% 30%, rgba(255,255,255,0.04) 0%, transparent 50%);
    animation: heroFloat 8s ease-in-out infinite;
    will-change: transform;
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(2%, -2%) rotate(1deg); }
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
    position: relative;
    text-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.hero p {
    font-size: 1.2rem;
    max-width: 680px;
    margin: 0 auto 36px;
    opacity: 0.92;
    line-height: 1.8;
    position: relative;
}

.hero .btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-dark);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
}

.hero .btn:hover {
    background: var(--bg-light);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(0,0,0,0.22);
}

/* --- Section --- */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 44px;
    max-width: 600px;
}

.section-subtitle.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title.centered {
    text-align: center;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--white);
    padding: 0;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(44, 95, 138, 0.12);
    margin-top: -40px;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 36px 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: var(--silver-blue);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.stat-plus {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* --- USP Grid (Warum SBB) --- */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.usp-item {
    text-align: center;
    padding: 28px 20px;
}

.usp-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: inline-block;
    width: 64px;
    height: 64px;
    line-height: 64px;
    background: var(--bg-light);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.usp-item:hover .usp-icon {
    background: var(--primary);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(74, 127, 181, 0.25);
}

.usp-item h3 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.usp-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Steps (Prozess) --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
    z-index: 0;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(74, 127, 181, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-item:hover .step-number {
    transform: scale(1.12);
    box-shadow: 0 8px 28px rgba(74, 127, 181, 0.4);
}

.step-item h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* --- Cards (Modern) --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px 30px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(165, 195, 225, 0.2);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-icon {
    transform: scale(1.2) rotate(-5deg);
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.card p, .card ul {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.7;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    padding: 3px 0;
    padding-left: 18px;
    position: relative;
}

.card ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* --- Branchen (Industries) --- */
.branchen {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.branchen-tag {
    background: var(--white);
    border: 1.5px solid var(--silver-blue);
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--primary-dark);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.branchen-tag:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 127, 181, 0.25);
}

/* --- Software Tags --- */
.software-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}

.software-tag {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.software-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(44, 95, 138, 0.3);
}

/* --- Contact Info --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all var(--transition);
}

.contact-info-item:hover {
    background: var(--bg-light);
    transform: translateX(4px);
}

.contact-info-item .icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all var(--transition);
}

.contact-info-item:hover .icon {
    background: var(--primary);
    color: var(--white);
    filter: brightness(1.5);
}

.contact-info-item .label {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-info-item .value {
    font-weight: 600;
    color: var(--primary-dark);
}

.contact-info-item .value a {
    color: var(--primary-dark);
}

.qr-section {
    text-align: center;
    padding: 36px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(165, 195, 225, 0.2);
    transition: all var(--transition);
}

.qr-section:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.qr-section p {
    margin-top: 16px;
    color: var(--text-light);
    font-size: 0.93rem;
}

#qrcode {
    display: inline-block;
    padding: 16px;
    background: var(--white);
    border-radius: 12px;
}

/* --- Formulare / Downloads --- */
.download-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(165, 195, 225, 0.2);
    position: relative;
    overflow: hidden;
}

.download-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.download-card:hover::after {
    transform: scaleY(1);
}

.download-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-card:hover .download-icon {
    transform: scale(1.15) rotate(-5deg);
}

.download-info h3 {
    font-size: 1.08rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.download-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.btn-download {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 11px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(74, 127, 181, 0.2);
}

.btn-download:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1a3a5c);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 127, 181, 0.35);
}

/* --- Leistungen Detail --- */
.leistung-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: all var(--transition);
}

.leistung-block:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(6px);
    border-left-color: var(--primary-dark);
}

.leistung-block h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.leistung-block ul {
    list-style: none;
    padding: 0;
}

.leistung-block ul li {
    padding: 6px 0 6px 26px;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all var(--transition);
}

.leistung-block ul li:hover {
    color: var(--text);
    transform: translateX(4px);
}

.leistung-block ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    transition: transform var(--transition);
}

.leistung-block ul li:hover::before {
    transform: scale(1.3);
}

/* --- Contact Form --- */
.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(165, 195, 225, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 7px;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--silver-blue);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 127, 181, 0.10);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.btn-submit {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(74, 127, 181, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1a3a5c);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 95, 138, 0.3);
}

.btn-submit:hover::before {
    left: 100%;
}

.alert {
    padding: 16px 22px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    animation: slideDown 0.4s ease;
}

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

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

/* --- Footer --- */
.site-footer {
    background: linear-gradient(135deg, #1a2f47 0%, var(--primary-dark) 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 56px 0 28px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-dark));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .footer-heading {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-col .footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 1px;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-col a {
    transition: all var(--transition);
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Legal Pages --- */
.legal-content h2 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin: 36px 0 12px;
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin: 24px 0 10px;
}

.legal-content p {
    margin-bottom: 12px;
    color: var(--text-light);
}

.legal-content ul {
    margin: 8px 0 16px 24px;
    color: var(--text-light);
}

.legal-content ul li { margin-bottom: 4px; }

/* --- Page Header (Unterseiten) --- */
.page-header {
    background: linear-gradient(-45deg, #1a3a5c, var(--primary-dark), var(--primary));
    background-size: 200% 200%;
    animation: heroGradient 10s ease infinite;
    color: var(--white);
    padding: 56px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
}

.page-header h1 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

.page-header p {
    opacity: 0.88;
    font-size: 1.08rem;
    position: relative;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(44, 95, 138, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(44, 95, 138, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), #1a3a5c);
}

/* --- CTA Section Pulse --- */
.section--alt .btn-download {
    position: relative;
}

.section--alt .btn-download::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(74, 127, 181, 0.45);
    opacity: 0;
    animation: subtlePulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

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

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--silver-blue);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .main-nav.open { display: block; }

    .main-nav ul {
        flex-direction: column;
        padding: 12px;
        gap: 2px;
    }

    .main-nav a {
        padding: 14px 18px;
    }

    .main-nav a::after { display: none; }

    .hero { padding: 60px 0 54px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }

    .section { padding: 52px 0; }
    .section-title { font-size: 1.4rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); margin-top: -28px; }
    .stat-item { padding: 24px 16px; }
    .stat-item:nth-child(2)::after { display: none; }
    .stat-number { font-size: 1.8rem; }

    .usp-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .steps-grid { grid-template-columns: 1fr; gap: 28px; }
    .steps-grid::before { display: none; }

    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

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

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .download-card::after { display: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .container { padding: 0 16px; }
    .card { padding: 26px 22px; }
    .contact-form { padding: 28px 22px; }
}
