/* ==========================================================================
   LOKALE SCHRIFTEN (SELF-HOSTED)
   ========================================================================== */
/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/Inter-Light.woff2) format('woff2'), url(fonts/Inter-Light.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Inter-Regular.woff2) format('woff2'), url(fonts/Inter-Regular.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Inter-Medium.woff2) format('woff2'), url(fonts/Inter-Medium.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Inter-Bold.woff2) format('woff2'), url(fonts/Inter-Bold.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/Inter-ExtraBold.woff2) format('woff2'), url(fonts/Inter-ExtraBold.ttf) format('truetype');
}

/* Playfair Display */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/PlayfairDisplay-Bold.woff2) format('woff2'), url(fonts/PlayfairDisplay-Bold.ttf) format('truetype');
}

/* Courgette */
@font-face {
  font-family: 'Courgette';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Courgette-Regular.woff2) format('woff2'), url(fonts/Courgette-Regular.ttf) format('truetype');
}

/* ==========================================================================
   DESIGN-SYSTEM & GRUNDEINSTELLUNGEN
   ========================================================================== */
:root {
    --background-color: #0a0a0a;
    --background-subtle: #1c1c1e;
    --background-elegant: #111113;
    --text-color-primary: #f5f5f7;
    --text-color-secondary: #8e8e93;
    --accent-color-blue: #007aff;
    --accent-color-blue-hover: #0a84ff;
    --accent-color-red: #ff3b30;
    --border-color: #3a3a3c;
    --animation-cubic-velvet: cubic-bezier(0.19, 1, 0.22, 1);
    --border-radius-soft: 20px;
    --border-radius-pill: 50px;
    --border-radius-card: 30px;
    --border-radius-input: 12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.is-loading, body.modal-open { overflow: hidden; }

body.is-dragging {
    cursor: grabbing;
    user-select: none;
}

a, button, .project-slide {
    cursor: pointer;
}

/* Blur-Effekt, wenn ein Modal offen ist */
.content-blur {
    transition: filter 0.5s ease-in-out;
}
body.modal-open .content-blur {
    filter: blur(8px);
}

/* ==========================================================================
   ANIMIERTER HINTERGRUND
   ========================================================================== */
.particle-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
.particle { position: absolute; border-radius: 50%; opacity: 0; animation: float-up 20s linear infinite; }
@keyframes float-up { 0% { transform: translateY(100vh) scale(0.5); opacity: 0; } 10% { opacity: 0.6; } 90% { opacity: 0.6; } 100% { transform: translateY(-10vh) scale(1); opacity: 0; } }
.particle.blue { background-color: var(--accent-color-blue); }
.particle.red { background-color: var(--accent-color-red); }
.particle.white { background-color: rgba(255, 255, 255, 0.3); }

/* ==========================================================================
   STARTANIMATION (PRE-LOADER)
   ========================================================================== */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--background-color); display: flex; justify-content: center; align-items: center; z-index: 10001; transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out; }
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; }
.preloader-logo { 
    font-weight: 700; 
    font-size: clamp(2rem, 6vw, 3.5rem); 
    background: linear-gradient(90deg, var(--accent-color-blue), var(--accent-color-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

@keyframes elegant-reveal {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.preloader-logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(25px);
  animation: elegant-reveal 0.8s var(--animation-cubic-velvet) forwards;
}

.preloader-tagline { 
    font-size: clamp(1.2rem, 3vw, 1.5rem); 
    color: var(--text-color-secondary); 
    opacity: 0; 
    animation: fadeIn 1.2s 1s ease forwards; 
    font-family: 'Courgette', cursive;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ==========================================================================
   NAVIGATION & SCROLL-LEISTE
   ========================================================================== */
#scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color-blue), var(--accent-color-red));
    width: 0;
    z-index: 99999;
    transition: width 0.25s ease;
}

.main-nav { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 80px; 
    background-color: rgba(10, 10, 10, 0.75); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px;
    z-index: 1000; 
    box-sizing: border-box; 
    transform: translateY(-100%); 
    animation: slideDown 1s 1.5s var(--animation-cubic-velvet) forwards; 
}
@keyframes slideDown { to { transform: translateY(0); } }
.nav-logo a { font-weight: 700; font-size: 1.2rem; color: var(--text-color-primary); text-decoration: none; }
.nav-links { display: none; }
.nav-cta-button { display: none; }
.mobile-nav-toggle { display: block; cursor: pointer; z-index: 1001; }
.mobile-nav-toggle span { display: block; width: 25px; height: 3px; background-color: var(--text-color-primary); margin: 5px 0; transition: all 0.3s ease-in-out; }

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--animation-cubic-velvet), visibility 0.5s ease;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav-overlay.is-open .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links a {
    display: block;
    padding: 20px;
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: var(--text-color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.3s ease;
}
.mobile-nav-links a:hover {
    color: var(--accent-color-blue);
    transform: scale(1.1);
}

.mobile-nav-close {
    position: absolute;
    top: 30px;
    right: 25px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.mobile-nav-close:hover {
    transform: rotate(90deg);
}

/* Tablet und Desktop Stile */
@media (min-width: 768px) {
    .main-nav {
        padding: 0 40px;
    }
    .nav-logo a {
        font-size: 1.5rem;
    }
    .mobile-nav-toggle {
        display: none;
    }
    .nav-links { 
        display: flex; 
        gap: 30px; 
    }
    .nav-links a { color: var(--text-color-secondary); text-decoration: none; font-weight: 500; position: relative; transition: color 0.3s ease; }
    .nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--accent-color-blue); transition: width 0.4s var(--animation-cubic-velvet); }
    .nav-links a:hover, .nav-links a.active { color: var(--text-color-primary); }
    .nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
    .nav-cta-button { 
        display: inline-block;
        background-color: var(--accent-color-blue); color: #fff; padding: 12px 24px; border-radius: var(--border-radius-pill); text-decoration: none; font-weight: 500; transition: all 0.3s ease; 
    }
    .nav-cta-button:hover { background-color: var(--accent-color-blue-hover); transform: scale(1.05); box-shadow: 0 0 20px var(--accent-color-red); }
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section { 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 0 20px; 
    background-image: url('Bilder/Hintergrund/Hintergrund-Website.png'); 
    background-size: cover; 
    background-position: center; 
    position: relative; 
    z-index: 1;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px; 
    left: 0;
    width: 100%;
    height: 60vh; 
    background: linear-gradient(to top, 
        var(--background-color) 25%, 
        transparent 100%
    );
    pointer-events: none;
}
.hero-content { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s 1.5s var(--animation-cubic-velvet) forwards; z-index: 2; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.hero-headline { 
    font-family: 'Playfair Display', serif; 
    font-weight: 700; 
    font-size: clamp(2.5rem, 8vw, 6rem); 
    letter-spacing: 0.02em; 
    margin: 0 0 20px 0; 
    line-height: 1.1;
    background: linear-gradient(90deg, var(--accent-color-blue), var(--accent-color-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subheadline { 
    font-size: clamp(1.2rem, 3vw, 1.7rem); 
    font-weight: 400; 
    max-width: 800px; 
    margin: 0 auto 40px auto; 
    color: #e5e5e5; 
}


/* ==========================================================================
   ALLGEMEINE SEKTIONEN & SCROLL-ANIMATIONEN
   ========================================================================== */
.content-section { 
    padding: 80px 0;
    position: relative; 
    z-index: 1;
}
@media (min-width: 768px) {
    .content-section {
        padding: 140px 0;
    }
}
.content-section-inner { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    position: relative;
}
.animate-on-scroll { 
    opacity: 0; 
    transform: translateY(50px) scale(0.95);
    transition: opacity 1s var(--animation-cubic-velvet), transform 1s var(--animation-cubic-velvet); 
}
.animate-on-scroll.is-visible { 
    opacity: 1; 
    transform: translateY(0) scale(1);
}
.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--accent-color-blue), var(--accent-color-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-subtitle { font-size: 1.25rem; text-align: center; max-width: 700px; margin: 0 auto 80px auto; color: var(--text-color-secondary); line-height: 1.6; }


/* ==========================================================================
   MAUS-SCHEIN HOVER-EFFEKT
   ========================================================================== */
.shine-effect {
    position: relative; /* Notwendig, damit das Pseudo-Element korrekt positioniert wird */
    overflow: hidden;   /* Stellt sicher, dass der Schein nicht über die Karte hinausragt */
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 0px);  /* Position wird durch JavaScript gesetzt */
    left: var(--mouse-x, 0px); /* Position wird durch JavaScript gesetzt */
    width: 250px;              /* Grösse des Lichtscheins */
    height: 250px;
    background: radial-gradient(circle at center, rgba(0, 122, 255, 0.15), transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Zentriert den Schein auf der Mausposition */
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* Sorgt dafür, dass der Schein keine Maus-Events blockiert */
    z-index: 1;
}

.shine-effect:hover::before {
    opacity: 1; /* Macht den Schein beim Hover sichtbar */
}

/* Roter Schein für Leistungskarten */
.service-card.shine-effect::before {
    background: radial-gradient(circle at center, rgba(255, 59, 48, 0.2), transparent 70%);
}

/* Grauer Schein für Kontakt-Wrapper */
.contact-wrapper.shine-effect::before {
    background: radial-gradient(circle at center, rgba(245, 245, 247, 0.1), transparent 70%);
}

/* ==========================================================================
   ÜBER MICH SEKTION (MIT LOGO & ZERTIFIKAT)
   ========================================================================== */
.about-section { 
    display: grid; 
    grid-template-columns: 1fr;
    align-items: center; 
    gap: 40px; 
}
@media (min-width: 900px) {
    .about-section {
        grid-template-columns: 1fr 1.2fr;
        gap: 80px;
    }
}
.about-image-container { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.about-logo { 
    width: 100%; 
    height: auto;
    max-width: 450px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.about-certificate {
    width: 90%;
    max-width: 380px;
    height: auto;
    border-radius: var(--border-radius-soft);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    display: block;
}

.about-text { flex: 1.5; }
.about-text h2 { 
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem); 
    text-align: center;
    margin-bottom: 30px; 
    line-height: 1.2;
    letter-spacing: normal;
}
@media (min-width: 900px) {
    .about-text h2 {
        text-align: left;
    }
}

.about-text p { 
    font-size: 1.2rem; 
    line-height: 1.8; 
    color: var(--text-color-secondary); 
    margin-bottom: 1.5em;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   PHILOSOPHIE SEKTION - ÜBERARBEITET
   ========================================================================== */
.philosophy-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.pillar-card {
    background-color: var(--background-elegant);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--animation-cubic-velvet);
    z-index: 1;
}

.pillar-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color-blue);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(0, 122, 255, 0.3);
}

.pillar-icon {
    margin-bottom: 25px;
}

.pillar-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent-color-blue);
    stroke-width: 1.5;
    transition: all 0.4s var(--animation-cubic-velvet);
}

.pillar-card:hover .pillar-icon svg {
    stroke: var(--accent-color-red);
    transform: scale(1.1) rotate(-5deg);
}

.pillar-content h3 {
    font-size: 1.75rem;
    margin: 0 0 15px 0;
    color: var(--text-color-primary);
}

.pillar-content p {
    color: var(--text-color-secondary);
    line-height: 1.7;
    margin: 0;
}

.pillar-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    z-index: -1;
    user-select: none;
    transition: color 0.4s ease;
}

.pillar-card:hover .pillar-number {
    color: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   LEISTUNGEN SEKTION - ÜBERARBEITET
   ========================================================================== */
.service-grid { 
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    perspective: 1000px;
}
@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.service-card { 
    background-color: var(--background-subtle); 
    padding: 40px; 
    border-radius: var(--border-radius-card); 
    border: 1px solid var(--border-color); 
    transition: transform 0.6s var(--animation-cubic-velvet), box-shadow 0.6s var(--animation-cubic-velvet), border-color 0.2s ease; 
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:hover { 
    transform: translateY(-10px) rotateX(4deg) scale(1.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255, 59, 48, 0.35); 
    border-color: var(--accent-color-red);
}

@media (min-width: 768px) {
    .service-grid .service-card:nth-child(even) {
        transform: translateY(60px);
    }
    .service-card:nth-child(even):hover {
        transform: translateY(50px) rotateX(4deg) scale(1.03);
    }
}

.service-card h3 { 
    margin-top: 0; 
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--text-color-primary); 
    display: flex; 
    align-items: center; 
    gap: 15px;
}
.service-card .icon { 
    font-size: 1.5rem; 
    opacity: 0.8;
    transition: transform 0.4s var(--animation-cubic-velvet);
}

.service-card:hover .icon {
    transform: scale(1.2);
}

/* ==========================================================================
   PROZESS SEKTION - ÜBERARBEITET
   ========================================================================== */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -2px;
    z-index: -1;
}
@media (min-width: 768px) {
    .process-timeline::after {
        left: 50%;
    }
}

.timeline-path {
    position: absolute;
    width: 4px;
    background-color: var(--accent-color-red);
    top: 0;
    left: 20px;
    margin-left: -2px;
    z-index: -1;
    height: 0;
    transition: height 2s var(--animation-cubic-velvet);
}
@media (min-width: 768px) {
    .timeline-path {
        left: 50%;
    }
}

.is-visible .timeline-path {
     height: 100%;
}

.timeline-item {
    padding: 10px 0 10px 60px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .timeline-item {
        padding: 10px 40px;
        width: 50%;
    }
    .timeline-item:nth-child(odd) { left: 0; text-align: right; padding-left: 0; padding-right: 40px; }
    .timeline-item:nth-child(even) { left: 50%; text-align: left; padding-right: 0; padding-left: 40px;}
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 10px;
    background-color: var(--background-color);
    border: 4px solid var(--accent-color-blue);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    transform: scale(0);
    transition: transform 0.5s var(--animation-cubic-velvet) 0.5s;
}
@media (min-width: 768px) {
    .timeline-item:nth-child(odd)::after {
        left: auto;
        right: -10px;
    }
    .timeline-item:nth-child(even)::after { 
        left: -10px; 
    }
}

.is-visible .timeline-item::after {
    transform: scale(1);
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--background-subtle);
    border-radius: var(--border-radius-soft);
    transition: box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: left;
}

.timeline-content:hover {
     box-shadow: 0 0 40px rgba(0, 122, 255, 0.2);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--accent-color-blue);
}

.timeline-emoji {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

@media (min-width: 768px) {
    .timeline-item:nth-child(odd) .timeline-emoji {
        left: -60px;
    }
    
    .timeline-item:nth-child(even) .timeline-emoji {
        right: -60px;
    }

    .timeline-item.is-hovered .timeline-emoji {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* ==========================================================================
   PROJEKTE & DIASHOW - ÜBERARBEITET
   ========================================================================== */
.project-scroll-outer { 
    position: relative; 
    padding-bottom: 60px;
}
.project-scroll-container { display: flex; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; cursor: grab; }
.project-scroll-container.active { cursor: grabbing; }
.project-scroll-container::-webkit-scrollbar { display: none; }
.project-track { display: flex; gap: clamp(20px, 3vw, 40px); padding: 20px clamp(20px, 5vw, 50px); } 
.project-slide {
    flex: 0 0 90vw; 
    background-color: var(--background-subtle);
    border-radius: var(--border-radius-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.4s var(--animation-cubic-velvet), box-shadow 0.4s var(--animation-cubic-velvet), opacity 0.4s ease;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .project-slide {
        flex-basis: clamp(300px, 60vw, 650px);
    }
    .project-track {
        padding: 20px clamp(20px, calc(50vw - 30vw - 20px), 50px);
    }
}

.project-slide:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(255, 59, 48, 0.2); } 

/* Fokus-Effekt für Projektgalerie */
.project-track.is-focused .project-slide:not(:hover) {
    opacity: 0.6;
    transform: scale(0.98);
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

/* NEU: CSS für Crossfade-Effekt */
.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.slideshow-image.is-visible {
    opacity: 1;
    z-index: 2;
}

.slideshow-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease; 
}
.slideshow-container:hover .slideshow-image img {
    transform: scale(1.03); 
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    z-index: 3; /* Muss über den Bildern liegen */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slideshow-container:hover .prev,
.slideshow-container:hover .next {
    opacity: 1;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.slideshow-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3; /* Muss über den Bildern liegen */
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.slideshow-dots .active, .dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.project-slide-caption { 
    padding: 30px; 
    margin-top: auto;
}
.project-slide-caption h3 { margin: 0 0 10px 0; font-size: 1.5rem; }
.project-slide-caption p { margin: 0; color: var(--text-color-secondary); }
.custom-scrollbar-wrapper { max-width: 800px; margin: 40px auto 0 auto; padding: 0 20px; opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--animation-cubic-velvet), transform 0.5s var(--animation-cubic-velvet); }
.project-scroll-outer:hover .custom-scrollbar-wrapper { opacity: 1; transform: translateY(0); }
.custom-scrollbar { width: 100%; height: 8px; background-color: var(--background-subtle); border-radius: var(--border-radius-pill); position: relative; cursor: pointer; }
.scrollbar-thumb { position: absolute; top: -1px; height: 10px; background-color: var(--accent-color-blue); border-radius: var(--border-radius-pill); border: 2px solid var(--background-color); }

/* ==========================================================================
  KUNDENSTIMMEN & KARRIERE - ÜBERARBEITET
  ========================================================================== */
.testimonial-section {
    position: relative;
}

.testimonial-slider-outer {
    overflow: hidden;
    width: 100%;
    position: relative;
    margin-top: 60px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-slider-track {
    display: flex;
    width: calc(22 * (400px + 40px)); 
    animation: slideLeft 80s linear infinite;
    transition: animation-play-state 0.5s ease;
}

.testimonial-slider-outer:hover .testimonial-slider-track {
    animation-play-state: paused;
}

@keyframes slideLeft {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-11 * (400px + 40px))); }
}

.testimonial-card {
    flex: 0 0 80vw;
    background: var(--background-elegant);
    border-radius: var(--border-radius-card);
    padding: 40px;
    margin-right: 40px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 0 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 400px;
    }
}

.testimonial-stars {
    color: var(--accent-color-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1.1rem; 
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1; 
}

.testimonial-author {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color-primary);
}

@media (max-width: 768px) {
    .testimonial-slider-track {
        width: calc(22 * (80vw + 40px));
        animation-name: slideLeftMobile;
    }
    @keyframes slideLeftMobile {
        from { transform: translateX(0); }
        to { transform: translateX(calc(-11 * (80vw + 40px))); }
    }
}

.hiring-section {
    padding: 60px 20px;
    background: linear-gradient(45deg, var(--accent-color-blue), var(--accent-color-red));
    border-radius: var(--border-radius-card);
    text-align: center;
    margin-top: 140px;
}
@media (min-width: 768px) {
    .hiring-section {
        padding: 80px 40px;
    }
}

.hiring-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hiring-section p {
    color: rgba(255,255,255,0.9);
}

.hiring-button {
    display: inline-block;
    margin-top: 30px;
    background-color: rgba(255,255,255,0.9);
    color: #000;
    padding: 18px 40px;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hiring-button:hover {
    background-color: #fff;
    transform: scale(1.05);
}

/* ==========================================================================
   KONTAKT & FOOTER
   ========================================================================== */
.contact-wrapper { 
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px; 
    align-items: flex-start; 
    background-color: var(--background-subtle); 
    padding: 40px 20px;
    border-radius: var(--border-radius-card); 
    position: relative;
    overflow: hidden;
    z-index: 1;
}
@media (min-width: 900px) {
    .contact-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        padding: 60px;
    }
}

.contact-text h2 { font-size: clamp(2rem, 4vw, 3.5rem); text-align: left; margin-bottom: 10px; }
.contact-text .section-subtitle { text-align: left; margin-left: 0; margin-bottom: 30px; }

.contact-details a { 
    color: var(--text-color-primary); 
    text-decoration: none; 
    font-size: clamp(1.2rem, 3vw, 1.8rem); 
    font-weight: 500; 
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0; 
    transition: color 0.3s ease; 
    flex-wrap: nowrap;
}
.contact-details a:hover { color: var(--accent-color-blue); }

/* Kontaktformular Stile */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background-color: var(--background-elegant);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-input);
    padding: 18px;
    font-size: 1rem;
    color: var(--text-color-primary);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-button {
    background-color: var(--accent-color-blue);
    color: #fff;
    padding: 18px 24px;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-cta 2.5s infinite;
}

@keyframes pulse-cta {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(0, 122, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
    }
}

.contact-form-button:hover {
    background-color: var(--accent-color-blue-hover);
    transform: scale(1.02);
    animation-play-state: paused;
}

.form-status-message {
    padding: 15px;
    border-radius: var(--border-radius-input);
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.form-status-message.visible {
    display: block;
    opacity: 1;
}
.form-status-message.success {
    background-color: #28a745;
    color: white;
}
.form-status-message.error {
    background-color: var(--accent-color-red);
    color: white;
}


footer { text-align: center; padding: 60px 20px; position: relative; z-index: 2; }
footer p { margin: 5px 0; }
footer a { color: var(--text-color-secondary); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.social-links a {
    color: var(--text-color-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-color-blue);
    transform: scale(1.15);
    text-decoration: none;
}

.social-links svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   MODAL (POPUP) STYLES
   ========================================================================== */
.modal-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    color: var(--text-color-primary);
    padding: 40px;
    width: 90%;
    background: var(--background-elegant);
    border-radius: var(--border-radius-card);
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
    text-align: left;
    line-height: 1.7;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s var(--animation-cubic-velvet);
}

.modal-overlay.is-visible .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-color-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.modal-close-btn:hover {
    color: var(--text-color-primary);
    transform: rotate(90deg);
}

.modal-content h2, .modal-content h3, .modal-content h4 {
    text-align: left;
    margin-top: 1.5em;
    margin-bottom: 1em;
}

.modal-content h2 {
   text-align: center;
   margin-top: 0;
}

.modal-content p {
    color: var(--text-color-secondary);
    margin-bottom: 1em;
}

.modal-content strong {
    color: var(--text-color-primary);
}

#impressum-modal .modal-content {
    max-width: 650px;
    text-align: center;
}

#impressum-modal .modal-content p {
    text-align: center;
}

