:root {
    --primary-color: #ff8c00; /* Industrial Orange */
    --secondary-color: #333;
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --header-font: 'Oswald', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Skip-Link für bessere Tastaturnavigation */
.skip-link {
    position: absolute;
    left: 0.5rem;
    top: -40px;
    padding: 0.5rem 1rem;
    background: #000;
    color: #fff;
    z-index: 2001;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0.5rem;
}

/* Screenreader-only Textelemente */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Global link styling */
a {
    color: #f5f5f5;
}

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

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.logo a {
    color: var(--primary-color);
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-subtitle {
    display: block;
    font-size: 0.8rem;
    color: #ccc;
    letter-spacing: 1px;
    margin-top: 0.15rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); /* Placeholder image */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-main {
    height: 60vh;
    min-height: 360px;
}

.hero-main h1 {
    font-size: 3rem;
}

.hero-main p {
    font-size: 1.2rem;
}

.hero.hero-small {
    height: 30vh;
    min-height: 220px;
    justify-content: flex-end;
    padding-bottom: 4rem;
}

.hero h1 {
    font-family: var(--header-font);
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #e67e00;
}

/* Sections */
section {
    padding: 5rem 10%;
}

h2 {
    font-family: var(--header-font);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

/* Legal / Impressum Page */
.legal-page {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: #111;
    border-radius: 8px;
    border: 1px solid #333;
    padding: 2.5rem 2rem;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.legal-intro {
    margin-bottom: 2rem;
    text-align: left;
}

.legal-intro h2 {
    text-align: left;
    margin-bottom: 0.75rem;
}

.legal-intro p {
    color: #ccc;
    max-width: 700px;
}

.legal-content {
    border-top: 1px solid #333;
    padding-top: 2rem;
}

.impressum-list {
    display: grid;
    grid-template-columns: 1fr 2fr;
    row-gap: 1.5rem;
    column-gap: 2rem;
}

.impressum-item {
    display: contents;
}

.impressum-item dt {
    font-weight: 700;
    color: var(--primary-color);
}

.impressum-item dd {
    margin: 0;
}

.impressum-item a {
    color: #fff;
    text-decoration: underline;
}

.impressum-item a:hover {
    color: var(--primary-color);
}

/* General link styling inside legal pages */
.legal-container a {
    color: #fff;
    text-decoration: underline;
}

.legal-container a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .legal-container {
        padding: 1.8rem 1.2rem;
    }

    .impressum-list {
        grid-template-columns: 1fr;
        row-gap: 1.25rem;
    }
}

/* Fotogalerie Raster */
.gallery-container {
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-category {
    margin-bottom: 3rem;
}

.gallery-category:last-child {
    margin-bottom: 0;
}

.gallery-category-title {
    font-family: var(--header-font);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.photo-grid-item {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-grid-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-grid-item:hover,
.photo-grid-item:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.9);
    outline: 2px solid var(--primary-color);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.open {
    display: flex;
}

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s;
    border-left: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.service-toggle {
    margin-top: 1rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-toggle:hover {
    background: var(--primary-color);
}

.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    margin-top: 0.75rem;
    padding-top: 0;
    border-top: 1px solid #444;
    opacity: 0;
}

.service-card.expanded .service-details {
    max-height: 999px;
    padding-top: 0.75rem;
    opacity: 1;
}

.service-details ul {
    margin-left: 1.2rem;
    margin-top: 0.5rem;
}

.service-details li {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.service-card.expanded .service-toggle {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: #000;
    padding: 3rem 5% 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 1rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-main {
        display: none;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: #000;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
    }

    .nav-links li {
        opacity: 0;
        margin: 2rem 0;
    }

    .burger {
        display: block;
        cursor: pointer;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.burger {
    display: none;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}
