/* === CSS RESET & NORMALIZE === */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1.5;
    background: #F5F6FA;
    color: #1B365D;
}
input, select, textarea, button {
    font: inherit;
}
a {color: inherit; text-decoration: none;}
a:focus {outline: 2px solid #25B89A; outline-offset: 2px;}

/* === BRAND FONTS AND BASE TYPOGRAPHY === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    background: #F5F6FA;
    color: #1B365D;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #1B365D;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}
h1 {font-size: 2.5rem; margin-bottom: 24px;}
h2 {font-size: 2rem; margin-bottom: 20px;}
h3 {font-size: 1.4rem; margin-bottom: 12px;}
h4 {font-size: 1.15rem; margin-bottom: 8px;}

p, ul, ol {
    margin-bottom: 16px;
    color: #33405B;
    font-size: 1rem;
}
ul, ol {
    padding-left: 20px;
}
ul.features-list, ul, ol:not(.footer-nav) > li {
    margin-bottom: 8px;
}
strong {font-weight: 700;}

/* === CONTAINERS & LAYOUT === */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.content-wrapper.center { align-items: center; text-align: center; }

.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(27,54,93,0.05);
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(27,54,93,.08);
    margin-bottom: 20px;
    position: relative;
    padding: 24px;
    flex: 1 1 320px;
    min-width: 260px;
    transition: box-shadow .18s;
}
.card:hover,
.card:focus {
    box-shadow: 0 4px 20px rgba(27,54,93,0.11);
}

.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(27,54,93,0.07);
    margin-bottom: 20px;
    flex: 1 1 320px;
    min-width: 260px;
    color: #1B365D;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* === HEADER & NAVIGATION === */
header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(27,54,93,0.04);
    padding: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 90;
}
header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 0;
}
header img[alt="Lively WohnCompass"] {
    height: 48px;
    width: auto;
    display: block;
}
nav.main-nav {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}
nav.main-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    color: #1B365D;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background .18s, color .18s;
    position: relative;
}
nav.main-nav a.cta {
    background: #25B89A;
    color: #fff;
    font-weight: 700;
    margin-left: 8px;
    border-radius: 8px;
    padding: 10px 18px;
    box-shadow: 0 2px 8px rgba(37,184,154,0.10);
}
nav.main-nav a:hover,
nav.main-nav a:focus {
    background: #F5F6FA;
    color: #25B89A;
}
nav.main-nav a.cta:hover,
nav.main-nav a.cta:focus { background: #1B365D; color: #fff; }

/* === MOBILE MENU === */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #1B365D;
    cursor: pointer;
    margin-left: 16px;
    padding: 7px 10px;
    border-radius: 6px;
    transition: background .14s;
    z-index: 200;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
    background: #e5ebf7;
}
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: #F5F6FA;
    box-shadow: 0 8px 32px rgba(27,54,93,0.11);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.7,0,.3,1);
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2.1rem;
    color: #1B365D;
    align-self: flex-end;
    margin: 28px 30px 24px 0;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background .14s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover { background: #e5ebf7; }
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}
.mobile-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.25rem;
    color: #1B365D;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 7px;
    width: 92vw;
    max-width: 420px;
    text-align: center;
    transition: background .16s, color .14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
    background: #e5ebf7;
    color: #25B89A;
}

@media (max-width:1050px) {
    nav.main-nav {
        gap: 8px;
    }
    header .container { padding: 0 10px; }
}
@media (max-width: 900px) {
    nav.main-nav a { font-size: .95rem; padding: 7px 10px; }
}

@media (max-width: 820px) {
    header .container { flex-direction: row; }
    nav.main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    /* Prevent scroll while mobile menu open */
    body.mobile-menu-active { overflow: hidden; }
}

/* === HERO SECTIONS === */
.hero {
    background: linear-gradient(73deg, #e9eff8 0%, #F5F6FA 100%);
    padding: 55px 0 50px 0;
    margin-bottom: 38px;
}
.hero .container {
    align-items: center;
    justify-content: center;
}
.hero .content-wrapper {
    align-items: flex-start;
    padding: 0;
    background: none;
    box-shadow: none;
}
.hero h1 { font-size: 2.4rem; color: #1B365D; margin-bottom: 18px; }
.hero p { font-size: 1.13rem; max-width: 700px; margin-bottom: 28px; }

/* === CTA BUTTONS === */
.cta {
    display: inline-block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    background: #25B89A;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 13px 32px;
    box-shadow: 0 2px 10px rgba(37,184,154,0.13);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background .20s, transform .17s, box-shadow .18s;
    text-align: center;
    margin-top: 8px;
}
.cta:hover, .cta:focus {
    background: #1B365D;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 24px rgba(27,54,93,0.11);
}

.cta-section {
    margin-bottom: 60px;
    padding: 36px 14px;
    background: #1B365D;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 1px 10px rgba(27,54,93,0.10);
    text-align: center;
}
.cta-section h2, .cta-section p {
    color: #fff;
}

/* === FEATURES === */
.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
    justify-content: flex-start;
    border: none;
    list-style: none;
    margin: 16px 0 0 0;
    padding: 0;
}
.features-list li {
    flex: 1 1 220px;
    min-width: 180px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(27,54,93,0.06);
    padding: 27px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    transition: box-shadow .16s;
}
.features-list li:hover, .features-list li:focus {
    box-shadow: 0 4px 16px rgba(37,184,154,0.11);
}
.features-list img {
    width: 46px;
    height: 46px;
}
.features-list h3 {
    font-size: 1.18rem;
    margin: 0;
    color: #1B365D;
}

/* === TEAM PAGE (UEBER-UNS) === */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 24px;
}
.team-bio {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(27,54,93,0.07);
    flex: 1 1 260px;
    min-width: 220px;
    padding: 22px 18px;
    transition: box-shadow .16s;
    margin-bottom: 20px;
}
.team-bio h3 {
    color: #25B89A;
    font-size: 1.18rem;
    margin-bottom: 10px;
}
.team-bio p {
    margin-bottom: 0;
    font-size: 1rem;
}
.team-awards {
    background: #e9eff8;
    border-radius: 9px;
    padding: 14px 20px;
}

