/*
========================================
0. LOKALE SCHRIFT (INTER)
========================================
*/

/* inter-300 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/inter-v20-latin_latin-ext-300.woff2') format('woff2');
}

/* inter-regular - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
}

/* inter-500 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter-v20-latin_latin-ext-500.woff2') format('woff2');
}

/* inter-600 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inter-v20-latin_latin-ext-600.woff2') format('woff2');
}

/* inter-700 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v20-latin_latin-ext-700.woff2') format('woff2');
}

/*
========================================
1. GRUNDLAGEN & FARBVARIABLEN
========================================
*/
:root {
    --primary-color: #0081c6;
    --secondary-color: #e67e22;
    --text-dark: #333;
    --text-light: #fff;
    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --bg-card-shadow: rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
}

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

/* kein horizontaler Scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Inter lokal verwenden */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-page);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

ul {
    list-style: none;
}

h1, h2, h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    transition: color var(--transition-speed);
}

/* Globale Micro-Transitions */
a,
button,
.teaser-item,
.info-list,
.gallery-nav-btn,
.main-content-area,
.sidebar-area,
.firmengruppe-box {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

/*
========================================
2. HEADER & NAVIGATION (Desktop)
========================================
*/
.site-header {
    background-color: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 18px 0;
    backdrop-filter: blur(10px);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed), transform 0.25s ease;
    position: relative;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo h1 a img {
    max-height: 90px;
    width: auto;
}

.slogan {
    font-size: 0.95em;
    color: #777;
    margin-top: -14px;
}

.main-nav .nav-list {
    display: flex;
    gap: 22px;
    align-items: center;
}

.main-nav .nav-list > li {
    position: relative;
    padding: 0 5px;
}

.main-nav a {
    font-weight: 600;
    display: block;
    padding: 10px 0;
    position: relative;
    text-align: center;
    color: var(--text-dark);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Dropdown Container */
.submenu-list {
    display: none;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    min-width: 220px;
    background-color: var(--primary-color);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    overflow: hidden;
    padding: 6px 0;
}

.submenu-list a {
    color: var(--text-light);
    text-align: left;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.submenu-list a:hover,
.submenu-list li.active a {
    background-color: rgba(255, 255, 255, 0.18);
    color: var(--text-light);
}

/* Dropdown Sichtbarkeit bei Hover */
.main-nav .nav-list > li:hover > .submenu-list {
    display: block;
}

/* Underline-Hover-Effekt */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    border-radius: 999px;
    transition: width var(--transition-speed) ease-in-out;
}

.main-nav > .nav-list > li > a:hover::after,
.main-nav > .nav-list > li.active > a::after {
    width: 80%;
}

/*
========================================
2.5 BURGER MENU (Mobil)
========================================
*/
.burger-menu-toggle {
    display: none; /* Desktop versteckt */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.icon-bar {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--primary-color);
    border-radius: 999px;
    transition: all 0.3s ease-in-out;
}

.burger-menu-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
}
.burger-menu-toggle.active .icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-menu-toggle.active .icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 999;
    padding-top: 120px;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
    overflow-y: auto;
}

.mobile-menu-overlay.open {
    transform: translateX(0);
}

.mobile-nav-list a {
    display: block;
    text-align: center;
    padding: 15px 0;
    font-size: 1.1em;
    border-bottom: 1px solid var(--bg-page);
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.mobile-nav-list a:hover {
    background-color: var(--bg-page);
    color: var(--secondary-color);
}

/*
========================================
3. HERO SLIDER (Startseite)
========================================
*/
.hero-slider-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 400px;
    background-color: var(--primary-color);
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 52%);
    z-index: 1;
}

.slide-caption {
    position: relative;
    color: var(--text-light);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    padding: 24px 32px 32px;
    border-radius: 20px 20px 0 0;
    align-self: flex-end;
}

.slide-caption h2 {
    font-size: clamp(2.0rem, 2.6vw, 2.6rem);
    margin-bottom: 8px;
    color: var(--secondary-color);
    animation: fadeInSlide 1s ease-out;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.slide-caption p {
    font-size: clamp(1.0rem, 1.3vw, 1.3rem);
    color: var(--text-light);
    opacity: 0.95;
}

.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.dot {
    width: 11px;
    height: 11px;
    background-color: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    cursor: pointer;
}

.dot.active {
    background-color: var(--secondary-color);
    width: 22px;
}

/*
========================================
4. CONTENT & TEASER (Startseite)
========================================
*/
.content-teaser-section {
    padding: 100px 20px;
}

.info-lists-group {
    display: flex;
    gap: 40px;
    margin-bottom: 48px;
}

.info-list {
    flex: 1;
    padding: 24px 24px 26px;
    background: rgba(255, 255, 255, 0.96);
    border-left: 4px solid var(--secondary-color);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.info-list ul {
    padding-left: 0;
}

.info-list ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.info-list ul li .icon {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 0.9em;
}

/* Teaser */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 36px;
    align-items: stretch;
}

.teaser-item {
    background: rgba(255, 255, 255, 0.96);
    padding: 22px 22px 24px;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.teaser-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.1);
}