#datenschutz-modal .modal-content,
#karriere-modal .modal-content {
    max-width: 750px;
}
#datenschutz-modal h3,
#karriere-modal h3 {
    color: var(--accent-color-blue);
    margin-bottom: 0.5em;
}
/* ==========================================================================
   MOBILER HINTERGRUNDSCHEIN BEIM SCROLLEN (FINALE VERSION)
   ========================================================================== */

/* Diese Regeln gelten nur auf Geräten mit einer maximalen Breite von 1024px */
@media (max-width: 1024px) {

  /* 1. Fügt den relevanten Karten einen schnellen Übergang für den Schein hinzu */
  .pillar-card, .service-card, .timeline-content {
    transition: box-shadow 0.3s ease-in-out;
  }

  /*
   * NEU: Deaktiviert Klick- & Tipp-Events auf den Karten für eine störungsfreie Animation.
  */
  .pillar-card, .service-card, .timeline-content {
    pointer-events: none;
  }

  /* Deaktiviert den Maus-Schein-Effekt, da er nicht benötigt wird */
  .shine-effect::before {
    display: none;
  }

  /* 2. Definiert den sichtbaren Schein (Glow) für die verschiedenen Karten. */

  /* Blauer Schein für Philosophie & Prozess */
  .pillar-card.is-illuminated,
  .timeline-content.is-illuminated {
    box-shadow: 0 0 50px rgba(0, 122, 255, 0.35);
  }

  /* Roter Schein für Leistungen */
  .service-card.is-illuminated {
    box-shadow: 0 0 50px rgba(255, 59, 48, 0.35);
  }
}