/* Homepage + header. Loaded after the Vite build. */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid #eceff3;
}

.site-header-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: none;
    margin: 0 auto;
    padding: 12px 28px 10px;
    flex-wrap: nowrap;
}

.site-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
    line-height: 1;
}

.site-logo img {
    display: block;
    height: 64px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    object-position: left center;
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 230px;
    flex: 0 0 230px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
}

.site-search svg {
    flex: 0 0 auto;
    color: #9ca3af;
}

.site-search input {
    width: 100%;
    border: 0;
    background: transparent;
    font-size: 13px;
    color: #111827;
    outline: none;
}

.site-search input::placeholder {
    color: #9ca3af;
}

.hidden { display: none !important; }

.site-nav-toggle {
    display: none;
    margin-left: auto;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
}

#site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px 12px;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
}

@media (min-width: 1501px) {
    #site-nav {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
        max-width: calc(100% - 760px);
        flex-wrap: wrap;
    }
}

.site-nav-link {
    position: relative;
    flex: 0 0 auto;
    padding: 8px 0 10px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav-link:hover {
    color: #111827;
}

.site-nav-link.is-active {
    color: #111827;
    font-weight: 700;
}

.site-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: #e10600;
}

.site-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    margin-left: auto;
}

.lang-menu {
    position: relative;
}

.lang-menu summary {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
}

.lang-menu summary::-webkit-details-marker {
    display: none;
}

.lang-menu summary svg.chev {
    color: #6b7280;
}

.lang-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    min-width: 140px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.lang-menu-panel a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.lang-menu-panel a:hover,
.lang-menu-panel a.is-active {
    background: #f3f4f6;
}

.flag-de {
    display: block;
    width: 18px;
    height: 12px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111827;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.tool-link svg {
    color: #111827;
}

.btn-anmelden {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    background: #e10600;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.btn-anmelden:hover {
    background: #c10500;
}

.hero-media {
    position: relative;
    min-height: 560px;
    background: #1c2430 center / cover no-repeat;
    overflow: hidden;
}

.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 16, 28, 0.72) 0%, rgba(10, 16, 28, 0.38) 38%, rgba(10, 16, 28, 0.05) 68%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 78px 28px 150px;
    color: #fff;
}

.hero-copy p.eyebrow {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero-copy h1 {
    max-width: 640px;
    margin: 10px 0 0;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-copy h1 span {
    color: #ff2a22;
}

.hero-copy .lede {
    max-width: 460px;
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.hero-panel-wrap {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: -118px auto 0;
    padding: 0 20px;
}

.hero-panel {
    padding: 16px 18px 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.hero-pill svg {
    flex: 0 0 auto;
}

.hero-pill.is-active {
    background: #e10600;
    color: #fff;
}

.hero-filters {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr 1fr 0.85fr 0.75fr auto;
    gap: 14px;
    align-items: end;
    margin-top: 16px;
}

.hero-field label {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.hero-field select {
    width: 100%;
    height: 46px;
    padding: 0 34px 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    appearance: none;
    outline: none;
}

.hero-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    min-width: 132px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: #e10600;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.hero-search-btn:hover {
    background: #c10500;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 24px 10px;
}

.home-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff1f1;
    color: #e10600;
}

.home-stat strong {
    display: block;
    color: #111827;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.home-stat span {
    display: block;
    margin-top: 2px;
    color: #6b7280;
    font-size: 13.5px;
}

.latest-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 10px;
}

.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.latest-head h2 {
    margin: 0;
    color: #111827;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.latest-head p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 15px;
}

.latest-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border: 1.5px solid #e10600;
    border-radius: 999px;
    color: #e10600;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.latest-all:hover {
    background: #fff5f5;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid #f1f2f4;
}

.pcard-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    background: #e5e7eb;
    overflow: hidden;
}

.pcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pcard-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.pcard-badge.is-sale {
    background: #2563eb;
}

.pcard-badge.is-rent {
    background: #e11d48;
}

.pcard-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    margin: 0;
}

.pcard-fav button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.pcard-fav button.is-on {
    color: #e10600;
}

