/* =================================================================
   MARKANT IMMOBILIEN - DESIGN SYSTEM
   Klar. Strukturiert. Selbstbewusst.
   ================================================================= */

/* =================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ================================================================= */
:root {
    /* Farbsystem - Dunkel, Grau, Weiß */
    --primary-dark: #2a2a2a;
    --secondary-dark: #1a1a1a;
    --accent-gold: #2a2a2a;
    --text-primary: #2a2a2a;
    --text-secondary: #555555; /* Dunkelgrau */
    --text-light: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-cream: #faf9f7;
    --bg-beige: #f5f3f0;
    --bg-dark-beige: #e8e5e0;
    --bg-charcoal: #2a2a2a;
    --bg-dark: #1a1a1a;
    --line-color: #e0e0e0;
    --line-accent: #b8956a;
    
    /* Typografie - Karla Fricke Style */
    --font-primary: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --letter-spacing-wide: 0.15em;
    --letter-spacing-wider: 0.25em;
    --letter-spacing-widest: 0.35em;
    
    /* Spacing System (großzügig!) */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-xxl: 8rem;
    
    /* Layout */
    --container-width: 1400px;
    --container-narrow: 1000px;
    --header-height: 90px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Line Width */
    --line-thin: 1px;
    --line-medium: 2px;
}

/* =================================================================
   2. RESET & BASE STYLES
   ================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    width: 100%;
}

/* Verhindert horizontales Scrollen global */
html, body {
    overflow-x: hidden !important;
    width: 100%;
}

/* Container dürfen nicht über Viewport-Breite hinaus */
section, div, main, header, footer {
    max-width: 100%;
    box-sizing: border-box;
}

/* =================================================================
   3. TYPOGRAFIE - KARLA FRICKE STYLE (EXACT MATCH)
   ================================================================= */

/* Headlines - kompakt, fett, uppercase wie "FREUEN SIE SICH SCHON AUF DAS NEUE?" */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700; /* Bold/Fett */
    line-height: 1.2;
    letter-spacing: 0.02em; /* Enges Letter-Spacing */
    color: #3d3d3d; /* Dunkelgrau statt Schwarz */
    margin-bottom: var(--space-md);
    text-transform: uppercase; /* Alles in Großbuchstaben */
}

h1 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem); /* KLEINER - wie Karla Fricke */
    line-height: 1.3;
    margin-bottom: var(--space-lg);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #3d3d3d;
}

h2 {
    font-size: clamp(1.125rem, 2.25vw, 1.5rem); /* KLEINER - kompakt */
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #3d3d3d;
}

h3 {
    font-size: clamp(1rem, 2vw, 1.375rem); /* KLEINER - kompakt */
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #3d3d3d;
}

h4 {
    font-size: clamp(0.95rem, 1.75vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #3d3d3d;
}

h5 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #3d3d3d;
}

h6 {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #3d3d3d;
}

/* Karla Fricke Section Title - wie "FREUEN SIE SICH SCHON AUF DAS NEUE?" */
.section-title-fricke,
.fricke-title {
    font-family: var(--font-primary);
    font-size: clamp(1.125rem, 2.25vw, 1.5rem) !important; /* KLEINER */
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    color: #3d3d3d !important; /* Dunkelgrau */
    line-height: 1.3 !important;
    margin-bottom: 2rem !important;
    text-align: center;
}

/* Body Text - luftig, leicht, gut lesbar */
p {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 300; /* Light Weight */
    line-height: 1.9; /* Sehr luftig */
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

/* Large Text */
.text-large {
    font-size: 1.25rem;
    line-height: 2;
    font-weight: 300;
}

/* Small Text */
.text-small {
    font-size: 0.875rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Labels & Uppercase Text - weit gesperrt */
.label-spaced,
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em; /* Sehr weit gesperrt wie bei Karla */
    text-transform: uppercase;
    color: var(--accent-gold);
}

/* Links */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-gold);
}

/* Strong & Bold - aber nicht zu fett */
strong, b {
    font-weight: 500; /* Medium statt Bold */
}

/* Listen */
ul, ol {
    font-family: var(--font-primary);
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-secondary);
}

/* =================================================================
   4. HEADER & NAVIGATION
   ================================================================= */

