/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;700&display=swap');

:root {
    --primary: #000000;
    --secondary: #111111;
    --accent: #ff2a2a;
    /* Bright Red for Boost/Turbo feel */
    --accent-glow: rgba(255, 42, 42, 0.4);
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --border: #333333;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--primary);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.btn-primary,
.btn-outline {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 80px 0;
}

.text-accent {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 900;
    letter-spacing: 2px;
}

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    height: 60px;
    /* In case image has white bg, simple filter to make it blend or keep as is if it's styled nicely */
    /* mix-blend-mode: screen; */
}

.nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #222 0%, #000 70%);
    z-index: -1;
}

/* Optional: Add a subtle grid animation or background image here if requested later */
.hero-bg::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background:
        linear-gradient(rgba(255, 42, 42, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 42, 42, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    opacity: 0.2;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    border: 2px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
}

.btn-outline {
    background-color: transparent;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    border: 2px solid white;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: white;
    color: black;
    border-color: white;
}

/* Services */
.grid {
    display: grid;
    gap: 2rem;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background-color: var(--secondary);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

.card:hover::before {
    transform: scaleX(1);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Gallery */
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-item h3 {
    color: var(--accent);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.gallery-item p {
    font-size: 0.9rem;
    color: white;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.visual-box {
    width: 100%;
    height: 400px;
    background-color: var(--secondary);
    border: 2px solid var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 20px var(--accent-glow);
}

.visual-box span {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    color: var(--accent);
    transform: rotate(-5deg);
}

/* Opening Hours */
.hours-card {
    max-width: 800px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    justify-content: center;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: grey;
    box-shadow: 0 0 10px currentColor;
}

.status-open .status-dot {
    background-color: #00ff00;
    color: #00ff00;
}

.status-closed .status-dot {
    background-color: #ff0000;
    color: #ff0000;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid var(--border);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 1rem;
    text-align: left;
}

.hours-table tr.today {
    background-color: rgba(255, 42, 42, 0.1);
    color: var(--accent);
    font-weight: bold;
}

.hours-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Contact */
.contact-grid {
    grid-template-columns: 1fr 1fr;
}

.contact-info address {
    font-style: normal;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--secondary);
    border-radius: 8px;
    overflow: hidden;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--secondary);
    border: 1px solid var(--border);
    padding: 12px;
    color: white;
    font-family: inherit;
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 42, 42, 0.2);
}

.full-width {
    width: 100%;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.socials a {
    margin: 0 10px;
    font-weight: 700;
}

/* Animations using Intersection Observer classes */
.animate-in,
.fade-in,
.fade-in-left,
.fade-in-right,
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 2000;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    body {
        /* Prevent horizontal scroll */
        overflow-x: hidden;
    }

    .section-title {
        font-size: 1.8rem;
        /* Smaller for mobile */
        word-wrap: break-word;
        /* Ensure long words break */
        hyphens: auto;
        /* Use hyphens */
    }

    .hero {
        height: 100vh;
        /* Fix for mobile browser bars */
        height: 100dvh;
        padding-top: 60px;
    }

    .hero-content {
        width: 100%;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        /* Break long words like 'Leistungssteigerung' if they were in title */
        word-break: break-word;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Ensure cards don't overflow */
    .card,
    .gallery-item {
        width: 100%;
        padding: 1rem;
        /* Reduce padding significantly for mobile */
        /* Force word break for long words in cards */
        word-wrap: break-word;
    }

    /* Serialize opening hours table for mobile */
    .hours-table {
        font-size: 0.8rem;
        /* Smaller font to fit 3 columns */
    }

    .hours-table td {
        padding: 0.5rem 0.1rem;
        /* Minimal horizontal padding */
        word-break: break-word;
    }

    .hours-card {
        overflow-x: auto;
        /* Allow scroll if content is still too wide */
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        /* Slightly wider menu */
        height: 100vh;
        background-color: var(--secondary);
        padding: 100px 2rem;
        transition: 0.4s ease;
        border-left: 2px solid var(--accent);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav a {
        font-size: 1.5rem;
        /* Larger touch targets */
    }

    .visual-box {
        height: 250px;
    }

    .map-placeholder iframe {
        height: 250px;
    }
}

@media (max-width: 380px) {
    .section-title {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}