/* ==========================================================================
   BOZIC SONNENSCHUTZ & INSEKTENSCHUTZ - CUSTOM DESIGN SYSTEM
   ========================================================================== */

/* Local Fonts - GDPR compliant */
@font-face {
    font-family: 'Outfit';
    src: url('../assets/Outfit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Outfit';
    src: url('../assets/Outfit-Regular.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Outfit';
    src: url('../assets/Outfit-Regular.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Outfit';
    src: url('../assets/Outfit-Regular.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Outfit';
    src: url('../assets/Outfit-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* Core Reset */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 15px;
    background-color: #ffffff;
}

/* Containers & Wrappers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header & Navigation */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.header-wrapper.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}
.header-wrapper.scrolled .top-contact-bar {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}
.header-wrapper.scrolled .top-contact-item:hover {
    color: #0f172a;
}
.header-wrapper.scrolled .site-logo .logo-main {
    color: #0f172a;
}
.header-wrapper.scrolled .nav-menu a {
    color: #475569;
}
.header-wrapper.scrolled .nav-menu a:hover {
    color: #e31b23;
}
.header-wrapper.scrolled .mobile-menu-btn {
    color: #0f172a;
}

/* Top Contact Bar Styles */
.top-contact-bar {
    background-color: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    width: 100%;
    transition: all 0.25s ease;
}
.top-contact-content {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    width: 100%;
}
.top-contact-item {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.top-contact-item i {
    color: #e31b23;
    font-size: 15px;
}
.top-contact-item:hover {
    color: #ffffff;
}
.gtranslate_wrapper {
    display: inline-flex;
    align-items: center;
    overflow: visible;
    z-index: 1000;
}
.gtranslate_wrapper img {
    width: 16px !important;
    height: 11px !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
    vertical-align: middle !important;
}
.gtranslate_wrapper .gt_float_switcher {
    font-family: 'Outfit', sans-serif !important;
    font-size: 12px !important;
    line-height: 14px !important;
    padding: 3px 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
    border-radius: 6px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    overflow: visible !important;
    height: auto !important;
}
.gtranslate_wrapper .gt_float_switcher a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}
.gtranslate_wrapper .gt_float_switcher .gt-selected {
    display: inline-flex !important;
    align-items: center !important;
}
.gtranslate_wrapper .gt_float_switcher .gt-selected span {
    color: #ffffff !important;
    font-weight: 500 !important;
}
.gtranslate_wrapper .gt_float_switcher .gt_options {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-10px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
    z-index: 999999 !important;
    top: 100% !important;
    margin-top: 5px !important;
    width: 110px !important;
    max-width: none !important;
}
.gtranslate_wrapper .gt_float_switcher .gt_options.gt-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(5px) !important;
}
.gtranslate_wrapper .gt_float_switcher .gt_options a {
    color: #cbd5e1 !important;
    padding: 6px 10px !important;
    font-family: 'Outfit', sans-serif !important;
}
.gtranslate_wrapper .gt_float_switcher .gt_options a:hover {
    background-color: #e31b23 !important;
    color: #ffffff !important;
}

/* Brand Logo */
.navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 100%;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease;
}
.site-logo:hover {
    transform: scale(1.02);
}
.site-logo img {
    height: 48px;
    width: auto;
    display: block;
}
.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}
.logo-main {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #ffffff;
    transition: color 0.3s ease;
}
.logo-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64748b;
    line-height: 1;
    margin-top: 2px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
}
.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
.nav-menu a:hover {
    color: #e31b23;
}

/* Mobile Menu Toggle button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background: #0f172a url('../assets/hero-bg.jpg') no-repeat center center / cover;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero-video.playing {
    opacity: 1.0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.15);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    padding: 0 20px;
    margin-top: 60px; /* Offset fixed header */
}
.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.header-subtitle {
    font-size: 20px;
    color: #e31b23;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Header bottom divider */
.header-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 4;
}
.header-separator svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80px;
}
.svg-white-bg {
    fill: #ffffff;
}

