/* =========================================================
   Hegau24 — Unified City Page
   ========================================================= */

.hegau-city-page {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 70px;
    box-sizing: border-box;
}


/* =========================================================
   CITY PANORAMA
   ========================================================= */

.hegau-city-panorama {
    width: min(1800px, 94vw);
    margin-left: 50%;
    transform: translateX(-50%);
    margin-right: 0;
    margin-bottom: 34px;
    aspect-ratio: 6 / 1;
}

.hegau-city-panorama__image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #173b59 0%,
            #23658a 48%,
            #5b9f9c 100%
        );

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hegau-city-panorama__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(12, 35, 53, 0.78) 0%,
            rgba(12, 35, 53, 0.40) 55%,
            rgba(12, 35, 53, 0.12) 100%
        );
}

.hegau-city-panorama__content {
    position: relative;
    z-index: 2;

    max-width: 760px;
    padding: 42px 46px;
    color: #ffffff;
}

.hegau-city-panorama__eyebrow {
    display: inline-block;
    margin-bottom: 10px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;

    color: rgba(255,255,255,0.78);
}

.hegau-city-panorama__title {
    margin: 0 0 12px;

    font-size: clamp(38px, 6vw, 68px);
    line-height: 0.98;
    font-weight: 800;

    color: #ffffff;
}

.hegau-city-panorama__description {
    max-width: 650px;
    margin: 0;

    font-size: 17px;
    line-height: 1.55;

    color: rgba(255,255,255,0.90);
}


/* =========================================================
   CITY INTRO
   ========================================================= */

.hegau-city-intro {
    margin: 0 0 28px;
}

.hegau-city-intro__eyebrow {
    display: block;
    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #1683d8;
}

.hegau-city-intro h2 {
    margin: 0 0 10px;

    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    font-weight: 800;

    color: #20364d;
}

.hegau-city-intro p {
    max-width: 760px;
    margin: 0;

    font-size: 16px;
    line-height: 1.6;

    color: #718198;
}


/* =========================================================
   CATEGORY GRID
   ========================================================= */

.hegau-city-categories {
    margin-bottom: 38px;
}

.hegau-category-grid__items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   CATEGORY CARD
   ========================================================= */