/* Links */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-gold);
}

/* =================================================================
   4. HEADER & NAVIGATION - MIT SCROLL SHADOW
   ================================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: var(--line-thin) solid var(--line-color);
    height: var(--header-height);
    transition: box-shadow 0.3s ease, border-bottom 0.3s ease;
}

/* Sticky Header Shadow beim Scrollen */
.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: var(--line-thin) solid transparent;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    gap: 0;
    line-height: 1;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
}

.logo-subtext {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Navigation */
.nav {
    position: absolute;
    left: var(--space-md);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    padding: 0.5rem 0;
    border-bottom: var(--line-medium) solid transparent;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    border-bottom-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: var(--line-thin) solid var(--line-color);
    min-width: 220px;
    padding: var(--space-sm);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 1rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem var(--space-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
    border-left: var(--line-medium) solid transparent;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    border-left-color: var(--accent-gold);
    padding-left: 1.25rem;
    background: var(--bg-light);
}

.dropdown-all {
    border-top: var(--line-thin) solid var(--line-color);
    margin-top: 0.5rem;
    padding-top: var(--space-sm) !important;
    font-weight: 500;
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: absolute;
    right: var(--space-md);
}

.header-btn-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.75rem var(--space-sm);
    border: var(--line-thin) solid var(--line-color);
    transition: var(--transition);
}

.header-btn-phone:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.header-btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--primary-dark);
    color: var(--text-light);
    border: var(--line-medium) solid var(--primary-dark);
    transition: var(--transition);
}

.header-btn-primary:hover {
    background: transparent;
    color: var(--primary-dark);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1001;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-dark);
    transition: var(--transition);
    display: block;
    border-radius: 2px;
    pointer-events: none;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--line-color);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-close:hover,
.mobile-nav-close:active {
    background: var(--bg-light);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid var(--line-color);
}

.mobile-nav-list > li > a {
    display: block;
    padding: 1.25rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: rgba(184,149,106,0.1);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-nav-list > li > a:hover,
.mobile-nav-list > li > a.active,
.mobile-nav-list > li > a:active {
    background: var(--bg-light);
    color: var(--accent-gold);
    padding-left: 2rem;
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-light);
}

.mobile-submenu li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem 1rem 3rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(184,149,106,0.1);
}

.mobile-submenu li a:hover,
.mobile-submenu li a:active {
    color: var(--accent-gold);
    padding-left: 3.5rem;
}

.mobile-nav-cta {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-cta-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    background: var(--accent-gold);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184,149,106,0.3);
}

.mobile-cta-btn.secondary {
    background: white;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.mobile-cta-btn.secondary:hover {
    background: var(--primary-dark);
    color: white;
}

/* =================================================================
   5. SECTIONS & CONTAINERS
   ================================================================= */
section {
    padding: var(--space-xxl) 0;
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-narrow {
    max-width: var(--container-narrow);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* =================================================================
   6. BUTTONS & CTA ELEMENTS
   ================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: var(--line-medium) solid;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-light);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--text-light);
}

.btn-accent {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--text-light);
}

.btn-accent:hover {
    background: transparent;
    color: var(--accent-gold);
}

/* =================================================================
   7. GRID SYSTEM
   ================================================================= */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* =================================================================
   8. CARDS & CONTENT BLOCKS
   ================================================================= */
.card {
    background: var(--bg-white);
    border: var(--line-thin) solid var(--line-color);
    padding: var(--space-lg);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.card-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* =================================================================
   9. FOOTER
   ================================================================= */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--space-xxl) 0 var(--space-md);
    border-top: var(--line-medium) solid var(--accent-gold);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: var(--line-thin) solid rgba(255,255,255,0.1);
    margin-bottom: var(--space-xl);
}

.footer-brand .footer-logo {
    margin-bottom: var(--space-md);
}

.footer-brand .logo-text {
    color: var(--text-light);
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--line-thin) solid rgba(255,255,255,0.2);
    color: var(--text-light);
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.footer-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    border-left: var(--line-medium) solid transparent;
    padding-left: 0;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--text-light);
    border-left-color: var(--accent-gold);
    padding-left: var(--space-sm);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

.footer-contact i {
    color: var(--accent-gold);
    margin-top: 0.25rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: var(--text-light);
}

