/* ==========================================================
   Landing Page Styles — scoped under .landing
   Design-System: Evelyn Scholz Immobilien
   Primary: #086738 | Font: Roboto Condensed / RobotoRegular
   ========================================================== */

/* ---- RESET & BASE ---- */
.landing {
    color: #333;
    font-family: RobotoRegular, 'Roboto', Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Theme setzt section { min-height:100vh; padding:100px 0 } — hier aufheben */
.landing section {
    min-height: 0 !important;
    padding: 40px 0 !important;
    height: auto !important;
}

.landing *,
.landing *::before,
.landing *::after {
    box-sizing: border-box;
}

/* ---- TYPOGRAPHY ---- */
.landing__h1 {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-weight: 700;
    font-size: 38px;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 20px;
    text-transform: none;
}

.landing__h1-sub {
    font-weight: 400;
    font-size: 0.7em;
    display: block;
    margin-top: 5px;
    opacity: 0.85;
}

.landing__h2 {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.3;
    color: #000;
    margin: 0 0 20px;
}

.landing__h2--lines {
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.landing__h2--lines::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #086738;
    margin: 15px auto 0;
}

.landing__h3 {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
    color: #000;
    margin: 0 0 10px;
}

.landing__h3--accent {
    color: #086738;
    font-size: 24px;
    margin-bottom: 15px;
}

.landing__text {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.landing__text--intro {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

/* ---- HERO ---- */
.landing__hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.landing__hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.landing__hero-bg .media-placeholder {
    height: 100%;
}

.landing__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%);
    z-index: 1;
}

.landing__hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 80px;
}

.landing__hero-text {
    font-family: RobotoRegular, 'Roboto', Arial, sans-serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.6;
}

.landing__hero-phone {
    display: inline-block;
    color: #fff;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid #fff;
    padding: 10px 25px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.landing__hero-phone:hover {
    background: #fff;
    color: #086738;
    text-decoration: none;
}

.landing__hero-phone i {
    margin-right: 8px;
}

/* ---- SECTIONS ---- */
.landing__section {
    padding: 80px 0;
}

.landing__section:nth-child(even) {
    background: #f8f9fa;
}

/* ---- CTA BLOCKS ---- */
.landing__cta {
    padding: 60px 0;
    background: #086738;
}

.landing__cta .landing__h2 {
    color: #fff;
}

.landing__cta .landing__text {
    color: rgba(255,255,255,0.9);
}

.landing__cta--sell {
    background: #086738;
}

.landing__cta--buy {
    background: #065a30;
}

.landing__cta--commercial {
    background: #0a7a44;
}

/* ---- BUTTONS ---- */
.landing__btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.landing__btn {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    border-radius: 3px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 220px;
}

/* Primary: schwarzer Rahmen, weißer Hintergrund, schwarzer Text */
.landing__btn--primary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

.landing__btn--primary:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    text-decoration: none;
}

/* Secondary: grüner Rahmen, transparent, grüner Text */
.landing__btn--secondary {
    background: transparent;
    color: #086738;
    border: 2px solid #086738;
}

.landing__btn--secondary:hover {
    background: #086738;
    color: #fff;
    border-color: #086738;
    text-decoration: none;
}

/* Buttons innerhalb CTA-Blöcke (grüner Hintergrund) */
.landing__cta .landing__btn--primary {
    background: #fff;
    color: #000;
    border-color: #000;
}

.landing__cta .landing__btn--primary:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    text-decoration: none;
}

.landing__cta .landing__btn--secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.landing__cta .landing__btn--secondary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    text-decoration: none;
}

/* ---- MEDIA PLACEHOLDERS ---- */
.media-placeholder {
    background: #e0e5e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    letter-spacing: 0.5px;
    border: 2px dashed #c5ccc8;
    border-radius: 4px;
    overflow: hidden;
}

.media-placeholder span {
    padding: 15px;
    text-align: center;
}

