/* ============================================================
   OLYMP Immobilien – Angebotsseite
   Corporate Design: Bordeaux #924545, Beige #DACDBC, Grau #F2F2F2
   Schrift: Poppins
   Header: 1:1 wie www.olymp-immo.de
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Reset & Basis --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, system-ui, 'Helvetica Neue', Roboto, sans-serif;
    color: #3F3F3F;
    background-color: #FFFFFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- CSS Variablen --- */
:root {
    --primary: #924545;
    --primary-dark: #7a3939;
    --primary-light: #a85858;
    --secondary: #DACDBC;
    --secondary-dark: #c4b5a0;
    --bg-light: #F7F7F7;
    --bg-medium: #F2F2F2;
    --text-dark: #3F3F3F;
    --text-medium: #666666;
    --text-light: #999999;
    --white: #FFFFFF;
    --black: #1a1a1a;
    --header-bg: #3F3F3F;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --max-width: 1280px;
}

/* ============================================================
   HEADER (1:1 wie www.olymp-immo.de)
   ============================================================ */

.site-header {
    background: #3F3F3F;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 2rem;
    border-bottom: none;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo img {
    height: 46px;
    width: auto;
}

.logo-text {
    font-size: 0.5rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
    white-space: nowrap;
}

/* Navigation */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 100%;
}

.nav-links {
    display: flex;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-links > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: normal;
    color: rgba(255,255,255,1);
    padding: 0 12px;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

/* Aktiver Link: Unterstrich-Indikator */
.nav-links > li > a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: rgba(63,63,63,0.93);
    border-radius: 1px;
}

.nav-links > li > a:hover {
    color: rgba(255,255,255,0.75);
}

.nav-chevron {
    transition: transform 0.25s ease;
    opacity: 0.75;
    flex-shrink: 0;
}

.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 190px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.15s ease, visibility 0.15s;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    color: #3F3F3F;
    text-decoration: none;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #f2f2f2;
    color: #3F3F3F;
}

/* CTA Button */
.header-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: #924545;
    color: #ffffff;
    padding: 7px 28px;
    border-radius: 4px;
    transition: background 0.2s ease;
    flex-shrink: 0;
    text-align: left;
    text-decoration: none;
    height: 56px;
    box-sizing: border-box;
}

.cta-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 1;
}

.cta-text-wrap {
    display: flex;
    flex-direction: column;
}

.header-cta:hover {
    background: #7a3939;
}

.cta-main {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    color: #ffffff;
}

.cta-sub {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    color: rgba(255,255,255,0.85);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: var(--transition);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    background: #3F3F3F;
    z-index: 2000;
    flex-direction: column;
    padding: 0 1.5rem 1.2rem;
    overflow-y: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.mobile-overlay.open {
    display: flex;
}

.mobile-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0 1rem;
    border-bottom: none;
}

.mobile-overlay-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    gap: 4px;
}

.mobile-overlay-logo img {
    height: 44px;
    width: auto;
}

.mobile-overlay-logo-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
}

.mobile-overlay-logo-text strong {
    font-weight: 700;
    color: #ffffff;
}

.mobile-overlay-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.mobile-overlay-close:hover {
    opacity: 1;
}

.mobile-overlay-nav {
    flex: 1;
    padding: 0;
}

.mobile-overlay-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-overlay-nav ul li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-overlay-nav ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.mobile-overlay-nav ul li a:hover {
    color: rgba(255,255,255,0.75);
}

.mobile-overlay-nav ul li a svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Mobile Untermenü */
.mobile-submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 0.4rem 1rem;
    border-bottom: none;
}

.mobile-submenu.open {
    display: block;
}

.mobile-submenu li {
    border-bottom: none !important;
}

.mobile-submenu li a {
    padding: 0.45rem 0 !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    color: rgba(255,255,255,0.75) !important;
    letter-spacing: 0 !important;
}

.mobile-submenu li a:hover {
    color: #ffffff !important;
}

.mobile-sub-arrow {
    transition: transform 0.25s ease;
}

