/* --- CSS Variablen --- */
:root {
    --gold: #daab29;
    --dark-blue: #2a5161;
    --white: #ffffff;
    --light-grey: #f8fafa;
    --text-dark: #1a1a1a;
}

/* --- Grund-Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1100px;
}

/* --- Das Logo-Design (basiert auf Vorlage) --- */
header {
    padding: 3rem 0;
    background-color: var(--white);
    text-align: center;
    border-bottom: 4px solid var(--gold);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.logo-top {
    font-family: 'Bodoni Moda', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 0.9;
    letter-spacing: -1px;
}

.logo-divider {
    width: 105%; /* Etwas breiter als die Schrift */
    height: 2px;
    background-color: var(--text-dark);
    margin: 0.6rem 0;
}

.logo-bottom {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1.4rem; /* Extremes Spacing */
    margin-right: -1.4rem; /* Ausgleich für letztes Zeichen */
    line-height: 1;
}

/* --- Navigation --- */
nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    padding: 0;
    margin: 0;
}

nav ul li a {
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--dark-blue);
    
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    transform: scale(1.05);
    color: var(--dark-blue);
}



/* --- Hero --- */
.hero {
    position: relative;
    margin-bottom: 6rem;
}

.hero-image {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    filter: brightness(0.85);
}

.hero-text {
    position: relative;
    margin-top: -100px;
    background: var(--white);
    padding: 3.5rem;
    max-width: 850px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    text-align: center;
    z-index: 5;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

/* --- Sektionen --- */
.content-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--dark-blue);
    display: inline-block;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
}

/* --- Termine --- */
.calendar-item {
    display: flex;
    background: var(--light-grey);
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
    border-left: 6px solid var(--dark-blue);
}

.calendar-item:hover {
    transform: translateX(10px);
}

.date-box {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 1.5rem;
    min-width: 100px;
    text-align: center;
    width: 140px;          /* Zwingt alle Boxen auf exakt dieselbe Breite */
    flex-shrink: 0;        /* Verhindert, dass die Box bei wenig Platz kleiner wird */
    text-align: center;    /* Hält die Zahl und den Monat schön in der Mitte */
}

.date-box .day { font-size: 2.2rem; font-weight: 700; display: block; }
.date-box .month { font-size: 0.8rem; text-transform: uppercase; color: var(--gold); letter-spacing: 1px; }

.event-details { padding: 1.5rem 2rem; }
.event-details h4 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 0.5rem; }

/* --- Zitate Slider --- */
.bg-light { background-color: var(--dark-blue); color: var(--white); text-align: center; }
.bg-light h3 { color: var(--white); border-bottom-color: var(--gold); }

.slide blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.slide .author { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.arrow-btn {
    background: transparent;
    border: 1px solid var(--dark-blue);
    color: var(--dark-blue);
    padding: 0.8rem 2rem;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.arrow-btn:hover { background: var(--dark-blue); color: var(--white); }

/* --- Immobilien --- */
.property-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; }
.property-card { border: 1px solid #eee; transition: 0.3s; }
.property-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.05); }

.property-info { padding: 2rem; text-align: center; border-top: 5px solid var(--gold); }
.property-info h4 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 1rem; }
.property-info .price { font-weight: 700; color: var(--dark-blue); font-size: 1.2rem; }
.property-info a {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    background: var(--dark-blue);
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}


.copyright { opacity: 0.5; font-size: 0.8rem; margin-top: 2rem; }

/* Mobil-Optimierung Allgemein */
@media (max-width: 768px) {
    .logo-top { font-size: 2.2rem; }
    .logo-bottom { font-size: 0.7rem; letter-spacing: 0.8rem; margin-right: -0.8rem; }
    .hero-text h2 { font-size: 2rem; }
    nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}

/* --- Team / Über uns Sektion --- */
.team-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem; 
}

.team-card {
    background: var(--white);
    border: 1px solid #eee;
    border-left: 6px solid var(--dark-blue); 
    display: flex;
    flex-direction: row; 
    width: 100%;
    max-width: 950px; 
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-left-color: var(--gold);
    transform: translateX(10px); 
}

.team-photo {
    width: 350px; 
    flex-shrink: 0; 
    height: auto;
    min-height: 380px;
    object-fit: cover;
    object-position: center 20%; 
}

