/* ══════════════════════════════════════════════
   ImmoTrust Landingpages — main.css
   ══════════════════════════════════════════════ */

/* ── Layout ── */

.max-width { max-width: 1400px; }
.cursor-pointer { cursor: pointer; }
.border-radius-big { border-radius: 12px; }
.min-vh-60 { min-height: 60vh; }
.letter-spacing { letter-spacing: 2px; }

/* ── Colors ── */

.color-white { color: #fff; }
.color-black { color: #000; }
.color-dark-gray { color: rgba(0, 0, 0, 0.5); }
.color-zomp { color: #459e98; }
.background-white { background-color: #fff; }
.background-light-gray { background-color: #F6F7FA; }
.background-zomp { background-color: #459e98; }

/* ── Background Utilities ── */

.background-cover { background-size: cover !important; }
.background-contain { background-size: contain; }
.background-no-repeat { background-repeat: no-repeat; }
.background-position-center { background-position: center center !important; }

/* ── Text Size Utilities ── */

.text-xs { font-size: 0.875rem !important; }
.text-sm { font-size: 0.9375rem !important; }
.text-base { font-size: 0.95rem !important; }
.text-md { font-size: 1.1rem !important; }
.text-lg { font-size: 1.4rem !important; }
.text-reading { font-size: 0.9rem !important; line-height: 1.7 !important; }

/* ── Mobile readability & touch ── */

/* A long German compound ("Datenschutzerklärung", "Kontaktinformationen") breaks
   instead of running off a narrow phone; phones also hyphenate (575px block). */
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
.legal-content { overflow-wrap: anywhere; }

/* A link in running text that acts as a control: a taller hit area
   (24px minimum, WCAG 2.2) without moving the layout. */
.tap-target { display: inline-block; padding-block: 0.625rem; margin-block: -0.625rem; }

/* ── Accent Lines ── */

.accent-line {
    width: 80px;
    height: 3px;
    background-color: #459e98;
}

.accent-line-sm {
    width: 50px;
    height: 3px;
    background-color: #459e98;
}

.accent-line-md {
    width: 60px;
    height: 3px;
    background-color: #459e98;
}

.accent-line-lg {
    width: 270px;
    height: 3px;
    background-color: #459e98;
}

/* ── Form Labels ── */

.form-label-sm {
    font-size: 0.9375rem;
}

/* ── Misc Utilities ── */

.emoji-align {
    display: inline-block;
    transform: translateY(-1px);
}

.info-icon {
    cursor: help;
    opacity: 0.5;
}

/* ── Fullscreen Offcanvas ── */

.offcanvas-menu {
    background: radial-gradient(circle, rgba(68, 163, 157, 1) 0%, rgba(37, 42, 72, 1) 100%);
    border: 0 !important;
}

.offcanvas-menu a { color: white; }

/* Menu close control: a real button with a 44px target */
.offcanvas-close { min-width: 44px; min-height: 44px; padding: 0; color: inherit; background: none; border: 0; }

/* Close button */
.offcanvas-close-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.offcanvas-close:hover .offcanvas-close-icon {
    transform: rotate(90deg);
}

/* Section label (NAVIGATION, IHRE IMMOBILIE) */
.offcanvas-label {
    font-size: 0.75rem;
}

/* Nav link row */
.offcanvas-nav-link {
    text-decoration: none !important;
    padding: 1rem 0;
    gap: 0;
}

.offcanvas-nav-link:hover h3 {
    --bg-size: 400%;
    --color-one: hsl(225, 29%, 97%);
    --color-two: hsl(176, 41%, 45%);
    background: linear-gradient(90deg, var(--color-one), var(--color-two), var(--color-one)) 0 0 / var(--bg-size) 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
}

.offcanvas-nav-link:hover p {
    --bg-size: 400%;
    --color-one: hsl(225, 29%, 97%);
    --color-two: hsl(176, 41%, 45%);
    background: linear-gradient(90deg, var(--color-one), var(--color-two), var(--color-one)) 0 0 / var(--bg-size) 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
}

@media (prefers-reduced-motion: no-preference) {
    .offcanvas-nav-link h3,
    .offcanvas-nav-link p {
        animation: offcanvas-gradient 8s linear infinite;
    }
    @keyframes offcanvas-gradient {
        to { background-position: var(--bg-size) 0; }
    }
}

/* Icon column */
.offcanvas-nav-icon {
    flex-shrink: 0;
}

.offcanvas-nav-icon svg {
    max-width: 50px;
    max-height: 50px;
}

/* Text column */
.offcanvas-nav-text {
    flex-grow: 1;
    padding-left: 0.75rem;
}

/* Arrow column */
.offcanvas-nav-arrow {
    flex-shrink: 0;
    justify-content: flex-end;
    width: 50px;
}

.offcanvas-nav-arrow img {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.offcanvas-nav-link:hover .offcanvas-nav-arrow img {
    opacity: 1;
    transform: translateX(4px);
}

/* Property card — map on top, info below */
.offcanvas-property {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

.offcanvas-property-map-top {
    width: 100%;
    height: 180px;
}

.offcanvas-property-map-top iframe {
    display: block;
    border: 0;
}

.offcanvas-property-details {
    padding: 1.25rem 1.5rem;
}

.offcanvas-property-field {
    width: 33.333%;
    padding: 0.5rem 0;
}

.offcanvas-property-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat Light';
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.offcanvas-property-value {
    display: block;
    color: #fff;
    font-family: 'Montserrat Medium';
    font-size: 0.95rem;
}

/* ── Banner Close ── */

.btn-close-sm {
    font-size: 0.55rem;
}

/* ── Modal Lock Icon ── */

.modal-lock-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(69, 158, 152, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Subject Page Specifics ── */

.subject-hero-content {
    padding-top: 120px;
}

/* margin needs !important: fonts.css zeroes every h1 margin with it */
.subject-hero-title {
    margin-bottom: 2.5rem !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* ── News Image ── */

.news-image {
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
}

/* ── Contact Help Card Text ── */

.contact-help-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── Contact Info Text ── */

.contact-info-line-height {
    font-size: 0.9rem;
    line-height: 1.5;
}


/* ── Gradient ── */

.gradient-radial-background {
    background: rgb(68, 163, 157);
    background: radial-gradient(circle, rgba(68, 163, 157, 1) 0%, rgba(37, 42, 72, 1) 100%);
}

/* ── Separator ── */

hr.solid {
    border-top: 7px solid #459e98;
    opacity: 1 !important;
}

/* ── Focus Styles (Accessibility) ── */

.btn-anmelden:focus-visible,
.auth-btn-primary:focus-visible,
.btn-hero:focus-visible,
.btn-cta:focus-visible,
.profil-btn-outline:focus-visible,
.contact-btn-submit:focus-visible {
    outline: 2px solid #459e98;
    outline-offset: 2px;
}

/* ── Header ── */

.site-header { z-index: 1030; }

.header-logo {
    width: 190px;
    transition: width 0.3s ease;
}

.scrolled .header-logo { width: 140px; }

.header-social-link {
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
    /* 18px icons in 32px targets; the negative margin keeps the visual spacing */
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    margin: -7px;
}

.header-social-link:hover { opacity: 0.7; }

.header-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* The burger is a small drawing; the link around it is a full 44px target
   without making the header row taller. */
.header-burger { min-width: 44px; min-height: 44px; margin-block: -12px; }

.hamburger-menu rect { transition: 0.3s; }
.hamburger-menu:hover .hamburger-line-1 { transform: translate(6px) rotate(90deg); transition: 0.3s; }
.hamburger-menu:hover .hamburger-line-2 { transform: translate(28px, 9px) rotate(90deg); transition: 0.3s; }
.hamburger-menu:hover .hamburger-line-3 { transform: translate(39px) rotate(90deg); transition: 0.3s; }

/* Anmelden / Abmelden button */
.btn-anmelden {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    color: #000;
    padding: 8px 16px;
    font-family: 'Montserrat Medium';
    font-size: 0.9375rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.btn-anmelden-icon { padding: 8px; }
.btn-anmelden svg { color: #000; transition: color 0.3s ease; }
.btn-anmelden:hover { background-color: #4a9b8e; color: #fff; }
.btn-anmelden:hover svg { color: #fff; }

/* ── Profile Incomplete Banner ── */

.profile-incomplete-banner {
    background-color: #fff3cd;
    border-bottom: 1px solid #ffc107;
    padding: 10px 0;
    color: #664d03;
    gap: 6px;
}

.profile-incomplete-banner a {
    color: #664d03;
    text-decoration: underline !important;
}

.profile-incomplete-banner a:hover { color: #000; }

.profile-banner-title { font-size: 0.9375rem; }
.profile-banner-desc { font-size: 0.9375rem; }
.profile-banner-link { font-size: 0.9375rem; }

/* ── Hero ── */

.hero {
    overflow: hidden;
    padding-top: 93px;
}

.hero-bg { z-index: 0; }

.hero-overlay {
    z-index: 1;
    background: rgba(0, 0, 0, 0.35);
}

.hero-separator {
    width: 270px;
    height: 3px;
    background-color: #459e98;
}

.btn-hero {
    display: inline-block;
    background-color: #fff;
    border: 2px solid #fff;
    color: #000;
    padding: 12px 28px;
    font-family: 'Montserrat SemiBold';
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.btn-hero:hover { background-color: transparent; color: #fff; }

/* ── Benefits Section ── */

.benefit-card {
    background-color: #f6f7fa;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.benefit-card:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }

.benefit-card-image { overflow: hidden; }

.benefit-card-image img {
    height: 145px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.benefit-card:hover .benefit-card-image img { transform: scale(1.05); }

.benefit-card-content { padding: 2rem; }

.benefit-card-separator {
    width: 40px;
    height: 4px;
    background-color: #459e98;
}

.benefit-card-description {
    font-size: 15px !important;
    font-weight: 300;
    line-height: 1.5rem !important;
}

/* ── Topic Cards ── */

.themen-page { background-color: #fff; }
.themen-header { overflow: hidden; }
.themen-header-bg { z-index: 0; }

.topic-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.topic-card:hover { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1); }
.topic-card-locked { cursor: pointer; }

.topic-card-icon-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.topic-card-icon-badge img {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

.topic-card:not(.topic-card-locked):hover .topic-card-icon-badge { background-color: #459e98; }
.topic-card:not(.topic-card-locked):hover .topic-card-icon-badge img { filter: invert(1); }

.topic-card-image {
    overflow: hidden;
    height: 300px;
}

.topic-card-image img {
    height: 100%;
    object-fit: cover;
}

.topic-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #f6f7fa;
}

.topic-card-content h4 {
    font-size: 20px !important;
    transition: color 0.3s ease;
}

.topic-card:not(.topic-card-locked):hover .topic-card-content h4 { color: #3a7d72; }

.topic-card-description {
    font-size: 15px !important;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.5);
}

.topic-tag {
    display: inline-block;
    background-color: rgba(74, 155, 142, 0.1);
    background-color: color-mix(in oklab, #4a9b8e 10%, transparent);
    color: #3a7d72;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-family: 'Montserrat Medium';
    font-size: 0.875rem;
}

.topic-card-link {
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 3rem;
}

.topic-card-link svg { transition: transform 0.3s ease; }
.topic-card:hover .topic-card-link svg { transform: translateX(4px); }

/* Lock overlay — covers entire card */
.topic-card-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 3;
    border-radius: 12px;
}

.topic-card-lock-circle {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-card-lock-overlay span {
    position: absolute;
    top: 195px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.topic-card-lock-circle img {
    width: 32px;
    height: 32px;
    filter: invert(52%) sepia(30%) saturate(700%) hue-rotate(130deg) brightness(90%) contrast(85%);
}

/* ── CTA Banner ── */

.cta-section { background-color: #fcf9fa; }

.cta-banner {
    background-size: cover;
    background-position: center;
    background-image: url('/uploads/gradient-background.jpg');
}

.btn-cta {
    display: inline-block;
    background-color: #459e98;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px 32px;
    font-family: 'Montserrat SemiBold';
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-cta:hover { background-color: #3a8a84; color: #fff; }

/* ── Contact Page ── */

.kontakt { background-color: #f6f7fa; }

.contact-input {
    border: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
    background-color: transparent;
    padding: 12px;
    font-family: 'Montserrat Light';
    font-size: 1rem;
    color: #000;
    transition: border-color 0.2s ease;
}

.contact-input:focus {
    border-color: #459e98;
    box-shadow: none;
    background-color: transparent;
}

.contact-input::placeholder {
    color: #adb5bd;
    font-family: 'Montserrat Light';
}

textarea.contact-input {
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
    padding: 12px;
    resize: vertical;
    font-size: 1rem !important;
}

textarea.contact-input:focus { border-color: #459e98; }

:not(.btn-check)+.btn:active { background-color: #459e98 !important; }

.contact-btn-submit {
    background-color: #222343;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 32px;
    font-family: 'Montserrat SemiBold';
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background-color 0.3s ease;
}

.contact-btn-submit:hover { background-color: #459e98 !important; color: #fff; }

.contact-help-card {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 2rem;
}

.contact-info-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
}

.contact-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(69, 158, 152, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #459e98;
}

/* ── Profile Page ── */

.profil-page { background-color: #f6f7fa; }

.profil-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.profil-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(69, 158, 152, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #459e98;
}

.profil-field {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.profil-field:last-of-type { border-bottom: none; }

.profil-field-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #f6f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.profil-btn-outline {
    border: 1px solid #459e98;
    color: #459e98;
    border-radius: 8px;
    padding: 12px 24px;
    font-family: 'Montserrat Medium';
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
    text-align: center;
}

.profil-btn-outline:hover { background-color: #459e98; color: #fff; }

.profil-btn-danger {
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-family: 'Montserrat Medium';
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    text-decoration: none !important;
    text-align: center;
}

.profil-btn-danger:hover { background-color: #c82333; color: #fff; }

/* ── Footer ── */

.footer-main {
    background-image: url('/uploads/gradient-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-logo { width: 180px; }

.footer-title {
    font-family: 'Montserrat Medium';
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-content,
.footer-content p,
.footer-content div,
.footer-content a {
    font-family: 'Montserrat Light';
    font-size: 1rem !important;
    line-height: 1.5 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-content a:hover { color: #fff; }

/* 20px icons in 32px targets; the negative margin keeps the visual spacing */
.footer-social-icons a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; margin: -6px; opacity: 0.5; transition: opacity 0.3s ease; }
.footer-social-icons a:hover { opacity: 1; }

.footer-divider { border-top: 1px solid rgba(255, 255, 255, 0.25); }

.footer-legal-link {
    font-family: 'Montserrat Medium';
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5) !important;
    transition: color 0.3s ease;
}

.footer-legal-link:hover { color: #fff !important; }

.footer-copyright {
    background: linear-gradient(90deg, #1a1e2e 0%, #2c3142 50%, #1a1e2e 100%);
}

.footer-copyright p {
    font-size: 1rem !important;
    font-family: 'Montserrat Medium';
    letter-spacing: 2px;
    padding: 2rem 0;
}

/* ── Auth Landing Page ── */

.auth-landing {
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-landing-bg { height: 100%; z-index: 0; }

.auth-badge {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 20px;
    min-width: 220px;
}

.auth-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.auth-badge-title { display: block; color: #fff; font-family: 'Montserrat SemiBold'; font-size: 0.9rem; }
.auth-badge-text { display: block; color: rgba(255, 255, 255, 0.6); font-family: 'Montserrat Light'; font-size: 0.875rem; }

/* Auth card */
.auth-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.auth-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(69, 158, 152, 0.1);
    border: 1px solid rgba(69, 158, 152, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #459e98;
}

.auth-card-subtitle { font-size: 0.9rem !important; line-height: 1.4rem !important; }

/* Auth inputs */
.auth-input {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 14px;
    font-family: 'Montserrat Light';
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    border-color: #459e98;
    box-shadow: 0 0 0 3px rgba(69, 158, 152, 0.1);
}

.auth-input::placeholder { color: #adb5bd; font-family: 'Montserrat Light'; }

/* Auth primary button */
.auth-btn-primary {
    background: linear-gradient(135deg, #252a48 0%, #1e3a4c 50%, #222343 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 24px;
    font-family: 'Montserrat SemiBold';
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

.auth-btn-primary:hover { opacity: 0.9; color: #fff; }
.auth-btn-primary:disabled { opacity: 0.6; }

/* Auth property card (Steps 2-3) */
.auth-property-card {
    border-radius: 8px;
    overflow: hidden;
    max-width: 440px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.auth-property-image { width: 120px; flex-shrink: 0; }
.auth-property-image img { width: 100%; height: 100%; object-fit: cover; }

.auth-property-info {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: none;
    border-radius: 0 8px 8px 0;
    flex-grow: 1;
}

.auth-property-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.auth-property-label { display: block; color: #fff; font-family: 'Montserrat SemiBold'; font-size: 0.9375rem; }
.auth-property-address { display: block; color: rgba(255, 255, 255, 0.7); font-family: 'Montserrat Light'; font-size: 0.9375rem; line-height: 1.3; }

/* SMS 6-digit boxes: up to 48px each, narrower when the card is. A fixed width counted in full when the
   card sized itself, so on a 320px phone the card grew past both screen edges. */
.sms-code-boxes { gap: 8px; }

.sms-digit-box {
    width: 0;
    flex: 1 1 0;
    min-width: 0;
    max-width: 48px;
    height: 56px;
    text-align: center;
    font-family: 'Montserrat SemiBold';
    font-size: 1.25rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sms-digit-box:focus {
    border-color: #459e98;
    box-shadow: 0 0 0 3px rgba(69, 158, 152, 0.1);
    outline: none;
}

/* Sprig component centering */
[data-sprig] {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ── Subject Page ── */

.subject-page { background-color: #fff; }

/* Secondary text on the topic page: rgba(0, 0, 0, 0.5) measures 3.98:1 on white,
   under the 4.5:1 minimum for body text in Montserrat Light. 0.6 is #666, 5.74:1. */
.subject-page .color-dark-gray { color: rgba(0, 0, 0, 0.6); }

/* Override hero overflow for subject page (needed for overlapping property card) */
.subject-page .hero {
    overflow: visible;
    padding-bottom: 0;
    min-height: auto;
}

.subject-hero-map { z-index: 0; height: 600px; }
.subject-hero-map iframe { border: 0; filter: saturate(0.8); pointer-events: none; }

/* Navy scrim over the map. The tiles are mostly white, so the white title
   needs a dark ground; the contrast behind the title is measured, see
   docs/themenseite-2026-09-15.md. */
.subject-hero-map::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34, 35, 67, 0.62) 0%, rgba(34, 35, 67, 0.56) 60%, rgba(34, 35, 67, 0.4) 100%);
    pointer-events: none;
}

.subject-back-link {
    background-color: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-family: 'Montserrat Medium';
    font-size: 0.9375rem;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.subject-back-link:hover { background-color: rgba(255, 255, 255, 0.28); color: #fff; }

.subject-property-overlap { margin-top: 0; }

.subject-property-card {
    border-radius: 20px;
    padding: 2.5rem 2rem;
    background-size: cover;
    background-position: center;
}

/* Object picker — a custom dropdown (glass toggle + dark menu) that switches the page */
.subject-object-dropdown { position: relative; max-width: 460px; }
.subject-object-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 10px 18px;
    color: #fff;
    font-family: 'Montserrat Medium';
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.subject-object-toggle:hover { background-color: rgba(255, 255, 255, 0.2); }
.subject-object-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.subject-object-pin { flex-shrink: 0; opacity: 0.9; }
.subject-object-current { flex: 1 1 auto; min-width: 0; text-align: left; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.subject-object-chevron { flex-shrink: 0; opacity: 0.85; transition: transform 0.2s ease; }
.subject-object-toggle[aria-expanded="true"] .subject-object-chevron { transform: rotate(180deg); }

.subject-object-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    margin: 0;
    padding: 6px;
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
    background-color: #222343;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.subject-object-option {
    padding: 10px 14px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Montserrat Medium';
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.subject-object-option:hover { background-color: rgba(255, 255, 255, 0.1); color: #fff; }
.subject-object-option.is-selected { background-color: #459e98; color: #fff; }

.subject-info-card {
    container-type: inline-size;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 1.5rem;
}

.subject-info-card-head { min-height: 36px; margin-bottom: 1rem; flex-wrap: wrap; row-gap: 0.75rem; }

.subject-data-table td {
    padding: 8px 0;
    font-size: 1rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subject-data-table tr:last-child td { border-bottom: none; }
.subject-data-table td:first-child { color: rgba(255, 255, 255, 0.65); padding-right: 1rem; white-space: nowrap; }
.subject-data-table td:last-child { color: #fff; }

/* A narrow card puts each label above its value, so names and addresses don't
   squeeze into a thin right-hand column. A container query, because the card's
   width does not follow the viewport — it is narrower at 1200px than at 1024px. */
@container (max-width: 380px) {
    .subject-data-table tr {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .subject-data-table tr:last-child { border-bottom: none; }
    .subject-data-table td { display: block; padding: 0; border-bottom: none; }
    .subject-data-table td:first-child { padding: 0 0 2px; font-size: 0.9375rem; white-space: normal; }
    .subject-data-table td:last-child { text-align: left !important; }
}

/* Section rhythm: every section carries half of the gap, so two neighbours
   sit 6rem apart (4rem on phones). The CTA band takes the same distance as margin. */
.subject-section { padding: 3rem 0; }
.subject-section-first { padding-top: 6rem; }
.subject-section-last { padding-bottom: 6rem; }

/* Score cards */
.score-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    transition: box-shadow 0.3s ease;
}

.score-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }

.score-card-label {
    font-family: 'Montserrat Medium';
    font-size: 1rem;
    line-height: 1.3;
    color: rgba(0, 0, 0, 0.7);
}

.score-card-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: rgba(69, 158, 152, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-gauge { max-width: 140px; }

/* Chart cards */
.chart-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    height: 100%;
}

/* Chart.js fills this box (maintainAspectRatio: false) */
.chart-canvas { position: relative; height: 320px; }
/* The chart is built only once it scrolls into view; until then the bare canvas is 300px wide and widened a 320px phone's layout */
.chart-canvas canvas { display: block; max-width: 100%; }

/* Stat cards */
.stat-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    transition: box-shadow 0.3s ease;
}

.stat-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(69, 158, 152, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-note { font-size: 0.9375rem; }

/* News rows — text sits in a soft grey card next to the image */
.news-row + .news-row { margin-top: 3rem; }

.news-text-card {
    background-color: #F5F7F9;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 3rem;
}

.accent-line-short { width: 50px; }

/* "Mehr erfahren" link under a news item (shown when the block has a URL) */
.news-link {
    color: #459e98;
    text-decoration: none;
    font-size: 0.9375rem;
}
.news-link:hover { color: #2f7a75; }
.news-link svg { transition: transform 0.2s ease; }
.news-link:hover svg { transform: translateX(3px); }

/* Parcel-level note under the five scores */
.score-note { max-width: 640px; margin-left: auto; margin-right: auto; opacity: 0.85; }

/* Zusammenfassung point icons — Craft Icon field renders a FontAwesome SVG */
.summary-point-icon { line-height: 0; color: #459e98; }
.summary-point-icon svg { width: 22px; height: 22px; fill: currentColor; }

/* CTA — a contained banner with side margins, not full-bleed */
.subject-cta-banner {
    border-radius: 24px;
    padding: 4.5rem 2rem;
    background-size: cover;
    background-position: center;
}

.subject-page .subject-cta-banner .btn-cta { font-size: 0.9375rem; }

/* Zusammenfassung — soft grey box, same tone as the news cards */
.subject-summary-box {
    background-color: #F5F7F9;
    border-radius: 24px;
    padding: 3rem;
}

/* Bewertung form */
.bewertung-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
}

.subject-page .bewertung-card .auth-btn-primary { font-size: 0.9375rem; }

.bewertung-progress {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.bewertung-progress-fill {
    height: 100%;
    background-color: #459e98;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* The three options: equal columns while they fit, a list once the card is too
   narrow for three labels side by side. A container query, because the card's
   width follows its column, not the viewport. */
.bewertung-types { container-type: inline-size; }

.bewertung-types-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.bewertung-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    background-color: #f6f7fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bewertung-type-card p { min-width: 0; overflow-wrap: break-word; font-size: 1rem !important; line-height: 1.4 !important; }

@container (max-width: 520px) {
    .bewertung-types-grid { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
    .bewertung-type-card { flex-direction: row; padding: 0.875rem 1.25rem; text-align: left; }
    .bewertung-type-card svg { width: 28px; height: 28px; flex-shrink: 0; }
}

.bewertung-type-card:hover,
.bewertung-type-card.active {
    border-color: #459e98;
    background-color: #fff;
}

/* ── Legal Pages ── */

.legal-page { background-color: #fff; }

.legal-content {
    font-family: 'Montserrat Light';
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

.legal-content h2 {
    font-family: 'Montserrat Medium';
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.legal-content h3 {
    font-family: 'Montserrat Medium';
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #000;
}

.legal-content h4 {
    font-family: 'Montserrat Medium';
    font-size: 1rem;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    color: #000;
}

.legal-content p {
    margin-bottom: 1rem !important;
}

.legal-content a {
    color: #459e98;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #3a7d72;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    font-family: 'Montserrat Medium';
}

.legal-content hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 2rem 0;
}



/* ══════════════════════════════════════════════
   RESPONSIVE — all breakpoints grouped here
   ══════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    .header-logo { width: 140px; }
    .footer-logo { width: 140px; }
    .benefit-card-image img { height: 180px; }
    .subject-hero-map { height: 480px; }
    .subject-property-card { padding: 2rem 1.5rem; }
    .score-card { padding: 1rem !important; }
    .score-gauge { max-width: 110px; }
    .chart-canvas { height: 280px; }
    .news-text-card { padding: 2rem; }
}

@media (max-width: 767.98px) {
    .offcanvas-nav-arrow img { width: 22px; height: 17px; }
    .offcanvas-property-field { width: 50%; }
    .offcanvas-property-details { padding: 1rem; }
    .offcanvas-property-value { font-size: 0.9375rem; }
    .btn-hero {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.9375rem;
        min-width: auto;
    }
    .header-logo { width: 120px; }
    .scrolled .header-logo { width: 110px; }
    .benefit-card-image img { height: 200px; }
    .cta-banner { border-radius: 8px; }
    .auth-landing { padding-top: 70px; }
    .auth-badge { min-width: 100%; }
    .auth-card {
        padding: 2rem 1.5rem;
        margin-left: 0rem;
        margin-right: 0rem;
    }
    .auth-landing h1 {
        font-size: 1.75rem !important;
        line-height: 2rem !important;
    }
    .subject-hero-map { height: 380px; }
    .subject-hero-content { padding-top: 72px; }
    .subject-hero h1 { font-size: 1.75rem !important; }
    .subject-hero-title { margin-bottom: 2rem !important; }
    .subject-property-card { padding: 1.5rem 1rem; }
    .subject-section { padding: 2rem 0; }
    .subject-section-first { padding-top: 4rem; }
    .subject-section-last { padding-bottom: 4rem; }
    .news-text-card { padding: 1.75rem 1.5rem; }
    .subject-summary-box { padding: 1.75rem 1.5rem; }
    .subject-cta-banner { padding: 3rem 1.5rem; border-radius: 18px; }
    .score-card h2 { font-size: 1.5rem !important; }
    .chart-canvas { height: 240px; }
    .news-row + .news-row { margin-top: 2.5rem; }
}

@media (max-width: 575.98px) {
    .offcanvas-nav-text {
        flex-grow: 1;
        padding-left: 0rem;
    }
    .offcanvas-label { font-size: 0.875rem; margin-bottom: 0.75rem !important; }
    .header-logo { width: 110px; }
    .benefit-card { margin-bottom: 1rem; }
    .auth-card {
        padding: 1.5rem 1.25rem;
        border-radius: 8px;
    }
    .auth-property-card { flex-direction: column; }
    .auth-property-image { width: 100%; height: 120px; }
    .auth-property-info {
        border-left: 1px solid rgba(255, 255, 255, 0.15);
        border-top: none;
        border-radius: 0 0 8px 8px;
    }
    .sms-digit-box {
        max-width: 42px;
        height: 48px;
        font-size: 1.1rem;
    }
    .contact-info-card .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    .contact-info-card { padding: 1.5rem; }
    /* "Kontaktinformationen" and "Immobilienbewertung" are wider than a 320px column at full size */
    .contact-info-card h4 { font-size: min(1.375rem, 6vw) !important; }
    .topic-card-content h4 { font-size: min(20px, 5.9vw) !important; }
    .profile-banner-title { font-size: 0.875rem; }
    .profile-banner-link { font-size: 0.875rem; }
    .subject-hero-map { height: 300px; }
    .subject-hero-content { padding-top: 56px; }
    .subject-hero h1 { font-size: 1.5rem !important; }
    /* fonts.css pins h1 at 1.85rem !important, too wide for "Datenschutzerklärung" on a 320–375px phone; shrink with the viewport below 400px */
    h1 { font-size: min(1.85rem, 7.4vw) !important; }
    .legal-content { -webkit-hyphens: auto; hyphens: auto; }
    .score-card { padding: 0.75rem !important; }
    .score-card .score-card-head { flex-direction: column-reverse; }
    .score-card .score-card-label { text-align: center !important; }
    .score-gauge { max-width: 90px; }
    .score-card h2 { font-size: 1.25rem !important; }
    .score-card p { font-size: 0.9375rem !important; }
}