/* Overlapable Image Cards Section */
.overlap-cards-section {
    position: relative;
    padding: 0 0 40px 0;
    margin-top: -90px;
    z-index: 10;
    background-color: transparent;
}
.overlap-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.overlap-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #edf2f7;
    text-decoration: none;
    color: inherit;
}
.overlap-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    border-color: rgba(227, 27, 35, 0.15);
}
.overlap-card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.overlap-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.overlap-card:hover img {
    transform: scale(1.06);
}
.overlap-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.overlap-card-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}
.overlap-card-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* Offset top spacing of leistungen section when cards overlap it */
#leistungen.info-section {
    padding-top: 10px;
}

/* Call To Action Buttons */
.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #e31b23 0%, #b71017 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(227, 27, 35, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.cta-button:hover {
    box-shadow: 0 6px 20px rgba(227, 27, 35, 0.35);
    transform: translateY(-2px);
    color: #ffffff;
}
.cta-button:active {
    transform: translateY(0);
}

/* Services / Leistungen Section */
.info-section {
    padding: 10px 0;
    background-color: #ffffff;
    border-top: 1px solid #edf2f7;
}
.section-title {
    font-family: 'Outfit', sans-serif;
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.section-title::after {
    content: "";
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #e31b23 0%, #b71017 100%);
    border-radius: 2px;
}
.grid-leistungen {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.info-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.06);
    border-color: rgba(227, 27, 35, 0.15);
}
.card-icon {
    width: 72px;
    height: 72px;
    background: rgba(227, 27, 35, 0.04);
    color: #e31b23;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}
.info-card:hover .card-icon {
    background: linear-gradient(135deg, #e31b23 0%, #b71017 100%);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(227, 27, 35, 0.2);
}
.info-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}
.info-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* 4th Card Span Rule */
.grid-leistungen .info-card:last-child {
    grid-column: span 3;
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 40px;
    gap: 30px;
}
.grid-leistungen .info-card:last-child .card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}
.grid-leistungen .info-card:last-child .card-content {
    text-align: left;
}

/* Gallery Section & Grid */
.custom-homepage-gallery-section {
    padding: 60px 0;
    background-color: #fafbfc;
    border-top: 1px solid #edf2f7;
}
.gallery-layout-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}
.gallery-main-column {
    flex: 1;
    min-width: 0;
}
.pfg-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
    padding: 0;
    list-style: none;
}
.pfg-filter {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.pfg-filter:hover:not(.pfg-filter--active) {
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.pfg-filter.pfg-filter--active {
    background: linear-gradient(135deg, #e31b23 0%, #b71017 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(227, 27, 35, 0.3);
    transform: translateY(-2px);
}
.pfg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}
.pfg-item {
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    aspect-ratio: 16 / 10;
}
.pfg-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}
.pfg-item-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.pfg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.pfg-item:hover img {
    transform: scale(1.06);
}

/* Play Icon Overlay for Videos */
.pfg-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(227, 27, 35, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(227, 27, 35, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}
.pfg-video-play svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 3px;
}
.pfg-item:hover .pfg-video-play {
    background: linear-gradient(135deg, #e31b23 0%, #b71017 100%);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(227, 27, 35, 0.5);
}

/* Collapse/Expand toggle button for Mobile */
.gallery-toggle-btn-wrapper {
    display: none;
    text-align: center;
    margin-top: 40px;
}
.gallery-toggle-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #e31b23 0%, #b71017 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(227, 27, 35, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}
.gallery-toggle-btn:hover {
    box-shadow: 0 6px 20px rgba(227, 27, 35, 0.35);
    transform: translateY(-2px);
    color: #ffffff;
}
.gallery-toggle-btn:active {
    transform: translateY(0);
}

/* Gallery Sidebar Column */
.gallery-sidebar-column {
    width: 250px;
    flex-shrink: 0;
    background-color: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-top: 4px solid #e31b23;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 8px;
}
.partner-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.partner-link-item {
    display: flex;
    align-items: center;
}
.partner-link-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.partner-link-item a i {
    color: #e31b23;
    font-size: 14px;
    transition: transform 0.2s ease;
}
.partner-link-item a:hover {
    color: #e31b23;
    transform: translateX(4px);
}
.partner-link-item a:hover i {
    transform: scale(1.2);
}

/* Contact Form Section */
.contact-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-top: 1px solid #edf2f7;
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.contact-info h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}
.contact-info p {
    font-size: 16px;
    color: #475569;
    margin-bottom: 35px;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: color 0.2s ease;
}
.contact-detail-item i {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(227, 27, 35, 0.05);
    color: #e31b23;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}
.contact-detail-item:hover i {
    background: linear-gradient(135deg, #e31b23 0%, #b71017 100%);
    color: #ffffff;
    transform: scale(1.1);
}
.contact-detail-item:hover {
    color: #e31b23;
}

/* Map frame inside contact info */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    margin-top: 30px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Form design */
.contact-form-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(237, 242, 247, 0.8);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: #334155;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: #e31b23;
    box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.1);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
.form-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e31b23 0%, #b71017 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(227, 27, 35, 0.2);
    transition: all 0.25s ease;
}
.form-submit-btn:hover {
    box-shadow: 0 6px 18px rgba(227, 27, 35, 0.3);
    transform: translateY(-1px);
}
.form-submit-btn:active {
    transform: translateY(0);
}

/* Footer Section */
.footer {
    background-color: #ffffff;
    color: #475569;
    padding: 40px 0;
    border-top: 1px solid #edf2f7;
}
.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    gap: 30px;
}
.footer-column {
    flex: 0 1 auto;
    width: auto;
}
.footer-address {
    margin-right: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.footer-address h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}