.team-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 0.3rem;
}

.team-info .job {
    color: var(--dark-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.team-divider {
    width: 50px;
    height: 2px;
    background-color: var(--gold);
    margin-bottom: 1.5rem;
}

.team-text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

.team-info .seit {
    background-color: var(--light-grey);
    color: var(--dark-blue);
    font-size: 0.85rem;
    padding: 0.8rem 1.5rem;
    border-left: 3px solid var(--dark-blue);
    align-self: flex-start; 
    display: inline-block;
}

.team-info .seit strong {
    color: var(--dark-blue);
}

/* Mobil-Optimierung Team-Sektion */
@media (max-width: 768px) {
    .team-card {
        flex-direction: column;
        border-left: none;
        border-bottom: 5px solid var(--dark-blue);
    }
    .team-card:hover {
        transform: translateY(-5px);
        border-bottom-color: var(--gold);
        transform: translateX(0); /* Überschreibt den Hover-Effekt von Desktop */
    }
    .team-photo {
        width: 100%;
        height: 350px;
        min-height: auto;
    }
    .team-info {
        padding: 2rem;
    }
}
/* --- Legal Pages (Impressum & Datenschutz) --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-box {
    background: var(--light-grey);
    padding: 3rem;
    border-top: 5px solid var(--dark-blue);
    margin-bottom: 3rem;
}

.legal-box h4 {
    color: var(--dark-blue);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-box h4:first-child {
    margin-top: 0;
}

.legal-box p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-text h4 {
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.legal-text p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
/* =========================================
   Startseite: 3 Service-Boxen (Verkauf, Kauf, Bewertung)
   ========================================= */

.services-hero {
    padding-top: 3rem;
    padding-bottom: 4rem;
    max-width: 1100px; /* Macht den Container etwas breiter für 3 Boxen */
}

.services-grid {
    display: grid;
    /* Macht die Boxen auf dem Handy untereinander, am PC nebeneinander */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Die Box an sich */
.service-box {
    background-color: #f9f9f9;
    padding: 2.5rem 2rem;
    border-top: 4px solid var(--gold);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Der immer sichtbare Teil */
.service-box-visible {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}

/* Der versteckte Teil (klappt auf) */
.service-box-hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

/* Der Hover-Effekt: Box schwebt hoch UND klappt auf */
.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-box:hover .service-box-hidden {
    max-height: 200px; /* Gibt dem Text Platz zum Ausklappen */
    opacity: 1;
    margin-top: 1.5rem;
}

/* Styling für den neuen versteckten Text und Link */
.hidden-text {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: #666 !important;
    margin-bottom: 1rem !important;
}

.box-link {
    display: inline-block;
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s ease;
}

.box-link:hover {
    border-bottom: 1px solid var(--gold);
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.service-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* =========================================
   Neuer Footer-Bereich (Saubere Trennung)
   ========================================= */

.footer-wrapper {
    /* Der gewünschte goldene Streifen ganz oben */
    border-top: 2px solid var(--gold);
    margin-top: 50px;
}

.footer-main {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 5rem 0 4rem 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Zentriert alles (Text, Links, Icons) in jeder Spalte und zwingt sie untereinander */
.footer-grid > div {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-heading {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-text {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-icon {
    height: 32px;
    width: auto;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.footer-bottom {
    /* Ein dunklerer Ton des Firmen-Blaus für die Abschlussleiste */
    background-color: #1b3540; 
    color: #bbb;
    padding: 1.5rem 0;
}

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

.bottom-links {
    display: flex;
    gap: 2rem;
}

.bottom-link, .copyright-text {
    color: #bbb;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.bottom-link:hover {
    color: var(--white);
}

/* Mobil-Optimierung für die 4 Spalten */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .bottom-flex { flex-direction: column; text-align: center; }
    .bottom-links { justify-content: center; flex-wrap: wrap; }
}


/* =========================================
   Roadmap (Kauf & Verkauf) - Clean Layout
   ========================================= */

.roadmap-container {
    max-width: 1200px; /* Hier nutzen wir jetzt deutlich mehr Breite! */
    margin: 4rem auto;
    padding: 0 20px;
}

.roadmap-intro {
    text-align: center;
    margin-bottom: 5rem;
}

.roadmap-intro h1 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.roadmap-step {
    display: flex;
    align-items: flex-start; 
    gap: 5rem; /* Etwas mehr Luft zwischen Bild und Text */
    margin-bottom: 6rem; /* Mehr Abstand zwischen den einzelnen Schritten, da die Pfeile weg sind */
}

.roadmap-step.reverse {
    flex-direction: row-reverse;
}

.roadmap-step.centered {
    justify-content: center; 
}

.roadmap-text {
    flex: 1.5; /* Neues Verhältnis: Text 60% / Bild 40% */
}

.roadmap-text.no-image {
    flex: 0 1 70%; /* Wenn kein Bild da ist, nimmt der Text eine schöne, mittige Breite ein */
    text-align: left; 
}

.roadmap-text h2 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-top: 0; 
    margin-bottom: 1rem;
    line-height: 1.2;
}

.roadmap-text p {
    color: var(--text-dark);
    line-height: 1.8;
}

.roadmap-image {
    flex: 1; /* Neues Verhältnis */
    margin-top: 6px; 
}

.roadmap-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Schatten minimal weicher gemacht */
    object-fit: cover;
    display: block; 
}

.error-box {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
    font-weight: 600;
}

/* Mobil-Ansicht */
@media (max-width: 768px) {
    .roadmap-step, .roadmap-step.reverse {
        flex-direction: column;
        text-align: left;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    .roadmap-text.no-image {
        flex: 1 1 auto;
    }
}

/* =========================================
   Dschungel (Lexikon & Aktuelles)
   ========================================= */

.dschungel-container {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 20px;
}

.dschungel-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.dschungel-intro h1 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-blue);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.dschungel-intro p {
    color: var(--text-dark);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Der Split-Screen */
.split-screen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Die klickbaren Karten */
.split-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    height: 450px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* NEU: Der dunkelblaue Balken, der links wartet (nur halbe Höhe) */
.split-card::before {
    content: "";
    position: absolute;
    top: 50%;      /* Lässt die oberen 50% des Bildes frei */
    bottom: 0;     /* Geht bis ganz nach unten */
    left: 0;       /* Startet am linken Rand */
    right: 0;      /* Geht bis zum rechten Rand */
    background-color: var(--dark-blue);
    opacity: 0.8; 
    transform: translateY(100%); 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1; 
}

.split-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Sonderregel für das Lexikon-Bild: Startet herangezoomt */
.lexikon-bild {
    transform: scale(1.35); 
}

/* Wenn man über die Lexikon-Karte fährt, zoomt es noch ein Stückchen weiter rein */
.split-card:hover .lexikon-bild {
    transform: scale(1.4); 
}

/* Der dunkle Verlauf für die Lesbarkeit (Grundzustand) */
.split-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 30, 40, 0.85) 0%, rgba(10, 30, 40, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem 2rem;
    color: var(--white);
    z-index: 2; 
}

.split-card-overlay h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    transition: color 0.3s;
}

.split-card-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Der Action-Text, der beim Hovern erscheint */
.split-card-action {
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

/* Hover-Effekte aktivieren */
.split-card:hover img {
    transform: scale(1.05); 
}

/* NEU: Balken fährt sanft von links ein */
.split-card:hover::before {
    transform: translateX(0); 
}

.split-card:hover .split-card-overlay h3 {
    color: var(--gold);
}

.split-card:hover .split-card-action {
    opacity: 1;
    transform: translateY(0);
}

/* Mobil-Ansicht: Untereinander statt nebeneinander */
@media (max-width: 768px) {
    .split-screen-grid {
        grid-template-columns: 1fr;
    }
    .split-card {
        height: 350px;
    }
    .split-card-action {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Lexikon (Absolute Pyramide & Kollision)
   ========================================= */

.lexikon-container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 20px;
    text-align: center;
    min-height: 60vh;
}

.lexikon-intro h1 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* DIE SUCHLEISTE (Wiederhergestellt!) */
.search-wrapper {
    margin: 3rem auto;
    max-width: 600px;
    position: relative;
}

.pill-search {
    width: 100%;
    padding: 18px 30px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box; /* Verhindert, dass das Feld zu breit wird */
}

.pill-search:focus {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.2);
}

/* DIE WOLKE */
.tag-cloud {
    position: relative;
    width: 100%;
    min-height: 550px; 
    margin-top: 2rem;
}

/* Ersetze diesen Block in deiner style.css */
.lexikon-pill {
    position: absolute; 
    top: 0;  
    left: 0; 
    background-color: transparent;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    
    display: inline-flex;
    justify-content: center;
    align-items: center;
    
    /* Sicherheitsnetz für extrem lange Wörter auf dem Handy */
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; 
    box-sizing: border-box;
    
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1), 
                font-size 0.8s ease, 
                padding 0.8s ease, 
                opacity 0.4s, 
                background-color 0.4s, 
                border-color 0.4s;
                
    will-change: transform, font-size, padding;
}

/* Anpassungen für kleinere Bildschirme */
@media (max-width: 768px) {
    .lexikon-intro h1 {
        font-size: 2rem;
    }
    .pill-search {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

.lexikon-pill:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    z-index: 100 !important;
}

.lexikon-pill.high-score {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.lexikon-pill.active-match {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: var(--white);
}

.lexikon-pill.low-score {
    opacity: 0.35;
    border-color: #ccc;
    color: #999;
}

/* =========================================
   Lexikon Detail-Seite
   ========================================= */

.lexikon-detail-container {
    max-width: 800px; /* Bewusst schmaler für perfekten Lesefluss */
    margin: 4rem auto;
    padding: 0 20px;
    min-height: 50vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--gold);
}

.lexikon-detail-card {
    background: var(--white);
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border-top: 5px solid var(--gold); /* Edler Akzent */
}

.lexikon-detail-title {
    font-family: 'Playfair Display', serif;
    color: var(--dark-blue);
    font-size: 2.8rem;
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.lexikon-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Formatierung für die Texte aus Storyblok */
.lexikon-detail-content p {
    margin-bottom: 1.5rem;
}

.lexikon-detail-content strong {
    color: var(--dark-blue);
}

/* Mobil-Ansicht */
@media (max-width: 768px) {
    .lexikon-detail-card {
        padding: 2rem;
    }
    .lexikon-detail-title {
        font-size: 2rem;
    }
}

.dschungel-teaser {
    position: fixed;
    bottom: -150px; /* Startet außerhalb */
    right: 20px;
    width: 300px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    transition: bottom 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 9999;
    border-left: 5px solid var(--gold);
    text-decoration: none;
    color: inherit;
}

.dschungel-teaser.active {
    bottom: 20px;
}

.dschungel-teaser img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.dschungel-teaser-text h5 {
    margin: 0;
    color: var(--dark-blue);
    font-size: 1rem;
}

.dschungel-teaser-text p {
    margin: 3px 0 0 0;
    font-size: 0.85rem;
    color: #666;
}

.teaser-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ccc;
}

.aktuelles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.artikel-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.artikel-card:hover {
    transform: translateY(-10px);
}

.artikel-bild {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.artikel-info {
    padding: 1.5rem;
    flex-grow: 1;
}

.artikel-datum {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.artikel-info h3 {
    font-family: 'Playfair Display', serif;
    margin: 0.5rem 0;
    color: var(--dark-blue);
    font-size: 1.4rem;
}

.artikel-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* =========================================
   Mobile Optimierung (Smartphones & Tablets)
   ========================================= */

/* Greift bei allen Bildschirmen, die schmaler als 768px sind (typische Smartphone/Tablet-Grenze) */
@media screen and (max-width: 768px) {

    /* --- 1. Allgemeine Anpassungen --- */
    .container {
        padding: 0 15px; /* Etwas weniger Rand auf kleinen Displays */
    }

    h2 {
        font-size: 2.2rem; /* Überschriften etwas kleiner */
        text-align: center; /* Wichtige Headlines zentrieren */
    }

    h3 {
        font-size: 1.8rem;
        text-align: center;
    }

    .section-header p {
        text-align: center;
    }


    /* --- 2. Die Hero Section (Startbereich mit Bild) --- */
    .hero {
        position: relative;
        min-height: auto; /* Die Höhe wird dynamischer */
        display: flex;
        flex-direction: column; /* Bild und Text untereinander anordnen, falls sie vorher nebeneinander waren */
    }

    /* Falls .hero-image absolut positioniert war, müssen wir das anpassen, 
       damit es nicht den Text überdeckt. */
    .hero-image {
        position: relative; 
        width: 100%;
        height: 40vh; /* Nimmt 40% der Bildschirmhöhe ein */
        object-fit: cover;
    }

    .hero-text {
        position: relative; /* Text wieder in den normalen Fluss bringen */
        width: 100%;
        padding: 2rem 15px;
        background-color: var(--white); /* Sicherstellen, dass Text lesbar ist */
        text-align: center; /* Den Hero-Text zentrieren */
        transform: none; /* Eventuelle zentrierende Transforms zurücksetzen */
        top: auto;
        left: auto;
    }


    /* --- 3. Die Services-Grid (Verkaufen, Kaufen, Bewertung) --- */
    .services-grid {
        display: flex;
        flex-direction: column; /* Boxen untereinander statt nebeneinander */
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .service-box {
        width: 100%;
        margin-bottom: 0;
        /* Falls die Hover-Effekte mobil stören (da es keinen echten "Hover" mit dem Finger gibt), 
           können wir die verborgenen Infos dauerhaft oder eleganter anzeigen. */
    }
    
    /* Optional: Auf Mobilgeräten den "Hover" Zustand leicht entschärfen oder 
       die versteckten Infos direkt leicht sichtbar machen, damit man weiß, 
       dass man tippen muss. */
    .service-box-visible p {
        margin-bottom: 1rem;
    }


    /* --- 4. Referenzen (Zitate) --- */
    .testimonials {
        padding: 3rem 0; /* Etwas kompakter */
    }

    blockquote {
        font-size: 1.2rem; /* Zitate etwas kleiner */
        padding: 0 1rem;
    }

    .slider-controls {
        display: flex;
        justify-content: center; /* Buttons zentrieren */
    }


    /* --- 5. Aktuelle Objekte (Immobilien Grid) --- */
    .property-grid {
        display: flex;
        flex-direction: column; /* Immobilienkarten untereinander */
        gap: 2rem;
    }

    .property-card {
        width: 100%;
        margin-bottom: 0 !important; /* Verhindert doppelte Abstände durch das JS-Styling */
    }
    
    .property-card img {
        height: 220px !important; /* Bilder auf Handys nicht zu riesig machen */
    }


    /* --- 6. Der Dschungel-Teaser --- */
    .dschungel-teaser {
        width: calc(100% - 40px); /* Nimmt (fast) die volle Breite ein */
        left: 20px; /* Mittig ausrichten */
        right: 20px;
        bottom: -200px; /* Startposition anpassen */
        flex-direction: row; /* Behält Bild und Text nebeneinander */
        padding: 10px;
    }

    .dschungel-teaser.active {
        bottom: 20px;
    }
    
    .dschungel-teaser img {
        width: 50px;
        height: 50px;
    }
}

/* Fix für das lange Wort auf der Dschungel-Seite */
.dschungel-intro h1 {
    font-size: 2.2rem;
    word-wrap: break-word; 
    hyphens: manual; /* NEU: Browser darf nur dort trennen, wo WIR ein &shy; gesetzt haben! */
    padding: 0 10px;
}

/* Styling für die Titel der Immobilien-Karten */
.property-info h4 {
    margin-bottom: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block; /* Wichtig für sauberes Skalieren */
    background: none;
}

/* Hover-Effekt: Wenn die Karte ODER der Titel gehovert wird -> Teal */
.property-card:hover .property-info h4,
.property-info h4:hover {
    color: var(--dark-blue); 
    transform: scale(1.05);
}

/* =========================================
   Globale Link-Hover-Effekte (Vergrößerung)
   ========================================= */

/* 1. Links auf hellem Grund -> Werden beim Hovern dunkelblau */
.box-link,
.back-link,
.legal-box a,
.legal-text a {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none !important;
}

.box-link:hover,
.back-link:hover,
.legal-box a:hover,
.legal-text a:hover {
    transform: scale(1.05); 
    color: var(--dark-blue);
    border-bottom: none !important;
}

/* 2. Spezialfall: Links im Footer (Dunkler Grund) -> Werden beim Hovern GOLD */
.footer-link {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none !important;
    color: #e0e0e0;
}

.footer-link:hover {
    transform: scale(1.05); 
    color: var(--gold) !important;
    text-decoration: none !important;
}

/* 3. Sicherheitsnetz: Keine Unterstriche für alle Links */
a {
    text-decoration: none !important;
}