.hegau-category-card {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    min-height: 178px;
    padding: 24px;

    box-sizing: border-box;

    text-decoration: none;

    background: #ffffff;
    border: 1px solid #e4ebf1;
    border-radius: 18px;

    box-shadow: 0 4px 16px rgba(30,60,90,0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.hegau-category-card:hover {
    transform: translateY(-4px);

    border-color: #cbdce8;

    box-shadow: 0 14px 32px rgba(30,60,90,0.11);
}

.hegau-category-card__icon {
    display: flex;

    width: 52px;
    height: 52px;
    margin-bottom: 20px;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #edf6fb;
}

.hegau-category-card__icon svg {
    width: 29px;
    height: 29px;

    fill: none;
    stroke: #1683d8;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hegau-category-card__title {
    display: block;
    margin-bottom: 7px;

    font-size: 20px;
    line-height: 1.2;
    font-weight: 750;

    color: #20364d;
}

.hegau-category-card__count {
    display: block;

    font-size: 14px;
    line-height: 1.4;

    color: #7a899b;
}


/* =========================================================
   CATEGORY ACCENTS
   ========================================================= */

.hegau-category-card--work .hegau-category-card__icon {
    background: #eaf5ec;
}

.hegau-category-card--work .hegau-category-card__icon svg {
    stroke: #3b8f57;
}

.hegau-category-card--housing .hegau-category-card__icon {
    background: #fff4e7;
}

.hegau-category-card--housing .hegau-category-card__icon svg {
    stroke: #e18a28;
}

.hegau-category-card--companies .hegau-category-card__icon {
    background: #edf1ff;
}

.hegau-category-card--companies .hegau-category-card__icon svg {
    stroke: #5d6fd3;
}

.hegau-category-card--events .hegau-category-card__icon {
    background: #f8edf8;
}

.hegau-category-card--events .hegau-category-card__icon svg {
    stroke: #a05ba3;
}

.hegau-category-card--useful .hegau-category-card__icon {
    background: #edf7f7;
}

.hegau-category-card--useful .hegau-category-card__icon svg {
    stroke: #348e91;
}

.hegau-category-card--ads .hegau-category-card__icon,
.hegau-category-card--offers .hegau-category-card__icon,
.hegau-category-card--transport .hegau-category-card__icon {
    background: #f3f5f7;
}

.hegau-category-card--ads .hegau-category-card__icon svg,
.hegau-category-card--offers .hegau-category-card__icon svg,
.hegau-category-card--transport .hegau-category-card__icon svg {
    stroke: #8a98a7;
}


/* =========================================================
   COMING SOON
   ========================================================= */

.hegau-category-card--soon {
    cursor: default;
    opacity: 0.72;
}

.hegau-category-card--soon:hover {
    transform: none;
    border-color: #e4ebf1;
    box-shadow: 0 4px 16px rgba(30,60,90,0.04);
}


/* =========================================================
   ADVERTISING
   ========================================================= */

.hegau-city-advertising {
    margin: 0 0 44px;
}

.hegau-city-advertising__card {
    display: flex;
    align-items: center;
    gap: 22px;

    padding: 24px 28px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #f4f8fb 0%,
            #eef5f8 100%
        );

    border: 1px solid #dce8ee;
}

.hegau-city-advertising__icon {
    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: #ffffff;

    font-size: 25px;

    box-shadow: 0 5px 16px rgba(30,60,90,0.08);
}

.hegau-city-advertising__content {
    flex: 1;
}

.hegau-city-advertising__eyebrow {
    display: block;
    margin-bottom: 5px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;

    color: #1683d8;
}

.hegau-city-advertising__content h2 {
    margin: 0 0 5px;

    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;

    color: #20364d;
}

.hegau-city-advertising__content p {
    margin: 0;

    font-size: 14px;
    line-height: 1.5;

    color: #718198;
}

.hegau-city-advertising__button {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 18px;

    border-radius: 10px;

    background: #1683d8;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.hegau-city-advertising__button:hover {
    background: #106eaf;
    color: #ffffff;
    transform: translateY(-2px);
}


/* =========================================================
   CITY NEWS
   ========================================================= */

.hegau-city-news {
    margin-top: 0;
}

.hegau-city-news__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
}

.hegau-city-news__eyebrow {
    display: block;
    margin-bottom: 6px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #1683d8;
}

.hegau-city-news__heading h2 {
    margin: 0;

    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 800;

    color: #20364d;
}

.hegau-city-news__heading > a {
    flex: 0 0 auto;

    font-size: 14px;
    font-weight: 700;

    color: #1683d8;
    text-decoration: none;
}

.hegau-city-news__heading > a:hover {
    text-decoration: underline;
}

.hegau-city-news__placeholder {
    min-height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    box-sizing: border-box;

    border: 1px dashed #ccd9e3;
    border-radius: 16px;

    background: #fafcfd;

    text-align: center;

    font-size: 15px;
    line-height: 1.5;

    color: #8291a1;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .hegau-city-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hegau-category-grid__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .hegau-city-page {
        padding: 0 14px 45px;
    }

    .hegau-city-panorama {
        margin-bottom: 26px;
    }

    .hegau-city-panorama__image {
        min-height: 230px;
        border-radius: 18px;
    }

    .hegau-city-panorama__content {
        padding: 30px 24px;
    }

    .hegau-city-panorama__title {
        font-size: 42px;
    }

    .hegau-city-panorama__description {
        font-size: 15px;
    }

    .hegau-city-intro {
        margin-bottom: 22px;
    }

    .hegau-category-grid__items {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .hegau-category-card {
        min-height: 150px;
        padding: 21px;
    }

    .hegau-city-advertising__card {
        flex-wrap: wrap;
        padding: 21px;
    }

    .hegau-city-advertising__content {
        flex: 1 1 calc(100% - 76px);
    }

    .hegau-city-advertising__button {
        width: 100%;
        justify-content: center;
    }

    .hegau-city-news__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

}
