/* =============================================================
   Dein Immo Team GmbH — Stylesheet
   Modular aufgebaut: Reset → Variablen → Layout → Components → Sections → Pages → Responsive
   ============================================================= */

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

:root {
    --primary-orange: #E67E22;
    --primary-orange-dark: #d35400;
    --black: #1a1a1a;
    --dark-gray: #717171;
    --mid-gray: #999;
    --light-gray: #f5f5f5;
    --line-gray: #e0e0e0;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ---- Layout ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; margin-right: auto; }
.logo-image { height: 70px; width: auto; }

.nav-menu { display: flex; gap: 40px; }

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}
.nav-link:hover,
.nav-link.active { color: var(--primary-orange); }

/* Dropdown */
.nav-item-dropdown { position: relative; }
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 14px 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 10;
}
.nav-item-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown a {
    display: block;
    padding: 8px 24px;
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-dropdown a:hover { color: var(--primary-orange); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span {
    width: 25px; height: 3px;
    background: var(--black);
    transition: all 0.3s;
}

/* ---- Hero (Startseite) ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    text-align: center;
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 3px 3px 15px rgba(0,0,0,0.8);
    line-height: 1.15;
}
.hero-content .hero-subline {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    font-weight: 400;
}
.hero-content .hero-claim {
    font-size: 1.1rem;
    margin: 1.5rem auto 2.5rem;
    color: #f0f0f0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    max-width: 720px;
    font-weight: 300;
    line-height: 1.6;
}

/* ---- CTA Button ---- */
.cta-button {
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 18px 50px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    display: inline-block;
    text-decoration: none;
}
.cta-button:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-2px);
}
.cta-button.secondary {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
}
.cta-button.secondary:hover {
    background: var(--primary-orange);
    color: var(--white);
}
.cta-button.outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.cta-button.outline-white:hover {
    background: var(--white);
    color: var(--black);
}

.hero-cta-group {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}
@media (max-width: 600px) {
    .hero-cta-group { flex-direction: column; align-items: stretch; gap: 12px; }
    .hero-cta-group .cta-button { padding: 16px 30px; font-size: 1.05rem; }
}

/* ---- Page-Hero (Unterseiten) ---- */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
    padding: 160px 0 100px;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--page-hero-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    z-index: 0;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}
.page-hero .container {
    position: relative;
    z-index: 2;
}
.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.5);
}
.page-hero .page-hero-subline {
    font-size: 1.15rem;
    color: #e8e8e8;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.5);
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
    background: var(--light-gray);
    padding: 14px 0;
    font-size: 13px;
    color: var(--dark-gray);
}
.breadcrumbs a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--primary-orange); }
.breadcrumbs .sep { margin: 0 8px; color: var(--mid-gray); }
.breadcrumbs .current { color: var(--black); font-weight: 500; }

/* ---- Section Titles ---- */
.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.2;
}
.section-title-light {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
}
.section-intro {
    font-size: 16px;
    color: var(--dark-gray);
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
    line-height: 1.8;
}
.section-intro.on-dark { color: #bbb; }

/* ---- About Section ---- */
.about-section {
    padding: 100px 0;
    background: var(--white);
}
.about-text {
    font-size: 16px;
    line-height: 1.85;
    color: var(--dark-gray);
    margin: 0 auto 60px;
    max-width: 780px;
    text-align: center;
}
.about-text + .about-text { margin-top: -40px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 10px;
}
.stat-label {
    font-size: 13px;
    color: var(--dark-gray);
    line-height: 1.4;
}

/* ---- Advantages Section ---- */
.advantages-section {
    padding: 100px 0;
    background: var(--black);
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.advantage-card {
    background: var(--black);
    border: 2px solid var(--white);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s;
}
.advantage-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
}
.advantage-icon {
    font-size: 28px;
    color: var(--primary-orange);
    margin-bottom: 15px;
}
.advantage-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.advantage-text {
    font-size: 14px;
    line-height: 1.7;
    color: #cccccc;
}

/* ---- Services Section ---- */
.services-section {
    padding: 100px 0;
    background: var(--light-gray);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}
.service-item {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid transparent;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: var(--primary-orange);
}
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 12px;
}
.service-icon img {
    width: 45px;
    height: 45px;
    filter: brightness(0) saturate(100%) invert(45%);
    opacity: 0.7;
}
.service-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}
.service-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 14px;
}
.service-link {
    color: var(--primary-orange);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* ---- Content (Unterseiten) ---- */
.content-section {
    padding: 80px 0;
    background: var(--white);
}
.content-section.alt { background: var(--light-gray); }
.content-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 22px;
    line-height: 1.25;
}
.content-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    margin: 32px 0 14px;
}
.content-section p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--dark-gray);
    margin-bottom: 18px;
}
.content-section ul {
    margin: 18px 0 24px 22px;
    color: var(--dark-gray);
    font-size: 16px;
    line-height: 1.9;
}
.content-section ul li { margin-bottom: 6px; }
.content-section strong { color: var(--black); }
.content-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
.content-grid-2 .content-block-text { padding-right: 0; }
.content-prose {
    max-width: 820px;
    margin: 0 auto;
}