.teaser-item h3 {
    font-size: 1.5em;
    margin-top: 15px;
}

.teaser-item h3 a {
    color: var(--primary-color);
    display: inline-block;
}

.teaser-item h3 a:hover {
    color: var(--secondary-color);
}

.teaser-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
}

.teaser-item ul {
    padding-left: 20px;
    list-style-type: disc;
    margin-top: 10px;
    font-size: 0.95em;
}

.read-more-link {
    font-weight: 600;
    display: inline-block;
    margin-top: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

/*
========================================
5. SUBPAGE LAYOUT & HERO (Unterseiten)
========================================
*/
.subpage-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content-area {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    z-index: 5;
    color: var(--text-light);
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    padding: 22px 32px;
    border-radius: 20px 20px 0 0;
}

.subpage-hero h2 {
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    margin-top: 5px;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.breadcrumbs {
    font-size: 0.9em;
    margin-bottom: 10px;
    color: #ccc;
}

.breadcrumbs a {
    color: #ccc;
}

.breadcrumbs span {
    color: var(--text-light);
    font-weight: 600;
}

/* Content Grid */
.content-section {
    padding-top: 80px;
    padding-bottom: 100px;
}

.content-grid {
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

/* Main Content Card */
.main-content-area {
    flex: 2;
    min-width: 60%;
    background-color: rgba(255, 255, 255, 0.96);
    padding: 24px 26px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

/* Sidebar */
.sidebar-area {
    flex: 1;
    max-width: 300px;
    min-width: 250px;
    background-color: rgba(255, 255, 255, 0.96);
    padding: 22px 24px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    height: fit-content;
}

.sidebar-area h4 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.related-links a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dotted var(--bg-page);
}

.contact-box {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-page);
    text-align: center;
}

/* Buttons */
.beam-button,
.button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light) !important;
    padding: 12px 26px;
    border-radius: 999px;
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

/*
========================================
6. MICRO GALLERY SLIDER (Unterseiten)
========================================
*/
.micro-gallery {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-page);
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-scroll-track {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-scroll-track img {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0.85;
}

/*
========================================
7. FIRMENGRUPPE STYLING
========================================
*/
.firmengruppe-box {
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(221, 221, 221, 0.8);
    padding: 25px;
    margin-top: 30px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

/*
========================================
8. REFERENZEN LISTEN STYLING
========================================
*/
.reference-columns {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

/*
========================================
9. SCROLL REVEAL ANIMATION
========================================
*/
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/*
========================================
10. FOOTER
========================================
*/
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding-top: 40px;
    position: relative;
    margin-top: 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-widgets a {
    color: var(--text-light);
    opacity: 0.8;
}

.footer-widgets a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.vcard-widget img {
    max-width: 150px;
    height: auto;
    border-radius: 5px;
}

.footer-bottom {
    padding: 20px 0;
}

/* Desktop: nebeneinander */
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.legal-nav {
    white-space: nowrap;
}

.legal-nav a {
    margin-left: 15px;
    color: var(--text-light);
}

.legal-nav a:hover {
    color: var(--secondary-color);
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
    display: none;
}

/*
========================================
11. RESPONSIVE BREAKPOINTS
========================================
*/
@media (max-width: 1100px) {
    .main-nav .nav-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex-grow: 1;
        text-align: left;
    }

    /* Desktop-Navigation ausblenden, Burger zeigen */
    .main-nav {
        display: none;
    }

    .burger-menu-toggle {
        display: block;
    }

    .info-lists-group {
        flex-direction: column;
        gap: 20px;
    }

    .content-section {
        padding-top: 60px;
        padding-bottom: 70px;
    }

    .content-grid {
        flex-direction: column;
        gap: 30px;
    }

    .sidebar-area {
        max-width: 100%;
        min-width: auto;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Mobil: Footer untereinander, zentriert */
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .legal-nav {
        white-space: normal;
    }

    .legal-nav a {
        margin: 0 8px;
    }

    .subpage-hero {
        padding: 30px 0 15px 0;
        height: auto;
        min-height: 280px;
    }
}