:root {
    --primary: #006699;
    --primary-dark: #004d73;
    --primary-light: #e6f2ff;
    --accent: #006699;
    --light: #ffffff;
    --dark: #000000;
    --gray: #f8f8f8;
    --light-gray: #f0f0f0;
    --text: #333333;         
    --text-light: #666666;   
    --button-text: #ffffff;  
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 3.5rem;
    --border-radius: 0;      
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    --brand-blue: #006699;
    --brand-blue-dark: #004d73;
    --text-gray: #374151;
    --bg-muted: #f3f4f6;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 160px;
    margin: 0;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem !important;   
    max-width: 75ch;
    line-height: 1.7;                    
    font-weight: 400;                    
}

a:hover {
	text-decoration: none!important;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 0 auto 1.5rem auto;
    max-width: 800px;
    line-height: 1.6;
    text-align: center;
    font-weight: 500;                   
}

.overline {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

.section {
    padding: 6rem 0;
    margin: 0;
}

.section + .section {
    margin-top: 2rem;
}

.section--light {
    background-color: var(--light);
}

.section--gray {
    background-color: var(--gray);
}

.section--dark {
    background-color: var(--dark);
    color: var(--light);
}

.section--dark h2 {
    color: var(--light);
}

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

header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px 0 20px;
    height: 160px;
}

.header__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
}

.logo {
    height: 80px;
    width: auto;
    display: block;
    margin-bottom: 5px;
}

.site-header,
.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.site-branding img,
.logo {
    height: 80px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2.4rem;
    align-items: center;
    height: auto;
    padding-top: 0;
    margin-bottom: 10px;
}

.nav__item {
    text-decoration: none;
    color: var(--text);
    font-size: 0.75rem;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
    padding: 0;
    letter-spacing: 0.8px;
}

.nav__item:hover {
    color: var(--primary);
}

.nav__item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav__item:hover::after {
    width: 100%;
}

.nav__item.active {
    color: var(--primary);
}

.nav__item.active::after {
    width: 100%;
}

.main-navigation ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 15px 0;
}

.main-navigation ul li {
    margin: 0;
    padding: 0;
}

.main-navigation ul li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;  
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
    padding: 10px 0;
}

.main-navigation ul li a:hover {
    color: var(--primary);
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.main-navigation ul li a:hover::after {
    width: 100%;
}

.main-navigation ul li.current-menu-item a {
    color: var(--primary);
}

.main-navigation ul li.current-menu-item a::after {
    width: 100%;
}

.language-toggle {
    display: flex;
    gap: 3rem;
    margin-left: 4rem;
    align-items: center;
    padding-top: 0;
    margin-bottom: 10px;
}

.language-btn {
    padding: 0;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;  
    color: var(--text-light);
    transition: var(--transition);
    opacity: 0.7;
}

.language-btn:hover {
    opacity: 0.9;
}

.language-btn.active {
    opacity: 1;
    color: var(--primary);
    font-weight: 700;  
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    display: inline-block;
    padding: 0.875rem 1.75rem;  
    font-weight: 700;  
    text-decoration: none;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--button-shadow);
}

.btn--primary,
.button.primary,
input[type="submit"],
#jetzt-anfragen,
.jetzt-anfragen {
    background-color: var(--primary);
    color: var(--light); 
    padding: 0.875rem 1.75rem;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: var(--button-shadow);
    border: none;
}

.btn--primary:hover,
.button.primary:hover,
input[type="submit"]:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn--secondary,
.button.secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 700;
}

.btn--secondary:hover,
.button.secondary:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Modified Hero Section */
.hero {
    position: relative;
    padding-bottom: 4rem;
    overflow: hidden; 
}

.hero-container {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding-left: 4rem; /* Add left padding to maintain container alignment */
    padding-right: 0; /* Remove right padding to allow full width */
}

/* Hero copy section */
.hero-copy {
    width: 50%; /* Set fixed width */
    max-width: 640px;
    padding: 4rem;
    margin-right: 0;
    position: relative;
    z-index: 10;
}

.hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-blue);
    font-weight: 700;  
    margin-bottom: 1rem;
}

.hero-heading {
    font-size: 2.4rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-heading .accent {
    color: var(--brand-blue);
}

.hero-text {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-weight: 500;  
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-blue);
    color: #fff;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid var(--brand-blue);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.info-block {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    gap: 0.5rem;
    font-weight: 500;  
    background-color: var(--bg-muted);
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    max-width: fit-content;
}

.info-block svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--brand-blue);
    flex-shrink: 0;
}

.phone-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.phone-item {
    background: var(--bg-muted);
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;  
    font-weight: 600;
    color: var(--text-gray);
    text-decoration: none;
    transition: background .2s ease;
}

.phone-item svg {
    width: 1rem;
    height: 1rem;
    fill: var(--brand-blue);
    margin-right: 0.15rem;
}

.phone-item:hover, .phone-item:focus {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* Hero image wrapper - full width extending to right edge */
.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw; /* 50% of viewport width */
    height: 100%;
    z-index: 1;
}


.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rating badge adjustments */
.rating-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(4px);
    z-index: 5;
}

/* MODIFIED: Rating badge position adjusted for right-side image */
.rating-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255,255,255,.95);  
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;  
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;  
    color: #111;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rating-badge .star {
    width: 1rem;
    height: 1rem;
    fill: #fbbf24;
}

.map-icon {
    width: 1.2rem;
    height: 1.2rem;
    fill: white;
    stroke: white;
}

.features,
#features,
#was-uns-auszeichnet {
    text-align: center;
    padding-top: 4rem;  
    padding-bottom: 4rem; 
    margin-top: 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 0.75rem; 
    font-size: 2.25rem;  
}

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

.feature-card {
    padding: 2.5rem;
    background-color: var(--light);
    text-align: left;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    border-top: 4px solid var(--primary);  
}

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

.feature-card__icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;  
}

.feature-card h3 {
    margin-bottom: 1rem;  
    color: var(--primary);  
}

.features .subtitle {
    margin-bottom: 1.5rem;  
    font-size: 1.2rem;  
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-grid {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    flex: 2;
    min-width: 300px;
    max-width: 600px;
}

.about-image {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about-content {
    flex: 2;
    padding: 0 1rem;
}

.section-heading-mobile {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
}

.section-heading-mobile h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.desktop-only {
    display: block;
}

.gallery {
    padding-bottom: 4rem; 
    padding-top: 4rem; 
}

.gallery__heading {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 2.25rem; 
}

.gallery-container {
    margin-top: 3rem; 
}

.gallery-intro {
    margin-bottom: 3.5rem;
    margin-top: 1.5rem;
}

.gallery-highlight {
    background-color: var(--primary);
    padding: 2.5rem;
    border-left: none;
    border-radius: 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    position: relative;
    color: white;
    overflow: hidden;
    text-align: center;
}

.gallery-highlight:before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(0,102,153,0.9), rgba(0,102,153,0.4)), url('https://premium-monteur-unterkunft.de/wp-content/uploads/2025/04/hamburg-map.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.gallery-highlight h3 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    padding-left: 0;
    font-weight: 700;
    position: relative;
    display: inline-block;
    letter-spacing: 0.02em;
}

.gallery-highlight p {
    margin-bottom: 0 !important;
    max-width: 800px;
    font-weight: 400;
    line-height: 1.7;
    color: white;
    padding-left: 0;
    font-size: 1.05rem;
    margin-left: auto;
    margin-right: auto;
}

.highlight-icon {
    position: static;
    display: block;
    margin: 0 auto 1rem auto;
    color: white;
    font-size: 2rem;
}

.gallery-tabs {
    background-color: #fff;
    border-radius: 0; 
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 2.5rem; 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1.4rem; 
    border-radius: 0; 
    font-weight: 600; 
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-btn.active {
    background: var(--primary);
    color: white; 
    box-shadow: 0 2px 6px rgba(0,102,153,0.3);
}

.tab-btn:hover:not(.active) {
    background: #f5f5f5;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 0; 
    position: relative;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

.video-item {
    position: relative;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s ease;
}

.video-play i {
    color: white;
    font-size: 1.8rem;
}

.video-item:hover .video-play {
    background: rgba(0,86,163,0.9); 
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8); 
    color: white;
    padding: 0.75rem;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-weight: 600; 
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95); 
    padding: 2rem;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1010;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1010;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

#lightbox-img {
    display: block;
}

#lightbox-video {
    display: none;
}

