/* =====================================================
TOWNWORK STARTSEITE CONTENT
Datei: startseite-content.css
===================================================== */

:root {
    --tw-blue: #0d4f93;
    --tw-blue-dark: #073568;
    --tw-orange: #ff7417;
    --tw-orange-dark: #e65e08;
    --tw-text: #0b2442;
    --tw-muted: #3c4d5e;
    --tw-border: #d8e2ee;
    --tw-white: #ffffff;
    --tw-shadow-soft: 0 12px 32px rgba(13, 79, 147, 0.14);
}

* {
    box-sizing: border-box;
}

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

.tw-home-page {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

/* HERO */

.home-hero {
    position: relative;
    min-height: 475px;
    border-top: 3px solid var(--tw-orange);
    background: linear-gradient(90deg, #ffffff 0%, #f8fafc 42%, #edf4fb 100%);
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Hintergrundbild erstreckt sich über die gesamte Hero-Breite. */
    display: block;
    overflow: hidden;
}

.home-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Das Motiv bleibt durchgehend sichtbar; links bleibt der Text gut lesbar. */
    background: linear-gradient(90deg,
        rgba(255,255,255,.93) 0%,
        rgba(255,255,255,.85) 24%,
        rgba(255,255,255,.63) 43%,
        rgba(255,255,255,.17) 70%,
        rgba(255,255,255,0) 100%
    );
}

.home-hero-bg img {
    display: block;
    width: 100%;
    min-width: 0;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 64px));
    min-height: 475px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    grid-template-areas: "content side" "offer side";
    gap: 24px 36px;
    align-items: center;
}

.home-hero-content {
    grid-area: content;
    min-width: 0;
    padding: 42px 0 0;
}

.home-hero-content h1 {
    margin: 0 0 20px;
    font-size: clamp(30px, 4.3vw, 42px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1.8px;
    color: var(--tw-blue-dark);
}

.home-subline {
    margin: 0 0 17px;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.35;
    font-weight: 700;
    color: #1f2f40;
}

.home-checklist {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.home-checklist li {
    position: relative;
    padding-left: 34px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    color: #2e3d4c;
}

.home-checklist li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: -2px;
    color: #2db734;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.home-offer-hint {
    grid-area: offer;
    width: min(620px, 100%);
    min-height: 82px;
    margin: 0 0 42px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    background: #eaf4ff;
    border: 1px solid #cfe3f8;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(13, 79, 147, 0.10);
}

.home-offer-hint-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-offer-hint-icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

.home-offer-hint-text {
    min-width: 0;
}

.home-offer-hint-text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
    color: var(--tw-blue-dark);
}

.home-offer-hint-text span {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    color: #1f2f40;
}

