/* ============================================================================
   TISCHLEREI KORTHAUS - HAUPTSTYLESHEET (styles.css)
   ============================================================================
   
   BESCHREIBUNG:
   Haupt-CSS-Datei für die index.html der Tischlerei Korthaus Website.
   Enthält alle Styles für Layout, Farben, Typografie und Animationen.
   
   FARBSCHEMA:
   - Primärfarbe: Orange (#FF6600) - Für Akzente, Buttons, Hover-Effekte
   - Sekundär: Beige/Grau-Töne - Für Hintergründe
   - Text: Schwarz/Grau-Töne - Für Lesbarkeit
   
   RESPONSIVE BREAKPOINTS:
   - Desktop: > 1024px
   - Tablet: 768px - 1024px
   - Mobile: < 768px
   
   VERKNÜPFTE DATEIEN:
   - index.html (Hauptseite)
   - scripts.js (JavaScript-Funktionen)
   
  
   ============================================================================ */

/* ============================================================================
   RESET & BASIS-STYLES
   ============================================================================
   Setzt Standard-Browser-Styles zurück und definiert box-sizing für alle
   Elemente. Dies sorgt für konsistentes Verhalten über alle Browser. */

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

/* ============================================================================
   CSS CUSTOM PROPERTIES (CSS-VARIABLEN)
   ============================================================================
   Zentrale Definition aller Farben für einfache Wartung und Konsistenz.
   Verwendung: var(--variablen-name)
   
   ORANGE-TÖNE:
   - primary-orange: Haupt-Akzentfarbe für Buttons, Links, Hover
   - dark-orange: Dunklere Variante für Hover-Zustände
   - logo-orange: Für Logo-bezogene Elemente
   
   NEUTRALE TÖNE:
   - stone-beige: Warmer Hintergrund (Hero, Sections)
   - stone-gray: Heller Hintergrund (Services, Kontakt)
   - stone-dark: Für Rahmen und Trennlinien
   - warm-white: Fast-Weiß für Karten und Formulare
   
   DUNKLE TÖNE:
   - deep-black: Für Team-Section Hintergrund
   - charcoal: Für Footer
   
   TEXT-FARBEN:
   - text-dark: Haupttextfarbe (fast schwarz)
   - text-light: Sekundärtext (grau) */

:root {
    /* Primärfarben - Orange */
    --primary-orange: #FF6600;
    --dark-orange: #E55100;
    --logo-orange: #FF6600;
    
    /* Neutrale Farben - Beige/Grau */
    --stone-beige: #F5F2ED;
    --stone-gray: #E8E3DA;
    --stone-dark: #D4CFC4;
    --warm-white: #FEFEFE;
    
    /* Dunkle Farben */
    --deep-black: #1A1A1A;
    --charcoal: #2D2D2D;
    --warm-gray: #6B6B6B;
    --light-gray: #A8A8A8;
    
    /* Textfarben */
    --text-dark: #1A1A1A;
    --text-light: #6B6B6B;
}

/* ============================================================================
   BODY - GRUNDLEGENDE SEITENEINSTELLUNGEN
   ============================================================================ */

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;                    /* Angenehmer Zeilenabstand */
    color: var(--text-dark);
    background: var(--warm-white);
    font-size: 16px;                     /* Basis-Schriftgröße */
    letter-spacing: -0.01em;             /* Leicht engerer Buchstabenabstand */
}

/* ============================================================================
   TYPOGRAFIE
   ============================================================================
   Überschriften und Display-Klassen für verschiedene Textgrößen.
   
   .display-xl: Sehr große Überschriften (Hero Section)
   .display-lg: Große Section-Überschriften
   .text-lg: Größerer Fließtext */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;             /* Engerer Abstand für Überschriften */
    line-height: 1.2;
}

/* Responsive Überschrift: 3rem bis 6rem je nach Bildschirmbreite */
.display-xl {
    font-size: clamp(3rem, 8vw, 6rem);   /* clamp(min, preferred, max) */
    font-weight: 700;
    line-height: 0.9;                    /* Enger Zeilenabstand für Impact */
    letter-spacing: -0.04em;
}

/* Responsive Überschrift: 2.5rem bis 4rem */
.display-lg {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Größerer Fließtext für Beschreibungen */
.text-lg {
    font-size: 1.125rem;                 /* 18px */
    line-height: 1.7;
}

/* ============================================================================
   PRELOADER
   ============================================================================
   Ladeanimation, die beim Seitenaufruf angezeigt wird.
   Wird durch JavaScript (.hidden Klasse) ausgeblendet.
   
   AUFBAU:
   - Vollbild-Overlay (position: fixed)
   - Zentrierter Spinner (Animation: spin)
   - "Laden..." Text mit Puls-Animation */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--warm-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;                       /* Über allen anderen Elementen */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Ausgeblendeter Zustand (durch JavaScript) */
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Rotierender Spinner-Kreis */
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--stone-gray);
    border-top: 4px solid var(--primary-orange);  /* Orange Teil rotiert */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

