/* ============================================
   Seydelmann Immobilien - Style Sheet
   ============================================ */

/* --- Custom Properties --- */
:root {
    --primary: #2C3E50;
    --primary-light: #34495E;
    --primary-dark: #1A252F;
    --accent: #C9A84C;
    --accent-hover: #b8963e;
    --bg: #FFFFFF;
    --bg-section: #E2E4E7;
    --text: #333333;
    --text-light: #666666;
    --text-on-dark: #FFFFFF;
    --border: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius: 6px;
    --transition: 0.3s ease;
    --max-width: 1200px;
    --header-height: 80px;
}

/* --- Lokale Fonts (EB Garamond) --- */
@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/eb-garamond-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/eb-garamond-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'EB Garamond';
    font-style: italic;
    font-weight: 400 500;
    font-display: swap;
    src: url('../fonts/eb-garamond-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'EB Garamond';
    font-style: italic;
    font-weight: 400 500;
    font-display: swap;
    src: url('../fonts/eb-garamond-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: var(--text-on-dark);
    padding: 0.5rem 1rem;
    z-index: 10000;
    font-size: 0.9rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    color: var(--primary);
}

h1 { font-size: 40px; font-weight: 700; }
h2 { font-size: 32px; font-weight: 700; }
h3 { font-size: 22.4px; font-weight: 600; }
h4 { font-size: 17.6px; font-weight: 600; }

p {
    margin-bottom: 1rem;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section--alt {
    background: var(--bg-section);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.06), inset 0 -4px 8px rgba(0, 0, 0, 0.06);
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__header h2 {
    margin-bottom: 0.75rem;
}

.section__header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn--primary {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn--primary:hover {
    background: var(--accent-hover);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--outline {
    background: transparent;
    color: var(--text-on-dark);
    border: 2px solid var(--text-on-dark);
}

.btn--outline:hover {
    background: var(--text-on-dark);
    color: var(--primary);
}

.btn--dark {
    background: var(--primary);
    color: var(--text-on-dark);
}

.btn--dark:hover {
    background: var(--primary-light);
    color: var(--text-on-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.text-center { text-align: center; }

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
    background: var(--bg);
    box-shadow: var(--shadow);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.header__logo img {
    height: 60px;
    width: auto;
}

.header--home .header__logo img {
    display: none;
}

.header--home.header--scrolled .header__logo img {
    display: block;
}

.nav__list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    color: var(--text-on-dark);
    position: relative;
    padding: 0.25rem 0;
}

.header--scrolled .nav__link {
    color: var(--primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--accent);
}

/* Subpage header (already scrolled look) */
.header--subpage {
    background: var(--bg);
    box-shadow: var(--shadow);
}

.header--subpage .header__logo img {
    height: 60px;
    background: transparent;
    padding: 0;
}

.header--subpage .nav__link {
    color: var(--primary);
}

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.nav__toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-on-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.header--scrolled .nav__toggle span,
.header--subpage .nav__toggle span {
    background: var(--primary);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-on-dark);
    background: var(--primary-dark);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    /* Eigenes Bild: ersetzen Sie die naechste Zeile durch:
       background: url('../assets/hero.jpg') center/cover no-repeat; */
    background:
        linear-gradient(135deg, rgba(26, 37, 47, 0.97) 0%, rgba(44, 62, 80, 0.92) 50%, rgba(52, 73, 94, 0.97) 100%),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 35px,
            rgba(201, 168, 76, 0.03) 35px,
            rgba(201, 168, 76, 0.03) 70px
        );
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.hero__bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.05), transparent);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 1.5rem;
}

.hero__logo {
    height: 320px;
    width: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.hero__content h1 {
    color: var(--text-on-dark);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero__content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Page Hero (Subpages) --- */
.page-hero {
    background: var(--primary);
    color: var(--text-on-dark);
    padding: 8rem 0 3rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-hero h1 {
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
}

.page-hero p {
    opacity: 0.85;
    font-size: 1.15rem;
}

/* --- Breadcrumbs --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--text-on-dark);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb__separator {
    margin: 0 0.15rem;
}

.breadcrumb__current {
    opacity: 0.7;
}

/* --- About Teaser --- */
.about-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-teaser__img {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    min-height: 300px;
}

.about-teaser__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    position: absolute;
    top: 0;
    left: 0;
}

.about-teaser__text h2 {
    margin-bottom: 1rem;
}

.about-teaser__text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* --- Services / Leistungen --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    color: var(--accent);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Immobilien Grid --- */
.immobilien-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.immobilien-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.immobilien-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.immobilien-card__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--bg-section);
}

.immobilien-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    aspect-ratio: 16/10;
    background: var(--bg-section);
}

.immobilien-card__body {
    padding: 1.25rem;
}

.immobilien-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.immobilien-card__address {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.immobilien-card__details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.immobilien-card__detail {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-light);
}

.immobilien-card__detail svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.immobilien-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.immobilien-card__link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.immobilien-card__link:hover {
    color: var(--accent);
}

/* Loader */
.loader {
    text-align: center;
    padding: 3rem;
}

.loader__spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader__text {
    margin-top: 1rem;
    color: var(--text-light);
}

.immobilien-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.immobilien-empty p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* --- Contact Teaser --- */
.contact-teaser {
    background: var(--bg-section);
    color: var(--text);
    padding: 4rem 0;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.06), inset 0 -4px 8px rgba(0, 0, 0, 0.06);
}

.contact-teaser__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-teaser h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-teaser p {
    opacity: 0.9;
}

.contact-teaser__info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.contact-teaser__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    opacity: 0.9;
}