.home-offer-hint-btn {
    min-width: 176px;
    height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 2px solid #285f9d;
    border-radius: 6px;
    color: var(--tw-blue-dark);
    background: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.home-offer-hint-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.home-primary-btn,
.home-secondary-btn {
    min-height: 54px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
}

.home-primary-btn {
    color: #ffffff;
    background: linear-gradient(180deg, #ff8425 0%, var(--tw-orange-dark) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 4px 9px rgba(230, 94, 8, .32);
}

.home-secondary-btn {
    min-width: 190px;
    color: var(--tw-blue-dark);
    background: rgba(255,255,255,.84);
    border: 2px solid #285f9d;
}

.home-hero-side {
    grid-area: side;
    width: 100%;
    min-width: 0;
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.home-price-card {
    width: 100%;
    margin-top: 0;
    padding: 22px 18px 18px;
    text-align: center;
    background: rgba(255,255,255,.94);
    border: 3px solid rgba(255,255,255,.9);
    border-radius: 11px;
    box-shadow: 0 12px 26px rgba(7, 53, 104, .24);
}

.home-price-card strong,
.home-price-card span,
.home-price-card b,
.home-price-card small {
    display: block;
}

.home-price-card strong {
    margin-bottom: 14px;
    font-size: 20px;
    line-height: 1.3;
    color: var(--tw-blue-dark);
}

.home-price-card span {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
    color: #273747;
}

.home-price-card b {
    margin: 5px 0 8px;
    font-size: 46px;
    line-height: 1;
    font-weight: 900;
    color: var(--tw-orange);
}

.home-price-card .home-price-payment {
    margin: 14px 0 4px;
    color: var(--tw-blue-dark);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.home-price-card small {
    color: #3c4d5e;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}

/* KI-AGENT KONTAKTBOX – UNTER DER PREISBOX */

.home-ai-card {
    width: 100%;
    padding: 18px;
    background: rgba(248, 251, 255, 0.97);
    border: 1px solid #c5d9f0;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(7, 53, 104, .20);
}

.home-ai-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-ai-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #1653a6;
    color: #ffffff;
}

.home-ai-card-icon svg {
    width: 25px;
    height: 25px;
}

.home-ai-card-heading h2 {
    margin: 0;
    color: var(--tw-blue-dark);
    font-size: 16px;
    line-height: 1.25;
    font-weight: 900;
}

.home-ai-card p {
    margin: 10px 0 14px 58px;
    color: #263b54;
    font-size: 13px;
    line-height: 1.5;
}

.home-ai-card-contact {
    padding: 12px 13px 11px;
    background: #ffffff;
    border: 1px solid #b8cdeb;
    border-radius: 8px;
}

.home-ai-call {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--tw-blue-dark);
    text-decoration: none;
}

.home-ai-call:hover strong,
.home-ai-call:focus-visible strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-ai-phone-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    color: #1653a6;
}

.home-ai-call strong {
    display: block;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
    white-space: nowrap;
}

.home-ai-call small {
    display: block;
    margin-top: 3px;
    color: #38516e;
    font-size: 11px;
    line-height: 1.3;
}

.home-ai-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 8px 0 0 38px;
    color: #1653a6;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-ai-whatsapp:hover {
    color: var(--tw-orange-dark);
}

.home-ai-call:focus-visible,
.home-ai-whatsapp:focus-visible {
    outline: 2px solid var(--tw-orange);
    outline-offset: 3px;
    border-radius: 3px;
}

/* STEPS GRAFIK */

.home-steps-image-section {
    position: relative;
    z-index: 4;
    margin-top: 0;
    padding: 0;
    background: transparent;
}

.home-steps-image-inner {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
}

.home-steps-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(13, 79, 147, 0.12));
}

/* LOCATIONS */

.home-locations {
    padding: 20px 0 24px;
}

.home-section-inner {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
}

.home-section-inner h2 {
    margin: 0 0 12px;
    text-align: center;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
    color: var(--tw-blue-dark);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.location-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--tw-border);
    border-radius: 8px;
    box-shadow: var(--tw-shadow-soft);
}

.location-card > img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    display: block;
    background: #eaf1f7;
}

.location-card-body {
    padding: 15px 20px 15px;
}

.location-card h3 {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
    color: var(--tw-orange);
}

.location-card p {
    min-height: 46px;
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: #2d3c4b;
}

