/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
}

body {
    background: #f5f5f5;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* HEADER */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
}

header img {
    height: 40px;
}

/* NAV */
nav {
    display: flex;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: 0.2s;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #ff8c00, #ffa733);
    transition: 0.3s;
}

nav a:hover {
    color: #ff8c00;
}

nav a:hover::after {
    width: 100%;
}

/* MENU BUTTON */
.menu-button {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* HERO */
.hero {
    padding: 100px 20px;
    color: white;
    background:
        linear-gradient(rgba(255,140,0,0.8), rgba(255,140,0,0.8)),
        url("../images/FamilieBackgorund.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-inner {
    max-width: 1100px;
    margin: auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    margin-bottom: 25px;
}

/* BUTTON */
.btn {
    background: white;
    color: #ff8c00;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* MAIN */
main {
    flex: 1;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    color: white;
    background: linear-gradient(120deg, #ff8c00, #ffa733);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-right a {
    margin-left: 15px;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.footer-right a:hover {
    text-decoration: underline;
}

.footer-right a:not(:last-child)::after {
    content: "|";
    margin-left: 10px;
    color: rgba(255,255,255,0.6);
}

/* LEGAL */
.legal-page {
    max-width: 900px;
    margin: auto;
    padding: 60px 20px;
    text-align: left;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.legal-page section {
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.legal-page h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #ff8c00;
}

.legal-page p {
    line-height: 1.7;
    margin-bottom: 10px;
    color: #333;
}

.legal-page strong {
    color: #1a1a1a;
}

.legal-page a {
    color: #ff8c00;
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* 📱 MOBILE */
@media (max-width: 768px) {

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        width: 200px;
    }

    nav.active {
        display: flex;
    }

    .menu-button {
        display: block;
    }

    .hero {
        padding: 70px 20px;
        background:
            linear-gradient(rgba(255,140,0,0.75), rgba(255,140,0,0.75)),
            url("../images/FamilieBackgorund.jpeg");
        background-size: cover;
        background-position: center;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
    }

    .footer-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .footer-right a {
        margin: 0;
        font-size: 0.9rem;
    }

    .footer-right a::after {
        margin-left: 8px;
    }
}

/* 🔥 COOKIE POPUP */
#cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.cookie-box {
    background: white;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    border-radius: 10px;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cookie-box h2 {
    margin-bottom: 15px;
}

.cookie-box p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-box a {
    color: #ff8c00;
    text-decoration: none;
}

.cookie-box a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 🔥 COOKIE BUTTONS FIX */
#cookie-accept,
#cookie-decline {
    background: #ff8c00;
    color: black;
    padding: 14px 22px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

#cookie-accept:hover,
#cookie-decline:hover {
    opacity: 0.9;
}
/* CALCULATOR */
.calculator-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
}

.calculator-section.active {
    max-height: 1200px;
}

.calculator-box {
    background: white;
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
/* POPUP OVERLAY */
.calc-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;

    z-index: 9998;
}

.calc-popup.active {
    display: flex;
}

/* BOX */
.calc-popup-box {
    background: white;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    border-radius: 10px;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.calc-popup-box h2 {
    margin-bottom: 15px;
}

.calc-popup-box p {
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ORANGE BUTTON */
.calc-link-btn {
    display: inline-block;
    background: #ff8c00;
    color: black;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 15px;
}

/* CLOSE BUTTON */
.calc-close-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #eee;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.services {
    padding: 60px 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a1a;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.2s;
    text-align: center;
    font-weight: bold;
}

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

@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
    }
}
.immobilien-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: auto;
}

.immobilien-form input,
.immobilien-form select,
.immobilien-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.immobilien-form textarea {
    min-height: 100px;
}
/* 🔥 PARTNER – CLEAN & PREMIUM (OHNE BACKGROUND BLOCK) */
.partners {
    padding: 80px 0;
    background: #ffffff; /* exakt wie Header */
    text-align: center;

    /* optional leicht edel */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Überschrift elegant */
.partners h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

/* kleine dezente Linie */
.partners h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #ff8c00;
    margin: 12px auto 0;
    border-radius: 2px;
    opacity: 0.7;
}

/* Slider */
.partner-slider {
    overflow: hidden;
}

/* Track */
.partner-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scrollPartners 35s linear infinite;
}

/* Pause bei Hover */
.partner-slider:hover .partner-track {
    animation-play-state: paused;
}

/* 🔥 LOGOS – SOFT & EDEL */
.partner-track img {
    height: 30px;
    width: auto;
    max-width: 100px;

    object-fit: contain;

    opacity: 0.75;

    transition: all 0.3s ease;
}

/* Hover subtil */
.partner-track img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Animation */
@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}