/* Basis-Klasse für Navigation und Links */
.link-standard {
    font-family: 'Source Sans 3', Arial, Helvetica, sans-serif;
    font-size: 10pt;
    text-decoration: none;
    color: #000;
    font-weight: normal;
    transition: color 0.2s, text-decoration 0.2s;
}
.link-standard:hover {
    color: #333;
}
.link-standard.active {
    color: #489049;
}

.link {
    text-decoration: none;
    color: #489049;
    transition: color 0.2s, text-decoration 0.2s;
}
.link:hover {
    color: #345f31;
    text-decoration: underline;
}   

/* Beispiel für spezielle Links (Footer, Tabletop, Subnav) */
.link-footer {
    color: #fff;
}
.link-footer:hover {
    color: #ccc;
}
.link-tabletop {
    color: #ffffff;
    font-weight: bold;
}
.link-tabletopgrau {
    color: #888888;
}
.link-tabletopschwarz {
    color: #000000;
}
.link-subnav {
    color: #666666;
}
.link-green {
    color: #339933;
}
/* Overlay-Fix für Sprechblase im Leistungen-Bildblock */
.leistungen-bildblock {
    position: relative !important;
}
#sprechblase.sprechblase {
    position: absolute !important;
    min-width: 180px;
    max-width: 66%;
    background: #fff;
    color: #222;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    padding: 18px 22px;
    font-size: 1em;
    line-height: 1.3em;
    z-index: 2000 !important;
    /* pointer-events entfernt, damit Popup interaktiv ist */
    border: 2px solid #37a547;
    animation: fadeIn 0.2s;
    top: 0;
    left: 0;
    display: none;
    box-sizing: border-box;
}
/* Grünes Dreieck für Sprechblase - oben (Standard) */
#sprechblase.sprechblase.arrow-top::before {
    content: '';
    position: absolute;
    top: -10px;
    bottom: auto;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #37a547;
    border-top: none;
}
/* Weißes inneres Dreieck - oben (Standard) */
#sprechblase.sprechblase.arrow-top::after {
    content: '';
    position: absolute;
    top: -7px;
    bottom: auto;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #fff;
    border-top: none;
}
/* Grünes Dreieck für Sprechblase - unten (wenn oberhalb des Buttons) */
#sprechblase.sprechblase.arrow-bottom::before {
    content: '';
    position: absolute;
    top: auto;
    bottom: -10px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #37a547;
    border-bottom: none;
}
/* Weißes inneres Dreieck - unten (wenn oberhalb des Buttons) */
#sprechblase.sprechblase.arrow-bottom::after {
    content: '';
    position: absolute;
    top: auto;
    bottom: -7px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #fff;
    border-bottom: none;
}
/* Fade-In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Allgemeine Stile & Mobile First */
:root {
    --primary-color: #345f31;
    --secondary-color: #489049; /* #489049; #0a9396; */
    --text-color: #333;
    --background-color: #f4f4f4;
    --header-bg: #fff;
    --footer-bg: #212529;
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('../fonts/SourceSans3-ExtraLight.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('../fonts/SourceSans3-Light.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('../fonts/SourceSans3-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('../fonts/SourceSans3-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

body, table, input, button, select, textarea {
    font-family: 'Source Sans 3', Arial, Helvetica, sans-serif;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Source Sans 3', "Segoe UI", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background: transparent; /* Transparenter Header */
    box-shadow: none;
    width: 100%;
    position: absolute; /* Absolut positioniert über dem Hero */
    top: 0;
    left: 0;
    right: 0;
    z-index: 10; /* Header über dem Hero-Bild */
}

p {
    font-weight: 200;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

.logo {
    background: white;
    padding: 0.5rem 1rem 0 1rem;
    border-radius: 0; /* Eckige Form */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.logo a {
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--primary-color);
}

.logo img {
    max-width: 210px; /* Maximale Höhe des Logos */
    height: auto;
}

.contact-info {
    display: none; /* Auf Mobilgeräten standardmäßig ausgeblendet */
    background: white;
    padding: 0.3rem 0.8rem; /* Flacher */
    border-radius: 0; /* Eckige Form */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.main-nav {
    position: fixed; /* Fixed für Vollbildschirm-Overlay */
    top: 0;
    right: -100%; /* Startet außerhalb des Bildschirms - RECHTS */
    width: auto; /* Automatische Breite basierend auf Inhalt */
    min-width: 250px; /* Mindestbreite */
    max-width: 80%; /* Maximale Breite für sehr kleine Geräte */
    height: 100vh; /* Volle Bildschirmhöhe */
    background: white;
    flex-direction: column;
    align-items: flex-start; /* Linksbündig */
    display: flex; /* Immer flex, aber verschoben */
    box-shadow: -4px 0 12px rgba(0,0,0,0.3); /* Schatten nach links */
    z-index: 900; /* Unter Burger-Menu, über Overlay */
    border-radius: 0; /* Eckige Form */
    padding: 0; /* Kein Padding, da Header mit Close-Button */
    transition: right 0.3s ease-in-out; /* Smooth slide animation - RIGHT */
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3); /* Leichte Abdunklung */
    z-index: 800; /* Unter Navigation, über dem Rest der Seite */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    z-index: 9;
}

.main-nav.active {
    right: 0; /* Gleitet von rechts herein */
}

.nav-links {
    list-style: none;
    padding: 2rem 0 0 0; /* Reduziertes Padding da kein Close-Button mehr */
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column; /* Vertikale Anordnung für mobile */
    gap: 0; /* Kein Gap, da border-bottom verwendet wird */
    white-space: nowrap; /* Verhindert Zeilenumbruch für bessere Breitenberechnung */
}

.nav-links li {
    padding: 0; /* Kein Padding hier */
    border-bottom: 1px solid #eee;
    width: 100%;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    display: block;
    padding: 1rem 2rem; /* Padding für bessere Touch-Targets */
    border-bottom: none; /* Kein border auf Link, da li es hat */
}

.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2.5rem; /* Größere Box */
    height: 2.5rem; /* Größere Box */
    background: white; /* Weiße Box wie andere Header-Elemente */
    border: none;
    cursor: pointer;
    padding: 0.4rem; /* Etwas weniger Padding für bessere Proportionen */
    z-index: 1000; /* Ganz oben - über allem */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Schatten wie andere Boxen */
    border-radius: 0; /* Eckige Form */
    box-sizing: border-box;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.burger-menu.active {
    background: transparent; /* Weiße Box verschwindet wenn Navigation offen */
    box-shadow: none; /* Schatten verschwindet wenn Navigation offen */
}

.burger-bar {
    width: 100%; /* Passt sich der verfügbaren Breite an */
    height: 0.3rem; /* Etwas dicker für bessere Sichtbarkeit */
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Burger-Menü Animation zu X */
.burger-menu.active .burger-bar:nth-child(1) {
    transform: rotate(45deg);
}

.burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.burger-menu.active .burger-bar:nth-child(3) {
    transform: rotate(-45deg);
}

.hero-start {
    background-image: url('../images/startseite.jpg');
    background-size: cover; /* Bild füllt die Fläche optimal aus */
    background-position: bottom; /* Bild richtet sich an der unteren Kante aus - oberer Teil wird abgeschnitten */
    background-repeat: no-repeat; /* Verhindert Wiederholung */
    padding: 2rem 0;
    width: 100%;
    justify-content: center; /* Zentriert den Hero-Container */
}
.hero {
    background-image: url('../images/hintergrund.jpg');
    background-size: cover; /* Bild füllt die Fläche optimal aus */
    background-position: bottom; /* Bild richtet sich an der unteren Kante aus - oberer Teil wird abgeschnitten */
    background-repeat: no-repeat; /* Verhindert Wiederholung */
    padding: 2rem 0;
    width: 100%;
    justify-content: center; /* Zentriert den Hero-Container */
}

.hero-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto; /* Zentriert den Container wie header-container */
    padding: 8rem 1rem 0 1rem; /* Textbox noch weiter nach unten */
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
}

.hero-textbox {
    position: relative;
    z-index: 2;
    
    /* Mobile: Breite wie Header-Content, kein eigenes Margin */
    width: 100%;
    max-width: 400px; /* Maximale Breite für sehr große Screens */
    
    /* Eckige Form - keine abgerundeten Ecken */
    border-radius: 0;
    
    /* Dreimal so viel Überhang wie vorher */
    margin-bottom: -9rem; /* Dreimal so viel Überhang */
    
    /* Zwei-teilige Box */
    display: flex;
    flex-direction: column;
    gap: 5px; /* 5px Abstand zwischen den Teilen */
}

.hero-textbox-header {
    background: rgba(72, 144, 73, 0.96); /* Spezifisches Grün mit 90% Opacity */
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 100%; /* Volle Breite des Containers */
    box-sizing: border-box;
}

.hero-textbox-content {
    background: white;
    padding: 1.5rem 1.5rem 0 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 100%; /* Volle Breite des Containers */
    box-sizing: border-box;
}

.hero-textbox h1 {
    margin: 0;
    color: white; /* Weiße Schrift für grünen Hintergrund */
    font-size: 1.9rem;
    line-height: 2.0rem;
    font-family: 'Source Sans 3', "Segoe UI", sans-serif;
    font-weight: 200;
}

.hero-textbox h2 {
    margin: 0;
    color: white; /* Weiße Schrift für grünen Hintergrund */
    font-size: 1.2rem;
    line-height: '1.0rem';
    font-family: 'Source Sans 3', "Segoe UI", sans-serif;
    font-weight: 200;
}   

.hero-textbox p {
    margin: 0 0 1rem 0; /* Reduzierter unterer Abstand für gleichmäßige Abstände */
    color: var(--text-color);
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0; /* Eckige Buttons passend zur Textbox */
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-color);
}

main {
    padding: 2rem 1rem;
    width: 100%;
    max-width: 1280px;
    box-sizing: border-box;
}

a.grau {
    color: #666;
    text-decoration: none;
}
a.grau:hover {
    color: #000;
    text-decoration: underline;
}

.footer-legal {
    padding: 0 1rem 0 0;
}

.featured-properties {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
}

.section-left {
    text-align: left;
}

.section-left h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 100;
    padding: 2rem 1rem 0 1rem;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.service-link a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 300;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.service-link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.section-right {
    text-align: center;
}

.section-right img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.ueberuns-textblock {
    margin: 1rem 8rem 1rem 13rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
}

.team-member {
    display: flex;
    align-items: flex-end;
    margin: 0 3rem 2rem -6rem;
    gap: 2rem;
}

.team-member-text {
    flex: 1;
}

.team-member h2 {
    font-family: 'Source Sans 3', "Segoe UI", sans-serif;
    font-weight: 200;
}

.ueberuns-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-left: -3rem;
}

/* Immobilien-Angebote Section */
.immobilien-angebote {
    background: white;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 2rem 0;
}

.immobilien-angebote-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 3rem 0;
    box-sizing: border-box;
}

.angebote-content h3 {
    font-family: 'Source Sans 3', "Segoe UI", sans-serif;
    font-weight: 200;
}


.angebote-left {
    text-align: left;
    position: relative;
    padding-left: 3rem;
    padding-bottom: 3rem;
}

.angebote-left img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-bottom: -90px; /* Bild ragt 30px über den weißen Balken hinaus (20px Abstand + 30px extra) */
    position: relative;
    z-index: 1;
    padding: 4px;
    border: 1px solid #ccc;
}