.contact-teaser__item a {
    color: inherit;
    text-decoration: none;
}

.contact-teaser__item a:hover {
    color: var(--accent);
}

.contact-teaser__item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}

.contact-teaser__actions {
    text-align: center;
}

/* --- Contact Page --- */
.contact-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Honeypot */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    display: none;
}

.form-message--success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message--error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Contact sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-box {
    background: var(--bg-section);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-info-box h3 {
    margin-bottom: 1.25rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.contact-info-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 0.2rem;
}

.contact-info-item span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-info-item a {
    color: var(--text-light);
}

.contact-info-item a:hover {
    color: var(--accent);
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* --- About Page --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-content h2 {
    margin-bottom: 1rem;
}

.about-content p,
.about-content > div p {
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: justify;
}

.about-image-placeholder {
    background: var(--bg-section);
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.95rem;
    border: 2px dashed var(--border);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-highlight {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-highlight__icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    color: var(--accent);
}

.about-highlight__icon svg {
    width: 100%;
    height: 100%;
}

.about-highlight h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.about-highlight p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- Legal Pages (Impressum, Datenschutz) --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin: 2rem 0 0.75rem;
}

.legal-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    margin: 0 0 1rem 1.5rem;
}

.legal-content li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.legal-content .placeholder {
    background: #FFF3CD;
    border: 1px solid #FFEAA7;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    color: #856404;
}

/* --- Footer --- */
.footer {
    background: var(--primary);
    color: var(--text-on-dark);
    padding: 4rem 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__brand p {
    opacity: 0.75;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.footer__brand img {
    height: 80px;
}

.footer h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a {
    color: var(--text-on-dark);
    opacity: 0.75;
    font-size: 0.95rem;
}

.footer__links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.75;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer__contact-item a {
    color: inherit;
    text-decoration: none;
}

.footer__contact-item a:hover {
    color: var(--accent);
}

.footer__contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--accent);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: var(--text-on-dark);
    padding: 1.25rem;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-banner__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.cookie-banner p a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.btn--outline-light {
    background: transparent;
    color: var(--text-on-dark);
    border: 2px solid var(--text-on-dark);
}

.btn--outline-light:hover {
    background: var(--text-on-dark);
    color: var(--primary-dark);
}

/* --- Google Maps Consent Placeholder --- */
.map-consent-placeholder {
    background: var(--bg-section);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.map-consent-placeholder p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.map-consent-placeholder .btn {
    margin-top: 0.5rem;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg);
    border-radius: var(--radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal__header h2 {
    font-size: 1.3rem;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    line-height: 1;
}

.modal__close:hover {
    color: var(--text);
}

.modal__body {
    padding: 1.5rem;
}

.modal__gallery {
    margin-bottom: 1.5rem;
}

.modal__gallery-main {
    position: relative;
    background: #1a1a1a;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal__gallery-prev,
.modal__gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 2;
}

.modal__gallery-prev:hover,
.modal__gallery-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal__gallery-prev {
    left: 0.75rem;
}

.modal__gallery-next {
    right: 0.75rem;
}

.modal__gallery-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    z-index: 2;
}

.modal__gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.modal__gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.modal__gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.modal__gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.modal__gallery-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.55;
    border: 2px solid transparent;
    transition: opacity var(--transition), border-color var(--transition);
    flex-shrink: 0;
}

.modal__gallery-thumb:hover {
    opacity: 0.85;
}

.modal__gallery-thumb.active {
    opacity: 1;
    border-color: var(--accent);
}

/* Feature Tags */
.modal__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal__feature-tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 2rem;
    font-size: 0.85rem;
    color: var(--text);
    background: var(--bg-section);
}

/* Photo Count Badge on Card */
.immobilien-card__img-wrap {
    position: relative;
}

.immobilien-card__photo-count {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.immobilien-card__photo-count svg {
    flex-shrink: 0;
}

.modal__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal__detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.modal__detail-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.modal__detail-value {
    font-weight: 600;
}

.modal__description-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.modal__description-section h4 {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.modal__description-section p {
    color: var(--text-light);
    white-space: pre-line;
}

.modal__actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .immobilien-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 { font-size: 32px; }
    h2 { font-size: 25.6px; }

    .section {
        padding: 3.5rem 0;
    }

    /* Nav mobile */
    .nav__toggle {
        display: flex;
    }

    .nav__list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .nav__list.active {
        transform: translateX(0);
    }

    .nav__list .nav__link {
        color: var(--primary);
        font-size: 1.2rem;
    }

    /* Hero */
    .hero__logo {
        height: 220px;
    }

    .hero__content h1 {
        font-size: 2.2rem;
    }

    .hero__content p {
        font-size: 1.1rem;
    }

    /* About teaser */
    .about-teaser {
        grid-template-columns: 1fr;
    }

    .about-teaser__img {
        order: -1;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Immobilien */
    .immobilien-grid {
        grid-template-columns: 1fr;
    }

    /* Contact teaser */
    .contact-teaser__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-teaser__actions {
        margin-top: 1rem;
    }

    /* Contact page */
    .contact-page {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* About page */
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
    }

    /* Cookie banner */
    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    /* Modal */
    .modal__details {
        grid-template-columns: 1fr;
    }

    .modal__gallery-prev,
    .modal__gallery-next {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .modal__gallery-prev {
        left: 0.4rem;
    }

    .modal__gallery-next {
        right: 0.4rem;
    }

    .modal__gallery-thumb {
        width: 56px;
        height: 42px;
    }

    /* Page hero */
    .page-hero {
        padding: 7rem 0 2.5rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}