/* Spinner-Rotation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Lade-Text mit Puls-Animation */
.preloader-text {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    animation: pulse 2s ease-in-out infinite;
}

/* Puls-Animation: Deckkraft variiert */
@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================================================
   NAVIGATION - DESKTOP
   ============================================================================
   Fixierte Navigationsleiste am oberen Bildschirmrand.
   Glasmorphismus-Effekt durch halbtransparenten Hintergrund + Blur.
   
   STRUKTUR:
   - navbar: Äußerer Container (fixed)
   - nav-container: Innerer Container mit max-width
   - logo: Links positioniert
   - nav-menu: Rechts positioniert (Menüpunkte) */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(254, 254, 254, 0.95);       /* Halbtransparentes Weiß */
    backdrop-filter: blur(20px);                  /* Glasmorphismus-Effekt */
    border-bottom: 1px solid rgba(232, 227, 218, 0.3);
    z-index: 1000;
    box-shadow: none;                             /* Kein Schatten initial */
    transition: all 0.3s ease, box-shadow 0.3s ease; /* Sanfte Änderungen inkl. Schatten */
}

/* Scrolled-Zustand: Schatten erscheint beim Scrollen */
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.15); /* Orange-farbiger Schatten */
    background: rgba(254, 254, 254, 0.98);          /* Etwas weniger transparent */
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
}

/* Logo mit Hover-Effekt */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;                               /* Über Mobile-Nav */
}

.logo img {
    height: 140px;
    width: auto;
    transition: transform 0.3s ease;             /* Nur Zoom-Transition */
}

.logo:hover img {
    transform: scale(1.05);                      /* Leichter Zoom ohne Farbänderung */
}

/* Desktop-Menü (horizontal) */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;                                   /* Abstand zwischen Links */
}

/* Menü-Links mit animierter Unterstreichung */
.nav-menu a {
    position: relative;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.10rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    overflow: hidden;
}

/* Animierte Unterstreichung (Pseudo-Element) */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;                                    /* Initial unsichtbar */
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--dark-orange));
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

/* Unterstreichung bei Hover und aktivem Zustand */
.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Aktiver Menüpunkt (durch JavaScript gesetzt) */
.nav-menu a.active {
    color: var(--primary-orange);
    font-weight: 700;
}

.nav-menu a:hover {
    color: var(--dark-orange);
    transform: translateY(-1px);
}

/* ============================================================================
   NAVIGATION - MOBILE
   ============================================================================
   Slide-in Menü von rechts für mobile Geräte.
   
   KOMPONENTEN:
   - burger-menu: Hamburger-Button (3 Linien)
   - mobile-nav: Slide-in Panel
   - nav-overlay: Dunkler Hintergrund-Overlay */

/* Burger-Button (initial versteckt, sichtbar auf Mobile) */
.burger-menu {
    display: none;                               /* Versteckt auf Desktop */
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

/* Die drei Linien des Burger-Buttons */
.burger-line {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Animation: Burger wird zum X */
.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;                                  /* Mittlere Linie verschwindet */
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Panel (Slide-in von rechts) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;                                /* Initial außerhalb */
    width: 300px;
    height: 100vh;
    background: var(--warm-white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 100px;                          /* Platz für Logo-Bereich */
}

/* Aktiver Zustand: Panel eingefahren */
.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    border-bottom: 1px solid var(--stone-gray);
}

/* Mobile Menü-Links */
.mobile-nav a {
    display: block;
    padding: 1.5rem 2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background: var(--stone-beige);
    color: var(--primary-orange);
    transform: translateX(10px);                 /* Einrücken bei Hover */
}

.mobile-nav a.active {
    background: var(--stone-beige);
    color: var(--primary-orange);
    border-left: 4px solid var(--primary-orange);
}

/* Dunkler Overlay-Hintergrund */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================================
   HERO SECTION
   ============================================================================
   Vollbild-Banner mit wechselnden Hintergrundbildern (Crossfade).
   
   AUFBAU:
   - .hero-bg-1 / .hero-bg-2: Zwei Layer für sanften Übergang
   - ::before Overlay: Halbtransparentes Cremeweiß
   - Inhalt: Eyebrow, H1, Beschreibung, CTA-Button
   
   Die Slideshow wird in scripts.js gesteuert (5s Intervall). */

.hero {
    min-height: 100vh;
    background: var(--stone-beige);
    display: flex;
    align-items: center;
    padding: 0 3rem;
    position: relative;
    overflow: hidden;
}

/* Hintergrund-Layer für Crossfade-Animation */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.2s ease-in-out;        /* Sanfte Überblendung */
}

