/* =========================================================================
   Design-Tokens (zentrale Stellschrauben für das gesamte Erscheinungsbild)
   ========================================================================= */
:root {
    /* Marke */
    --accent-color: #2B9184;   /* Primär-Teal */
    --accent-dark:  #1F7A6F;
    --accent-light: #3FB3A2;
    --accent-soft:  rgba(43, 145, 132, 0.12);

    /* Text & Flächen */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --ink: #1a1f24;            /* dunkler Grundton für Headlines auf hellem Grund */
    --bg-primary: #333333;
    --bg-secondary: #444444;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Radien (einheitliche Rundungen) */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    /* Schatten (weich gestaffelt, modern) */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow:    0 12px 32px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.18);
    --shadow-accent: 0 10px 28px rgba(43, 145, 132, 0.32);

    /* Bewegung */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #333;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1);
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.preloader video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    filter: brightness(1);
}

.preloader.hidden video {
    transform: scale(1);
    filter: brightness(0.8);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Verstecke Scrollbar während Preloader */
body.preloader-active {
    overflow: hidden;
}



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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(18, 20, 24, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.navbar.hidden {
    transform: translateY(-100%);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo .logo-img {
    height: auto;
    width: 318px;
    max-height: 106px;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2B9184;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2B9184;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 13px 28px;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--transition), box-shadow var(--transition),
                background var(--transition), color var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(43, 145, 132, 0.45);
}

.btn-secondary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(43, 145, 132, 0.22);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--accent-dark);
    box-shadow: var(--shadow-accent);
}

.btn:active {
    transform: translateY(0);
}

.btn-large {
    padding: 17px 38px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-section.logo-section {
    grid-column: 1;
}

.footer-section h4 {
    color: #2B9184;
    margin-bottom: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Logo Section Styles */
.footer-logo-container {
    margin-bottom: 25px;
}

.footer-logo-img {
    height: auto;
    width: 300px;
    max-height: 120px;
    margin-bottom: 20px;
    object-fit: contain;
}



.contact-intro {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon-img {
    width: 43px;
    height: 43px;
    transition: all 0.3s ease;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #2B9184;
}

.footer-links li:not(:has(a)) {
    color: #cccccc;
    font-size: 0.95rem;
}

/* Contact Info */
.contact-info p {
    color: #cccccc;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.contact-info a:hover {
    color: var(--accent-color);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #2B9184;
}

.footer-copyright {
    color: #999;
    font-size: 0.9rem;
}

/* Utility Classes */
.highlight {
    color: #2B9184;
}

.section-title {
    text-align: center;
    font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 60px;
    color: var(--ink);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.4);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        color: #ffffff;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: #2B9184;
    }

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-logo .logo-img {
        width: 296px;
        max-height: 96px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section.logo-section {
        grid-column: 1;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 70px;
        padding: 0 15px;
    }

    .nav-menu {
        top: 70px;
    }

    .nav-logo .logo-img {
        width: 265px;
        max-height: 85px;
    }

    .footer {
        padding: 50px 0 15px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon-img {
        width: 35px;
        height: 35px;
    }
    
    .footer-legal {
        gap: 15px;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
}

/* Page Header Section - Dunkler geometrischer Hintergrund */
.page-header {
    background-image: url('../assets/hintergrund_muster.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-header .header-content {
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.page-header .page-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-header .breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 400;
}

.page-header .breadcrumb a {
    color: white;
    text-decoration: underline;
    transition: all 0.3s ease;
    position: relative;
}

.page-header .breadcrumb a:hover {
    color: #2B9184;
    text-decoration: none;
}

.page-header .breadcrumb .separator {
    color: #666;
    font-weight: 300;
}

.page-header .breadcrumb .current {
    color: #2B9184;
    font-weight: 500;
}

/* Responsive Design für Page Header */
@media (max-width: 768px) {
    .page-header {
        min-height: 36vh;
    }
    
    .page-header .page-title {
        font-size: 2rem;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
    }
    
    .page-header .breadcrumb {
        font-size: 0.9rem;
        flex-direction: row;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .page-header .header-content {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .page-header .page-title {
        font-size: 1.6rem;
        letter-spacing: 0.3px;
        margin-bottom: 12px;
    }
    
    .page-header .breadcrumb {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .page-header .header-content {
        padding: 20px 10px;
    }
}

/* =========================================================================
   Moderne Basis-Ebene (global, seitenübergreifend)
   ========================================================================= */

/* Flüssigere Schriftkanten */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Anker-Sprünge unter der fixierten Navbar ausrichten */
html {
    scroll-padding-top: 96px;
}

/* Markierungs-Farbe in Markenton */
::selection {
    background: rgba(43, 145, 132, 0.25);
}

/* Einheitlicher Fokus-Ring – nur bei Tastaturbedienung sichtbar */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* Native Buttons an die Typografie angleichen */
button {
    font-family: inherit;
}

/* Burger-Button (vormals <div>) zurücksetzen */
.nav-toggle {
    background: none;
    border: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Dezente, moderne Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(43, 145, 132, 0.6) transparent;
}
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-thumb {
    background: rgba(43, 145, 132, 0.55);
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Bilder nie über ihren Container hinaus */
img {
    max-width: 100%;
}

/* Barrierefreiheit: Bewegung reduzieren, wenn vom System gewünscht */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .kunden-slider {
        animation: none !important;
    }
}
