/* ==========================================================
   mietspiegel.com – Regionale Ortsseiten
   ========================================================== */

:root {
    --ms-blue: #00b4f0;
    --ms-blue-dark: #008fc4;
    --ms-navy: #16324a;
    --ms-text: #334155;
    --ms-muted: #64748b;
    --ms-light: #f5f8fa;
    --ms-border: #e2e8f0;
    --ms-white: #ffffff;
    --ms-radius: 16px;
    --ms-shadow: 0 12px 35px rgba(22, 50, 74, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ms-text);
    background: var(--ms-white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ms-blue-dark);
}

.ms-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* ==========================================================
   HEADER
   ========================================================== */

.ms-header {
    background: var(--ms-white);
    border-bottom: 1px solid var(--ms-border);
}

.ms-navbar {
    min-height: 92px;
    padding: 10px 0;
}

.ms-logo img {
    width: 150px;
    height: auto;
}

.ms-nav-link {
    display: block;
    padding: 12px 15px !important;
    color: var(--ms-navy) !important;
    text-decoration: none;
    font-size: 0.95rem;
}

.ms-nav-link:hover {
    color: var(--ms-blue-dark) !important;
}

.ms-nav-login {
    font-weight: 700;
}


/* ==========================================================
   BREADCRUMB
   ========================================================== */

.ms-breadcrumb {
    padding: 22px 0 0;
    color: var(--ms-muted);
    font-size: 0.88rem;
}

.ms-breadcrumb a {
    color: var(--ms-muted);
    text-decoration: none;
}

.ms-breadcrumb a:hover {
    color: var(--ms-blue-dark);
}


/* ==========================================================
   HERO
   ========================================================== */

.ms-hero {
    padding: 55px 0 70px;
}

.ms-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 65px;
    align-items: center;
}

.ms-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--ms-blue-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ms-hero h1 {
    max-width: 720px;
    margin: 0 0 24px;
    color: var(--ms-navy);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.ms-lead {
    margin: 0 0 22px;
    font-size: 1.13rem;
    line-height: 1.7;
}

.ms-hero-text p:not(.ms-lead) {
    margin-bottom: 17px;
}

.ms-hero-image {
    position: relative;
}

.ms-hero-image::before {
    content: "";
    position: absolute;
    width: 75%;
    height: 75%;
    right: -20px;
    bottom: -20px;
    background: var(--ms-light);
    border-radius: var(--ms-radius);
    z-index: 0;
}

.ms-hero-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: var(--ms-radius);
    box-shadow: var(--ms-shadow);
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.ms-button {
    display: inline-block;
    margin-top: 10px;
    padding: 14px 25px;
    border-radius: 8px;
    background: var(--ms-blue-dark);
    color: var(--ms-white);
    text-decoration: none;
    font-weight: 700;
    transition: transform .15s ease, background .15s ease;
}

.ms-button:hover {
    color: var(--ms-white);
    background: var(--ms-navy);
    transform: translateY(-1px);
}

.ms-button-light {
    background: var(--ms-white);
    color: var(--ms-navy);
}

.ms-button-light:hover {
    background: var(--ms-light);
    color: var(--ms-navy);
}


/* ==========================================================
   CONTENT SECTIONS
   ========================================================== */

.ms-section {
    padding: 75px 0;
}

.ms-section-light {
    background: var(--ms-light);
}

.ms-section h2 {
    margin: 0 0 18px;
    color: var(--ms-navy);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ms-section-intro {
    max-width: 780px;
    margin-bottom: 38px;
    font-size: 1.05rem;
}


/* ==========================================================
   INFORMATION CARDS
   ========================================================== */

.ms-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ms-card {
    padding: 28px;
    background: var(--ms-white);
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    box-shadow: 0 5px 20px rgba(22, 50, 74, 0.04);
}

.ms-card-number {
    display: flex;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 143, 196, 0.1);
    color: var(--ms-blue-dark);
    font-weight: 700;
}

.ms-card h3 {
    margin: 0 0 12px;
    color: var(--ms-navy);
    font-size: 1.15rem;
}

.ms-card p {
    margin: 0;
}


/* ==========================================================
   TWO COLUMN CONTENT
   ========================================================== */

.ms-content-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.ms-content-image img {
    width: 100%;
    border-radius: var(--ms-radius);
    box-shadow: var(--ms-shadow);
}


/* ==========================================================
   LOCAL INFORMATION
   ========================================================== */

.ms-local-box {
    padding: 35px;
    background: var(--ms-white);
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
}

.ms-local-meta {
    margin-top: 22px;
    color: var(--ms-muted);
    font-size: 0.92rem;
}


/* ==========================================================
   DISTRICTS / ORTSTEILE
   ========================================================== */

.ms-districts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.ms-district {
    padding: 7px 12px;
    background: var(--ms-light);
    border: 1px solid var(--ms-border);
    border-radius: 30px;
    color: var(--ms-text);
    font-size: 0.88rem;
}


/* ==========================================================
   IMAGE STRIP
   ========================================================== */

.ms-image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.ms-image-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}