.hero-bg-1 {
    z-index: 0;
    opacity: 1;
}

.hero-bg-2 {
    z-index: 1;
    opacity: 0;
}

/* Halbtransparentes Overlay über den Hintergrundbildern - dezent warm */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 245, 235, 0.72);       /* Warmes Cremeweiß */
    mix-blend-mode: normal;
    pointer-events: none;                         /* Klicks durchlassen */
    z-index: 2;                                   /* Über den Hintergrund-Layern */
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 3;                                  /* Über dem Overlay (z-index: 2) */
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

/* Kleine Überschrift über dem Haupttitel */
.hero-eyebrow {
    font-size: 0.875rem;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.hero h1 {
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--charcoal);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* Call-to-Action Button */
.hero-cta {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-cta:hover {
    background: var(--dark-orange);
    transform: translateY(-1px);
}

/* ============================================================================
   PROCESS SECTION
   ============================================================================
   Zeigt den Arbeitsprozess in drei Schritten.
   3-Spalten-Grid auf Desktop, 1 Spalte auf Mobile. */

.process-section {
    padding: 8rem 3rem;
    background: var(--warm-white);
}

.process-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 3-Spalten-Grid für Prozess-Schritte */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

.process-item {
    text-align: left;
}

/* Icons (PNG) */
.process-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Nummerierung (001, 002, 003) */
.process-number {
    font-size: 0.875rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.process-item h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.process-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================================================
   SERVICES SECTION
   ============================================================================
   Präsentiert die vier Hauptleistungsbereiche.
   2x2-Grid auf Desktop, 1 Spalte auf Mobile.
   
   HOVER-EFFEKTE:
   - Karte hebt sich an (translateY)
   - Schlagschatten erscheint
   - Icon zoomed und bekommt orange Glühen */

.services-section {
    padding: 8rem 3rem;
    background: var(--stone-gray);
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Header (Eyebrow + Überschrift) */
.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-eyebrow {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* 2x2-Grid für Service-Karten */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: stretch;
}

/* Einzelne Service-Karte */
.service-card {
    background: var(--warm-white);
    padding: 3rem;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hover: Karte hebt sich an + Schlagschatten */
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Service-Icons mit Hover-Zoom */
.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    opacity: 0.9;
    transition: all 0.6s ease-out;
    cursor: pointer;
    transform: scale(1);
}

/* Hover: Icon wird größer + orange Glühen */
.service-card:hover .service-icon {
    transform: scale(1.15);                      /* 15% größer */
    opacity: 1;
    filter: drop-shadow(0 4px 8px rgba(255, 102, 0, 0.3));
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;                                /* Füllt verfügbaren Platz */
}

/* Link am unteren Rand der Karte */
.service-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    margin-top: auto;
}

/* ============================================================================
   GALLERY SECTION (LEGACY - NICHT MEHR IN VERWENDUNG)
   ============================================================================
   Diese Styles wurden für eine frühere Galerie-Implementation verwendet.
   Die Galerie ist jetzt auf referenzen.html ausgelagert.
   Die Styles bleiben zur Kompatibilität erhalten. */

.gallery-section {
    padding: 8rem 3rem;
    background: var(--stone-beige);
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-scroll-container {
    position: relative;
    margin-top: 4rem;
}

.gallery-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
}

.gallery-wrapper::-webkit-scrollbar {
    display: none;
}

.gallery-grid {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding: 0 1rem;
}

.gallery-item {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: -25px;
}

.gallery-nav.next {
    right: -25px;
}

/* Gallery Status Messages (Legacy) */
.gallery-status {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-status.loading {
    color: var(--primary-orange);
}

.gallery-status.error {
    color: #ff4444;
}

.gallery-status.empty {
    color: var(--text-light);
}

.gallery-status.auto-generated {
    border: 2px dashed var(--primary-orange);
    border-radius: 8px;
    background: rgba(255, 102, 0, 0.05);
}

.gallery-status .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.gallery-status .message {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.gallery-status .submessage {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.5;
}

.auto-badge {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

/* ============================================================================
   LIGHTBOX MODAL (LEGACY - NICHT MEHR IN VERWENDUNG)
   ============================================================================
   Wurde für die Galerie auf der Hauptseite verwendet.
   Die Lightbox ist jetzt in referenzen.css definiert. */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    padding: 2rem;
    background: white;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.lightbox-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.lightbox-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.lightbox-detail {
    font-size: 0.9rem;
}

.lightbox-detail strong {
    color: var(--primary-orange);
    display: block;
    margin-bottom: 0.2rem;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: var(--primary-orange);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--primary-orange);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 1rem;
}

.lightbox-nav.next {
    right: 1rem;
}

/* ============================================================================
   TEAM SECTION - VARIANTE A: TEAMBILD-HERO + PORTRAIT-KARTEN
   ============================================================================
   
   AUFBAU:
   1. Team-Hero: Teambild.jpg als atmosphaerischer Hintergrund
   2. Portrait-Grid: 4 runde Portraits als Karten
   ============================================================================ */

.team-section {
    padding: 0;
    background: var(--deep-black);
    color: white;
    overflow: hidden;
}

.team-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ==================== TEAM HERO ==================== */

.team-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@keyframes teamHeroZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1.0); }
}

.team-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center 15%;
    background-repeat: no-repeat;
    animation: teamHeroZoom 10s ease-in-out infinite alternate;
}

.team-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.55) 0%,
        rgba(26, 26, 26, 0.65) 50%,
        rgba(26, 26, 26, 0.95) 100%
    );
}