.mobile-has-sub.open > a .mobile-sub-arrow {
    transform: rotate(90deg);
}

.mobile-overlay-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #924545;
    color: #ffffff;
    padding: 11px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.2s;
}

.mobile-overlay-cta:hover {
    background: #7a3939;
}

.mobile-overlay-cta-text {
    display: flex;
    flex-direction: column;
}

.mobile-overlay-cta-main {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.mobile-overlay-cta-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.3;
    font-weight: 400;
}

/* ============================================================
   HERO-BEREICH
   ============================================================ */

.hero-wrapper {
    background:
        linear-gradient(rgba(0,0,0,0.58), rgba(0,0,0,0.58)),
        url('/assets/hero_bg.webp') center 30% / cover no-repeat;
    background-attachment: scroll;
    overflow-x: hidden;
}

.hero {
    background: transparent;
    color: var(--white);
    padding: 5rem 2rem 4rem;
    text-align: center;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.92);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

/* ============================================================
   SUCHFILTER
   ============================================================ */

.search-section {
    background: transparent;
    padding: 0 2rem 2.5rem;
    overflow: hidden;
}

.search-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Mobil-Toggle-Button (nur auf Mobil sichtbar) */
.search-toggle-btn {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.2rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    letter-spacing: 0.3px;
}
.search-toggle-arrow {
    margin-left: auto;
    transition: transform 0.25s ease;
}
.search-toggle-btn.open .search-toggle-arrow {
    transform: rotate(180deg);
}

.search-form {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

/* Zeile 1: Art | Objekttyp | Preis | Suche */
.search-row1 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 3fr;
    gap: 1rem;
    align-items: end;
}

/* Zeile 2: Zimmer | Fläche | Suchen */
.search-row2 {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1rem;
    align-items: end;
}

.form-group--search {
    /* Suche nimmt mehr Platz in Zeile 1 */
}

.form-group--wide {
    grid-column: span 1;
}
.form-group--btn {
    grid-column: span 1;
    grid-row: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.form-group select,
.form-group input {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: var(--text-dark);
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.4rem;
    cursor: pointer;
}

/* Kombiniertes Fläche-Feld */
.input-combo {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f5f5f5;
    transition: var(--transition);
}
.input-combo:focus-within {
    border-color: var(--secondary);
    background: #fff;
}
.input-combo input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    min-width: 0;
    padding: 0.7rem 0.8rem;
}
.input-combo input:focus {
    outline: none;
    background: transparent !important;
}
.input-combo select {
    border: none !important;
    border-left: 1px solid #ddd !important;
    background: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.7rem center !important;
    border-radius: 0 !important;
    padding: 0.7rem 2rem 0.7rem 0.7rem;
    font-size: 0.85rem;
    color: #555;
    flex-shrink: 0;
    width: auto;
    cursor: pointer;
}
.input-combo select:focus {
    outline: none;
}

.form-group select option {
    background: #fff;
    color: var(--text-dark);
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    background: #fff;
}

.search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================================
   ERGEBNIS-BEREICH
   ============================================================ */

.results-section {
    padding: 2rem;
    background: var(--bg-light);
    min-height: 60vh;
}

.results-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.results-count strong {
    color: var(--text-dark);
}

.results-sort select {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
}

/* ============================================================
   IMMOBILIEN-GRID & KARTEN
   ============================================================ */

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

.estate-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.estate-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.estate-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Seitenverhältnis */
    overflow: hidden;
    background: var(--bg-medium);
}