/* Footer CTA */
.footer-cta {
    background: var(--secondary-dark);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    border-left: 4px solid var(--accent-gold);
}

.footer-cta-content h3 {
    font-size: 1.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.footer-cta-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.footer-cta-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.footer-btn-primary,
.footer-btn-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    white-space: nowrap;
}

.footer-btn-primary {
    background: var(--accent-gold);
    color: var(--text-light);
    border: var(--line-medium) solid var(--accent-gold);
}

.footer-btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
}

.footer-btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: var(--line-medium) solid var(--text-light);
}

.footer-btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-dark);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: var(--line-thin) solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.footer-legal {
    display: flex;
    gap: var(--space-sm);
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
}

.footer-legal a:hover {
    color: var(--text-light);
}

/* =================================================================
   10. WHATSAPP FLOATING BUTTON
   ================================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--primary-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* =================================================================
   11. RESPONSIVE DESIGN
   ================================================================= */
@media (max-width: 1024px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-xxl: 5rem;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-cta-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .footer-btn-primary,
    .footer-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Hero auf Tablets */
    .hero {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
    
    .hero > div:first-of-type {
        padding: 6rem 5% !important;
    }
    
    .hero > div:last-of-type {
        min-height: 50vh;
    }
}

/* Desktop: Logo zentriert */
@media (min-width: 769px) {
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .header-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    /* Header Mobile */
    .header {
        padding: 0.75rem 0 !important;
    }
    
    .header-container {
        padding: 0 1rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
    }
    
    .logo {
        position: static !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
    }
    
    .logo-img {
        height: 45px !important;
        max-height: 45px !important;
        width: auto !important;
    }
    
    .nav {
        position: static !important;
        left: auto !important;
    }
    
    /* All containers must not overflow */
    * {
        max-width: 100% !important;
    }
    
    .section-container {
        padding: 0 1rem !important;
        overflow-x: hidden !important;
    }
    
    section {
        overflow-x: hidden !important;
        padding: 3rem 0 !important;
    }
    
    /* Properties Grid Mobile */
    .scroll-reveal-stagger,
    div[style*="grid-template-columns: repeat(auto-fit, minmax(380px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Leistungen Section Mobile Optimization */
    .leistungen-section {
        padding: 4rem 0 !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 !important;
    }
    
    .service-card-modern {
        padding: 2rem 1.5rem !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .nav,
    .header-cta {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Hero Banner Mobile - Better Optimization */
    .hero-banner {
        height: 50vh !important;
        min-height: 400px !important;
    }
    
    .hero-image-zoom {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .hero-image-zoom img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
    
    .hero-text-box {
        padding: 2rem 1.5rem !important;
        margin: 0 1rem !important;
        max-width: calc(100% - 2rem) !important;
        width: calc(100% - 2rem) !important;
    }
    
    .hero-text-box h1 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-text-box p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Split Screen Sections - Stack on Mobile */
    section[style*="grid-template-columns: 1fr 1fr"],
    section[style*="grid-template-columns: 45% 55%"] {
        grid-template-columns: 1fr !important;
    }
    
    section[style*="grid-template-columns"] > div {
        min-height: 300px !important;
    }
    
    /* Buttons Mobile */
    .btn,
    a[class*="btn"],
    button[class*="btn"] {
        padding: 1rem 2rem !important;
        font-size: 0.95rem !important;
    }
    
    /* CTA Sections Mobile */
    div[style*="display: flex"][style*="gap"] {
        flex-wrap: wrap !important;
    }
    
    div[style*="display: flex"][style*="gap"] > a,
    div[style*="display: flex"][style*="gap"] > button {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Hero Mobile */
    .hero {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
    
    .hero > div:first-of-type {
        padding: 4rem var(--space-md) !important;
    }
    
    .hero > div:last-of-type {
        min-height: 40vh;
    }
    
    /* Leistungen Mobile - Stack vertikal */
    section .leistung-block {
        border-right: none !important;
        border-bottom: 1px solid var(--line-color);
        padding: 3rem 1.5rem !important;
    }
    
    section .leistung-block:last-child {
        border-bottom: none;
    }
    
    /* Stats Grid Mobile */
    div[style*="display: grid"][style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Card Grids Mobile */
    .card,
    div[class*="card"] {
        margin-bottom: 1.5rem !important;
    }
    
    /* Text Sizes Mobile */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    .lead-text,
    p[style*="font-size: 1.125rem"],
    p[style*="font-size: 1.25rem"] {
        font-size: 1rem !important;
    }
    
    /* Prozess Mobile - Stack vertikal */
    .process-line {
        display: none;
    }
    
    section .process-step {
        padding: 2rem 0 !important;
        border-bottom: 1px solid var(--line-color);
    }
    
    section .process-step:last-child {
        border-bottom: none;
    }
    
    /* Warum MARKANT Mobile */
    section[style*="padding-left: 4rem"] {
        padding-left: 1.5rem !important;
    }
    
    /* Typography Mobile */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    .lead-text {
        font-size: 1rem;
    }
    
    /* Spacing Mobile */
    section {
        padding: 4rem 0 !important;
    }
    
    section[style*="10rem"] {
        padding: 4rem 0 !important;
    }
}

/* Mobile Navigation Styles */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    padding: var(--space-lg) var(--space-md);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid var(--line-color);
}

.mobile-nav-list > li > a {
    display: block;
    padding: 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-primary);
    transition: var(--transition);
}

.mobile-nav-list > li > a:hover {
    color: var(--accent-gold);
}

.mobile-submenu span {
    display: block;
    padding: 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
}

.mobile-submenu ul {
    list-style: none;
    padding: 0 0 1rem 1.5rem;
    margin: 0;
}

.mobile-submenu ul li {
    margin-bottom: 0.75rem;
}

.mobile-submenu ul a {
    font-size: 1rem;
    color: var(--text-secondary);
}

.mobile-cta {
    border: none;
    margin-top: 2rem;
}

.mobile-btn-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent-gold);
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

body.menu-open {
    overflow: hidden;
}

/* =================================================================
   12. PREMIUM ANIMATIONEN - KARLA FRICKE STYLE
   ================================================================= */

/* ===== BILD-HOVER-EFFEKTE ===== */
.property-card img,
.gallery-item img,
.service-card img,
img[style*="object-fit: cover"] {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover img,
.gallery-item:hover img,
.service-card:hover img {
    transform: scale(1.08);
}

/* Overlay beim Hover */
.property-card,
.gallery-item {
    position: relative;
    overflow: hidden;
}

.property-card::after,
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.property-card:hover::after,
.gallery-item:hover::after {
    opacity: 1;
}

/* ===== SCROLL-REVEAL ANIMATIONEN ===== */
/* Diese werden via JavaScript aktiviert - siehe unten */

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animations - nacheinander erscheinen */
.scroll-reveal-stagger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-stagger.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-stagger:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal-stagger:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal-stagger:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal-stagger:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal-stagger:nth-child(5) { transition-delay: 0.5s; }

/* Fade-in ohne Movement */
.scroll-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.scroll-fade.revealed {
    opacity: 1;
}

/* Slide from Left */
.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-slide-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from Right */
.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-slide-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== DROPDOWN FADE ANIMATIONS ===== */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =================================================================
   ADDITIONAL MOBILE OPTIMIZATIONS
   ================================================================= */
@media (max-width: 768px) {
    /* Force no horizontal scroll */
    body {
        width: 100vw;
        position: relative;
        overflow-x: hidden;
    }
    
    /* All sections full width only */
    section, .section-container, div, main {
        box-sizing: border-box;
    }
    
    /* Section Container mobile padding */
    .section-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Timeline section special handling */
    section[style*="padding: 12rem 0"] {
        padding: 4rem 0 !important;
    }
    
    section[style*="padding: 12rem 0"] .section-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
    }
    
    section[style*="padding: 12rem 0"] .section-container > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
    
    /* Headlines responsive */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* Buttons mobile optimized */
    .btn, .header-btn-primary, .mobile-btn-phone,
    a[style*="inline-flex"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        justify-content: center !important;
        padding: 1rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Property cards mobile */
    .property-card {
        margin: 0 !important;
    }
    
    /* Properties Grid - Single column on mobile */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(380px"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Images responsive */
    img, video {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Service sections mobile */
    .service-section {
        padding: 3rem 1rem !important;
    }
    
    .service-content {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    /* Services Grid - Single column on mobile */
    .services-grid,
    div[style*="grid-template-columns: repeat(auto-fit"],
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: repeat(2, 1fr)"],
    div[style*="grid-template-columns: 40% 60%"],
    div[style*="grid-template-columns: 60% 40%"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 !important;
    }
    
    /* Feature boxes mobile */
    .feature-box, .service-card-modern {
        padding: 2rem 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Text boxes mobile */
    .text-box, [style*="max-width: 600px"], [style*="max-width: 550px"] {
        max-width: 100% !important;
        padding: 1.5rem 1rem !important;
    }
    
    /* Split Screen Sections - Stack vertically on mobile */
    section[style*="grid-template-columns: 1fr 1fr"],
    section[style*="grid-template-columns: 45% 55%"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 45% 55%"] {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
    
    /* Timeline wrapper - FULL WIDTH on mobile */
    div[style*="max-width: 1100px"][style*="position: relative"] {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Timeline items - Simplify on mobile */
    .timeline-item,
    div[style*="grid-template-columns: 1fr 100px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-bottom: 2rem !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    /* Hide timeline center icons on mobile */
    .timeline-item > div:nth-child(2) {
        display: none !important;
    }
    
    /* Timeline content full width - CENTERED */
    .timeline-item > div:first-child,
    .timeline-item > div:last-child {
        text-align: center !important;
        padding: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* Timeline inner boxes - proper mobile padding & centered */
    .timeline-item > div > div {
        padding: 2rem 1.5rem !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }
    
    /* Timeline badges - reposition on mobile */
    .timeline-item div[style*="position: absolute"][style*="width: 35px"] {
        left: 1.5rem !important;
        right: auto !important;
    }
    
    /* Timeline vertical line hide on mobile */
    div[style*="position: absolute"][style*="left: 50%"][style*="width: 2px"] {
        display: none !important;
    }
    
    /* Mobile: Images should have limited height */
    section[style*="grid-template-columns"] > div[style*="height: 100%"] {
        min-height: 50vh !important;
        height: 50vh !important;
    }
    
    /* Mobile: Padding adjustments for cards */
    div[style*="padding: 4rem"] {
        padding: 2rem 1.5rem !important;
    }
    
    div[style*="padding: 4rem 3.5rem"] {
        padding: 2rem 1.5rem !important;
    }
    
    div[style*="padding: 8rem 6rem"] {
        padding: 3rem 1.5rem !important;
    }
    
    /* Section paddings mobile */
    section[style*="padding: 8rem"],
    section[style*="padding: 6rem"] {
        padding: 3rem 1rem !important;
    }
    
    /* CTA Buttons Container mobile */
    div[style*="display: flex; gap:"][style*="flex-wrap: wrap"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Contact info boxes mobile */
    div[style*="display: grid; gap: 2.5rem"] {
        gap: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .section-container {
        padding: 0 0.75rem !important;
    }
    
    .service-card-modern {
        padding: 1.5rem 1rem !important;
    }
    
    /* Hero Banner Extra Small */
    .hero-banner {
        height: 45vh !important;
        min-height: 350px !important;
    }
    
    .hero-text-box {
        padding: 1.5rem 1rem !important;
        margin: 0 0.75rem !important;
        max-width: calc(100% - 1.5rem) !important;
    }
    
    .hero-text-box h1 {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
    
    .hero-text-box p {
        font-size: 0.8rem !important;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
}


/* =================================================================
   13. HOVER EFFECTS & TRANSITIONS
   ================================================================= */

/* Hero Button Hovers */
.hero a:hover {
    background: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: var(--primary-dark) !important;
}

/* CTA Section Hovers */
section[style*="background: var(--primary-dark)"] a:hover {
    background: white !important;
    border-color: white !important;
    color: var(--primary-dark) !important;
}

section[style*="background: var(--primary-dark)"] a:hover i {
    color: var(--primary-dark) !important;
}

/* Quick Links Hovers */
section[style*="background: var(--primary-dark)"] a[href^="mailto"]:hover,
section[style*="background: var(--primary-dark)"] a[href^="https://wa.me"]:hover {
    color: var(--accent-gold) !important;
}