.team-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.team-hero-content .section-eyebrow {
    color: var(--primary-orange);
}

.team-hero-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.team-hero-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--light-gray);
    max-width: 550px;
    margin: 0 auto;
}

/* ==================== PORTRAIT GRID ==================== */

.team-portraits {
    background: var(--deep-black);
    padding: 4rem 3rem 6rem;
    margin-top: -2rem;
    position: relative;
    z-index: 3;
}

.team-portraits-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-portraits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

/* ==================== PORTRAIT-KARTE ==================== */

.team-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 12px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 40%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.4s ease,
                border-color 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(
        to bottom,
        rgba(255, 102, 0, 0.03) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 102, 0, 0.04) 100%
    );
    border-color: rgba(255, 102, 0, 0.12);
}

/* ==================== RUNDES PORTRAIT ==================== */

.team-portrait {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
}

.team-portrait img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.6s ease;
    transform: scale(1);
    will-change: transform;
    position: relative;
    z-index: 2;
}

.team-card:hover .team-portrait img {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.team-portrait-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.15);
    opacity: 1;
    will-change: opacity;
    z-index: 1;
}

/* ==================== KARTEN-INFO ==================== */

.team-card-info {
    padding-top: 0.5rem;
}

.team-card .team-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: white;
}

.team-card .team-role {
    color: var(--primary-orange);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.team-card .team-quote {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--light-gray);
    margin-top: 1rem;
    padding: 0 0.5rem;
    opacity: 0.8;
    line-height: 1.5;
    border: none;
    quotes: none;
    transition: opacity 0.4s ease;
}

.team-card .team-quote::before,
.team-card .team-quote::after {
    content: none;
}

.team-card:hover .team-quote {
    opacity: 1;
}

/* ============================================================================
   CONTACT SECTION
   ============================================================================
   Zwei-Spalten-Layout für Kontaktinformationen und Formular.
   
   AUFBAU:
   - Linke Spalte: 3 Info-Boxen (Anschrift, Kontakt, Öffnungszeiten)
   - Rechte Spalte: Kontaktformular
   
   Die Info-Boxen haben einen orangen linken Rahmen und
   heben sich bei Hover leicht an. */

.contact-section {
    padding: 8rem 3rem;
    background: var(--stone-gray);
    color: var(--text-dark);
}

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

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
}

/* Zwei-Spalten-Layout für Kontakt */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-top: 4rem;
    align-items: stretch;                        /* Beide Spalten gleiche Höhe */
}

/* Linke Spalte: Kontaktinformationen */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-self: stretch;
}