.estate-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.estate-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-available { background: rgba(0,0,0,0.45); color: var(--white); backdrop-filter: blur(4px); }
.badge-reserved { background: #d4a017; color: var(--white); }
.badge-sold { background: var(--primary); color: var(--white); }

.badge-new {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-top {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #d4a017;
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.estate-card-body {
    padding: 1.2rem;
}

.estate-location {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.estate-location svg {
    width: 14px;
    height: 14px;
    fill: var(--text-light);
}

.estate-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.estate-type {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--bg-medium);
}

.estate-features {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.estate-feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-medium);
}

.estate-feature svg {
    width: 16px;
    height: 16px;
    fill: var(--text-light);
    flex-shrink: 0;
}

.estate-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-top: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 1rem 0;
}

.pagination button {
    background: var(--white);
    border: 1px solid #ddd;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 40px;
}

.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   DETAILSEITE
   ============================================================ */

.detail-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.detail-breadcrumb {
    padding: 1.5rem 0;
}

.detail-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.detail-breadcrumb a:hover {
    color: var(--primary-dark);
}

/* Galerie */
.detail-gallery-wrap {
    width: 100%;
    margin-bottom: 1.5rem;
}

.detail-hero-gallery {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-medium);
    margin-bottom: 2rem;
}

.detail-hero-gallery img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center;
}

.detail-hero-gallery {
    margin-bottom: 0.75rem;
}

/* Thumbnail-Leiste */
.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-medium);
    margin-bottom: 1.5rem;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}
.gallery-thumbs::-webkit-scrollbar-track {
    background: var(--bg-medium);
    border-radius: 2px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 88px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: var(--bg-medium);
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.65;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb:hover {
    opacity: 0.9;
    border-color: var(--primary-light);
}

.gallery-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

/* Grundriss-Hauptbild etwas weniger hoch (quadratischer) */
.detail-grundriss-main img {
    height: 380px;
    object-fit: contain;
    background: var(--bg-light);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover { background: rgba(0,0,0,0.8); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Detail Content Layout */
.detail-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

/* Detail Header */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.detail-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.detail-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 0.3rem;
}

.detail-location svg {
    fill: var(--text-light);
    flex-shrink: 0;
}

.detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.detail-price-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Detail Meta (Eckdaten) */
.detail-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-medium);
}

.detail-meta-item {
    background: var(--bg-light);
    border: 1px solid var(--bg-medium);
    border-radius: var(--radius);
    padding: 0.8rem 1.2rem;
    text-align: center;
    min-width: 100px;
}