.pcard-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 16px;
}

.pcard-title {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.pcard-title:hover {
    color: #e10600;
}

.pcard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pcard-loc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: #6b7280;
    font-size: 13px;
}

.pcard-loc svg {
    flex: 0 0 auto;
    color: #e10600;
}

.pcard-price {
    flex: 0 0 auto;
    color: #e10600;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.pcard-price small {
    font-size: 13px;
    font-weight: 700;
}

.favorites-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 20px 20px;
}

.favorites-page h1 {
    margin: 0 0 18px;
    font-size: 32px;
    font-weight: 800;
}

.login-body {
    margin: 0;
    min-height: 100vh;
    background: #e8eef5;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

.login-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    width: min(1120px, calc(100% - 40px));
    min-height: min(720px, calc(100vh - 40px));
    margin: 20px auto;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 36px 28px;
    color: #fff;
    background: #0c2348 center / cover no-repeat;
}

.login-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 24, 58, 0.45) 0%, rgba(6, 20, 52, 0.78) 55%, rgba(5, 16, 42, 0.88) 100%);
}

.login-hero-top,
.login-points {
    position: relative;
    z-index: 1;
}

.login-hero-logo {
    display: block;
    height: 58px;
    width: auto;
    max-width: 210px;
    margin-bottom: 28px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

.login-hero h1 {
    max-width: 420px;
    margin: 0;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.login-hero-top p {
    max-width: 420px;
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.login-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.login-points div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.login-points span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.login-points strong {
    font-size: 14px;
}

.login-points small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 28px;
    background: #fff;
}

.login-card {
    width: min(420px, 100%);
}

.login-card-logo {
    display: block;
    height: 72px;
    width: auto;
    max-width: 240px;
    margin: 0 auto 18px;
    object-fit: contain;
}

.login-card h2 {
    margin: 0;
    text-align: center;
    color: #162033;
    font-size: 28px;
    font-weight: 800;
}

.login-lead {
    margin: 6px 0 22px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form label:not(.login-check) > span {
    display: block;
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
}

.login-form .login-check span {
    display: inline;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.login-form label em {
    color: #e11d2e;
    font-style: normal;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.login-form input:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.login-password {
    position: relative;
    display: block;
}

.login-password input {
    padding-right: 44px;
}

.login-password button {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 48px;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.login-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.login-check input {
    width: 16px;
    height: 16px;
    accent-color: #1e3a5f;
}

.login-row > a,
.login-register a {
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    background: #1e3a5f;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.login-submit:hover {
    background: #162c4a;
}

.login-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    color: #9ca3af;
    font-size: 13px;
}

.login-or::before,
.login-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.login-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.login-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
}

.login-social a:hover {
    background: #f8fafc;
}

.login-register {
    margin: 18px 0 0;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.login-error {
    margin: -6px 0 0;
    color: #dc2626;
    font-size: 13px;
}

.login-status {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #ecfdf3;
    color: #166534;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
        width: min(520px, calc(100% - 24px));
        min-height: 0;
    }

    .login-hero {
        min-height: 280px;
    }

    .login-hero h1 {
        font-size: 28px;
    }
}

.favorites-empty {
    padding: 28px;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    color: #4b5563;
    text-align: center;
}

@media (max-width: 1500px) {
    .site-search {
        display: none;
    }

    .site-nav-toggle {
        display: inline-flex;
    }

    #site-nav:not(.is-open) {
        display: none !important;
    }

    #site-nav.is-open {
        display: flex !important;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        transform: none;
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: auto;
        max-width: none;
        padding: 8px 12px 12px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
        text-align: center;
    }

    .site-nav-link {
        padding: 10px 8px;
    }

    .hero-filters,
    .latest-grid,
    .home-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hero-search-btn {
        grid-column: 1 / -1;
    }

    .hero-copy h1 {
        font-size: 34px;
    }
}

@media (max-width: 720px) {
    .site-tools .tool-link span,
    .lang-menu summary span {
        display: none;
    }

    .hero-filters,
    .latest-grid,
    .home-stats {
        grid-template-columns: 1fr;
    }

    .latest-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
