/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

:root {
    --color-primary: #1f4f91;
    --color-primary-accent: #2d6fce;
    --color-primary-hover: #163865;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.skip-link {
    position: absolute;
    top: 0;
    left: -999px;
    z-index: 200;
    background-color: #ffffff;
    color: var(--color-primary);
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    font-weight: 600;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e8ecf0;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.08);
}

.header-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.site-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--color-primary-hover);
}

.site-tagline {
    font-size: 1rem;
    color: #6c7a89;
    font-weight: 400;
    margin: 0;
}

/* Navigation */
.main-nav {
    position: relative;
}

.menu-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid #d0d7de;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    margin: 0 auto;
    border-radius: 8px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: #f0f8ff;
    border-color: var(--color-primary);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #4a5568;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    display: block;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.page-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #34495e;
}

.page-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #34495e;
}

.page-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #34495e;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.page-content a.btn,
.page-content .btn {
    color: #fff;
}

.page-content a.btn:hover,
.page-content .btn:hover {
    color: #fff;
    text-decoration: none;
}

.page-content ul,
.page-content ol {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6c7a89;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--color-primary-hover);
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #a0aec0;
}

/* Section Divider */
.section-divider {
    border: none;
    border-top: 1px solid #e8ecf0;
    margin: 2rem 0;
}

/* Intro Section */
.intro-section {
    margin: 2rem 0;
}

.lead {
    font-size: 1.25rem;
    color: #5a6c7d;
    margin-bottom: 2rem;
}

/* Gallery Slider */
.gallery-section {
    margin: 3rem 0;
}

.gallery-section h2 {
    margin-bottom: 1.5rem;
}

.image-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #d0e7f7;
    background-color: #f8fbff;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.12);
}

.slider-track {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    width: 100%;
    animation: sliderFade 0.6s ease;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(44, 62, 80, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-control:hover {
    background-color: rgba(74, 144, 226, 0.85);
    transform: translateY(-50%) scale(1.05);
}

.slider-control.prev {
    left: 1rem;
}

.slider-control.next {
    right: 1rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0 1.25rem;
    flex-wrap: wrap;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0 0 1.25rem;
}

.slider-pause {
    border: 1px solid var(--color-primary);
    background-color: #fff;
    color: var(--color-primary);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.slider-pause:hover,
.slider-pause:focus {
    background-color: var(--color-primary);
    color: #fff;
    outline: none;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #cfd8e3;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-dot:hover {
    background-color: var(--color-primary);
    transform: scale(1.15);
}

.slider-dot.active {
    background-color: var(--color-primary);
}

@keyframes sliderFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Features Section */
.features-section {
    margin: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.12);
}

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

.feature-item p {
    color: #5a6c7d;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-radius: 12px;
    border: 1px solid #d0e7f7;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-accent) 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.btn:hover {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-accent) 100%);
    color: #fff;
}

/* Garage Types */
.garage-types {
    margin: 2rem 0;
}

.garage-info {
    margin-top: 1rem;
}

.garage-image {
    margin: 2rem 0;
    text-align: center;
}

.garage-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Unified garage type images - responsive */
.garage-type-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* WordPress block image styles */
.wp-block-image {
    margin: 2rem 0;
    text-align: center;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wp-block-image.size-large img {
    width: 100%;
}

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6c7a89;
    font-style: italic;
}

.image-credit {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e8ecf0;
    text-align: center;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e8ecf0;
    background-color: #ffffff;
    padding: 0.5rem;
    border-radius: 6px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
}

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

.faq-question-text {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #6c7a89;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}

.faq-question[aria-expanded="true"] .faq-icon {
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0;
}

.faq-answer p {
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
}

.faq-answer ul {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-section {
    margin: 2rem 0;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #34495e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 79, 145, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Cloudflare Turnstile */
.cf-turnstile {
    margin: 1rem 0;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-left: 4px solid #4caf50;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-left: 4px solid #f44336;
}

/* Legal Content */
.legal-content {
    margin: 2rem 0;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

/* Impressum Table */
.impressum-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #fff;
}

.impressum-table tr {
    border-bottom: 1px solid #e8ecf0;
}

.impressum-table tr:last-child {
    border-bottom: none;
}

.impressum-table td {
    padding: 1rem 0;
    vertical-align: top;
}

.impressum-table td.label {
    width: 40%;
    font-weight: 500;
    color: #6c7a89;
    padding-right: 1.5rem;
}

.impressum-table td.value {
    color: #2c3e50;
}

.impressum-table td.value a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.impressum-table td.value a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Copyright Notice */
.copyright-notice {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8ecf0;
}

.copyright-notice p {
    color: #6c7a89;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
    border-top: 1px solid #e8ecf0;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-nav {
    margin-top: 1rem;
}

.footer-nav a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.footer-nav .separator {
    margin: 0 0.5rem;
    color: #a0aec0;
}

.copyright {
    color: #6c7a89;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .site-title {
        font-size: 1.75rem;
    }

    .page-content h1 {
        font-size: 2rem;
    }

    .page-content h2 {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e8ecf0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e8ecf0;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        border-bottom-color: var(--color-primary);
        background-color: #f0f8ff;
    }

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

    .main-content {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }

    .page-content h1 {
        font-size: 1.75rem;
    }

    .cta-section {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .breadcrumb,
    .menu-toggle {
        display: none;
    }

    .main-content {
        padding: 0;
    }
}