.detail-meta-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.detail-meta-item span {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-type {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

/* Detail Sections */
.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

.detail-section p {
    font-size: 0.92rem;
    color: var(--text-medium);
    line-height: 1.7;
    white-space: pre-line;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--bg-medium);
    font-size: 0.88rem;
}

.detail-item:nth-child(odd) {
    background: var(--bg-light);
}

.detail-item-label { color: var(--text-light); }
.detail-item-value { color: var(--text-dark); font-weight: 500; text-align: right; }

/* Sidebar */
.detail-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--bg-medium);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.sidebar-card p {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-secondary:hover { background: var(--primary); color: var(--white); }

/* Sidebar Contact */
.sidebar-contact-person {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sidebar-contact-person img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-contact-person strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.sidebar-contact-person span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.sidebar-contact-info a {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    transition: var(--transition);
}

.sidebar-contact-info a:hover { color: var(--primary-dark); }

/* ============================================================
   KONTAKTSEITE
   ============================================================ */

.kontakt-page {
    min-height: calc(100vh - 80px);
    background-color: var(--black);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.kontakt-inner {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Kontakt Formular-Spalte – helles Panel auf dunklem Hintergrund */
.kontakt-form-col {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: #1a1a1a;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

.kontakt-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.kontakt-back:hover { color: var(--primary-dark); }

.kontakt-objekt-titel {
    display: block;
    background: #2d2d2d;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-top: 0.8rem;
    margin-bottom: 0;
    letter-spacing: 0.2px;
    max-width: 100%;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

.kontakt-objekt-titel::after {
    content: none;
}

.kontakt-subtitle {
    display: none;
}

.kontakt-form-col h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.kontakt-form-col h1::after {
    content: none;
}

/* PLZ + Ort Badge unter dem Titel */
.kontakt-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--secondary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}
.kontakt-location-badge svg {
    flex-shrink: 0;
    opacity: 0.85;
}

/* Anrede + Vorname nebeneinander, Nachname darunter */
.kontakt-name-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.kontakt-field--anrede select {
    width: 100%;
}
.kontakt-field--name {
    flex: 1;
}

.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.kontakt-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.kontakt-field input,
.kontakt-field select,
.kontakt-field textarea {
    width: 100%;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-bottom: 2px solid #bbb;
    color: #1a1a1a;
    padding: 0.85rem 1rem;
    border-radius: var(--radius) var(--radius) 0 0;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
}

.kontakt-field input::placeholder,
.kontakt-field textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

.kontakt-field input:focus,
.kontakt-field select:focus,
.kontakt-field textarea:focus {
    outline: none;
    border-color: #ddd;
    border-bottom-color: var(--primary);
    background: #fff;
    box-shadow: inset 0 -2px 0 var(--primary);
}

.kontakt-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.kontakt-field select option {
    background: #fff;
    color: #1a1a1a;
}

.kontakt-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Telefon-Feld mit Prefix */
.phone-input-group {
    display: flex;
    align-items: stretch;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f5f5f5;
    transition: var(--transition);
}
.phone-input-group:focus-within {
    border-color: var(--secondary);
    background: #fff;
}

/* Country-Code Select (EU-Vorwahlen) */
.country-code-select {
    background: transparent;
    border: none;
    border-right: 1px solid #ddd;
    border-radius: 0;
    padding: 0.85rem 0.5rem;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 0.85rem;
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    padding-right: 1.4rem;
}

.country-code-select:focus {
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
}

.country-code-select option {
    background: #fff;
    color: #1a1a1a;
}

.phone-input-group input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    flex: 1;
    min-width: 0;
}
.phone-input-group input:focus {
    outline: none;
    background: transparent !important;
}

.kontakt-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 0.5rem;
}

.kontakt-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.kontakt-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.kontakt-privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #666;
}

.kontakt-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.kontakt-privacy a {
    color: var(--primary);
    text-decoration: underline;
}

.kontakt-success {
    text-align: center;
    padding: 2rem 0;
}

.kontakt-success h2 {
    color: var(--white);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.kontakt-success p {
    color: rgba(255,255,255,0.7);
}

/* Kontakt Info-Spalte */
.kontakt-info-col {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: var(--white);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.kontakt-person {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.kontakt-person-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.kontakt-person strong {
    display: block;
    font-size: 1rem;
    color: var(--white);
}

.kontakt-person span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.kontakt-details {
    margin-bottom: 2rem;
}

.kontakt-detail-item {
    margin-bottom: 1.2rem;
}

.kontakt-detail-item strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.3rem;
}

.kontakt-detail-item span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.kontakt-detail-item a {
    color: var(--secondary);
    transition: var(--transition);
}

.kontakt-detail-item a:hover { color: var(--white); }

.kontakt-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.kontakt-social a {
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.kontakt-social a:hover { color: var(--secondary); }

.kontakt-map {
    width: 100%;
    height: 240px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ============================================================
   DANKESEITE
   ============================================================ */

.danke-page {
    min-height: calc(100vh - 80px);
    position: relative;
    background-color: #111;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.danke-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 0;
}

.danke-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
}

.danke-video {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.danke-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.danke-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.danke-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    margin-bottom: 2rem;
}

.danke-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.danke-back:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================================
   LOADING / EMPTY STATES
   ============================================================ */

.loading {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-medium);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    fill: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* ============================================================
   FOOTER (1:1 wie www.olymp-immo.de)
   ============================================================ */

.site-footer {
    background: #2a2a2a;
    color: rgba(255,255,255,0.7);
    padding: 3rem 2rem 2rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-img {
    height: 48px;
    width: auto;
}

.footer-logo-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.3px;
}

/* Footer Address */
.footer-address {
    margin-bottom: 1.5rem;
}

.footer-address p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.3rem;
}

.footer-address a {
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.footer-address a:hover {
    color: var(--secondary);
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255,255,255,0.4);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--secondary);
}

/* Footer Columns */
.footer-col h4 {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-subtitle {
    margin-top: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.4rem;
}

.footer-col ul li a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 999;
    font-size: 1.2rem;
}

.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) and (min-width: 769px) {
    .header-cta { display: none; }
    .nav-links > li > a { padding: 0.6rem 0.6rem; font-size: 0.72rem; }
    .estates-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .detail-content { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
    .kontakt-inner { grid-template-columns: 1fr; }
    /* Suchleiste: 2-zeilig bei Tablet */
    .search-row1 {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.7rem;
    }
    .search-row1 .form-group--search {
        grid-column: 1 / -1;
    }
    .search-row2 {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 0.7rem;
    }
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    .header-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    .detail-media-section { scroll-margin-top: 115px; }

    .site-header {
        background: #3F3F3F !important;
    }

    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Suchmaske Mobil */
    .search-toggle-btn { display: flex; }
    .search-section {
        padding: 0 1rem 1.5rem;
        overflow: visible;
    }
    .search-inner {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    .search-form {
        display: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 1rem !important;
        margin-top: 0.6rem;
        overflow: hidden;
        align-items: stretch !important;
    }
    .search-form.open { display: flex !important; flex-direction: column !important; align-items: stretch !important; }
    .search-row1 {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Zeile 2: einspaltig stapeln */
    .search-row2 {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .search-row2 .form-group {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .search-row2 .form-group input,
    .search-row2 .form-group select {
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }
    /* Fläche-Kombifeld: Zahl links, Dropdown rechts nebeneinander */
    .search-row2 .input-combo {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }
    .search-row2 .input-combo input {
        flex: 0 0 35% !important;
        width: 35% !important;
        min-width: 0 !important;
        max-width: 35% !important;
    }
    .search-row2 .input-combo select {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    .search-form .form-group {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .search-form .form-group input,
    .search-form .form-group select {
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }
    .search-btn {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .form-group--wide { grid-column: 1 !important; }
    .form-group--btn { grid-column: 1 !important; grid-row: auto !important; }
    .estates-grid { grid-template-columns: 1fr; }
    .results-header { flex-direction: column; align-items: flex-start; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-header { flex-direction: column; }
    .detail-content { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
    .detail-page { padding: 0 1rem 2rem; }
    .kontakt-inner { grid-template-columns: 1fr; }
    .kontakt-info-col { display: none; }
    .detail-hero-gallery img { height: 320px; }
    .gallery-thumb { width: 72px; height: 50px; }
    .detail-header h1 { font-size: 1.25rem; }
    .detail-price { font-size: 1.5rem; }
    .detail-grundriss-main img { height: 280px; }
    .detail-section p { font-size: 0.88rem; }
    .lightbox-box { width: 95vw; height: 85vh; }
    .lightbox-img { padding: 1rem 1rem 0.5rem; }
    .lightbox-nav { padding: 0.4rem 1rem 0.75rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .kontakt-form-col h1 { font-size: 1.3rem; margin-bottom: 0.3rem; }
    .kontakt-page { padding: 0.75rem 0.75rem 2rem; min-height: unset; align-items: flex-start; }
    .kontakt-form-col { padding: 1.25rem 1rem; border-radius: 12px; }
    .kontakt-back { margin-bottom: 0.5rem; font-size: 0.85rem; }
    .kontakt-objekt-titel { font-size: 0.85rem; padding: 0.4rem 0.75rem; margin-top: 0.5rem; }
    .kontakt-form { gap: 0.75rem; }
    .kontakt-field label { font-size: 0.68rem; margin-bottom: 0.2rem; }
    .kontakt-field input, .kontakt-field select, .kontakt-field textarea { padding: 0.65rem 0.75rem; font-size: 0.9rem; }
    .country-code-select { padding: 0.65rem 0.4rem; }
    .kontakt-field textarea { min-height: 70px; }
    .kontakt-privacy { font-size: 0.8rem; gap: 0.5rem; }
    .kontakt-submit { padding: 0.85rem; font-size: 0.9rem; }
    .kontakt-location-badge { font-size: 0.75rem; padding: 0.25rem 0.6rem; margin-top: 0.3rem; margin-bottom: 0.6rem; }
    .danke-content h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero { padding: 2.5rem 1rem 2rem; }
    .hero h1 { font-size: 1.5rem; }
    .search-section { padding: 0 1rem 1.5rem; }
    .results-section { padding: 1.5rem 1rem; }
    .estate-features { gap: 0.8rem; }
    .estate-price { font-size: 1.1rem; color: var(--text-dark); }
    .detail-page { padding: 0 0.75rem 2rem; }
    .detail-hero-gallery img { height: 260px; }
    .gallery-thumb { width: 60px; height: 42px; }
    .detail-header h1 { font-size: 1.1rem; }
    .detail-grundriss-main img { height: 220px; }
    .detail-meta { gap: 0.5rem; }
    .detail-meta-item { min-width: 80px; padding: 0.6rem 0.8rem; }
    .danke-video { border-radius: var(--radius); }
}


/* ============================================================
   KARTENSUCHE (Suchseite)
   ============================================================ */

.map-section {
    background: var(--white);
    padding: 2rem 2rem 3rem;
    border-top: 1px solid var(--bg-medium);
}

.map-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 0 0;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.map-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.map-toggle-btn {
    display: none;
    background: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.map-toggle-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.list-map {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--bg-medium);
    margin-bottom: 0.5rem;
}

/* ============================================================
   DETAIL: QUICK-BUTTONS (Video, Grundriss, 360°)
   ============================================================ */

.detail-quick-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    border: 1.5px solid #b8a98a;
    color: #7a6340;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.quick-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.quick-btn svg {
    flex-shrink: 0;
}

.quick-btn:hover svg {
    fill: var(--white);
}

/* ============================================================
   DETAIL: MEDIEN-SEKTIONEN (Video, 360°, Grundrisse)
   ============================================================ */

.detail-media-section {
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--bg-medium);
    scroll-margin-top: 120px; /* sticky header (100px) + 20px Luft */
}

.detail-media-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.media-subtitle {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.media-embed {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-medium);
    box-shadow: var(--shadow);
}

.media-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.tour-embed {
    aspect-ratio: 16/10;
}

/* Grundrisse */
.grundriss-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.grundriss-item {
    background: var(--white);
    border: 1px solid var(--bg-medium);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.grundriss-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.grundriss-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: var(--white);
    padding: 1rem;
}

.grundriss-title {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    color: var(--text-medium);
    text-align: center;
    border-top: 1px solid var(--bg-medium);
}

/* Grundriss Caption (unter Hauptbild) */
.grundriss-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0.4rem 0 0.6rem;
    min-height: 1.2em;
}

/* ============================================================
   LIGHTBOX (Grundrisse)
   ============================================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox-overlay.open {
    opacity: 1;
}

.lightbox-box {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90vw;
    max-width: 1000px;
    height: 90vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.lightbox-overlay.open .lightbox-box {
    transform: scale(1);
}

.lightbox-img {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: contain;
    display: block;
    padding: 1.5rem 1.5rem 0.75rem;
    box-sizing: border-box;
}

.lightbox-caption {
    font-size: 0.95rem;
    color: var(--text-medium);
    text-align: center;
    padding: 0 1.5rem 0.75rem;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-medium);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius);
    transition: color 0.15s, background 0.15s;
    z-index: 1;
}

.lightbox-close:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.lightbox-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.lightbox-nav button {
    background: var(--bg-light);
    border: 1px solid var(--bg-medium);
    border-radius: var(--radius);
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}

.lightbox-nav button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================================================
   FORMULAR: VALIDIERUNG & FEHLER
   ============================================================ */

.field-error {
    display: block;
    font-size: 0.78rem;
    color: #ff6b6b;
    margin-top: 0.3rem;
}

.field-invalid {
    border-color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1) !important;
}

.kontakt-submit-error {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 8px;
    color: #c0392b;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.7rem 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

/* ============================================================
   MOBILE HEADER: Hamburger-Animation
   ============================================================ */

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   RESPONSIVE ERGÄNZUNGEN
   ============================================================ */

@media (max-width: 768px) {
    .list-map { height: 300px; }
    .map-header { flex-direction: column; gap: 0.8rem; align-items: flex-start; }
    .detail-quick-buttons { gap: 0.5rem; }
    .quick-btn { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
    .grundriss-gallery { grid-template-columns: 1fr; }
    .media-embed { border-radius: var(--radius); }
    .country-code-select { width: 100px; min-width: 100px; max-width: 100px; font-size: 0.78rem; }
    .kontakt-name-row { grid-template-columns: 90px 1fr; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .list-map { height: 250px; }
    .detail-quick-buttons { flex-direction: row; flex-wrap: wrap; }
    .quick-btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   PROVISIONSFREI BADGE
   ============================================================ */

/* Detailseite: neben dem Preis */
.provisionsfrei-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0,0,0,0.07);
    color: var(--text-medium);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    letter-spacing: 0.3px;
    white-space: nowrap;
    margin-left: auto;
}

/* Übersichtsseite: kleines Badge neben dem Preis */
.estate-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
    padding-right: 0.75rem;
}

.estate-price-row .estate-price {
    margin-bottom: 0;
}

.provisionsfrei-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0,0,0,0.08);
    color: var(--text-medium);
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.1);
}

/* ============================================================
   MOBILER STICKY EXPOSÉ-BUTTON
   ============================================================ */

/* Default: auf Desktop/Tablet versteckt */
.mobile-sticky-expose {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-expose {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        padding: 0.6rem 1rem 0.75rem;
        background: rgba(255,255,255,0.88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
        border-top: 1px solid rgba(0,0,0,0.08);
    }

    .sticky-expose-label {
        margin: 0 0 0.5rem;
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--text-dark);
        text-align: center;
        letter-spacing: 0.2px;
    }

    .mobile-sticky-expose a {
        display: block;
        width: 100%;
        text-align: center;
        background: rgba(146, 64, 14, 0.92);
        color: var(--white);
        font-weight: 700;
        font-size: 1rem;
        padding: 0.85rem 1.5rem;
        border-radius: var(--radius);
        text-decoration: none;
        letter-spacing: 0.3px;
        transition: var(--transition);
    }

    .mobile-sticky-expose a:hover {
        background: var(--primary-dark);
    }

    /* Scroll-Top-Button auf Mobile: über dem Sticky-Button */
    .scroll-top {
        bottom: 7.5rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        font-size: 1rem;
        background: rgba(255,255,255,0.9);
        color: var(--text-dark);
        border: 1px solid var(--bg-medium);
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }

    .scroll-top:hover {
        background: var(--bg-light);
        transform: none;
    }

    /* Abstand damit Inhalt nicht hinter dem Sticky-Button verschwindet */
    .detail-page {
        padding-bottom: 100px;
    }

    /* Detail-Meta-Boxen kleiner auf Mobile */
    .detail-meta-item {
        min-width: 68px;
        padding: 0.45rem 0.6rem;
    }

    .detail-meta-item strong {
        font-size: 0.95rem;
    }

    .detail-meta-item span {
        font-size: 0.65rem;
    }
}

/* ============================================================
   Cookie Banner (DSGVO)
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #2d2d2d;
    border-top: 3px solid #b8a98a;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
    padding: 1.25rem 1.5rem;
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 260px;
    color: #f0ece4;
    font-size: 0.88rem;
    line-height: 1.5;
}

.cookie-banner-text strong {
    display: block;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.cookie-banner-text p {
    margin: 0;
    color: #ccc;
}

.cookie-banner-text a {
    color: #b8a98a;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #d4c4a8;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #b8a98a;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #7a6340;
}

.cookie-btn-decline {
    background: transparent;
    color: #aaa;
    border: 1px solid #555;
}

.cookie-btn-decline:hover {
    background: #3a3a3a;
    color: #fff;
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: 1rem;
    }
    .cookie-banner-inner {
        gap: 1rem;
    }
    .cookie-banner-actions {
        width: 100%;
    }
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}