.cta-banner {
    margin-top: 3rem;
    background: linear-gradient(135deg, #006699, #004466); 
    color: white; 
    padding: 2.5rem 2rem;
    border-radius: 0; 
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-banner h3 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
}

.cta-banner p {
    margin-bottom: 1.8rem !important;
    opacity: 0.95; 
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    line-height: 1.6;
    color: white; 
}

.cta-banner .btn--primary {
    background-color: white;
    color: #006699; 
    border: none;
    padding: 0.875rem 2.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0; 
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-banner .btn--primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.cta-banner--alt {
    background: linear-gradient(135deg, #005588, #003355); 
}

.location-section {
    margin-top: 4rem;
}

.location-grid {
    align-items: flex-start;
}

.location-form-wrapper {
    grid-column: 1 / 2;
    min-height: 450px; 
    background: #f8f8f8;
    padding: 1.5rem;
}

.location-form-wrapper h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.location-form-placeholder {
    display: flex;
    height: 100%;
    min-height: 350px;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
    text-align: center;
}

.location-map-wrapper {
    grid-column: 2 / 3;
}

.location-content {
    grid-column: 3 / 4;
    padding: 0;
}

.location-map-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .location-form-wrapper, 
    .location-map-wrapper,
    .location-content {
        grid-column: 1 / 2;
        width: 100%;
    }

    .location-map-wrapper {
        order: 1;
    }

    .location-form-wrapper {
        order: 2;
    }

    .location-content {
        order: 3;
    }

    .location-map-image {
        height: 350px;
    }
}

.press {
    color: var(--light);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.press__heading {
    margin-bottom: 1.8rem;
	color: white;
}

.press__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.press-card {
    background-color: var(--primary);
    padding: 1.8rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 0; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	color: white;
}

.press-card__source {
    text-align: center;
    font-weight: 700; 
    font-size: 1.3rem; 
    margin-bottom: 1.5rem; 
    flex-grow: 0;
}

.press-card__source a {
    color: var(--light);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.press-card__quote {
    text-align: center;
    font-size: 1.2rem; 
    margin-bottom: 1.5rem; 
    flex-grow: 1;
    line-height: 1.6;
    font-style: italic;
}

.press-card__date {
    text-align: center;
    font-size: 0.9rem; 
    color: rgba(255, 255, 255, 0.9); 
    flex-grow: 0;
    font-weight: 500; 
}

.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 4rem 0 1.5rem; 
}

.footer p {
	color: white!important;
}

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

.footer__column:nth-child(1) {
    grid-column: 1 / 5;
}

.footer__column:nth-child(2) {
    grid-column: 5 / 9;
}

.footer__column:nth-child(3) {
    grid-column: 9 / 13;
}

.footer__title {
    font-size: 1.25rem; 
    margin-bottom: 1.5rem; 
    color: var(--light);
    position: relative;
    padding-bottom: 0.75rem;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 0.75rem; 
}

.footer__link {
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500; 
	 color: var(--light);
}


.footer__link:hover {
    color: var(--light);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 3rem; 
    font-size: 0.875rem;
    opacity: 0.8; 
}

[data-lang] {
    display: none;
}

[data-lang="de"] {
    display: inline;
}

[data-lang].active {
    display: inline;
}

h1[data-lang], h2[data-lang], h3[data-lang], p[data-lang], div[data-lang] {
    display: none;
}

h1[data-lang].active, h2[data-lang].active, h3[data-lang].active, p[data-lang].active, div[data-lang].active {
    display: block;
}

.language-btn {
    display: inline-block !important;
}

.nav__item span {
    display: none;
}

.nav__item span.active {
    display: inline !important;
}

.nav [data-lang].active {
    display: inline !important;
}

.section+.section {
    padding-top: 2rem;
}

.hero [data-lang] { 
    display: none;
}

.features [data-lang], 
.about [data-lang], 
.gallery [data-lang] {
    display: none;
}

.hero [data-lang].active, 
.features [data-lang].active, 
.about [data-lang].active, 
.gallery [data-lang].active { 
    display: block !important; 
}

.nav [data-lang] { 
    display: none; 
}

.nav [data-lang].active { 
    display: inline !important; 
}

/* MODIFIED: Media query for hero responsive design */
@media (max-width: 1024px) {
    .container {
        padding: 0 3rem;
    }

    /* MODIFIED: Hero container responsive behavior */
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    /* MODIFIED: Hero copy responsive positioning */
    .hero-copy {
        grid-row: 2;
        padding: 2rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* MODIFIED: Hero image wrapper responsive positioning */
    .hero-image-wrapper {
        position: relative;
        width: 100%;
        height: 400px;
        grid-row: 1;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero-heading {
        font-size: 2.25rem;
    }
}

@media (max-width: 992px) {
    .hero__content {
        grid-column: 1 / 8;
    }

    .hero__image {
        grid-column: 8 / 13;
    }

    .about__image {
        grid-column: 1 / 5;
    }

    .about__content {
        grid-column: 5 / 13;
    }

    .location__map {
        grid-column: 1 / 7;
    }

    .location__content {
        grid-column: 7 / 13;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .grid {
        gap: 3rem;
    }

    .about__content,
    .location__content {
        padding: 0 2rem;
    }

    .location__map {
        height: 400px;
    }

    .about-grid, .location-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image-wrapper, .location-map-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .about-content, .location-content {
        width: 100%;
        padding: 0;
    }

    .location-map-image {
        height: 350px;
    }

    .section-heading-mobile {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .header__inner,
    .container {
        padding: 0 3rem;
    }

    .cta-banner {
        padding: 2.5rem 1.75rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    h2 {
        font-size: 1.75rem; 
        margin-bottom: 0.75rem;
    }

    p {
        margin-bottom: 1rem !important;
    }

    header {
        height: auto;
        padding: 15px 0;
    }

    .header__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0;
        height: 70px;
        padding: 0 2rem;
    }

    body {
        padding-top: 100px;
    }

    .nav {
        flex-direction: column;
        width: 100%;
        display: none;
        margin-top: 0.75rem;
    }

    .nav.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        z-index: 100;
    }

    .nav__item {
        padding: 0.5rem 0;
    }

    .language-toggle {
        margin-top: 0.75rem;
        display: none;
        margin-left: 0;
        padding: 1rem 0;
    }

    .language-toggle.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 1.5rem;
        top: 25px;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__content,
    .hero__image,
    .about__image,
    .about__content,
    .location__map,
    .location__content,
    .footer__column:nth-child(1),
    .footer__column:nth-child(2),
    .footer__column:nth-child(3) {
        grid-column: 1 / 13;
        margin-bottom: 1.5rem;
    }

    .hero {
        padding-top: 180px !important;
        margin-top: -100px !important;
    }

    .hero__content,
    .hero__image {
        grid-column: 1 / 13;
    }

    .hero__image {
        height: 250px;
        margin-top: 1rem;
    }

    .about__image,
    .about__content,
    .location__map,
    .location__content {
        grid-column: 1 / 13;
    }

    .about__content,
    .location__content {
        padding-left: 0;
        margin-top: 1rem;
    }

    .gallery__grid {
        grid-template-rows: repeat(4, 200px);
    }

    .gallery__item:nth-child(1),
    .gallery__item:nth-child(2),
    .gallery__item:nth-child(3),
    .gallery__item:nth-child(4) {
        grid-column: 1 / 13;
        grid-row: auto;
    }

    .feature-card,
    .testimonial-card {
        padding: 1.5rem; 
    }

    .site-header,
    .header__inner {
        padding: 15px 0;
    }

    .logo {
        height: 70px;
        padding: 5px 0;
    }

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

    .gallery-item {
        height: 200px;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .cta-banner {
        padding: 2rem 1.5rem;
    }

    .cta-banner h3 {
        font-size: 1.6rem;
    }

    .cta-banner p {
        font-size: 1rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .footer__grid {
        display: block;
    }

    .footer__column {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .press-card {
        padding: 1.5rem;
    }

    .feature-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .logo {
        height: 60px;
    }

    .hero {
        padding-top: 180px !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 220px;
    }

    .gallery-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.5rem;
        flex-wrap: nowrap;
    }

    .tab-btn {
        white-space: nowrap;
    }

    .cta-banner h3 {
        font-size: 1.4rem;
    }
}

   /* Contact Section Styles */
.contact-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.contact-heading {
  margin-bottom: 50px;
}

.contact-heading h2 {
  margin-bottom: 15px;
  font-size: 36px;
  color: #333;
}

.contact-heading .subtitle {
  font-size: 18px;
  color: #666;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  flex: 2;
  min-width: 300px;
}

.contact-item {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-item i {
  font-size: 20px;
  color: #006699;
  margin-right: 15px;
  margin-top: 3px;
}

.contact-item div {
  flex: 1;
}

.contact-item strong {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.contact-item p {
  margin: 0;
  color: #666;
}

.contact-item a {
  color: #006699;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #004c99;
}

/* Contact Form 7 Styling */
.wpcf7 {
  max-width: 100%;
}

.wpcf7 form {
  margin: 0;
}

.wpcf7 label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  background-color: #fff;
  transition: border-color 0.3s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  border-color: #0066cc;
  outline: none;
}

.wpcf7 textarea {
  height: 150px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  background-color: #006699;
  color: white;
  padding: 12px 30px;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #004c99;
}

.wpcf7 .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 10px;
}

.wpcf7 .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-acceptance-missing {
  border: 2px solid #ffc107;
  background-color: rgba(255, 193, 7, 0.1);
}

.wpcf7 .wpcf7-mail-sent-ok {
  border: 2px solid #28a745;
  background-color: rgba(40, 167, 69, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }
  
  .contact-section {
    padding: 50px 0;
  }
  
  .contact-heading h2 {
    font-size: 28px;
  }
  
  .contact-heading .subtitle {
    font-size: 16px;
  }
}

	   .location-grid {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.location-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.location-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.location-content {
    flex: 2;
}

@media (max-width: 992px) {
    .location-grid {
        flex-direction: column;
    }

    .location-image-wrapper {
        width: 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
}


.legal-content {
  display: none;
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.legal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.legal-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  margin: 5vh auto;
  background-color: white;
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  overflow-y: auto;
}

.legal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
}

.legal-section {
  display: none;
}

.legal-section h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.legal-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

/* COMPLETE MOBILE OPTIMIZATION CSS */
@media (max-width: 767px) {
    /* ----- HERO SECTION OPTIMIZATION ----- */
    
    /* Remove background image ONLY on mobile and reduce height */
    .hero {
        background-image: none !important;
        background-position: initial !important;
        background-size: initial !important;
        background-repeat: initial !important;
        padding-top: 100px !important;
        padding-bottom: 1rem !important;
        margin-top: -100px !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Force hero container structure */
    .hero-container {
        display: block !important;
        padding: 0 1rem !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Force image to top position with reduced height */
    .hero-image-wrapper {
        position: relative !important;
        width: 100% !important;
        height: 200px !important;
        min-height: auto !important;
        right: auto !important;
        top: auto !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Force copy section to full width with reduced padding */
    .hero-copy {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.5rem 0 !important;
        margin: 0 !important;
        text-align: center !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Force text sizes with reduced margins */
    .hero-eyebrow {
        font-size: 0.7rem !important;
        text-align: center !important;
        margin-bottom: 0.3rem !important;
    }
    
    .hero-heading {
        font-size: 1.6rem !important;
        text-align: center !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-heading .accent {
        display: inline !important;
    }
    
    .hero-text {
        font-size: 0.95rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    /* Force center all elements */
    .info-block {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Force button to be centered and full width */
    .btn-primary {
        display: block !important;
        width: 100% !important;
        max-width: 250px !important;
        margin: 0 auto 0.75rem auto !important;
        padding: 0.65rem 1rem !important;
        font-size: 0.85rem !important;
        text-align: center !important;
    }
    
    /* Force phone list to stack */
    .phone-list {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.4rem !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .phone-item {
        width: 100% !important;
        max-width: 250px !important;
        justify-content: center !important;
        font-size: 0.9rem !important;
        padding: 0.4rem 0.85rem !important;
    }
    
    /* Force rating badge position */
    .rating-badge {
        top: 0.5rem !important;
        right: 0.5rem !important;
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .rating-badge .star {
        width: 0.8rem !important;
        height: 0.8rem !important;
    }
    
    /* ----- FIX FOR EXCESSIVE EMPTY SPACE ----- */
    
    /* Remove potentially excessive margins between sections */
    section + section {
        margin-top: 1rem !important;
    }
    
    /* Specifically target and fix the space between contact info and "Was uns auszeichnet" */
    #hero + section,
    .hero + section,
    .hero + div,
    .hero ~ section:first-of-type,
    #features,
    #was-uns-auszeichnet {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }
    
    /* Fix all sections to collapse properly */
    .section {
        padding: 2rem 0 !important;
        margin: 0 !important;
        min-height: auto !important;
    }
    
    /* Force all containers to collapse */
    .container, 
    div[class*="container"],
    section, 
    div[class*="section"],
    div[class*="wrapper"] {
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Fix any broken margin chain */
    body > section, 
    body > div > section {
        margin-top: 0 !important;
    }
    
    /* Reset any fixed dimensions on content wrappers */
    .hero-content,
    .features__grid,
    .about-grid,
    .gallery-grid,
    .location-grid {
        min-height: auto !important;
        height: auto !important;
    }
    
    /* ----- OTHER MOBILE OPTIMIZATIONS ----- */
    
    /* Optimize header for mobile */
    header {
        height: auto !important;
        padding: 15px 0 !important;
    }
    
    .header__inner {
        height: auto !important;
    }
    
    /* Optimize feature cards for mobile */
    .feature-card {
        padding: 1.5rem !important;
    }
    
    /* Optimize gallery items for mobile */
    .gallery-item {
        height: 200px !important;
    }
    
    /* Optimize contact section for mobile */
    .contact-grid {
        flex-direction: column !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero {
        padding-top: 80px !important;
    }
    
    .hero-image-wrapper {
        height: 150px !important;
    }
    
    .hero-heading {
        font-size: 1.3rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .hero-text {
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .btn-primary {
        max-width: 220px !important;
        padding: 0.6rem 0.85rem !important;
        font-size: 0.8rem !important;
    }
    
    .phone-item {
        font-size: 0.85rem !important;
        padding: 0.35rem 0.7rem !important;
    }
    
    /* Additional optimizations for extra small devices */
    .gallery-item {
        height: 160px !important;
    }
    
    .feature-card {
        padding: 1.25rem !important;
    }
}

/* Mobile-Optimized Masonry Gallery */
.masonry-gallery-container {
    width: 100%;
    padding: 10px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px;
    grid-auto-rows: minmax(200px, auto);
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    min-height: 200px;
    max-height: 300px;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.masonry-item img, 
.masonry-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-item {
    position: relative;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.video-item:hover .video-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 1024px) {
    .masonry-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .masonry-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }
    
    .masonry-item {
        min-height: 180px;
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .masonry-gallery {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }
    
    .masonry-item {
        min-height: 250px;
        max-height: 300px;
    }
    
    .video-play {
        font-size: 2.5rem;
    }
}

/* Lightbox Improvements */
.lightbox {
    z-index: 9999;
}

.lightbox-content {
    max-height: 90vh;
    max-width: 90vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
    max-height: 85vh;
    max-width: 85vw;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-prev, 
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .lightbox-prev, 
    .lightbox-next,
    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}