/* === SERVICE & PROPERTY TILES === */
.service-list, .property-cards, .city-highlights, .city-name-grid, .blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.service-tile, .property-card, .city-tile, .city-overview-card, .blog-teaser {
    background: #fff;
    box-shadow: 0 1px 8px rgba(27,54,93,0.07);
    border-radius: 10px;
    padding: 22px 16px 16px 16px;
    flex: 1 1 270px;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    transition: box-shadow .15s, transform .14s;
}
.blog-teaser {
    min-width: 240px;
}
.service-tile img, .city-tile img {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
}
.service-tile h3, .city-tile h3 {
    color: #1B365D;
    font-size: 1.17rem;
    margin-bottom: 9px;
}
.service-tile p, .city-tile p, .city-overview-card div{font-size: 1rem; color: #33405B;}
.service-tile:hover, .property-card:hover, .city-tile:hover, .city-overview-card:hover, .blog-teaser:hover {
    box-shadow: 0 5px 18px rgba(27,54,93,0.12);
    transform: translateY(-2px) scale(1.01);
}
.city-highlights .city-tile a { margin-top: auto; margin-bottom: 0; color: #25B89A; font-weight: 600; font-size: .99rem; }
.city-highlights .city-tile a:hover { color: #1B365D; text-decoration: underline; }
.property-card h3 { font-size: 1.1rem;margin-bottom: 9px;}
.property-card a { color: #25B89A; font-weight: 500; margin-top: 8px; }
.property-card a:hover { text-decoration: underline; color: #1B365D; }

.property-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.property-filter label {
    font-size: 1rem;
    color: #1B365D;
    font-weight: 500;
}
.property-filter select {
    font-size: 1rem;
    border-radius: 6px;
    padding: 7px 14px;
    border: 1px solid #cadee6;
    background: #e9eff8;
    color: #1B365D;
    outline: none;
    transition: border .13s;
}
.property-filter select:focus { border:1.5px solid #25B89A; }

/* === FAQ ACCORDION === */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(27,54,93,0.06);
    padding: 18px 18px;
    font-size: 1rem;
}
.faq-item h3 {
    font-size: 1.1rem;
    color: #1B365D;
    margin-bottom: 8px;
    cursor: pointer;
}
.faq-item div {
    color: #33405B;
    margin-bottom: 0;
}

/* === LEGAL PAGE STYLES === */
.legal-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(27,54,93,0.07);
    margin-bottom: 60px;
    padding: 40px 20px;
}

/* === TAGS / LABELS === */
.tags {
    display: inline-block;
    background: #e9eff8;
    color: #1B365D;
    font-size: 0.97rem;
    padding: 5px 13px;
    border-radius: 7px;
    margin-top: 11px;
}

/* === TESTIMONIALS === */
.testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}
.testimonial-card p {
    color: #1B365D;
    font-size: 1.07rem;
    font-style: italic;
    margin-bottom: 10px;
}
.testimonial-card div {
    color: #25B89A;
    font-size: 1rem;
    font-weight: 600;
}
.customer-guarantee {
    margin-top: 30px;
    background: #e9eff8;
    border-radius: 11px;
    padding: 16px 21px;
}
.customer-guarantee h3 { color: #1B365D; font-size: 1.09rem; margin-bottom: 8px;}

/* === ADDRESS & FOOTER === */
footer {
    background: #1B365D;
    color: #fff;
    padding: 50px 0 0 0;
    margin-top: 0;
}
footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 40px;
}
footer a {
    color: #fff;
    transition: color .17s;
}
footer a:hover { color: #25B89A; text-decoration: underline; }
footer img[alt="Lively WohnCompass"] {
    height: 35px;
    margin-bottom: 21px;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
address {
    font-style: normal;
    color: #5082cc;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: .97rem;
}
address img { vertical-align: middle; width: 20px; height: 20px; margin-right: 7px; position: relative; top: 3px; }
footer address a {color: #25B89A; text-decoration: underline;}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100vw;
    background: #1B365D;
    color: #fff;
    padding: 24px 16px;
    z-index: 6000;
    box-shadow: 0 -2px 18px rgba(27,54,93,0.14);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    justify-content: center;
    font-size: 1rem;
    animation: slide-up .4s cubic-bezier(.6,0,.3,1);
}
@keyframes slide-up {
    from {transform: translateY(100%); opacity: 0.7;}
    to   {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {flex: 1; color: #fff; margin-bottom: 0;}
.cookie-banner .cookie-buttons {
    display: flex;
    gap: 12px;
}
.cookie-btn, .cookie-btn-settings {
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 1rem;
    background: #25B89A;
    color: #fff;
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    transition: background .16s, color .15s, box-shadow .15s;
    box-shadow: 0 1px 8px rgba(37,184,154,0.07);
}
.cookie-btn:hover, .cookie-btn:focus {
    background: #fff;
    color: #1B365D;
}
.cookie-btn-settings {
    background: #e9eff8;
    color: #1B365D;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
    background: #25B89A;
    color: #fff;
}
/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(27,54,93,0.28);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .18s, visibility .18s;
}
.cookie-modal.open {
    visibility: visible;
    opacity: 1;
}
.cookie-modal-content {
    background: #fff;
    color: #1B365D;
    border-radius: 16px;
    box-shadow: 0 6px 28px rgba(27,54,93,0.15);
    padding: 32px 28px 26px 28px;
    min-width: 320px;
    max-width: 94vw;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: fadeIn .38s cubic-bezier(.6,0,.3,1);
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.93); }
    to   { opacity: 1; transform: scale(1); }
}
.cookie-modal-content h2 {font-size:1.23rem; margin-bottom: 14px;}
.cookie-modal-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 10px;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}
.cookie-category label {
    flex: 1;
    font-weight: 500;
}
.cookie-category input[type="checkbox"] {
    width: 20px; height: 20px;
    accent-color: #25B89A;
}
.cookie-category .category-essential {
    color: #25B89A;
    font-weight: bold;
    font-size: .99rem;
}
.cookie-modal-actions {
    margin-top: 16px;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}
.cookie-modal-close {
    background: #F5F6FA;
    color: #1B365D;
    border: none;
    font-size: 1.25rem;
    padding: 4px 15px;
    border-radius: 7px;
    position: absolute;
    right: 30px;
    top: 22px;
    cursor: pointer;
    transition: background .12s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
    background: #25B89A;
    color: #fff;
}

/* === MISCELLANEOUS === */
.center {text-align: center; align-items: center;}

/* === RESPONSIVE DESIGN (MOBILE FIRST) === */

@media (max-width: 1150px) {
    .container { max-width: 96vw; }
}
@media (max-width: 1020px) {
    .features-list li, .service-tile, .property-card, .testimonial-card, .city-tile, .city-overview-card, .blog-teaser, .team-bio {
        flex: 1 1 320px;
    }
    footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
    .footer-nav {
        flex-direction: row;
        gap: 20px;
    }
}
@media (max-width: 900px) {
    .features-list, .service-list, .property-cards, .testimonials, .city-highlights, .city-name-grid, .blog-list, .team-grid {
        gap: 10px;
    }
}
@media (max-width: 768px) {
    html { font-size: 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.55rem; }
    h3 { font-size: 1.09rem; }
    .section, .legal-section {
        padding: 22px 8px;
        margin-bottom: 36px;
    }
    .hero { padding: 32px 0 30px 0; }
    .cta-section {
        padding: 24px 9px;
        margin-bottom: 36px;
    }
    .features-list, .service-list, .property-cards, .testimonials, .city-highlights, .city-name-grid, .blog-list, .team-grid {
        flex-direction: column;
        gap: 0px;
    }
    .text-image-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .testimonial-card, .team-bio, .service-tile, .property-card, .city-tile, .city-overview-card, .blog-teaser {
        min-width: 0;
        width: 100%;
    }
    .customer-guarantee, .team-awards {padding: 11px 7px;}
    .card { padding: 17px; }
    .blog-teaser, .faq-item { padding: 13px;}
    footer .container { padding-bottom: 22px; }
}
@media (max-width: 560px) {
    html { font-size: 14px; }
    .container { padding-left: 6px; padding-right: 6px; }
    header img[alt="Lively WohnCompass"] { height: 34px; }
    .footer-nav { flex-direction: column; gap: 13px; }
    .cookie-banner { flex-direction: column; align-items: flex-start; gap: 13px; padding: 19px 6px; font-size: .96rem;}
}

/* === PRINT OPTIMIZATION: Hide nav, cookie, stuff */
@media print {
    .main-nav, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, footer img, header img {display:none!important;}
    footer, header {background:none;box-shadow:none;}
}