/* ---- FAQ Accordion ---- */
.faq-section {
    padding: 90px 0;
    background: var(--white);
}
.faq-list {
    max-width: 860px;
    margin: 50px auto 0;
}
.faq-item {
    border-bottom: 1px solid var(--line-gray);
    padding: 0;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    text-align: left;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.faq-question .faq-toggle {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-orange);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s;
}
.faq-item.open .faq-question .faq-toggle { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
    max-height: 600px;
    padding-bottom: 24px;
}
.faq-answer p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* ---- Standorte/Service-Gebiet ---- */
.locations-section {
    padding: 80px 0;
    background: var(--light-gray);
}
.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 40px;
}
.location-chip {
    background: var(--white);
    border-radius: 8px;
    padding: 16px 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* ---- Team Section ---- */
.team-section {
    padding: 100px 0;
    background: var(--light-gray);
    position: relative;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 60px;
}
.team-member { text-align: center; }
.team-image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 15px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.team-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}
.team-role {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* ---- Referenzen ---- */
.references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}
.reference-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.reference-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.reference-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #2a2a2a 0%, #555 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
}
.reference-body { padding: 28px; }
.reference-tag {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.reference-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}
.reference-text {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 14px;
}
.reference-meta {
    font-size: 12px;
    color: var(--mid-gray);
    border-top: 1px solid var(--line-gray);
    padding-top: 14px;
}

/* ---- CTA-Banner ---- */
.cta-banner {
    background: var(--primary-orange);
    padding: 70px 0;
    text-align: center;
    color: var(--white);
}
.cta-banner h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}
.cta-banner p {
    font-size: 16px;
    margin-bottom: 28px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}
.cta-banner .cta-button {
    background: var(--white);
    color: var(--primary-orange);
}
.cta-banner .cta-button:hover {
    background: var(--black);
    color: var(--white);
}

/* ---- Contact Section ---- */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 40px;
}
.contact-section .section-title { text-align: left; }
.contact-intro {
    font-size: 15px;
    color: var(--dark-gray);
    margin-bottom: 40px;
}
.contact-details { margin-bottom: 30px; }
.contact-detail-group { margin-bottom: 26px; }
.contact-detail-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.contact-detail-text {
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.7;
}
.contact-detail-text a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-detail-text a:hover { color: var(--primary-orange); }

/* ---- Contact Form ---- */
.form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}
.form-subtitle {
    font-size: 13px;
    color: var(--dark-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-bottom: 1px solid #ddd;
    font-family: inherit;
    font-size: 14px;
    color: var(--dark-gray);
    background: transparent;
    transition: all 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-orange);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}
.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.form-checkbox label {
    font-size: 12px;
    color: var(--dark-gray);
    line-height: 1.5;
    cursor: pointer;
}
.submit-button {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 14px 50px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    align-self: center;
    margin-top: 10px;
}
.submit-button:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
}

/* ---- Footer ---- */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 0;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 60px;
}
.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--white);
}
.footer-text {
    font-size: 14px;
    color: #999;
    line-height: 1.8;
}
.footer-text a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}
.footer-text a:hover { color: var(--primary-orange); }
.footer-logo img {
    max-width: 200px;
    width: 100%;
}
.footer-bottom {
    background: var(--primary-orange);
    padding: 25px 0;
}
.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-copyright {
    font-size: 13px;
    color: var(--white);
}
.footer-links {
    display: flex;
    gap: 30px;
}
.footer-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 13px;
    transition: opacity 0.3s;
}
.footer-links a:hover { opacity: 0.8; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .locations-grid { grid-template-columns: repeat(2, 1fr); }
    .references-grid { grid-template-columns: 1fr; }
    .content-grid-2 { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .container, .nav-container { padding: 0 20px; }
    .logo-image { height: 45px; }
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 25px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: left 0.3s;
        gap: 20px;
    }
    .nav-menu.active { left: 0; }
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 6px 0 0 14px;
        min-width: 0;
    }
    .hamburger { display: flex; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-content .hero-subline { font-size: 1.15rem; }
    .hero-content .hero-claim { font-size: 1rem; }
    .page-hero { padding: 120px 0 60px; }
    .page-hero h1 { font-size: 2rem; }
    .section-title, .section-title-light { font-size: 30px; }
    .advantages-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; gap: 25px; }
    .team-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-layout { grid-template-columns: 1fr; gap: 50px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom-content { flex-direction: column; gap: 18px; text-align: center; }
    .footer-links { flex-direction: column; gap: 12px; text-align: center; }
    .content-section { padding: 60px 0; }
    .content-section h2 { font-size: 26px; }
}