/* Einzelne Info-Box */
.contact-info-group {
    background: var(--warm-white);
    padding: 2rem;
    border-left: 3px solid var(--primary-orange);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Hover: Leichte Anhebung + Schatten */
.contact-info-group:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.contact-info-group h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Letzte Info-Box füllt restlichen Platz für bündigen unteren Rand */
.contact-info-group:last-child {
    flex-grow: 1;
}

.contact-info-group .icon {
    width: 24px;
    height: 24px;
}

.contact-info-group p,
.contact-info-group a {
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-info-group a:hover {
    color: var(--primary-orange);
}

/* Öffnungszeiten-Grid */
.opening-hours {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.opening-hours span:first-child {
    color: var(--text-light);
}

/* ============================================================================
   CONTACT FORM
   ============================================================================
   Formular für Projektanfragen.
   Felder mit Focus-Effekt und Validierungs-Styles. */

.contact-form {
    background: var(--warm-white);
    padding: 3rem;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Hover: Leichte Anhebung + Schatten */
.contact-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.contact-form h3 {
    color: var(--primary-orange);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

/* Einzelne Formularfelder */
.form-group {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Input, Textarea, Select Styling */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--stone-beige);
    border: 1px solid var(--stone-dark);
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Focus-Zustand: Orange Rahmen */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: var(--warm-white);
}

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

/* Submit-Button */
.form-submit {
    background: var(--primary-orange);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.form-submit:hover {
    background: var(--dark-orange);
    transform: translateY(-1px);
}

/* Zwei Felder nebeneinander */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Social Links (nicht in Verwendung) */
.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--stone-dark);
    color: var(--text-dark);
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
}

/* ============================================================================
   SCROLL TO TOP BUTTON
   ============================================================================
   Runder oranger Button unten rechts.
   Erscheint nach 300px Scroll (gesteuert durch scripts.js). */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-orange);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.3);
}

/* Sichtbarer Zustand (durch JavaScript) */
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--dark-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

/* Pfeil-Icon (SVG) */
.scroll-to-top svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-1px);
}

/* ============================================================================
   FOOTER
   ============================================================================
   Einfacher Footer mit Copyright-Hinweis. */

.footer {
    background: var(--charcoal);
    color: var(--light-gray);
    text-align: center;
    padding: 3rem;
    font-size: 0.875rem;
}

/* ============================================================================
   ANIMATIONEN
   ============================================================================
   CSS-Klassen für Einblend-Animationen.
   Die Animationen werden durch Intersection Observer in scripts.js
   ausgelöst, wenn Elemente in den Viewport scrollen.
   
   KLASSEN:
   - .fade-in: Standardanimation (0.6s → 1.2s geändert)
   - .process-fade-in: Für Prozess-Schritte
   - .process-fade-in-delay-1/2: Mit Verzögerung */

/* Standard Fade-In (langsam: 1.2s) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s ease;                   /* 1.2 Sekunden */
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Prozess-Animationen (0.8s mit Cubic-Bezier) */
.process-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Verzögerte Animation (0.6s Delay) */
.process-fade-in-delay-1 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-fade-in-delay-1.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Verzögerte Animation (1.2s Delay) */
.process-fade-in-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-fade-in-delay-2.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================
   Anpassungen für verschiedene Bildschirmgrößen.
   
   BREAKPOINTS:
   - max-width: 1024px (Tablet)
   - max-width: 768px (Mobile) */