/* ==========================================================
   CTA
   ========================================================== */

.ms-cta {
    margin: 30px 0 75px;
}

.ms-cta-inner {
    position: relative;
    overflow: hidden;
    padding: 55px;
    background: var(--ms-navy);
    border-radius: 20px;
    color: var(--ms-white);
}

.ms-cta-inner::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    top: -100px;
    border-radius: 50%;
    background: rgba(0, 180, 240, 0.18);
}

.ms-cta h2 {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 0 15px;
    color: var(--ms-white);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.ms-cta p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-bottom: 20px;
}

.ms-cta .ms-button {
    position: relative;
    z-index: 1;
}


/* ==========================================================
   NOTICE
   ========================================================== */

.ms-notice {
    padding: 20px 24px;
    margin-top: 28px;
    background: #f8fafc;
    border-left: 4px solid var(--ms-blue-dark);
    border-radius: 0 8px 8px 0;
    font-size: 0.92rem;
}

.ms-notice p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   RUBBERDUCK
   ========================================================== */

    .dx-rubberduck {
    z-index: 100;
    background-color: transparent;
    position: fixed;
    top: 25%;
    right: 5%;
    padding: .6em 1em;
    transition: all .2s ease-in-out;
    text-align: center;
}
    .dx-rubberduck-link {
    color: white;
    text-decoration: none;
}
    .dx-rubberduck-link:hover {
    color: rgb(180, 221, 255);
    text-decoration: none;
    transform: scale(1.1);
}


/* ==========================================================
   FOOTER
   ========================================================== */

.ms-footer {
    padding: 35px 0;
    border-top: 1px solid var(--ms-border);
    color: var(--ms-muted);
    font-size: 0.85rem;
}

.ms-footer-grid {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.ms-footer a {
    color: var(--ms-muted);
    text-decoration: none;
}

.ms-footer a:hover {
    color: var(--ms-blue-dark);
}


/* ==========================================================
   COOKIE BANNER
   ========================================================== */

.ms-cookie {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 16px 20px;
    background: var(--ms-white);
    border-top: 1px solid var(--ms-border);
    box-shadow: 0 -5px 25px rgba(0,0,0,.06);
    text-align: center;
    font-size: 0.9rem;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 991px) {

    .ms-hero-grid,
    .ms-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ms-card-grid {
        grid-template-columns: 1fr;
    }

    .ms-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ms-hero {
        padding-top: 35px;
    }
}

@media (max-width: 575px) {

    .ms-container {
        width: min(100% - 28px, 1180px);
    }

    .ms-hero {
        padding: 30px 0 50px;
    }

    .ms-section {
        padding: 50px 0;
    }

    .ms-image-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ms-cta-inner {
        padding: 35px 25px;
        border-radius: 14px;
    }

    .ms-local-box {
        padding: 25px 20px;
    }

    .ms-card {
        padding: 23px 20px;
    }

    .dx-rubberduck {
	width: 100%;
    z-index: 100;
    background-color: transparent;
	position: fixed;
    top: 5%;
	left: 0%;
    padding: .6em 1em;
    transition: all .2s ease-in-out;
    text-align: center;
}
    .dx-rubberduck-image {
    width: 95%;
}

}