/*
Theme Name: TransportConnected Theme
Theme URI: https://example.com/transportconnected
Author: Dein Name
Author URI: https://example.com
Description: Ein professionelles und anpassbares WordPress-Theme für die Digitalisierung im Transportwesen. Vollständig konfigurierbare Startseite mit modularen Sektionen, erweiterten Customizer-Einstellungen, verschiedenen Blog-Layouts und einem zufälligen Seiten-Widget.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: bootstrap, responsive, transport, modern, customizer, modular, flexible
Text Domain: transportconnected
*/

/* =====================================================
   CSS Variables
===================================================== */
:root {
    --primary-blue: #16518F;
    --secondary-blue: #2c71d2;
}

/* =====================================================
   Grundlegende Stile
===================================================== */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

a {
    color: var(--secondary-blue, #2c71d2);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =====================================================
   Anzeigen-Markierung
===================================================== */
.ad-notice {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    padding: 0.5rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.ad-notice span {
    display: inline-block;
    padding: 0 1rem;
}

.ad-notice-small {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    padding: 0.25rem 0;
}

.ad-notice-small span {
    display: inline-block;
    padding: 0 0.5rem;
    background-color: #f5f5f5;
    border-radius: 3px;
}

/* =====================================================
   Autorenprofil
===================================================== */
.author-profile {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--bs-primary);
}

.author-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-name a {
    color: #333;
}

.author-name a:hover {
    color: var(--bs-primary);
    text-decoration: none;
}

.author-bio {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =====================================================
   Post Meta Bottom
===================================================== */
.entry-meta-bottom {
    background-color: #fafafa;
    padding: 1rem 0;
    margin-top: 3rem;
}

.meta-item {
    font-size: 0.875rem;
}

.meta-item i {
    color: var(--bs-primary);
}

.entry-meta-bottom .categories a {
    color: #666;
    text-decoration: none;
}

.entry-meta-bottom .categories a:hover {
    color: var(--bs-primary);
}

.entry-tags {
    font-size: 0.875rem;
}

.entry-tags a {
    color: #666;
    text-decoration: none;
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    margin: 0.25rem 0.25rem 0.25rem 0;
}

.entry-tags a:hover {
    background-color: var(--bs-primary);
    color: white;
}

/* Post Title */
.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
}

/* Post Meta Top */
.post-meta-top {
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.post-meta-top i {
    color: var(--bs-primary);
}

.author-name-top {
    font-weight: 500;
}

.reading-time {
    font-style: italic;
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .author-profile {
        padding: 1rem;
    }
    
    .author-avatar img {
        width: 60px;
        height: 60px;
    }
}

/* =====================================================
   Archiv-Seiten & Suche
===================================================== */
.hero-archive {
    background: linear-gradient(120deg, rgba(26, 75, 140, 0.9), rgba(44, 113, 210, 0.9)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-archive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.hero-meta {
    margin-top: 1rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archive-widget {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.archive-widget .widget-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}

.archive-widget .form-control {
    border-radius: 0.5rem 0 0 0.5rem;
    border-right: none;
}

.archive-widget .btn-primary {
    border-radius: 0 0.5rem 0.5rem 0;
}

.quick-categories .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-categories .badge:hover {
    background-color: var(--bs-primary) !important;
    color: white !important;
    transform: translateY(-1px);
}

.archive-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.archive-filters .section-title {
    color: #333;
    font-weight: 600;
}

.posts-grid {
    margin-top: 2rem;
}

.post-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--secondary-blue, #2c71d2));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.ad-notice-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-style: italic;
}

.post-content-preview .post-meta {
    font-size: 0.875rem;
}

.post-content-preview .post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content-preview .post-title a {
    color: #333;
    transition: color 0.3s ease;
}

.post-content-preview .post-title a:hover {
    color: var(--bs-primary);
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.post-author {
    font-size: 0.875rem;
}

/* Pagination */
.archive-pagination .pagination {
    margin-bottom: 0;
}

.archive-pagination .page-link {
    color: var(--bs-primary);
    border-color: #dee2e6;
    padding: 0.75rem 1rem;
}

.archive-pagination .page-link:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.archive-pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Search Specific Styles */
.search-form-section .card {
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 0.75rem;
}

.search-form-section .input-group-lg .form-control {
    border-radius: 0.5rem 0 0 0.5rem;
    border-right: none;
    padding: 1rem 1.25rem;
}

.search-form-section .btn {
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1rem 1.5rem;
}

.results-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    color: #666;
    padding: 0.5rem 0.75rem;
    border-radius: 1.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag-link:hover {
    background: var(--bs-primary);
    color: white;
    transform: translateY(-1px);
}

.tag-count {
    background: rgba(0,0,0,0.1);
    color: inherit;
    padding: 0.125rem 0.375rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

mark {
    background-color: #fff3cd;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    color: #856404;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: 0.75rem;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--bs-primary);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30%;
    height: 3px;
    background: var(--secondary-blue, #2c71d2);
}

/* Archive Page Specific Styles */
.filter-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.filter-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.75rem;
}

.archive-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.archive-link {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.archive-link:hover {
    background: var(--bs-primary);
    color: white;
    transform: translateY(-1px);
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.category-card {
    display: block;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-card:hover {
    background: var(--bs-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.category-count {
    background: rgba(0,0,0,0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-card:hover .category-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.popular-post-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.post-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.post-info {
    flex: 1;
    min-width: 0;
}

.post-info .post-title a {
    color: #333;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-info .post-title a:hover {
    color: var(--bs-primary);
}

@media (max-width: 991px) {
    .archive-filters {
        text-align: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stat {
        align-items: center;
        text-align: center;
    }
    
    .hero-meta {
        justify-content: center;
        gap: 2rem;
    }
}

.sidebar-widget ul li a {
    color: #666;
    transition: color 0.3s ease;
}

.sidebar-widget ul li a:hover {
    color: var(--bs-primary);
}

.no-posts {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .archive-title {
        font-size: 2rem;
    }
    
    .post-card {
        padding: 1rem;
    }
    
    .post-content-preview .post-title {
        font-size: 1.25rem;
    }
    
    .post-thumbnail img {
        height: 150px;
    }
}

/* =====================================================
   Hero Section
===================================================== */
.hero {
    /* Hintergrundbild und Farbverlauf mit Transparenz */
    background: 
        linear-gradient(
            120deg, 
            rgba(26, 75, 140, 0.7), /* Startfarbe mit 70% Deckkraft */
            rgba(44, 113, 210, 0.7)  /* Endfarbe mit 70% Deckkraft */
        ),
        url('https://app.hanseat.me/tc2/wp-content/uploads/2025/04/680e9afc1de77.webp') center/cover no-repeat;
    
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
    overflow: hidden; /* Prevent horizontal scrolling */
}

/* Optional: Für bessere Lesbarkeit auf dem Hintergrundbild kannst du zusätzliche Stile hinzufügen */
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Schatten für den Text */
}

.hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Schatten für den Text */
}

/* =====================================================
   Hero Button Style - Mehr erfahren
===================================================== */
.hero .hero-btn {
    background-color: var(--primary-blue);
    border: 2px solid white;
    color: white;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .hero-btn:hover {
    background-color: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.hero .hero-btn .fa-arrow-right {
    transition: transform 0.3s ease;
}

.hero .hero-btn:hover .fa-arrow-right {
    transform: translateX(5px);
}

/* =====================================================
   Hero Single Section
===================================================== */
.hero-single {
    background: linear-gradient(120deg, #1a4b8c, #2c71d2);
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

/* =====================================================
   Breadcrumb
===================================================== */
.breadcrumb {
    margin-bottom: 0;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

.breadcrumb-item a {
    color: #1a4b8c;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2c71d2;
}

.breadcrumb-item.active {
    color: #333;
}

/* =====================================================
   Consultation Widget
===================================================== */


.consultation-widget h3 {
    color: #1a4b8c;
    margin-bottom: 20px;
}

.application-btn {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #f5f6f8;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.application-btn:hover {
    background: #1a4b8c;
    color: white;
    transform: translateY(-2px);
}

.consultation-widget {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    color: #000000 !important;
    margin: 0 auto;
    overflow: hidden; /* Prevent content from spilling out */
}

.toggle-label {
    color: #000000 !important;
}

.widget-section {
    margin-bottom: 1.5rem;
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Include padding in width calculations */
}

.section-label {
    display: block;
    font-weight: 600;
    color: #1a4b8c;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.section-label i {
    margin-right: 0.5rem;
    color: #2c71d2;
}

/* =====================================================
   Logo Slider
===================================================== */
.logo-slider {
    background: #f5f6f8;
    padding: 30px 0;
    overflow: hidden;
    position: relative;
}

.logo-slide-track {
    animation: logo-scroll 30s linear infinite;
    display: flex;
    width: calc(200px * 14);
}

.logo-slide {
    width: 140px;
    padding: 15px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-slide img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

@keyframes logo-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 7));
    }
}

/* =====================================================
   Feature Cards
===================================================== */
.feature-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

/* =====================================================
   Video Section
===================================================== */
.video-section {
    background: #f5f6f8;
    padding: 60px 0;
}

.video-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 1rem;
}

/* =====================================================
   Content Area
===================================================== */
.content-area {
    background: white;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.content-area h1 {
    color: #1a4b8c;
    margin-bottom: 30px;
}

.content-area h2 {
    color: #1a4b8c;
    margin: 30px 0 20px;
    font-size: 1.5rem;
}

.content-area p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.content-area ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-area li {
    margin-bottom: 10px;
}

.content-area a {
    color: #2c71d2;
    text-decoration: none;
}

.content-area .btn-primary {
    color: #ffffff !important;
    text-decoration: none;
}

.content-area a:hover {
    text-decoration: underline;
}

/* =====================================================
   Sidebar
===================================================== */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    color: #1a4b8c;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.sidebar-widget ul {
    padding-left: 0;
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 10px;
}

.sidebar-widget ul li a {
    color: #2c71d2;
    text-decoration: none;
}

.sidebar-widget ul li a:hover {
    text-decoration: underline;
}

/* =====================================================
   Image Container
===================================================== */
.image-container {
    margin: 30px 0;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* =====================================================
   Footer
===================================================== */
footer {
    background: #1a4b8c;
    color: white;
    padding: 40px 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #f5f6f8;
}

/* =====================================================
   Global Box-Sizing
===================================================== */
* {
    box-sizing: border-box;
}

/* =====================================================
   Base Navbar
===================================================== */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.navbar-brand {
    padding-top: var(--bs-navbar-brand-padding-y);
    padding-bottom: var(--bs-navbar-brand-padding-y);
    margin-right: var(--bs-navbar-brand-margin-end);
    font-size: var(--bs-navbar-brand-font-size);
    color: var(--bs-navbar-brand-color);
    text-decoration: none;
    white-space: nowrap;
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 1rem !important;
    transition: color 0.3s ease;
}

/* =====================================================
   Mega Menu Container
===================================================== */
.mega-menu {
    position: fixed; /* Change to fixed for full width */
    width: 100vw;
    left: 0;
    right: 0;
    top: var(--navbar-height, 80px); /* Adjust based on navbar height */
    background: white;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: calc(100vh - var(--navbar-height, 80px));
    /*overflow-y: auto;*/
}

/* Menu Structure innerhalb des Mega Menus */
.mega-menu .container {
    max-width: 1200px;
    margin: 0 auto;
}

.mega-menu .row {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
}

.mega-menu-column {
    flex: 0 0 25%;
    padding: 1rem;
}

/* Menu Items innerhalb des Mega Menus */
.mega-menu-title {
    color: #1a4b8c;
    font-weight: 600;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #1a4b8c;
    display: block;
    text-decoration: none;
}

.sub-menu-list,
.third-level-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.third-level-menu {
    padding-left: 1rem;
    margin: 0.5rem 0;
}

.sub-menu-item {
    padding: 0.3rem 0;
}

.sub-menu-link {
    color: #666;
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* =====================================================
   Hover Effects (Desktop Only)
===================================================== */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .mega-menu {
        opacity: 1;
        visibility: visible;
    }

    .mega-menu-title:hover,
    .sub-menu-link:hover {
        color: #1a4b8c;
        text-decoration: none;
    }
}

/* =====================================================
   Mobile Styles
===================================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        max-height: 80vh;
        /*overflow-y: auto;*/
        overflow: hidden;
    }

    .mega-menu {
        position: static;
        width: 100%;
        padding: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: block !important; /* Always show on mobile */
    }

    .mega-menu .container {
        padding: 0;
    }

    .mega-menu-column {
        flex: 0 0 100%;
        padding: 0.5rem 1rem;
    }

    .mega-menu-title {
        padding: 0.75rem 0;
        margin-bottom: 0.5rem;
    }

    .third-level-menu {
        padding-left: 1.5rem;
    }

    /* Mobile toggle button */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
}

/* =====================================================
   Desktop Styles
===================================================== */
@media (min-width: 992px) {
    .mega-menu {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-item.dropdown:hover .mega-menu {
        opacity: 1;
        visibility: visible;
    }
}

/* =====================================================
   System Type Selector Styles
===================================================== */
.system-type-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
}

/* Hide the original radio buttons */
.system-type-selector input[type="radio"] {
    display: none;
}

/* System option card styling */
.system-option {
    flex: 1;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Icon styling with proper spacing */
.system-option i {
    display: block;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

/* Text styling with proper line height */
.system-option span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    line-height: 1.3;
    transition: color 0.3s ease;
    word-wrap: break-word;
    max-width: 100%;
}

/* Small text styling for 'coming soon' */
.system-option small {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Hover effect */
.system-option:hover:not([style*="cursor: not-allowed"]) {
    background: #f0f4ff;
    border-color: #a8c7f7;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Active/checked state */
input[type="radio"]:checked + .system-option {
    border-color: #2c71d2;
    background: rgba(44, 113, 210, 0.08);
    box-shadow: 0 0 0 3px rgba(44, 113, 210, 0.1);
}

input[type="radio"]:checked + .system-option i,
input[type="radio"]:checked + .system-option span {
    color: #2c71d2;
    font-weight: 600;
}

/* Disabled state for 'Individual devices' */
.system-option[style*="opacity: 0.5"] {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.system-option[style*="opacity: 0.5"] i,
.system-option[style*="opacity: 0.5"] span {
    color: #b8bdc4;
}

/* =====================================================
   Select Styles
===================================================== */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    appearance: none;
    font-size: 1rem;
    color: #495057;
    transition: border-color 0.3s ease;
}

select:focus {
    outline: none;
    border-color: #2c71d2;
}

/* =====================================================
   Checkbox Styles
===================================================== */
.verification-section {
    margin: 1.5rem 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    position: relative;
    padding-left: 2.5rem;
    color: #495057;
}

.checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-label::before {
    background: #2c71d2;
    border-color: #2c71d2;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 0.8rem;
}

/* =====================================================
   Toggle Switch Styles
===================================================== */
.toggle-switch-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2c71d2;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2c71d2;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* =====================================================
   Submit Button Styles
===================================================== */
.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(120deg, #1a4b8c, #2c71d2);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-button i {
    margin-right: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 113, 210, 0.2);
}

/* =====================================================
   Responsive Adjustments
===================================================== */
@media (max-width: 768px) {
    .consultation-widget {
        padding: 1.5rem;
        margin: 0 auto;
    }

    .system-type-selector {
        gap: 8px;
    }

    .system-option {
        padding: 1rem 0.5rem;
        min-height: 90px;
    }

    .system-option i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .system-option span {
        font-size: 0.8rem;
    }

    .system-option small {
        font-size: 0.7rem;
    }

    /* Toggle switches stack vertically on small screens */
    .toggle-switch-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .consultation-widget {
        padding: 1.25rem;
    }

    .system-type-selector {
        flex-direction: column;
        gap: 10px;
    }

    .system-option {
        width: 100%;
        padding: 1rem;
        min-height: auto;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .system-option i {
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .system-option span {
        font-size: 0.9rem;
        text-align: left;
    }
}

/* Tablet adjustments */
@media (min-width: 577px) and (max-width: 991px) {
    .hero .container {
        max-width: 100%;
        padding: 0 2rem;
    }

    .consultation-widget {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Large desktop adjustments */
@media (min-width: 1200px) {
    .consultation-widget {
        max-width: 650px;
    }

    .system-option {
        padding: 1.5rem 1rem;
        min-height: 110px;
    }

    .system-option i {
        font-size: 2rem;
        margin-bottom: 0.875rem;
    }

    .system-option span {
        font-size: 0.95rem;
    }
}

/* Property Group Descriptions im Theme */
.property-group .group-description {
    font-size: 0.95em;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}