.location-card a {
    min-height: 32px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #245892;
    border-radius: 5px;
    color: var(--tw-blue-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

/* TRUST BAR */

.home-trustbar {
    padding: 0 0 54px;
}

.home-trustbar-inner {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #ffffff;
    border: 1px solid var(--tw-border);
    border-radius: 10px;
    box-shadow: var(--tw-shadow-soft);
}

.home-trust-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.home-trust-item:not(:last-child) {
    border-right: 1px solid var(--tw-border);
    padding-right: 16px;
}

.home-trust-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.home-trust-icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

.home-trust-item h3 {
    margin: 0 0 5px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
    color: var(--tw-orange);
}

.home-trust-item p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    color: #2d3c4b;
}

/* RESPONSIVE */

@media (max-width: 1160px) {

    .home-steps-inner {
    grid-template-columns: 1fr;
    }

    .steps-flow {
        flex-wrap: wrap;
    }

    .location-grid,
    .home-trustbar-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-trust-item:not(:last-child) {
        border-right: 0;
        padding-right: 0;
    }
}

@media (max-width: 860px) {
    .home-hero-inner,
    .home-section-inner,
    .home-steps-image-inner,
    .home-trustbar-inner {
        width: min(100% - 34px, 720px);
    }

    .home-hero-inner {
        min-height: auto;
        padding: 42px 0 90px;
        grid-template-columns: 1fr;
        grid-template-areas: "content" "side" "offer";
    }

    .home-hero-content {
        padding: 0;
    }

    .home-offer-hint {
        margin: 0;
    }

    .home-hero-side {
        width: min(100%, 340px);
        align-items: center;
        justify-self: start;
        margin: 0;
    }

    .home-hero-bg img {
        width: 100%;
        min-width: 0;
        opacity: .32;
    }

    .home-hero-bg::before {
        background: rgba(255,255,255,.82);
    }

    .home-steps-image-section {
        margin-top: -58px;
    }
}

@media (max-width: 620px) {

    .home-ai-call strong {
        font-size: clamp(14px, 4.2vw, 17px);
    }

    .home-offer-hint {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        margin-top: 0;
    }

    .home-offer-hint-btn {
        grid-column: 1 / -1;
        width: 100%;
    }
    
    .home-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-primary-btn,
    .home-secondary-btn {
        width: 100%;
    }

    .home-steps-image-section {
        margin-top: -34px;
        padding-bottom: 18px;
    }

    .home-steps-image-inner {
        width: min(100% - 24px, 520px);
    }

    .location-grid,
    .home-trustbar-inner {
        grid-template-columns: 1fr;
    }
}


/* STABILISIERUNG GEGEN GLOBALE THEME-OVERRIDES */
.tw-home-page .home-section-inner,
.tw-home-page .home-trustbar-inner,
.tw-home-page .location-grid,
.tw-home-page .location-card,
.tw-home-page .location-card-body,
.tw-home-page .home-trust-item,
.tw-home-page .home-trust-item > div {
    min-width: 0;
}

.tw-home-page .home-section-inner h2 {
    display: block !important;
    width: 100%;
    text-align: center !important;
}

.tw-home-page .location-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
    align-items: stretch !important;
}

.tw-home-page .location-grid > .location-card {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.tw-home-page .location-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    overflow: hidden !important;
}

.tw-home-page .location-card > img {
    display: block !important;
    width: 100% !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    object-fit: cover !important;
    object-position: center center !important;
    flex: 0 0 96px !important;
}

.tw-home-page .location-card-body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
}

.tw-home-page .location-card p {
    min-height: 46px !important;
}

.tw-home-page .location-card a {
    width: 100% !important;
    margin-top: auto !important;
}

.tw-home-page .home-trustbar-inner {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    align-items: stretch !important;
}

.tw-home-page .home-trust-item {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 12px !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

@media (max-width: 1160px) {
    .tw-home-page .location-grid,
    .tw-home-page .home-trustbar-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .tw-home-page .location-grid,
    .tw-home-page .home-trustbar-inner {
        grid-template-columns: 1fr !important;
    }
}

/* Ein gut lesbarer Link zu Tarifen und Zahlungsweisen. */
.tw-home-page a.home-pricing-link,
.tw-home-page a.home-pricing-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 42px;
    margin-top: 10px;
    padding: 9px 14px;
    border: 1px solid #b5cce5;
    border-radius: 6px;
    background: #ffffff;
    color: #073568;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

.tw-home-page a.home-pricing-link:hover {
    border-color: #073568;
    background: #eaf4ff;
    color: #073568;
    text-decoration-thickness: 2px;
}

.tw-home-page a.home-pricing-link:focus-visible,
.tw-home-page a.home-primary-btn:focus-visible,
.tw-home-page a.home-secondary-btn:focus-visible {
    outline: 3px solid #073568;
    outline-offset: 3px;
}