.footer-address p {
    color: #64748b;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
.footer-address a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}
.footer-address a:hover {
    color: #e31b23;
}

/* Info Icon Box column inside footer */
.footer-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 10px;
}
.footer-icon-box i {
    color: #e31b23;
    font-size: 24px;
    background: rgba(227, 27, 35, 0.05);
    width: 55px;
    height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}
.footer-icon-box:hover i {
    background: linear-gradient(135deg, #e31b23 0%, #b71017 100%);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(227, 27, 35, 0.15);
}
.footer-icon-box a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}
.footer-icon-box a:hover {
    color: #e31b23;
}

/* Sub-Footer bottom bar */
.footer-bottom-bar {
    margin-top: 35px;
    border-top: 1px solid #edf2f7;
    padding-top: 20px;
    font-size: 13px;
    color: #64748b;
    width: 100%;
}
.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}
.footer-bottom-flex p {
    margin: 0;
}
.footer-legal-links {
    display: flex;
    gap: 15px;
    align-items: center;
}
.footer-legal-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.footer-legal-links a:hover {
    color: #e31b23;
}
.footer-legal-divider {
    color: #cbd5e1;
}

/* Subpages Specific (Impressum, Datenschutz, AGB) */
.subpage-hero {
    padding: 160px 0 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    text-align: center;
}
.subpage-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    margin: 0;
}
.subpage-content-section {
    padding: 80px 0;
    background-color: #ffffff;
}
.subpage-content-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.subpage-content-card h2,
.subpage-content-card h3 {
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
    margin-top: 30px;
    margin-bottom: 15px;
}
.subpage-content-card h2 {
    font-size: 24px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 10px;
}
.subpage-content-card h3 {
    font-size: 20px;
}
.subpage-content-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
}
.subpage-content-card ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #475569;
}
.subpage-content-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Language Dropdown Override for static element */
.language-selector {
    position: relative;
    display: inline-block;
}
.language-selected {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}
.language-selected:hover {
    border-color: #94a3b8;
}
.language-selected img {
    width: 16px;
    height: 11px;
    border-radius: 1px;
}
.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: none;
    flex-direction: column;
    min-width: 100px;
    z-index: 100;
}
.language-options.open {
    display: flex;
}
.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
.language-option:hover {
    background-color: #f1f5f9;
}
.language-option img {
    width: 16px;
    height: 11px;
    border-radius: 1px;
}