.angebote-right {
    text-align: left;
}

.angebote-right h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 100;
    padding: 0 1rem 0 1rem;
}

.angebote-right .service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.angebote-right .arrow-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.angebote-right .service-link a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 300;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.angebote-right .service-link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.property-card {
    background: #fff;
    border: 1px solid #ddd;
    margin: 0 auto;
    padding: 1.5rem;
    max-width: 400px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: left;
    border-radius: 8px;
}

.property-card img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.property-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.property-card p {
    margin: 0 0 1rem 0;
    color: var(--text-color);
}

.property-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.property-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.property-listing {
    background: #fff;
    border: 1px solid #ddd;
    margin: 0 auto 1.5rem;
    padding: 1.5rem;
    max-width: 400px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: left;
}

.property-listing img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.reviews {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.reviews h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 100;
}

.review-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.review-block {
    background: #fff;
    border: 1px solid #ddd;
    padding: 0rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    min-height: 250px;
}

.review-block h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Immowelt Banner Container */
.review-block .immopartner,
.review-block .exzellent {
    float: none;
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 10px);
    margin: 0;
    text-align: center;
}

.review-block .immopartner {
    margin-right: 20px;
}

.review-block .exzellent {
    margin-right: 0;
}

/* Responsive Anpassungen für Banner */
.review-block .immopartner img,
.review-block .exzellent iframe {
    max-width: 100%;
    height: auto;
    width: 180px;
    height: 180px;
}