/* ==================== TABLET (≤ 1024px) ==================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1.2rem 2rem;
    }

    .logo img {
        height: 115px;
    }

    /* Reduziertes Padding für alle Sections */
    .hero,
    .process-section,
    .services-section,
    .gallery-section,
    .contact-section {
        padding: 6rem 2rem;
    }

    /* Prozess: 1 Spalte */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Services: 1 Spalte */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Kontakt: 1 Spalte */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Formular: 1 Spalte */
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==================== MOBILE (≤ 768px) ==================== */
@media (max-width: 768px) {
    /* Desktop-Menü ausblenden */
    .nav-menu {
        display: none;
    }

    /* Burger-Menü anzeigen */
    .burger-menu {
        display: flex;
    }

    /* Kleineres Logo */
    .logo img {
        height: 80px;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    /* Noch kleineres Padding für Sections */
    .hero,
    .process-section,
    .services-section,
    .gallery-section,
    .contact-section {
        padding: 4rem 1.5rem;
    }

    /* Kleinere Prozess-Icons */
    .process-icon {
        width: 50px;
        height: 50px;
    }

    /* Service-Icons mit Touch-optimierten Transitions */
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 2rem;
        opacity: 0.9;
        cursor: pointer;
        transform: scale(1);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                   opacity 0.3s ease, 
                   filter 0.3s ease;
        will-change: transform, opacity, filter;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    /* Kleinere Gallery-Items */
    .gallery-item {
        width: 200px;
        height: 140px;
    }

    /* Gallery-Navigation ausblenden (Touch-Swipe) */
    .gallery-nav {
        display: none;
    }

    /* Lightbox-Anpassungen */
    .lightbox-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }

    .lightbox-info {
        padding: 1.5rem;
    }

    .lightbox-details {
        grid-template-columns: 1fr;
    }

    /* Kleinerer Scroll-to-Top Button */
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================================================
   AUSBILDUNGS-BANNER
   ============================================================================
   Slide-In Banner für Ausbildungsplatz-Werbung.
   Erscheint nach 3 Sekunden im Hero-Bereich rechts oben (unterhalb der Navigation).
   
   ANIMATIONEN:
   - Slide-In von rechts (transform: translateX)
   - Hover: Leichter Zoom + stärkerer Schatten
   
   INTERAKTION:
   - Klick auf Banner: Scroll zu Kontakt mit Betreff
   - Klick auf X: Banner ausblenden (Session) */

.ausbildung-banner {
    position: absolute;
    top: 240px;                                  /* Unterhalb der Navigation mit Abstand */
    right: -400px;                               /* Startet außerhalb (rechts) */
    z-index: 10;
    transition: right 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.3s ease,
                box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Sichtbarer Zustand (durch JavaScript) */
.ausbildung-banner.visible {
    right: 3rem;
}

/* Ausgeblendeter Zustand (durch User geschlossen) */
.ausbildung-banner.hidden {
    right: -400px !important;
    opacity: 0;
    pointer-events: none;
}

/* Hover-Effekt */
.ausbildung-banner:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Link-Container */
.ausbildung-link {
    display: block;
    text-decoration: none;
}

/* Banner-Bild */
.ausbildung-img {
    display: block;
    width: 320px;
    height: auto;
    border-radius: 8px;
}

/* Schließen-Button */
.ausbildung-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 11;
}

.ausbildung-close svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

.ausbildung-close:hover {
    background: var(--primary-orange);
    transform: scale(1.1);
}

/* ==================== RESPONSIVE: TABLET (≤ 1024px) ==================== */
@media (max-width: 1024px) {
    .ausbildung-banner.visible {
        right: 2rem;
    }
    
    .ausbildung-img {
        width: 280px;
    }
}

/* ==================== RESPONSIVE: MOBILE (≤ 768px) ==================== */
@media (max-width: 768px) {
    .ausbildung-banner {
        /* Auf Mobile: oben zentriert, unter Navigation */
        right: auto;
        left: 50%;
        top: 140px;                              /* Unterhalb der mobilen Navigation mit Abstand */
        transform: translateX(-50%) translateY(-150%);
    }
    
    .ausbildung-banner.visible {
        right: auto;
        transform: translateX(-50%) translateY(0);
    }
    
    .ausbildung-banner.hidden {
        transform: translateX(-50%) translateY(-150%);
    }
    
    .ausbildung-banner:hover {
        transform: translateX(-50%) scale(1.02);
    }
    
    .ausbildung-img {
        width: 260px;
    }
    
    .ausbildung-close {
        width: 32px;
        height: 32px;
    }
    
    .ausbildung-close svg {
        width: 18px;
        height: 18px;
    }
}

/* ==================== RESPONSIVE: SMALL MOBILE (≤ 480px) ==================== */
@media (max-width: 480px) {
    .ausbildung-img {
        width: 220px;
    }
}

/* ==================== reCAPTCHA CONSENT BOX (DSGVO/TTDSG) ==================== */
/* Consent-Box wird angezeigt bevor reCAPTCHA geladen wird */

.recaptcha-consent-box {
    background: linear-gradient(135deg, var(--stone-beige) 0%, #e8e0d4 100%);
    border: 2px solid var(--primary-orange);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.recaptcha-consent-box h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.recaptcha-consent-box p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.recaptcha-consent-box .consent-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.85rem;
}

.recaptcha-consent-box .consent-details ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.recaptcha-consent-box .consent-details li {
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.consent-button {
    background: linear-gradient(45deg, var(--primary-orange), #ff8533);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.consent-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
    background: linear-gradient(45deg, #ff8533, #ffa366);
}

.consent-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Formular deaktiviert/versteckt */
.form-disabled,
#contactForm.form-disabled {
    display: none !important;
}

.form-enabled,
#contactForm.form-enabled {
    display: block !important;
    animation: formFadeIn 0.5s ease;
}

@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ladeanzeige */
.loading-recaptcha {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinRecaptcha 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spinRecaptcha {
    to { transform: rotate(360deg); }
}

/* Responsive Anpassungen für Consent-Box */
@media (max-width: 768px) {
    .recaptcha-consent-box {
        padding: 1.5rem;
    }
    
    .recaptcha-consent-box h3 {
        font-size: 1.1rem;
    }
    
    .consent-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ============================================================================
   WERKSTATT SECTION - IMPRESSIONEN (Option 2)
   ============================================================================
   Immersive Galerie mit Werkstatt-Fotos.
   Cineastisches Design mit großen Bildern und poetischen Texten.
   
   AUFBAU:
   - Hero-Bereich mit Vollbild-Hintergrund
   - Bento-Grid Galerie mit unterschiedlichen Bildgrößen
   - Zwischentext/Zitat
   - Call-to-Action mit Statistiken */

.werkstatt-section {
    /* Warmes Schwarz mit leichtem Holz-/Braun-Stich */
    background: #1F1C1A;
    color: white;
    overflow: hidden;
    /* Feiner oranger Schatten am unteren Rand als Übergang zur Team-Sektion */
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.15);
}

/* ==================== WERKSTATT HERO ==================== */
.werkstatt-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ken-Burns Zoom-Animation für Werkstatt-Hero */
@keyframes werkstattHeroZoom {
    from { transform: scale(1.1); }
    to   { transform: scale(1.0); }
}

.werkstatt-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Automatischer Zoom: 8s rein, 8s raus, endlos */
    animation: werkstattHeroZoom 8s ease-in-out infinite alternate;
}

.werkstatt-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.92) 0%,
        rgba(26, 26, 26, 0.75) 50%,
        rgba(26, 26, 26, 0.85) 100%
    );
}

