/* Body und allgemeines */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #eee;
    overflow-x: hidden;
    padding-top: 70px;
    background-color: #121212;
    line-height: 1.6;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Navigation Toggle (Hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    transition: all 0.3s ease;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #FE0000;
    margin: 4px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Navigation */
.header-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header-nav a {
    color: #eee;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.header-nav a:hover,
.header-nav a.active {
    color: #FE0000;
    background: rgba(254, 0, 0, 0.1);
}

/* Background */
.background-wrapper {
    position: relative;
    height: 50vh;
    overflow: hidden;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('pics/AutoOffen.jpg');
    background-size: cover;
    background-position: center center;
    z-index: -2;
    filter: brightness(0.3);
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 18, 18, 0.7);
    z-index: -2;
}

/* Hero Section */
.hero-section {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
}

.hero-overlay h1 {
    font-size: 3rem;
    color: #FE0000;
    margin-bottom: 0.5em;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(254, 0, 0, 0.7);
}

.hero-overlay p {
    font-size: 1.3rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

/* Contact Section */
.contact-section {
    background-color: #121212;
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Contact Info */
.contact-info h2 {
    color: #FE0000;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.info-card {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid #2a2a2a;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-card:hover {
    border-color: #FE0000;
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(254, 0, 0, 0.15);
}

.info-card.emergency {
    border-color: #FE0000;
    background: linear-gradient(145deg, rgba(254, 0, 0, 0.1), rgba(254, 0, 0, 0.05));
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.info-content h3 {
    color: #FE0000;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-content p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.info-content a {
    color: #FE0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: #ff3333;
    text-decoration: underline;
}

/* Opening Hours */
.opening-hours {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.day-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.day {
    color: #ccc;
    font-weight: 600;
}

.time {
    color: #FE0000;
    font-weight: 600;
}

/* Contact Form */
.contact-form-container {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(254, 0, 0, 0.1);
}

.contact-form h2 {
    color: #FE0000;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.half {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 10px;
    color: #eee;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FE0000;
    background: #333;
    box-shadow: 0 0 15px rgba(254, 0, 0, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

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

/* Error state for form fields */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    gap: 12px;
}

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

.checkmark {
    width: 20px;
    height: 20px;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #FE0000;
    border-color: #FE0000;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.checkbox-label a {
    color: #FE0000;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #FE0000, #ff3333);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(254, 0, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:focus {
    outline: 2px solid #FE0000;
    outline-offset: 2px;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: block;
}

.submit-btn.loading:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(254, 0, 0, 0.1);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form States */
.form-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-message.success {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    color: #00ff00;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #FE0000;
    color: #FE0000;
}

/* Map Section Inline (rechte Spalte) */
.map-section-inline {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(254, 0, 0, 0.1);
}

.map-section-inline h2 {
    color: #FE0000;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.map-wrapper {
    margin-bottom: 25px;
}

.map-info {
    text-align: center;
    margin-top: 20px;
}

.map-info h3 {
    color: #FE0000;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.map-info p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 5px;
}

.map-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.map-link {
    background: #FE0000;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.map-link:hover {
    background: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(254, 0, 0, 0.3);
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.map-placeholder {
    background: linear-gradient(145deg, #2a2a2a, #3a3a3a);
    padding: 60px 20px;
    border: 3px dashed #4a4a4a;
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-placeholder:hover {
    border-color: #FE0000;
    background: linear-gradient(145deg, #333, #444);
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #666;
}

.map-placeholder > p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #999;
    font-weight: 600;
}

.map-info {
    margin-bottom: 25px;
}

.map-info h3 {
    color: #FE0000;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.map-info p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 5px;
}

.map-links {
    margin-top: 20px;
}

.map-link {
    background: #FE0000;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.map-link:hover {
    background: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(254, 0, 0, 0.3);
}

/* Quick Contact Section */
.quick-contact {
    background-color: #121212;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.quick-contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.quick-contact h2 {
    color: #FE0000;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.quick-btn {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    color: #eee;
    padding: 25px 30px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 120px;
    border: 2px solid #3a3a3a;
}

.quick-btn:hover {
    border-color: #FE0000;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(254, 0, 0, 0.2);
}

.quick-btn.emergency {
    border-color: #FE0000;
    background: linear-gradient(145deg, rgba(254, 0, 0, 0.1), rgba(254, 0, 0, 0.05));
}

.quick-icon {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.quick-btn span {
    font-weight: 600;
    font-size: 1rem;
}

/* Animations */
.animate-left,
.animate-right {
    opacity: 0;
    transition: all 1.5s ease-out;
}

.animate-left {
    transform: translateX(-50px);
}

.animate-right {
    transform: translateX(50px);
}

.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
    }

    .nav-toggle {
        display: block;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(15px);
        padding: 20px 0;
        border-top: 1px solid rgba(254, 0, 0, 0.3);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .header-nav.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 0;
    }

    .header-nav li {
        padding: 0 20px;
    }

    .header-nav a {
        display: block;
        padding: 12px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .header-nav a:hover {
        padding-left: 10px;
        background: rgba(254, 0, 0, 0.1);
    }

    .hero-overlay h1 {
        font-size: 2.2rem;
    }

    .hero-overlay p {
        font-size: 1.1rem;
    }

    .map-section-inline {
        padding: 30px 25px;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .day-time {
        flex-direction: column;
        gap: 2px;
    }

    .quick-actions {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .quick-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }

    .header-logo {
        height: 40px;
    }

    .background-wrapper {
        height: 40vh;
    }

    .hero-overlay h1 {
        font-size: 1.8rem;
    }

    .map-section-inline {
        padding: 25px 20px;
    }

    .info-card {
        padding: 20px;
    }

    .map-placeholder {
        padding: 40px 15px;
        min-height: 250px;
    }

    .map-icon {
        font-size: 3rem;
    }

    .quick-contact {
        padding: 50px 0;
    }

    .quick-contact h2 {
        font-size: 1.8rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-left,
    .animate-right {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus States */
.info-card:focus,
.quick-btn:focus,
.submit-btn:focus,
.map-link:focus {
    outline: 2px solid #FE0000;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        padding-top: 0;
    }

    header {
        display: none;
    }

    .background-wrapper {
        display: none;
    }

    .quick-contact {
        display: none;
    }

    .info-card,
    .contact-form-container {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .info-card h3,
    .contact-form h2 {
        color: black;
    }

    .info-card p,
    .form-group label {
        color: black;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        background: white;
        border: 1px solid #ccc;
        color: black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .info-card,
    .contact-form-container,
    .quick-btn {
        border: 2px solid #FE0000;
        background: #000;
    }
    
    .info-card p,
    .form-group label {
        color: #fff;
    }
}