/* CongioBlam Immobilien Corporate CSS
   Professional Corporate Style: blue/gray palette, structured, business fonts, modern, trustworthy, accessible
   Responsive, flexbox-based ONLY, no grid or columns
   Fonts: Montserrat for display, Roboto for body
   Colors: Primary #23374D, Secondary #E8EAF1, Accent #D2A85D
   Spacing step: 8px, 16px, 24px, 32px, 40px, 60px
   Z-index order: mobile menu (1100), cookie banner (1200)
------------------------------------------------------*/

/* RESET & BASELINE ------------------------------- */
html {
    box-sizing: border-box;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #fff;
}
*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
    border: 0;
}
body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    color: #23374D;
    background: #fff;
    line-height: 1.6;
    font-size: 1rem;
    min-height: 100vh;
}
img {
    max-width: 100%;
    display: block;
    height: auto;
}
a {
    color: #23374D;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, a:focus {
    color: #D2A85D;
}
ul, ol {
    margin: 16px 0;
    padding-left: 24px;
}
li {
    margin-bottom: 12px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: #23374D;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.15;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; font-weight: 600; }
p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: #23374D;
}
strong { font-weight: 600; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FLEXBOX LAYOUTS (MANDATORY, NO GRID/COLUMNS) ------ */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(35, 55, 77, 0.08);
    margin-bottom: 20px;
    position: relative;
    flex: 1 1 280px;
    min-width: 260px;
    padding: 24px 18px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
    box-shadow: 0 8px 24px rgba(35,55,77,0.15);
    transform: translateY(-2px) scale(1.02);
}
.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;
    background: #E8EAF1;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(35,55,77,0.08);
    min-width: 0;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
}
.feature-grid > div {
    flex: 1 1 210px;
    background: #fff;
    border-radius: 10px;
    padding: 24px 14px 20px 14px;
    box-shadow: 0 2px 6px rgba(35,55,77,0.06);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: box-shadow 0.2s;
}
.feature-grid > div:hover {
    box-shadow: 0 8px 18px rgba(35,55,77,0.12);
}

/* HERO SECTION ----------------------------------- */
.hero-section {
    background: #23374D url('../assets/hero-bg.svg') no-repeat center top/cover;
    color: #fff;
    padding: 60px 0 50px 0;
}
.hero-section h1,
.hero-section p {
    color: #fff;
}
.hero-section .btn-primary {
    margin-top: 28px;
}

/* PRIMARY BUTTON STYLE --------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 44px;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    background: #23374D;
    color: #fff;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.03em;
    padding: 0 36px;
    margin: 12px 0 0 0;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(35,55,77,0.06);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
    outline: none;
}
.btn-primary:hover, .btn-primary:focus {
    background: #D2A85D;
    color: #23374D;
    box-shadow: 0 6px 20px rgba(210,168,93,0.13);
    transform: translateY(-1px) scale(1.01);
}

/* SECONDARY BUTTON (e.g. cookie modal) ----------- */
.btn-secondary {
    background: #E8EAF1;
    color: #23374D;
    border-radius: 22px;
    font-weight: 600;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    padding: 0 26px;
    min-height: 40px;
    margin: 0 8px;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(35,55,77,0.06);
    transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.13s;
    outline: none;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: #D2A85D;
    color: #23374D;
    transform: scale(1.01);
}

/* HEADER & DESKTOP NAVIGATION ------------------- */
header {
    background: #fff;
    box-shadow: 0 2px 14px rgba(35,55,77,0.04);
    padding: 0;
    position: relative;
    z-index: 1002;
    border-bottom: 1px solid #E8EAF1;
}
header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 0 22px;
    height: 72px;
}
header nav a {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 1.08rem;
    color: #23374D;
    padding: 7px 16px;
    border-radius: 6px;
    transition: background 0.13s, color 0.13s;
}
header nav a.btn-primary {
    margin-left: auto;
    box-shadow: none;
    min-width: 140px;
}
header nav a:hover:not(.btn-primary), header nav a:focus:not(.btn-primary) {
    background: #E8EAF1;
    color: #23374D;
}
header nav img {
    height: 42px;
    margin-right: 12px;
}
/* Burger (mobile menu toggle) */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    right: 24px;
    top: 17px;
    background: transparent;
    color: #23374D;
    font-size: 2.2rem;
    border: none;
    cursor: pointer;
    z-index: 1110;
    padding: 0 6px;
    line-height: 1;
}
.mobile-menu-toggle:focus {
    outline: 2px solid #D2A85D;
}