.werkstatt-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.werkstatt-hero-content h2 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, var(--primary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.werkstatt-hero-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--light-gray);
    max-width: 650px;
    margin: 0 auto 3rem;
}

.werkstatt-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-orange);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: bounceDown 2s ease-in-out infinite;
}

.werkstatt-scroll-hint svg {
    width: 28px;
    height: 28px;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ==================== WERKSTATT GALERIE ==================== */
.werkstatt-gallery {
    padding: 6rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Zeilen-Container */
.werkstatt-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.werkstatt-row-reverse {
    grid-template-columns: 1fr 1.5fr;
}

.werkstatt-row-triple {
    grid-template-columns: repeat(3, 1fr);
}

/* Stack für vertikale Anordnung */
.werkstatt-item-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Einzelnes Galerie-Item */
.werkstatt-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.werkstatt-item-large {
    aspect-ratio: 16/10;
}

.werkstatt-item-small {
    aspect-ratio: 16/9;
    flex: 1;
}

.werkstatt-row-triple .werkstatt-item {
    aspect-ratio: 4/3;
}

/* Bild-Wrapper mit Zoom-Effekt */
.werkstatt-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    /* GPU-Beschleunigung von Anfang an aktivieren */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.werkstatt-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Kein Zoom-Effekt - nur Filter-Änderung bei Hover */
    filter: brightness(0.85) saturate(0.9);
    transition: filter 0.5s ease;
}

.werkstatt-item:hover .werkstatt-img-wrapper img {
    /* Leichte Abdunklung bei Hover für bessere Lesbarkeit des Overlays */
    filter: brightness(0.6) saturate(1);
}

/* Text-Overlay */
.werkstatt-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        transparent 70%
    );
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.werkstatt-item:hover .werkstatt-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Nummerierung */
.werkstatt-item-number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-orange);
    opacity: 0.8;
}

.werkstatt-item-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.werkstatt-item-overlay p {
    font-size: 0.95rem;
    color: var(--light-gray);
    line-height: 1.6;
    max-width: 90%;
}

/* Kleines Item: Kompaktere Texte */
.werkstatt-item-small .werkstatt-item-overlay h3 {
    font-size: 1.2rem;
}

.werkstatt-item-small .werkstatt-item-overlay p {
    font-size: 0.85rem;
}