/* Clearfix für Float-Probleme */
.review-block::after {
    content: "";
    display: table;
    clear: both;
}

.stars {
    color: #f39c12;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.review-link:hover {
    text-decoration: underline;
}

/* Zweite Review-Variante: Schmaler Immowelt-Block */
.reviews-variant-2 .review-container {
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
}

.reviews-variant-2 .review-block-trustmary {
    flex: 0 1 70%;
    max-width: 600px;
}

.reviews-variant-2 .review-block-immowelt {
    flex: 0 1 30%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}

.reviews-variant-2 .review-block-immowelt .immopartner,
.reviews-variant-2 .review-block-immowelt .exzellent {
    width: 100%;
    max-width: 200px;
    margin: 0.5rem 0;
    display: block;
}

.reviews-variant-2 .review-block-immowelt .immopartner img,
.reviews-variant-2 .review-block-immowelt .exzellent iframe {
    width: 200px;
    height: 200px;
}

/* Custom Trustmary Slider Styling */
.tm-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.tm-avg-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tm-avg-stars {
    display: flex;
    gap: 0.1rem;
    font-size: 1.2rem;
}

.tm-star-half {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffc107;
}

.tm-star-half svg {
    width: 1em;
    height: 1em;
}

.tm-avg-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.tm-review-count {
    font-size: 0.9rem;
    color: #666;
}

.tm-review-btn {
    background: #4CAF50;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.tm-review-btn:hover {
    background: #45a049;
    color: #ffffff !important;
}

.trustmary-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.trustmary-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 250px;
    display: flex;
    transition: transform 0.6s linear;
    box-sizing: border-box;
}

.tm-review-slide {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.tm-review-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    box-sizing: border-box;
}

.tm-review-card:hover {
    background: #fafafa;
}

/* Slider Navigation */
.tm-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #4CAF50;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tm-slider-btn:hover {
    color: #45a049;
    transform: translateY(-50%) scale(1.2);
}

.tm-slider-prev {
    left: 5px;
}

.tm-slider-next {
    right: 5px;
}

/* Slider Dots */
.tm-slider-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 20px;
}

.tm-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tm-slider-counter {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.tm-slider-counter .tm-current {
    font-weight: bold;
    color: #333;
}

.tm-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tm-dot.active {
    background: #1976d2;
    width: 24px;
    border-radius: 5px;
}

/* Header: Sterne + Zeitangabe */
.tm-review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.tm-review-stars {
    display: flex;
    gap: 0.1rem;
    font-size: 1.2rem;
}

.tm-star {
    color: #ffc107;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tm-star svg {
    width: 1em;
    height: 1em;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.tm-star-filled {
    color: #ffc107;
}

.tm-star-empty {
    color: #e0e0e0;
}

.tm-time-ago {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Text-Bereich: Zentriert mit Padding links/rechts */
.tm-review-text-wrapper {
    padding: 0 10%;
    text-align: left;
    box-sizing: border-box;
}

.tm-review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    position: relative;
}

.tm-review-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.tm-review-text.expanded {
    display: block;
}

.tm-show-more {
    background: none;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    text-decoration: underline;
    transition: color 0.3s ease;
    margin-top: 0.5rem;
}

.tm-show-more:hover {
    color: #45a049;
}

.tm-show-more.hidden {
    display: none;
}

/* Footer: Name + Quelle */
.tm-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    box-sizing: border-box;
}

.tm-review-author {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.tm-source {
    font-size: 0.85rem;
    color: #999;
    text-transform: capitalize;
}

.tm-review-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #999;
}

.tm-source {
    text-transform: capitalize;
}

.tm-date {
    font-style: italic;
}

.datenschutz-content,
.datenschutz-textblock,
.impressum-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
    box-sizing: border-box;
    color: var(--text-color);
    line-height: 1.6;
}

.impressum-content {
    padding-left: 3rem;
}

li, ol {
    font-weight: 200;;
}