/* Responsive Styles */
@media (max-width: 1023px) {
    .container {
        padding: 0 24px;
    }
    
    /* Top Contact Bar */
    .top-contact-content {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .top-contact-bar {
        padding: 8px 0;
        font-size: 13px;
    }
    
    /* Mobile Header Layout */
    .navigation-bar {
        padding: 10px 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-menu {
        display: none; /* Controlled by JavaScript */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0f172a;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #1e293b;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu a {
        display: block;
        padding: 15px 24px;
        border-bottom: 1px solid #1e293b;
        color: #ffffff;
    }
    .nav-menu a:hover {
        background-color: #1e293b;
        color: #e31b23;
    }
    
    /* Overlap Cards Tablet Override */
    .overlap-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .overlap-cards-section {
        margin-top: -50px;
        padding: 0 0 20px 0;
    }
    #leistungen.info-section {
        padding-top: 10px;
    }
    
    /* Services list responsive styling */
    .grid-leistungen {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-leistungen .info-card:last-child {
        grid-column: span 2;
    }
    
    /* Gallery Split layout responsive */
    .gallery-layout-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .gallery-sidebar-column {
        width: 100%;
        margin-top: 15px;
    }
    
    /* Footer responsive styling */
    .footer-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    .footer-address {
        margin-right: 0;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    /* Hero Title sizes */
    .hero-content h1 {
        font-size: 36px;
    }
    .header-subtitle {
        font-size: 16px;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    .hero-content p {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    /* Service List to 1 column */
    .grid-leistungen {
        grid-template-columns: 1fr;
    }
    .grid-leistungen .info-card:last-child {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 40px 25px;
        gap: 0;
    }
    .grid-leistungen .info-card:last-child .card-icon {
        margin-bottom: 25px;
    }
    .grid-leistungen .info-card:last-child .card-content {
        text-align: center;
    }
    
    /* Contact grid to 1 column */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    /* Subpage paddings */
    .subpage-content-card {
        padding: 25px;
    }
    .subpage-hero {
        padding: 120px 0 50px 0;
    }
    .subpage-hero h1 {
        font-size: 30px;
    }
    
    /* Gallery mobile collapsibility rules */
    .custom-homepage-gallery-section.is-collapsed .mobile-collapsed-hidden {
        display: none !important;
    }
    .gallery-toggle-btn-wrapper {
        display: block;
    }
}

/* Scroll-triggered micro-animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delayed reveal for children grids (staggered effect) */
.grid-leistungen .info-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-grid.active .info-card {
    opacity: 1;
    transform: translateY(0);
}
/* Staggered card delays */
.reveal-grid.active .info-card:nth-child(1) { transition-delay: 0.1s; }
.reveal-grid.active .info-card:nth-child(2) { transition-delay: 0.2s; }
.reveal-grid.active .info-card:nth-child(3) { transition-delay: 0.3s; }
.reveal-grid.active .info-card:nth-child(4) { transition-delay: 0.4s; }

/* Smoother cubic hover zoom for gallery items */
.pfg-item img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Scroll reveal for top overlap cards */
.overlap-cards-grid .overlap-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-grid.active .overlap-card {
    opacity: 1;
    transform: translateY(0);
}
.reveal-grid.active .overlap-card:hover {
    transform: translateY(-8px);
}
.reveal-grid.active .overlap-card:nth-child(1) { transition-delay: 0.1s; }
.reveal-grid.active .overlap-card:nth-child(2) { transition-delay: 0.2s; }
.reveal-grid.active .overlap-card:nth-child(3) { transition-delay: 0.3s; }

/* Homepage Gallery Teaser Section */
.gallery-teaser-section {
    background-color: #f8fafc;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}
.gallery-teaser-section .section-subtitle {
    font-size: 16px;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 50px auto;
}
.gallery-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}
.teaser-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
    display: block;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #edf2f7;
    text-decoration: none;
}
.teaser-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.teaser-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 50%, rgba(15, 23, 42, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 28px;
    box-sizing: border-box;
    color: #ffffff;
    text-align: left;
    transition: background 0.4s ease;
}
.teaser-card-label {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.teaser-card-action {
    font-size: 14px;
    font-weight: 600;
    color: #e31b23;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.teaser-card-action i {
    transition: transform 0.3s ease;
}
.teaser-card:hover .teaser-card-image {
    transform: scale(1.06);
}
.teaser-card:hover .teaser-card-action {
    color: #ffffff;
}
.teaser-card:hover .teaser-card-action i {
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .gallery-teaser-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 0 auto 30px auto;
    }
}

/* Contact subpage layout titles alignment */
.contact-info-title {
    text-align: left;
    align-items: flex-start;
    margin-bottom: 30px;
}

/* Stacked rows grid for Details and Centered Form */
.contact-info-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}
.contact-form-row {
    max-width: 850px;
    margin: 0 auto;
}
.contact-form-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group-full {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .contact-info-title {
        text-align: center;
        align-items: center;
    }
    .contact-info-row-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .contact-form-inner {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .form-group-full {
        grid-column: span 1;
    }
}