/* ==================== WERKSTATT ZITAT ==================== */
.werkstatt-quote {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.werkstatt-quote blockquote {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: white;
    position: relative;
}

.werkstatt-quote blockquote::before {
    content: '„';
    position: absolute;
    top: -0.5em;
    left: -0.5em;
    font-size: 4em;
    color: var(--primary-orange);
    opacity: 0.3;
    font-style: normal;
    line-height: 1;
}

/* ==================== WERKSTATT CTA ==================== */
.werkstatt-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.werkstatt-cta-content {
    max-width: 600px;
    text-align: center;
}

.werkstatt-cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.werkstatt-cta-content p {
    color: var(--light-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.werkstatt-cta-button {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.werkstatt-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.werkstatt-cta-button:hover {
    background: var(--dark-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.3);
}

.werkstatt-cta-button:hover::before {
    left: 100%;
}

/* Statistiken */
.werkstatt-stats {
    display: flex;
    gap: 4rem;
}

.werkstatt-stat {
    text-align: center;
}

.werkstatt-stat .stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-orange);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.werkstatt-stat .stat-label {
    font-size: 0.85rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==================== TEAM SECTION RESPONSIVE: TABLET (≤ 1024px) ==================== */
@media (max-width: 1024px) {
    .team-hero {
        min-height: 45vh;
    }
    
    .team-portraits {
        padding: 3rem 2rem 5rem;
    }
    
    .team-portraits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .team-portrait {
        width: 160px;
        height: 160px;
    }
}

/* ==================== TEAM SECTION RESPONSIVE: MOBILE (≤ 768px) ==================== */
@media (max-width: 768px) {
    .team-hero {
        min-height: 40vh;
    }
    
    .team-hero-bg {
        background-attachment: scroll;
        animation: none;
    }
    
    .team-hero-content h2 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .team-hero-text {
        font-size: 1rem;
    }
    
    .team-portraits {
        padding: 2rem 1.5rem 4rem;
    }
    
    .team-portraits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-portrait {
        width: 130px;
        height: 130px;
    }
    
    .team-card {
        padding: 1rem 0.5rem;
    }
    
    .team-card .team-name {
        font-size: 1rem;
    }
    
    .team-card .team-role {
        font-size: 0.8rem;
    }
    
    .team-card .team-quote {
        font-size: 0.8rem;
        opacity: 0.85;
    }
    
    .team-card:hover {
        transform: none;
        background: transparent;
    }
    
    .team-card:hover .team-portrait img {
        transform: none !important;
    }
}

/* ==================== TEAM SECTION RESPONSIVE: SMALL MOBILE (≤ 480px) ==================== */
@media (max-width: 480px) {
    .team-hero {
        min-height: 35vh;
    }
    
    .team-portrait {
        width: 110px;
        height: 110px;
    }
    
    .team-portraits-grid {
        gap: 1rem;
    }
    
    .team-card .team-name {
        font-size: 0.9rem;
    }
    
    .team-card .team-quote {
        display: none;
    }
}

/* ==================== WERKSTATT RESPONSIVE: TABLET (≤ 1024px) ==================== */
@media (max-width: 1024px) {
    .werkstatt-gallery {
        padding: 4rem 2rem;
    }
    
    .werkstatt-row,
    .werkstatt-row-reverse {
        grid-template-columns: 1fr;
    }
    
    .werkstatt-row-triple {
        grid-template-columns: 1fr 1fr;
    }
    
    .werkstatt-row-triple .werkstatt-item:last-child {
        grid-column: span 2;
    }
    
    .werkstatt-item-large {
        aspect-ratio: 16/9;
    }
    
    .werkstatt-cta {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .werkstatt-cta-content {
        max-width: 100%;
    }
    
    .werkstatt-stats {
        gap: 3rem;
    }
    
    .werkstatt-stat .stat-number {
        font-size: 2.5rem;
    }
}

/* ==================== WERKSTATT RESPONSIVE: MOBILE (≤ 768px) ==================== */
@media (max-width: 768px) {
    .werkstatt-hero {
        min-height: 90vh;
    }
    
    .werkstatt-hero-bg {
        background-attachment: scroll; /* Parallax deaktivieren auf Mobile */
    }
    
    .werkstatt-hero-content h2 {
        font-size: 2.5rem;
    }
    
    .werkstatt-hero-text {
        font-size: 1rem;
    }
    
    .werkstatt-gallery {
        padding: 3rem 1.5rem;
    }
    
    .werkstatt-row,
    .werkstatt-row-reverse,
    .werkstatt-row-triple {
        grid-template-columns: 1fr;
    }
    
    .werkstatt-row-triple .werkstatt-item:last-child {
        grid-column: span 1;
    }
    
    .werkstatt-item-stack {
        flex-direction: column;
    }
    
    .werkstatt-item-large,
    .werkstatt-item-small,
    .werkstatt-row-triple .werkstatt-item {
        aspect-ratio: 4/3;
    }
    
    .werkstatt-item-overlay {
        opacity: 1;
        transform: translateY(0);
        padding: 1.5rem;
    }
    
    .werkstatt-item-overlay h3 {
        font-size: 1.2rem;
    }
    
    .werkstatt-item-overlay p {
        font-size: 0.85rem;
    }
    
    .werkstatt-quote {
        padding: 3rem 1rem;
    }
    
    .werkstatt-quote blockquote {
        font-size: 1.3rem;
    }
    
    .werkstatt-quote blockquote::before {
        font-size: 2.5em;
        top: -0.3em;
        left: -0.2em;
    }
    
    .werkstatt-cta {
        padding: 3rem 1.5rem;
    }
    
    .werkstatt-cta-content h3 {
        font-size: 1.5rem;
    }
    
    .werkstatt-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    
    .werkstatt-stat {
        flex: 0 0 40%;
    }
    
    .werkstatt-stat .stat-number {
        font-size: 2rem;
    }
}