@media (max-width: 768px) {
    .impressum-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

address {
    font-style: normal;
    line-height: 1.4;
    margin: 1rem 0;
}

/* Mobile: Review-Variante 2 gleich breit */
@media (max-width: 768px) {
    .reviews-variant-2 .review-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reviews-variant-2 .review-block-trustmary,
    .reviews-variant-2 .review-block-immowelt {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .tm-slider-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .tm-avg-rating {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tm-review-btn {
        width: 100%;
        text-align: center;
    }
    
    .tm-slider-btn {
        font-size: 36px;
    }
    
    .tm-slider-prev {
        left: 0;
    }
    
    .tm-slider-next {
        right: 0;
    }
    
    .tm-review-card {
        padding: 1rem;
    }
    
    .tm-review-text-wrapper,
    .tm-review-footer {
        padding: 0 5%;
    }
    
    .tm-review-text {
        font-size: 0.95rem;
    }
    
    .tm-review-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tm-review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(to bottom, #489049, #243a1b);
    color: #fff;
    width: 100%;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-icons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-item img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.4;
    padding-top: 0.375rem;
}

.footer-text span {
    display: block;
}

.footer-legal {
    text-align: right;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.footer-legal a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ccc;
    text-decoration: underline;
}

/* Burger-Menu verstecken ab 769px */
@media (min-width: 769px) {
    .burger-menu {
        display: none;
    }
}

/* Tablet-Bereich - zwischen 768px und 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-textbox {
        width: 58%; /* Noch breiter für Tablet-Ansicht */
        max-width: none; /* Keine Begrenzung in diesem Bereich */
        margin-bottom: -6rem;
    }

    /* Review-Blocks für Tablet optimiert */
    .review-container {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }

    .review-block {
        width: calc(50% - 0.75rem);
        max-width: 380px;
        min-height: 260px;
    }

    /* Tablet: Banner nebeneinander */
    .review-block .immopartner img,
    .review-block .exzellent iframe {
        width: 160px;
        height: 160px;
    }

    .review-block .immopartner,
    .review-block .exzellent {
        width: calc(50% - 10px);
    }

    .review-block .immopartner {
        margin-right: 20px;
    }
}

/* Desktop & große Bildschirme - ab 769px */
@media (min-width: 769px) {
    .header-container {
        padding: 0.5rem 2rem; /* Padding oben/unten reduziert */
    }

    .header-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 1rem; /* Größerer Abstand zwischen Telefon- und Navi-Box */
    }

    /* Footer für Desktop - horizontale Anordnung */
    .footer-icons {
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
        max-width: none;
    }

    .footer-item img {
        width: 50px;
        height: 50px;
    }

    /* Footer-Legal für Desktop - begrenzt auf Navigation-Breite */
    .footer-legal {
        text-align: right;
        max-width: 1280px;
        margin: 2rem auto 0 auto;
        padding-right: 2rem; /* Gleicher Abstand wie Header-Container */
    }

    .contact-info {
        display: flex;
        gap: 1rem;
        font-size: 0.85rem;
        margin-bottom: 0; /* Kein extra Margin, da gap im header-right */
        color: #666;
    }
    
    .contact-info span {
        padding: 0.2rem 0;
    }

    .main-nav {
        position: static; /* Überschreibt fixed von mobile */
        display: flex;
        width: max-content; /* Passt sich Inhalt an, aber genug Platz für alle Items */
        min-width: auto; /* Überschreibt min-width von mobile */
        max-width: none; /* Überschreibt max-width von mobile */
        height: auto; /* Überschreibt 100vh von mobile */
        left: auto; /* Überschreibt left von mobile */
        top: auto; /* Überschreibt top von mobile */
        right: auto; /* Überschreibt right von mobile */
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        border-radius: 0; /* Eckige Form */
        padding: 0.3rem 0.8rem; /* Flacher */
        margin: 0;
        flex-direction: row; /* Überschreibt column von mobile */
        align-items: center; /* Überschreibt flex-start von mobile */
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 2rem; /* Dieser Wert steuert den horizontalen Abstand zwischen den Menüpunkten */
        padding: 0; /* Überschreibt das mobile Padding */
    }

    .nav-links li {
        padding: 0;
        border: none; /* Überschreibt border-bottom von mobile */
        width: auto; /* Überschreibt width: 100% von mobile */
    }

    .nav-links a {
        font-size: 1.15rem; /* Schrift vergrößert */
        font-weight: 500;
        position: relative;
        padding: 0.25rem 0; /* Überschreibt das große Padding von mobile */
        padding: 0.25rem 0; /* Reduzierter Abstand für flachere Navigation */
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 8px; /* 3 Pixel tiefer vom Text weg */
        left: 0;
        width: 0;
        height: 2px;
        background-color: #489049; /* Spezifisches Grün statt Variable */
        transition: width 0.3s ease;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    .burger-menu {
        display: none;
    }

    .hero {
        padding: 2rem 0; /* Gleiche Höhe wie mobile, Hero-Bild bleibt stabil */
    }
    
    .hero-container {
        padding: 6rem 2rem 0 2rem; /* Textbox noch weiter nach unten für Desktop */
    }

    .hero-start .hero-container {
        padding: 19rem 2rem 0 2rem; /* Textbox noch weiter nach unten für Desktop */
    }

    .hero-textbox h1 {
        font-size: 1.9rem;
        line-height: 2.0rem;
        margin: 0; /* Kein Margin da die h1 jetzt im separaten Header-Bereich ist */
    }
    
    .hero-textbox p {
        font-size: 1.1rem;
        margin-bottom: 0.6rem; /* Gleichmäßige Abstände auch für Desktop */
    }
    
    .hero-textbox-header {
        padding: 1rem 2rem; /* Größeres Padding für Desktop */
        box-sizing: border-box;
    }
    
    .hero-textbox-content {
        padding: 1rem 2rem 0.2rem 2rem; /* Größeres Padding für Desktop */
        box-sizing: border-box;
    }

    main {
        padding: 2rem;
        margin-top: 5rem;
    }
    
    .featured-properties {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
    }

    .section-left {
        flex: 1;
        max-width: 50%;
    }

    .section-left h2 {
        font-size: 3rem;
        margin-bottom: 0.6rem;
    }

    .section-right {
        flex: 1;
        max-width: 50%;
    }

    /* Immobilien-Angebote Desktop */
    .immobilien-angebote {
        padding: 3rem 0;
    }

    .immobilien-angebote-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
        padding: 0 2rem 3rem 0;
    }

    .angebote-left {
        flex: 1;
        max-width: 30%;
    }

    .angebote-right {
        flex: 1;
        max-width: 70%;
    }

    .angebote-right h2 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .review-container {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 2rem;
    }

    .review-block {
        width: calc(50% - 1rem);
        max-width: 500px;
        min-height: 230px;
    }

    /* Desktop: Banner nebeneinander optimiert */
    .review-block .immopartner,
    .review-block .exzellent {
        width: calc(50% - 15px);
    }

    .review-block .immopartner {
        margin-right: 20px;
    }

    .review-block .immopartner img,
    .review-block .exzellent iframe {
        width: 200px;
        height: 200px;
    }
}

/* Desktop Textbox - ab 1025px */
@media (min-width: 1025px) {
    .hero {
        padding: 6rem 0 3rem 0; /* Höheres Hero für Desktop */
    }
    
    .hero-textbox {
        /* 45% der verfügbaren Container-Breite */
        width: 45%;
        max-width: 448px; /* Maximale absolute Breite */
        
        /* Kein zusätzlicher Margin - Container regelt die Positionierung */
        margin-left: 0;
        margin-right: 0;
        margin-bottom: -10rem; /* Dreimal so viel Überhang für Desktop */
        
        /* Eckige Form beibehalten */
        border-radius: 0;
        
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 768px) {
    .hero-textbox {
        margin-bottom: -5rem;
    }
    .footer-icons {
        align-items: normal;
    }
    .ueberuns-textblock {
        margin: 2rem 1rem;
        font-size: 1rem;
        line-height: 1.5;
        color: var(--text-color);
    }
    .team-member {
        align-items: flex-start;
        margin: 0 0 2rem 0;
        gap: 1rem;
    }
    .ueberuns-image {
        width: 100%;
        max-width: 220px;
        margin-left: 0;
    }

}

@media (max-width: 480px) {
    .hero-textbox {
        margin-bottom: -4rem;
    }

    .hero-textbox h1 {
        font-size: 1.4rem;
        line-height: 1.6rem;
        margin: 0; /* Kein Margin da die h1 jetzt im separaten Header-Bereich ist */
    }
    .hero-textbox h2 {
        font-size: 1.0rem;
        line-height: 1.3rem;
        margin: 0.2rem 0 0 0; /* Kein Margin da die h1 jetzt im separaten Header-Bereich ist */
    }
    .team-member {
        flex-direction: column;
        align-items: flex-start;
        margin: 0 0 2rem 0;
        gap: 1rem;
    }
    .ueberuns-image {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

}

@media (max-width: 375px) {
    .hero-textbox {
        margin-bottom: -4rem;
    }

    .hero-textbox-header {
        padding: 1rem;
    }

    .hero-textbox-content {
        font-size: 0.9rem;
        margin-bottom: 0.4rem; /* Gleichmäßige Abstände auch für sehr kleine Bildschirme */
        padding: 1rem;
    }

    .hero-textbox h1 {
        font-size: 1.2rem;
        line-height: 1.4rem;
        margin: 0; /* Kein Margin da die h1 jetzt im separaten Header-Bereich ist */
    }
    .hero-textbox h2 {
        font-size: 0.9rem;
        line-height: 1.1rem;
        margin: 0.2rem 0 0 0; /* Kein Margin da die h1 jetzt im separaten Header-Bereich ist */
    }

}

/* ========================================
   NAVIGATION BUTTONS (Modernized from GIF)
   ======================================== */

/* Basis für alle Navigations-Buttons */
.btn-nav {
    display: inline-block;
    padding: 6px 16px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: normal;
    text-decoration: none;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    vertical-align: top;
    line-height: 14px;
    min-width: 225px;
    height: 26px;
    box-sizing: border-box;
}

/* Objekt-Button (zurück zur Objektbearbeitung) */
.btn-nav-objekt {
    background: linear-gradient(to bottom, #6ba06b 0%, #4a804a 50%, #345f34 100%);
    border: 1px solid #2a4a2a;
}

.btn-nav-objekt:hover {
    background: linear-gradient(to bottom, #7bb07b 0%, #5a905a 50%, #456f45 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-nav-objekt:active {
    background: linear-gradient(to bottom, #345f34 0%, #4a804a 50%, #6ba06b 100%);
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Objektliste-Button (zurück zur Liste) */
.btn-nav-objektliste {
    background: linear-gradient(to bottom, #5a8a9a 0%, #3a6a7a 50%, #1a4a5a 100%);
    border: 1px solid #0a3a4a;
}

.btn-nav-objektliste:hover {
    background: linear-gradient(to bottom, #6a9aaa 0%, #4a7a8a 50%, #2a5a6a 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-nav-objektliste:active {
    background: linear-gradient(to bottom, #1a4a5a 0%, #3a6a7a 50%, #5a8a9a 100%);
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Objekt-Button für Hauptnavigation (kleinerer Variant) */
.btn-nav-main {
    min-width: auto;
    padding: 8px 12px;
    font-size: 12px;
    height: auto;
    background: linear-gradient(to bottom, #6ba06b 0%, #4a804a 50%, #345f34 100%);
    border: 1px solid #2a4a2a;
}

/* Platzhalter für Edit-Stift */
.btn-edit-placeholder {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  visibility: hidden;
}

/* Style für die Lösch-Bestätigungsseite wie bei Eigenschaften */
.delete-confirm-box {
  max-width: 400px;
  margin: 40px auto;
  background: #fffbe8;
  border: 1px solid #e0c080;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 32px 24px 24px 24px;
  text-align: center;
}
.delete-confirm-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 18px;
  color: #a00;
}
.delete-confirm-text {
  margin-bottom: 24px;
  color: #444;
}
.delete-confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.btn-loeschen {
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-loeschen:hover {
  background: #b71c1c;
}
.btn-abbrechen {
  background: #eee;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 1em;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.btn-abbrechen:hover {
  background: #ccc;
}

/* Kontaktformular Styles */
.kontakt-formular {
    max-width: 500px;
    margin: 2em auto;
    padding: 2em;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.kontakt-formular .form-row {
    margin-bottom: 1.2em;
    display: flex;
    flex-direction: column;
}
.kontakt-formular label {
    font-weight: bold;
    margin-bottom: 0.3em;
}
.kontakt-formular input,
.kontakt-formular select,
.kontakt-formular textarea {
    padding: 0.5em;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 1em;
}
.kontakt-formular .form-error {
    color: #c00;
    font-size: 0.95em;
    margin-top: 0.2em;
}
.btn-kontakt {
    background: #0077cc;
    color: #fff;
    border: none;
    padding: 0.7em 1.5em;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-kontakt:hover {
    background: #005fa3;
}
.kontakt-erfolg {
    max-width: 500px;
    margin: 2em auto;
    padding: 1.5em;
    background: #e6ffe6;
    border: 1px solid #b2d8b2;
    border-radius: 8px;
    color: #2d7a2d;
    font-size: 1.2em;
    text-align: center;
}

/* Kontaktseite Layout */
.kontakt-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
    max-width: 900px;
    margin: 2em 1.5rem;
    align-items: flex-start;
}
.kontakt-info {
    flex: 1 1 260px;
    background: none;
    font-size: 1.1em;
    margin-bottom: 2em;
}
.kontakt-info h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 100;
    padding: 2rem 1rem 0 0;
    font-family: 'Source Sans 3', Arial, Helvetica, sans-serif;
}
.kontakt-formular-wrapper {
    flex: 2 1 400px;
    margin-left: auto;
}
.kontakt-formular {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-right: 0;
}
.btn-kontakt {
    background: #2d7a2d;
    color: #fff;
    border: none;
    padding: 0.7em 1.5em;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Source Sans 3', Arial, Helvetica, sans-serif;
    font-weight: 700;
}
.btn-kontakt:hover {
    background: #228b22;
}
@media (max-width: 700px) {
    .kontakt-flex {
        flex-direction: column;
        gap: 0;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
    .kontakt-info {
        margin-bottom: 1.5em;
        text-align: left;
        width: 100%;
        padding: 0;
    }
    .kontakt-formular-wrapper {
        margin-left: 0;
        width: 100%;
        padding: 0;
    }
    .kontakt-formular {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Angebote Seite */
.angebote-content {
    background: #fff;
    box-sizing: border-box;
    padding: 20px;
    max-width: 1080px;
    margin: 2em auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
}
#iwModule {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 2em auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#iwModule, #iwModule #iwWidget {
    background-color: #fff;
    font-weight: normal;
    height: auto;
    margin: 0;
    max-width: 940px !important;
    min-width: 310px !important;
    padding: 0;
    text-align: left;
    width: 100% !important;
}
.angebote-eigen {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
@media (max-width: 800px) {
    .angebote-content {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 16px;
    }
    #iwModule, .angebote-eigen {
        max-width: 100%;
        padding: 0;
    }
}

/* Responsive Grid für CMS-Angebote */
/* Responsive Grid für CMS-Angebote */
.cms-angebote-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}
@media (min-width: 700px) {
  .cms-angebote-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (min-width: 1100px) {
  .cms-angebote-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 32px;
  }
}
.cms-angebot-item {
    position: relative;
    width: 100%;
    max-width: 240px;
    /* margin entfernt, damit Grid-Padding wirkt */
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #fff;
    /* overflow: hidden;  <-- ENTFERNT, damit Bilder überstehen können */
    padding: 0;
    display: flex;
    flex-direction: column;
}
.cms-angebot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cms-angebot-img {
  width: 100%;
  height: auto;
  display: block;
}
.cms-angebot-status {
  position: absolute;
  top: -2px;   /* <-- NEU: 2px über den oberen Rand */
  left: -2px;  /* <-- NEU: 2px über den linken Rand */
  z-index: 2;
  padding: 0;
}

/* Header: Sterne + Zeitangabe */
.tm-review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.tm-review-stars {
    display: flex;
    gap: 0.1rem;
    font-size: 1.2rem;
}

.tm-star {
    color: #ffc107;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tm-star svg {
    width: 1em;
    height: 1em;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.tm-star-filled {
    color: #ffc107;
}

.tm-star-empty {
    color: #e0e0e0;
}

.tm-time-ago {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Text-Bereich: Zentriert mit Padding links/rechts */
.tm-review-text-wrapper {
    padding: 0 10%;
    text-align: left;
    box-sizing: border-box;
}

.tm-review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    position: relative;
}

.tm-review-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.tm-review-text.expanded {
    display: block;
}

.tm-show-more {
    background: none;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    text-decoration: underline;
    transition: color 0.3s ease;
    margin-top: 0.5rem;
}

.tm-show-more:hover {
    color: #45a049;
}

.tm-show-more.hidden {
    display: none;
}

/* Footer: Name + Quelle */
.tm-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    box-sizing: border-box;
}

.tm-review-author {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.tm-source {
    font-size: 0.85rem;
    color: #999;
    text-transform: capitalize;
}

.tm-review-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #999;
}

.tm-source {
    text-transform: capitalize;
}

.tm-date {
    font-style: italic;
}

.datenschutz-content,
.datenschutz-textblock,
.impressum-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
    box-sizing: border-box;
    color: var(--text-color);
    line-height: 1.6;
}

.impressum-content {
    padding-left: 3rem;
}

li, ol {
    font-weight: 200;;
}

@media (max-width: 768px) {
    .impressum-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

address {
    font-style: normal;
    line-height: 1.4;
    margin: 1rem 0;
}

/* Mobile: Review-Variante 2 gleich breit */
@media (max-width: 768px) {
    .reviews-variant-2 .review-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reviews-variant-2 .review-block-trustmary,
    .reviews-variant-2 .review-block-immowelt {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .tm-slider-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .tm-avg-rating {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tm-review-btn {
        width: 100%;
        text-align: center;
    }
    
    .tm-slider-btn {
        font-size: 36px;
    }
    
    .tm-slider-prev {
        left: 0;
    }
    
    .tm-slider-next {
        right: 0;
    }
    
    .tm-review-card {
        padding: 1rem;
    }
    
    .tm-review-text-wrapper,
    .tm-review-footer {
        padding: 0 5%;
    }
    
    .tm-review-text {
        font-size: 0.95rem;
    }
    
    .tm-review-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tm-review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(to bottom, #489049, #243a1b);
    color: #fff;
    width: 100%;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-icons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-item img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.4;
    padding-top: 0.375rem;
}

.footer-text span {
    display: block;
}

.footer-legal {
    text-align: right;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.footer-legal a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ccc;
    text-decoration: underline;
}

/* Burger-Menu verstecken ab 769px */
@media (min-width: 769px) {
    .burger-menu {
        display: none;
    }
}

/* Tablet-Bereich - zwischen 768px und 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-textbox {
        width: 58%; /* Noch breiter für Tablet-Ansicht */
        max-width: none; /* Keine Begrenzung in diesem Bereich */
        margin-bottom: -6rem;
    }

    /* Review-Blocks für Tablet optimiert */
    .review-container {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }

    .review-block {
        width: calc(50% - 0.75rem);
        max-width: 380px;
        min-height: 260px;
    }

    /* Tablet: Banner nebeneinander */
    .review-block .immopartner img,
    .review-block .exzellent iframe {
        width: 160px;
        height: 160px;
    }

    .review-block .immopartner,
    .review-block .exzellent {
        width: calc(50% - 10px);
    }

    .review-block .immopartner {
        margin-right: 20px;
    }
}

/* Desktop & große Bildschirme - ab 769px */
@media (min-width: 769px) {
    .header-container {
        padding: 0.5rem 2rem; /* Padding oben/unten reduziert */
    }

    .header-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 1rem; /* Größerer Abstand zwischen Telefon- und Navi-Box */
    }

    /* Footer für Desktop - horizontale Anordnung */
    .footer-icons {
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
        max-width: none;
    }

    .footer-item img {
        width: 50px;
        height: 50px;
    }

    /* Footer-Legal für Desktop - begrenzt auf Navigation-Breite */
    .footer-legal {
        text-align: right;
        max-width: 1280px;
        margin: 2rem auto 0 auto;
        padding-right: 2rem; /* Gleicher Abstand wie Header-Container */
    }

    .contact-info {
        display: flex;
        gap: 1rem;
        font-size: 0.85rem;
        margin-bottom: 0; /* Kein extra Margin, da gap im header-right */
        color: #666;
    }
    
    .contact-info span {
        padding: 0.2rem 0;
    }

    .main-nav {
        position: static; /* Überschreibt fixed von mobile */
        display: flex;
        width: max-content; /* Passt sich Inhalt an, aber genug Platz für alle Items */
        min-width: auto; /* Überschreibt min-width von mobile */
        max-width: none; /* Überschreibt max-width von mobile */
        height: auto; /* Überschreibt 100vh von mobile */
        left: auto; /* Überschreibt left von mobile */
        top: auto; /* Überschreibt top von mobile */
        right: auto; /* Überschreibt right von mobile */
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        border-radius: 0; /* Eckige Form */
        padding: 0.3rem 0.8rem; /* Flacher */
        margin: 0;
        flex-direction: row; /* Überschreibt column von mobile */
        align-items: center; /* Überschreibt flex-start von mobile */
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 2rem; /* Dieser Wert steuert den horizontalen Abstand zwischen den Menüpunkten */
        padding: 0; /* Überschreibt das mobile Padding */
    }

    .nav-links li {
        padding: 0;
        border: none; /* Überschreibt border-bottom von mobile */
        width: auto; /* Überschreibt width: 100% von mobile */
    }

    .nav-links a {
        font-size: 1.15rem; /* Schrift vergrößert */
        font-weight: 500;
        position: relative;
        padding: 0.25rem 0; /* Überschreibt das große Padding von mobile */
        padding: 0.25rem 0; /* Reduzierter Abstand für flachere Navigation */
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 8px; /* 3 Pixel tiefer vom Text weg */
        left: 0;
        width: 0;
        height: 2px;
        background-color: #489049; /* Spezifisches Grün statt Variable */
        transition: width 0.3s ease;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    .burger-menu {
        display: none;
    }

    .hero {
        padding: 2rem 0; /* Gleiche Höhe wie mobile, Hero-Bild bleibt stabil */
    }
    
    .hero-container {
        padding: 6rem 2rem 0 2rem; /* Textbox noch weiter nach unten für Desktop */
    }

    .hero-start .hero-container {
        padding: 19rem 2rem 0 2rem; /* Textbox noch weiter nach unten für Desktop */
    }

    .hero-textbox h1 {
        font-size: 1.9rem;
        line-height: 2.0rem;
        margin: 0; /* Kein Margin da die h1 jetzt im separaten Header-Bereich ist */
    }
    
    .hero-textbox p {
        font-size: 1.1rem;
        margin-bottom: 0.6rem; /* Gleichmäßige Abstände auch für Desktop */
    }
    
    .hero-textbox-header {
        padding: 1rem 2rem; /* Größeres Padding für Desktop */
        box-sizing: border-box;
    }
    
    .hero-textbox-content {
        padding: 1rem 2rem 0.2rem 2rem; /* Größeres Padding für Desktop */
        box-sizing: border-box;
    }

    main {
        padding: 2rem;
        margin-top: 5rem;
    }
    
    .featured-properties {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
    }

    .section-left {
        flex: 1;
        max-width: 50%;
    }

    .section-left h2 {
        font-size: 3rem;
        margin-bottom: 0.6rem;
    }

    .section-right {
        flex: 1;
        max-width: 50%;
    }

    /* Immobilien-Angebote Desktop */
    .immobilien-angebote {
        padding: 3rem 0;
    }

    .immobilien-angebote-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
        padding: 0 2rem 3rem 0;
    }

    .angebote-left {
        flex: 1;
        max-width: 30%;
    }

    .angebote-right {
        flex: 1;
        max-width: 70%;
    }

    .angebote-right h2 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .review-container {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 2rem;
    }

    .review-block {
        width: calc(50% - 1rem);
        max-width: 500px;
        min-height: 230px;
    }

    /* Desktop: Banner nebeneinander optimiert */
    .review-block .immopartner,
    .review-block .exzellent {
        width: calc(50% - 15px);
    }

    .review-block .immopartner {
        margin-right: 20px;
    }

    .review-block .immopartner img,
    .review-block .exzellent iframe {
        width: 200px;
        height: 200px;
    }
}

/* Desktop Textbox - ab 1025px */
@media (min-width: 1025px) {
    .hero {
        padding: 6rem 0 3rem 0; /* Höheres Hero für Desktop */
    }
    
    .hero-textbox {
        /* 45% der verfügbaren Container-Breite */
        width: 45%;
        max-width: 448px; /* Maximale absolute Breite */
        
        /* Kein zusätzlicher Margin - Container regelt die Positionierung */
        margin-left: 0;
        margin-right: 0;
        margin-bottom: -10rem; /* Dreimal so viel Überhang für Desktop */
        
        /* Eckige Form beibehalten */
        border-radius: 0;
        
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 768px) {
    .hero-textbox {
        margin-bottom: -5rem;
    }
    .footer-icons {
        align-items: normal;
    }
    .ueberuns-textblock {
        margin: 2rem 1rem;
        font-size: 1rem;
        line-height: 1.5;
        color: var(--text-color);
    }
    .team-member {
        align-items: flex-start;
        margin: 0 0 2rem 0;
        gap: 1rem;
    }
    .ueberuns-image {
        width: 100%;
        max-width: 220px;
        margin-left: 0;
    }

}

@media (max-width: 480px) {
    .hero-textbox {
        margin-bottom: -4rem;
    }

    .hero-textbox h1 {
        font-size: 1.4rem;
        line-height: 1.6rem;
        margin: 0; /* Kein Margin da die h1 jetzt im separaten Header-Bereich ist */
    }
    .hero-textbox h2 {
        font-size: 1.0rem;
        line-height: 1.3rem;
        margin: 0.2rem 0 0 0; /* Kein Margin da die h1 jetzt im separaten Header-Bereich ist */
    }
    .team-member {
        flex-direction: column;
        align-items: flex-start;
        margin: 0 0 2rem 0;
        gap: 1rem;
    }
    .ueberuns-image {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

}

@media (max-width: 375px) {
    .hero-textbox {
        margin-bottom: -4rem;
    }

    .hero-textbox-header {
        padding: 1rem;
    }

    .hero-textbox-content {
        font-size: 0.9rem;
        margin-bottom: 0.4rem; /* Gleichmäßige Abstände auch für sehr kleine Bildschirme */
        padding: 1rem;
    }

    .hero-textbox h1 {
        font-size: 1.2rem;
        line-height: 1.4rem;
        margin: 0; /* Kein Margin da die h1 jetzt im separaten Header-Bereich ist */
    }
    .hero-textbox h2 {
        font-size: 0.9rem;
        line-height: 1.1rem;
        margin: 0.2rem 0 0 0; /* Kein Margin da die h1 jetzt im separaten Header-Bereich ist */
    }

}

/* ========================================
   NAVIGATION BUTTONS (Modernized from GIF)
   ======================================== */

/* Basis für alle Navigations-Buttons */
.btn-nav {
    display: inline-block;
    padding: 6px 16px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: normal;
    text-decoration: none;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    vertical-align: top;
    line-height: 14px;
    min-width: 225px;
    height: 26px;
    box-sizing: border-box;
}

/* Objekt-Button (zurück zur Objektbearbeitung) */
.btn-nav-objekt {
    background: linear-gradient(to bottom, #6ba06b 0%, #4a804a 50%, #345f34 100%);
    border: 1px solid #2a4a2a;
}

.btn-nav-objekt:hover {
    background: linear-gradient(to bottom, #7bb07b 0%, #5a905a 50%, #456f45 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-nav-objekt:active {
    background: linear-gradient(to bottom, #345f34 0%, #4a804a 50%, #6ba06b 100%);
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Objektliste-Button (zurück zur Liste) */
.btn-nav-objektliste {
    background: linear-gradient(to bottom, #5a8a9a 0%, #3a6a7a 50%, #1a4a5a 100%);
    border: 1px solid #0a3a4a;
}

.btn-nav-objektliste:hover {
    background: linear-gradient(to bottom, #6a9aaa 0%, #4a7a8a 50%, #2a5a6a 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-nav-objektliste:active {
    background: linear-gradient(to bottom, #1a4a5a 0%, #3a6a7a 50%, #5a8a9a 100%);
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Objekt-Button für Hauptnavigation (kleinerer Variant) */
.btn-nav-main {
    min-width: auto;
    padding: 8px 12px;
    font-size: 12px;
    height: auto;
    background: linear-gradient(to bottom, #6ba06b 0%, #4a804a 50%, #345f34 100%);
    border: 1px solid #2a4a2a;
}

/* Platzhalter für Edit-Stift */
.btn-edit-placeholder {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  visibility: hidden;
}

/* Style für die Lösch-Bestätigungsseite wie bei Eigenschaften */
.delete-confirm-box {
  max-width: 400px;
  margin: 40px auto;
  background: #fffbe8;
  border: 1px solid #e0c080;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 32px 24px 24px 24px;
  text-align: center;
}
.delete-confirm-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 18px;
  color: #a00;
}
.delete-confirm-text {
  margin-bottom: 24px;
  color: #444;
}
.delete-confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.btn-loeschen {
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-loeschen:hover {
  background: #b71c1c;
}
.btn-abbrechen {
  background: #eee;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 1em;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.btn-abbrechen:hover {
  background: #ccc;
}

/* Kontaktformular Styles */
.kontakt-formular {
    max-width: 500px;
    margin: 2em auto;
    padding: 2em;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.kontakt-formular .form-row {
    margin-bottom: 1.2em;
    display: flex;
    flex-direction: column;
}
.kontakt-formular label {
    font-weight: bold;
    margin-bottom: 0.3em;
}
.kontakt-formular input,
.kontakt-formular select,
.kontakt-formular textarea {
    padding: 0.5em;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 1em;
}
.kontakt-formular .form-error {
    color: #c00;
    font-size: 0.95em;
    margin-top: 0.2em;
}
.btn-kontakt {
    background: #0077cc;
    color: #fff;
    border: none;
    padding: 0.7em 1.5em;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-kontakt:hover {
    background: #005fa3;
}
.kontakt-erfolg {
    max-width: 500px;
    margin: 2em auto;
    padding: 1.5em;
    background: #e6ffe6;
    border: 1px solid #b2d8b2;
    border-radius: 8px;
    color: #2d7a2d;
    font-size: 1.2em;
    text-align: center;
}

/* Kontaktseite Layout */
.kontakt-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
    max-width: 900px;
    margin: 2em 1.5rem;
    align-items: flex-start;
}
.kontakt-info {
    flex: 1 1 260px;
    background: none;
    font-size: 1.1em;
    margin-bottom: 2em;
}
.kontakt-info h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 100;
    padding: 2rem 1rem 0 0;
    font-family: 'Source Sans 3', Arial, Helvetica, sans-serif;
}
.kontakt-formular-wrapper {
    flex: 2 1 400px;
    margin-left: auto;
}
.kontakt-formular {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-right: 0;
}
.btn-kontakt {
    background: #2d7a2d;
    color: #fff;
    border: none;
    padding: 0.7em 1.5em;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Source Sans 3', Arial, Helvetica, sans-serif;
    font-weight: 700;
}
.btn-kontakt:hover {
    background: #228b22;
}
@media (max-width: 700px) {
    .kontakt-flex {
        flex-direction: column;
        gap: 0;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
    .kontakt-info {
        margin-bottom: 1.5em;
        text-align: left;
        width: 100%;
        padding: 0;
    }
    .kontakt-formular-wrapper {
        margin-left: 0;
        width: 100%;
        padding: 0;
    }
    .kontakt-formular {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Angebote Seite */
.angebote-content {
    background: #fff;
    box-sizing: border-box;
    padding: 20px;
    max-width: 1080px;
    margin: 2em auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
}
#iwModule {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 2em auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#iwModule, #iwModule #iwWidget {
    background-color: #fff;
    font-weight: normal;
    height: auto;
    margin: 0;
    max-width: 940px !important;
    min-width: 310px !important;
    padding: 0;
    text-align: left;
    width: 100% !important;
}
.angebote-eigen {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
@media (max-width: 800px) {
    .angebote-content {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 16px;
    }
    #iwModule, .angebote-eigen {
        max-width: 100%;
        padding: 0;
    }
}

/* Responsive Grid für CMS-Angebote */
/* Responsive Grid für CMS-Angebote */
.cms-angebote-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}
@media (min-width: 700px) {
  .cms-angebote-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (min-width: 1100px) {
  .cms-angebote-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 32px;
  }
}
.cms-angebot-item {
    position: relative;
    width: 100%;
    max-width: 240px;
    /* margin entfernt, damit Grid-Padding wirkt */
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #fff;
    /* overflow: hidden;  <-- ENTFERNT, damit Bilder überstehen können */
    padding: 0;
    display: flex;
    flex-direction: column;
}
.cms-angebot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cms-angebot-img {
  width: 100%;
  height: auto;
  display: block;
}
.cms-angebot-status {
  position: absolute;
  top: -1px;   /* <-- NEU: 2px über den oberen Rand */
  left: -2px;  /* <-- NEU: 2px über den linken Rand */
  z-index: 2;
  padding: 0;
  width: 180px;
}