/* MOBILE NAVIGATION ----------------------------- */
.mobile-menu {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(35, 55, 77, 0.98);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.77,0,.18,1);
    overflow-y: auto;
}
.mobile-menu.active {
    display: block;
    transform: translateX(0);
}
.mobile-menu-close {
    background: none;
    color: #fff;
    border: none;
    font-size: 2.1rem;
    position: absolute;
    right: 28px;
    top: 25px;
    z-index: 1140;
    cursor: pointer;
    padding: 6px 12px;
    transition: color 0.14s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
    color: #D2A85D;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 76px 28px 28px 32px;
}
.mobile-nav a {
    color: #fff;
    font-size: 1.17rem;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 500;
    padding: 13px 0 13px 2px;
    margin-bottom: 0;
    border-radius: 4px;
    transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    color: #D2A85D;
    background: rgba(232,234,241,0.10);
}

/* MAIN STRUCTURE -------------------------------- */
main {
    width: 100%;
    flex: 1 1 auto;
    min-height: 65vh;
    margin-top: 0;
}
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 0 0 0;
}
.text-section {
    background: #fff;
    border-radius: 10px;
    padding: 28px 24px 16px 24px;
    box-shadow: 0 1px 4px rgba(35,55,77,0.05);
    margin-bottom: 24px;
}

/* SECTION SPACING & HIERARCHY ------------------- */
section {
    margin-bottom: 60px;
    padding: 40px 20px 0 20px;
    border: none;
}
section:last-child {
    margin-bottom: 0;
}

/* TESTIMONIALS ---------------------------------- */
.testimonial-card {
    font-size: 1.08rem;
    background: #E8EAF1;
    border-left: 4px solid #D2A85D;
    color: #23374D;
    margin-bottom: 24px;
    padding: 20px 30px 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(35,55,77,0.06);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}
.testimonial-card p {
    color: #23374D;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.5;
}
.testimonial-card strong {
    font-weight: 600;
    color: #23374D;
    font-size: 1rem;
}

/* ICONS ----------------------------------------- */
ul li img, .feature-grid img, .text-section ul li img {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    vertical-align: middle;
    display: inline-block;
}

/* FOOTER ---------------------------------------- */
footer {
    background: #23374D;
    color: #fff;
    padding: 28px 0 0 0;
    margin-top: 36px;
}
footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    padding: 0 20px 18px 20px;
}
footer nav a {
    color: #fff;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 500;
    padding: 6px 14px;
    font-size: 1rem;
    border-radius: 4px;
    transition: background 0.12s, color 0.12s;
}
footer nav a:hover, footer nav a:focus {
    background: #E8EAF1;
    color: #23374D;
}
.footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    justify-content: center;
    margin: 16px auto 0 auto;
    max-width: 740px;
}
.footer-contact img {
    height: 54px;
    margin-top: 6px;
}
.footer-contact address {
    font-style: normal;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
}
.footer-contact a {
    color: #D2A85D;
    text-decoration: underline;
    margin-bottom: 0;
    font-size: 1rem;
}
.footer-copy {
    text-align: center;
    padding: 24px 0 12px 0;
    font-size: 0.98rem;
    color: #B7C0CC;
}

/* FORMS/INPUTS ---------------------------------- */
input, textarea, select {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #B7C0CC;
    background: #fff;
    padding: 11px 14px;
    margin-bottom: 18px;
    width: 100%;
    box-shadow: 0 1px 2px rgba(35,55,77,0.04);
    transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
    border-color: #D2A85D;
    outline: none;
}
label {
    display: block;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 500;
    margin-bottom: 7px;
    color: #23374D;
}