.media-placeholder--hero {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    border-radius: 0;
    background: linear-gradient(135deg, #086738 0%, #0a7a44 50%, #065a30 100%);
    color: rgba(255,255,255,0.4);
    font-size: 18px;
}

.media-placeholder--card {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 15px;
}

.media-placeholder--landscape {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
}

/* ---- HIGHLIGHTS GRID ---- */
.landing__highlights {
    margin-top: 20px;
}

.landing__highlight-card {
    background: #fff;
    border-radius: 4px;
    padding: 0 0 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing__highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.landing__highlight-card .media-placeholder--card {
    border-radius: 0;
    border: none;
    border-bottom: 2px dashed #c5ccc8;
}

.landing__highlight-card h3,
.landing__highlight-card p {
    padding: 0 20px;
}

.landing__highlight-card h3 {
    padding-top: 15px;
}

.landing__highlight-card p {
    color: #555;
    font-size: 15px;
    margin: 0;
}

/* ---- TRUST BOX ---- */
.landing__trust {
    margin-top: 40px;
}

.landing__trust-box {
    background: #f0f7f3;
    border-left: 4px solid #086738;
    padding: 30px 35px;
    border-radius: 0 4px 4px 0;
}

/* ---- WORK SECTION ---- */
.landing__work .media-placeholder {
    margin-bottom: 0;
}

.landing__work .landing__h2 {
    margin-top: 20px;
}

/* ---- SERVICES ---- */
.landing__services {
    background: #fff;
}

.landing__services-grid {
    margin-top: 40px;
}

.landing__service-item {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.landing__service-item:hover {
    transform: translateY(-3px);
}

.landing__service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #086738;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing__service-icon svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.landing__service-item p {
    color: #555;
    font-size: 15px;
    margin: 0;
}

/* ---- PROCESS TIMELINE ---- */
.landing__process {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.landing__timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.landing__timeline-step {
    flex: 1 1 180px;
    max-width: 200px;
    text-align: center;
    position: relative;
}

.landing__timeline-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #086738;
    color: #fff;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.landing__timeline-text strong {
    display: block;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 16px;
    margin-bottom: 5px;
}

.landing__timeline-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ---- CONTACT SECTION ---- */
.landing__contact {
    background: #f8f9fa;
}

.landing__contact-form {
    background: #fff;
    padding: 35px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

/* CF7 form styling within landing */
.landing__contact-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 15px;
}

.landing__contact-form input[type="text"],
.landing__contact-form input[type="email"],
.landing__contact-form input[type="tel"],
.landing__contact-form textarea,
.landing__contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: RobotoRegular, 'Roboto', Arial, sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
}

.landing__contact-form input:focus,
.landing__contact-form textarea:focus {
    outline: none;
    border-color: #086738;
}

.landing__contact-form input[type="submit"] {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    padding: 14px 30px;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.landing__contact-form input[type="submit"]:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.landing__contact-info {
    margin-bottom: 30px;
}

.landing__contact-card {
    background: #fff;
    padding: 35px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.landing__contact-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.landing__contact-detail {
    font-size: 15px;
    color: #444;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.landing__contact-detail i {
    color: #086738;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.landing__contact-detail a {
    color: #086738;
    text-decoration: none;
}

.landing__contact-detail a:hover {
    text-decoration: underline;
}

/* ---- STICKY BAR (MOBILE) ---- */
.landing__sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    text-align: center;
}

.landing__sticky-bar .landing__btn {
    width: 100%;
    background: #000;
    color: #fff;
    border-color: #000;
    padding: 12px 20px;
}

.landing__sticky-bar .landing__btn:hover {
    background: #333;
    border-color: #333;
    text-decoration: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .landing__hero {
        min-height: 400px;
    }

    .media-placeholder--hero {
        min-height: 400px;
    }

    .landing__h1 {
        font-size: 30px;
    }

    .landing__h2 {
        font-size: 26px;
    }

    .landing__hero-text {
        font-size: 17px;
    }

    .landing__section {
        padding: 60px 0;
    }

    .landing__cta {
        padding: 50px 0;
    }

    .landing__work .col-lg-6:first-child {
        margin-bottom: 30px;
    }

    .landing__timeline {
        flex-direction: column;
        align-items: center;
    }

    .landing__timeline-step {
        max-width: 300px;
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: 15px;
    }

    .landing__timeline-num {
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    .landing__hero {
        min-height: 350px;
    }

    .media-placeholder--hero {
        min-height: 350px;
    }

    .landing__hero-content {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .landing__h1 {
        font-size: 26px;
    }

    .landing__h2 {
        font-size: 22px;
    }

    .landing__h3 {
        font-size: 18px;
    }

    .landing__text--intro {
        font-size: 16px;
    }

    .landing__section {
        padding: 40px 0;
    }

    .landing__cta {
        padding: 40px 0;
    }

    .landing__btn {
        min-width: 100%;
    }

    .landing__btn-group {
        flex-direction: column;
    }

    .landing__highlight-card {
        margin-bottom: 20px;
    }

    .landing__trust-box {
        padding: 20px 25px;
    }

    .landing__contact-form,
    .landing__contact-card {
        padding: 25px;
    }

    /* Platz für Sticky Bar */
    .landing__contact {
        padding-bottom: 100px;
    }
}

@media (min-width: 992px) {
    .landing__h1 {
        font-size: 48px;
    }

    .landing__hero {
        min-height: 550px;
    }

    .media-placeholder--hero {
        min-height: 550px;
    }

    .landing__work .col-lg-6:last-child {
        padding-left: 50px;
    }

    .landing__work .landing__h2 {
        margin-top: 0;
    }
}

/* ==========================================================
   EINZUGSGEBIET — Eigene Komponenten
   Template: page-einzugsgebiet.php
   ========================================================== */

/* ---- Eyebrow / Kicker ---- */
.landing__eyebrow {
    display: block;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #086738;
    margin-bottom: 12px;
}

.landing__hero .landing__eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

/* ---- Offset für absolut-positionierten Header (75px auf Nicht-Home-Seiten) ---- */
body:not(.home) #landing-einzugsgebiet {
    padding-top: 75px;
}

/* ---- Hero full-width image ---- */
.eg-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ---- Section padding overrides (hero theme forces 40px) ---- */
.landing .eg-section {
    padding: 80px 0 !important;
}

.landing .eg-section--districts {
    background-color: #f8f9fa;
}

.landing .eg-section--places {
    background-color: #fff;
}

.landing .eg-section--expertise {
    background-color: #f8f9fa;
}

/* ---- Section intro block ---- */
.eg-section-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.eg-section-intro .landing__text {
    font-size: 17px;
    margin: 0;
}

.eg-section-intro .landing__text a {
    color: #086738;
    text-decoration: none;
}

.eg-section-intro .landing__text a:hover {
    text-decoration: underline;
}

/* ---- Grids ---- */
.eg-grid {
    display: grid;
    gap: 20px;
}

.eg-grid--cities {
    grid-template-columns: repeat(3, 1fr);
}

.eg-grid--districts {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.eg-grid--places {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .eg-grid--cities,
    .eg-grid--districts {
        grid-template-columns: repeat(2, 1fr);
    }

    .eg-grid--places {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .eg-grid--cities {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .eg-grid--districts {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .eg-grid--places {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .landing .eg-section {
        padding: 50px 0 !important;
    }
}

/* ---- Region Tile (image-based, large) ---- */
.eg-tile {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    background: #1a3020;
    cursor: pointer;
}

.eg-tile--city {
    aspect-ratio: 4 / 3;
}

.eg-tile--district {
    aspect-ratio: 3 / 2;
}

/* Image */
.eg-tile__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease;
    display: block;
}

/* Gradient placeholder (shown until image is set) */
.eg-tile__placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #0f2d1c 0%, #086738 60%, #0a7a44 100%);
    transition: transform 0.55s ease;
}

.eg-tile__placeholder--dark {
    background: linear-gradient(145deg, #1a1a1a 0%, #2e4a38 60%, #3a5a44 100%);
}

/* Dark gradient overlay at bottom */
.eg-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.70) 0%,
        rgba(0, 0, 0, 0.20) 55%,
        rgba(0, 0, 0, 0.00) 100%
    );
    z-index: 1;
    transition: background 0.35s ease;
}

/* Text content anchored to bottom */
.eg-tile__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px;
    z-index: 2;
}

.eg-tile--district .eg-tile__content {
    padding: 14px 16px;
}

.eg-tile__name {
    display: block;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 4px;
}

.eg-tile--district .eg-tile__name {
    font-size: 17px;
}

.eg-tile__sub {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.70);
    transition: color 0.25s ease;
}

.eg-tile__sub svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

/* ---- Tile hover ---- */
.eg-tile:hover {
    text-decoration: none;
}

.eg-tile:hover .eg-tile__img,
.eg-tile:hover .eg-tile__placeholder {
    transform: scale(1.06);
}

.eg-tile:hover .eg-tile__overlay {
    background: linear-gradient(
        0deg,
        rgba(8, 103, 56, 0.80) 0%,
        rgba(8, 103, 56, 0.30) 55%,
        rgba(0, 0, 0, 0.00) 100%
    );
}

.eg-tile:hover .eg-tile__sub {
    color: #fff;
}

.eg-tile:hover .eg-tile__sub svg {
    transform: translateX(4px);
}

/* ---- Place Tile (text-based, small) ---- */
.eg-place-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e0e5e2;
    border-left: 3px solid #086738;
    border-radius: 0 4px 4px 0;
    padding: 20px 22px;
    min-height: 80px;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.eg-place-tile__name {
    display: block;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #222;
    margin-bottom: 3px;
    transition: color 0.25s ease;
}

.eg-place-tile__sub {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    letter-spacing: 0.3px;
    color: #999;
    transition: color 0.25s ease;
}

.eg-place-tile__sub svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.eg-place-tile:hover {
    background: #086738;
    border-color: #086738;
    transform: translateX(5px);
    text-decoration: none;
}

.eg-place-tile:hover .eg-place-tile__name {
    color: #fff;
}

.eg-place-tile:hover .eg-place-tile__sub {
    color: rgba(255, 255, 255, 0.80);
}

.eg-place-tile:hover .eg-place-tile__sub svg {
    transform: translateX(3px);
}

/* ---- Expertise section ---- */
.eg-expertise__text .landing__text a {
    color: #086738;
    text-decoration: none;
}

.eg-expertise__text .landing__text a:hover {
    text-decoration: underline;
}

.eg-expertise__img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.eg-expertise__media {
    padding-left: 40px;
}

@media (max-width: 991px) {
    .eg-expertise__media {
        padding-left: 15px;
        margin-top: 35px;
    }
}

/* ---- CTA: three buttons → stack gracefully ---- */
#landing-einzugsgebiet .landing__btn-group {
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    #landing-einzugsgebiet .landing__btn-group {
        flex-direction: column;
        align-items: center;
    }

    #landing-einzugsgebiet .landing__btn {
        min-width: 0;
        width: 100%;
        max-width: 360px;
    }
}

/* ---- Section spacing on mobile ---- */
@media (max-width: 575px) {
    .eg-section-intro {
        margin-bottom: 30px;
    }

    .eg-section-intro .landing__text {
        font-size: 15px;
    }
}
