/* =====================================================
TOWNWORK SO FUNKTIONIERT'S CONTENT
Datei: so-funktionierts-content.css
===================================================== */

:root {
    --tw-blue: #0d4f93;
    --tw-blue-dark: #061f5f;
    --tw-orange: #ff7417;
    --tw-orange-dark: #e65e08;
    --tw-text: #10244a;
    --tw-muted: #334468;
    --tw-border: #dfe7f2;
    --tw-white: #ffffff;
    --tw-soft: #f4f7fc;
    --tw-shadow-soft: 0 18px 42px rgba(8, 38, 94, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--tw-text);
    background: #ffffff;
}

.how-page {
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 6%, rgba(13, 79, 147, 0.08), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfe 52%, #ffffff 100%);
}

/* HERO */

.how-hero {
    position: relative;
    min-height: 310px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.how-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 54px 0 92px;
    text-align: center;
}

.how-hero h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--tw-blue-dark);
}

.how-title-line {
    width: 76px;
    height: 4px;
    margin: 28px auto 28px;
    background: var(--tw-orange);
    border-radius: 99px;
}

.how-hero p {
    margin: 0;
    font-size: clamp(18px, 1.8vw, 25px);
    line-height: 1.55;
    font-weight: 500;
    color: #28375d;
}

.how-skyline {
    position: absolute;
    bottom: -6px;
    width: 58%;
    height: 360px;
    opacity: 0.38;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom center;
    pointer-events: none;
    z-index: 0;
}

.how-skyline-left {
    left: -40px;
    background-image: url('/img/sofunktionierts_skyline_left.png');
    background-position: bottom left;
}

.how-skyline-right {
    right: -40px;
    background-image: url('/img/sofunktionierts_skyline_right.png');
    background-position: bottom right;
}

/* STEPS */

.how-steps {
    position: relative;
    z-index: 3;
    margin-top: -8px;
    padding: 0 0 42px;
}

.how-steps-inner {
    position: relative;
    width: min(1040px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 34px;
}

.how-step-card {
    min-height: 420px;
    padding: 34px 34px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(222, 231, 244, 0.92);
    border-radius: 20px;
    box-shadow: var(--tw-shadow-soft);
}

.how-step-icon {
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #f4f6fb 0%, #edf2fa 100%);
}

.how-step-icon img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    display: block;
}

.how-step-number {
    width: 48px;
    height: 48px;
    margin: -4px auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(180deg, #082d86 0%, #061f5f 100%);
    box-shadow: 0 8px 18px rgba(6, 31, 95, 0.24);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.how-step-card h2 {
    margin: 0 0 20px;
    font-size: 25px;
    line-height: 1.18;
    font-weight: 900;
    color: var(--tw-blue-dark);
}

.how-step-card p {
    max-width: 295px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 500;
    color: #25375d;
}

.how-arrow {
    position: absolute;
    z-index: 5;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
}

.how-arrow img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.how-arrow::before,
.how-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 48px;
    border-top: 3px dashed rgba(8, 45, 134, 0.48);
    transform: translateY(-50%);
}

.how-arrow::before {
    right: 42px;
}

.how-arrow::after {
    left: 42px;
}

.how-arrow-1 {
    left: calc(33.333% - 17px);
    top: 185px;
}

.how-arrow-2 {
    left: calc(66.666% - 17px);
    top: 185px;
}

.how-arrow-3 {
    left: calc(33.333% - 17px);
    top: 640px;
}

.how-arrow-4 {
    left: calc(66.666% - 17px);
    top: 640px;
}

/* SECURITY */

.how-security {
    padding: 0 0 58px;
}

.how-security-inner {
    width: min(1040px, calc(100% - 64px));
    min-height: 150px;
    margin: 0 auto;
    padding: 30px 72px;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    background: linear-gradient(180deg, #f1f5fb 0%, #eaf1fa 100%);
    border: 1px solid rgba(222, 231, 244, 0.95);
    border-radius: 18px;
    box-shadow: var(--tw-shadow-soft);
}

.how-security-icon {
    width: 108px;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(8, 38, 94, 0.10);
}

.how-security-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.how-security h2 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 900;
    color: var(--tw-blue-dark);
}

.how-security p {
    max-width: 820px;
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #2b3b61;
}

/* RESPONSIVE */

@media (max-width: 1040px) {
    .how-steps-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .how-arrow {
        display: none;
    }

    .how-step-card {
        min-height: 390px;
    }
}

@media (max-width: 760px) {
    .how-hero-inner,
    .how-steps-inner,
    .how-security-inner {
        width: min(100% - 34px, 620px);
    }

    .how-hero-inner {
        padding: 42px 0 60px;
    }

    .how-steps-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .how-step-card {
        min-height: auto;
        padding: 30px 24px 34px;
    }

    .how-step-icon {
        width: 132px;
        height: 132px;
    }

    .how-step-icon img {
        width: 72px;
        height: 72px;
    }

    .how-security-inner {
        padding: 28px 24px;
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }

    .how-security-icon {
        margin: 0 auto;
    }
}