/* COOKIE CONSENT BANNER --------------------------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: #23374D;
    color: #fff;
    padding: 24px 20px 20px 20px;
    box-shadow: 0 -2px 24px rgba(35,55,77,0.13);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.33s;
}
.cookie-banner.visible {
    opacity: 1;
    visibility: visible;
}
.cookie-banner p {
    flex: 1 1 320px;
    margin-bottom: 0;
    color: #fff;
}
.cookie-banner .banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
    min-width: 135px;
    min-height: 38px;
    margin: 0 5px 0 0;
    font-size: 1rem;
}

/* COOKIE MODAL ----------------------------------- */
.cookie-modal-overlay {
    position: fixed;
    z-index: 1250;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(35,55,77,0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s;
}
.cookie-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.cookie-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px 28px 32px 28px;
    box-shadow: 0 8px 40px rgba(35,55,77,0.27);
    min-width: 320px;
    max-width: 420px;
    width: 95vw;
    color: #23374D;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1270;
    animation: modalFadeIn 0.4s cubic-bezier(.54,.01,.38,1.05);
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #23374D;
    margin-bottom: 0;
}
.cookie-modal .cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #E8EAF1;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}
.cookie-modal label {
    font-size: 1.05rem;
    font-weight: 500;
    color: #23374D;
    margin-bottom: 0;
}
.cookie-modal .switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 22px;
}
.cookie-modal .switch input { display: none; }
.cookie-modal .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #B7C0CC;
    border-radius: 22px;
    transition: background-color 0.19s;
}
.cookie-modal .switch input:checked + .slider {
    background-color: #D2A85D;
}
.cookie-modal .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: transform 0.18s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(35,55,77,0.10);
}
.cookie-modal .switch input:checked + .slider:before {
    transform: translateX(22px);
}
.cookie-modal .cookie-modal-close {
    position: absolute;
    top: 16px;
    right: 23px;
    background: none;
    color: #23374D;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.13s;
    z-index: 1272;
}
.cookie-modal .cookie-modal-close:focus,
.cookie-modal .cookie-modal-close:hover {
    color: #D2A85D;
}
.cookie-modal .modal-actions {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    justify-content: flex-end;
}
.cookie-modal .btn-primary,
.cookie-modal .btn-secondary {
    min-width: 120px;
    margin: 0;
    font-size: 1rem;
}

/* Utility classes -------------------------------- */
.mt-2   { margin-top: 16px !important; }
.mt-3   { margin-top: 24px !important; }
.mt-4   { margin-top: 32px !important; }
.mb-2   { margin-bottom: 16px !important; }
.mb-3   { margin-bottom: 24px !important; }
.mb-4   { margin-bottom: 32px !important; }
.text-center { text-align: center; }
.d-flex {
    display: flex;
    align-items: center;
}

/* RESPONSIVE DESIGN ----------------------------- */
@media (max-width: 1100px) {
    .container { max-width: 960px; }
    .content-wrapper { max-width: 750px; }
    .feature-grid > div { min-width: 180px; }
}
@media (max-width: 900px) {
    .container { max-width: 90vw; }
    .content-wrapper { max-width: 98vw; }
    .footer-contact { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 768px) {
    html { font-size: 15px; }
    .content-grid,
    .feature-grid {
        flex-direction: column;
        gap: 18px;
    }
    header nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    section, .section {
        padding: 34px 10px 0 10px;
    }
    .text-section, .card {
        padding: 18px 9px 12px 9px;
    }
    .footer-contact { flex-direction: column; gap: 8px; align-items: flex-start; }
    .card-container { flex-direction: column; }
    .text-image-section { flex-direction: column; gap: 20px; }
    .hero-section {
        padding: 40px 0 34px 0;
    }
    .cookie-modal { min-width: 80vw; max-width: 96vw; padding: 30px 15px 24px 15px; }
}
@media (max-width: 490px) {
    html { font-size: 14px; }
    h1 { font-size: 1.67rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.15rem; }
    header nav img, .footer-contact img { max-width: 99%; height: 40px; }
}

/* ANIMATIONS & MICRO-INTERACTIONS -------------- */
.btn-primary, .btn-secondary, .card, .feature-grid > div, .testimonial-card {
    transition: box-shadow 0.19s, background 0.19s, transform 0.19s, color 0.13s;
}
.card:active, .feature-grid > div:active {
    transform: scale(0.98);
}

/* HIDING VISIBILITIES FOR TOGGLES/JS ------------ */
.is-hidden { display: none!important; }

/* END */