  @charset "UTF-8";

    * { box-sizing: border-box; margin: 0; padding: 0; }    
    
    body { 
      background: #f7f5f2; 
      font-family: 'Josefin Sans', sans-serif; 
      overflow-x: hidden; 
      color: #1d1d1b;
      padding-top: 150px; 
      -webkit-user-select: none;
      user-select: none;
    }
    
    /* ── Header Background (Statisch) ── */    
    #header-bg {      
      position: fixed; top: 0; left: 0; right: 0; 
      height: 55px;     
      background: #f7f5f2; 
      z-index: 98; 
    }
    
       
    
    
    /* ── Logo sticky (Fest auf Endposition fixiert) ── */    
    #logo-sticky {      
      position: fixed; top: 0; left: 0; width: 100%; z-index: 100; pointer-events: none;    
    }    
    #logo-block {      
      width: 92vw; max-width: 1100px;      
      position: absolute; top: 0; left: 50%;      
      transform: translateX(-50%) translateY(12px) scale(0.25);      
      display: flex; flex-direction: column; align-items: center;      
      transform-origin: top center;   
      pointer-events: auto; 
    }    
    
    /* ── Logo row ── */    
    .logo-row { display: flex; align-items: center; justify-content: center; gap: 0; }    
    .svg-marco, .svg-ordier, .svg-c {      
      display: block; height: clamp(48px, 8vw, 110px); width: auto; opacity: 1;    
    }    
    .svg-marco { margin-right: 14px; }    
    
    /* ── Subtitles ── */    
    .subtitle-row { display:flex; flex-direction:column; align-items:center; gap:0.4rem; margin-top:0.75rem; }    
    .svg-design-studio {      
      display:block; height: clamp(16px, 2.2vw, 32px); width:auto; opacity:1;      
    }    
    .tagline { display: none; }    
    
    /* ═══════════════════════════════════════════════════════════════════════ */
    /* ── NEUES SCROLL-STYLING "ÜBER UNS" HERO ── */
    /* ═══════════════════════════════════════════════════════════════════════ */
    main { 
      width: 100%; 
      margin: 0 auto; 
      padding: 0 0 0vh; /* padding-top entfernt, da der neue Container das übernimmt */
    }

    #hero-scroll-container {
      position: relative;
      height: 300vh; /* Genug Scroll-Weg für 3 flüssige Phasen */
      width: 100%;
      margin-top: -150px; /* Gleicht das alte body padding aus */
    }

    #hero-sticky {
      position: sticky;
      top: 55px; /* Sitzt exakt unter deinem Header */
      height: calc(100vh - 55px);
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    #scroll-text {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: clamp(18px, 2.4vw, 33px);
      line-height: 1.3;
      font-weight: 300;
      text-align: center;
      max-width: 1800px;
      padding: 0 4vw;
      color: #1d1d1b;
      will-change: transform;
      z-index: 20;
      
      /* NEU: Mehrschichtiger, weicher Outer Glow für perfekte Lesbarkeit */
      text-shadow: 
        0 0 10px rgba(255, 255, 255, 1), 
        0 0 20px rgba(247, 245, 242, 0.9), 
        0 0 30px rgba(247, 245, 242, 0.8);
    }

    .scroll-text2 {                  
      font-size: clamp(18px, 2.4vw, 33px);
      line-height: 1.3;
      font-weight: 300;
      text-align: center;
      max-width: 1800px;
      padding: 0 4vw;
      color: #1d1d1b;
      will-change: transform;
      z-index: 20;
      /* NEU: "auto" für Links und Rechts hinzugefügt, damit der Text bei hoher Auflösung zentriert bleibt */
      margin: 0 auto 5rem auto; 
    }

    /* ── Scroll Indikator "Über Uns" ── */
   #hero-scroll-indicator {
      position: fixed; /* NEU: Fest am Bildschirm verankert wie auf der Startseite */
      bottom: 5vh;     /* NEU: Exakt der gleiche Abstand wie auf der Startseite */
      left: 50%;
      transform: translateX(-50%);
      z-index: 90;
      pointer-events: auto; 
      cursor: pointer; 
      animation: bounceFadeHero 2.5s ease-in-out infinite;
      transition: opacity 0.3s ease;
    }

    #hero-scroll-indicator.hidden {
      opacity: 0 !important;
      animation: none !important; /* DAS ist der Lebensretter! Würgt das Blinken ab */
      pointer-events: none !important;
    }

    #hero-scroll-indicator svg {
      width: clamp(30px, 4vw, 45px);
      height: auto;
      fill: none;
      stroke: #1d1d1b;
      stroke-width: 0.8px;
    }

    /* Die Hüpf-Animation (angepasst für das absolute Transform) */
    /* Die Hüpf- und Blink-Animation für den Über-Uns-Pfeil */
   @keyframes bounceFadeHero {
      0%   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
      30%  { opacity: 0.5; transform: translateX(-50%) translateY(0); }
      70%  { opacity: 0.5; transform: translateX(-50%) translateY(0); }
      100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    }

   /* ── 1. Gleicher Abstand für beide Bilder-Blöcke ── */
    .grid-container-partner {
      gap: 2vw !important; /* Zwingt die 4 Bilder unten zu exakt diesem Abstand */
    }

    #scroll-image-grid {
      position: absolute;
      top: 50%; 
      transform: translateY(-50%); 
      display: flex;
      justify-content: center; 
      gap: 2vw; /* WICHTIG: Derselbe Abstand (2vw) wie bei den Partner-Bildern */
      width: 100%;             
      z-index: 10; 
    }

    .scroll-img-wrapper {
      height: 75vh;         /* Auf normalen Bildschirmen bleiben sie groß (75vh) */
      width: auto;          
      aspect-ratio: 2/3;    
      border-radius: 4px;
      overflow: hidden;
      opacity: 0;
      will-change: transform, opacity;
    }

    /* ── 2. Erst ab 2000px: Die 2 Bilder werden exakt so breit wie die 4 Bilder ── */
    @media (min-width: 2000px) {
      #scroll-image-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 92vw; 
        max-width: 1100px; /* Zwingt die 2 Bilder in dieselbe Maximalbreite wie unten */
        left: 50%;
        transform: translate(-50%, -50%); /* Hält den Block perfekt zentriert */
      }
      .scroll-img-wrapper {
        width: 100%;  /* Bilder wechseln von Höhen- auf Breitenanpassung */
        height: auto; 
      }
    }

    .scroll-img-wrapper img {
      width: 100%; height: 100%; object-fit: cover; border-radius: 4px;
    }

    .zusammenarbeit-title {
      font-size: clamp(20px, 4.5vw, 64px);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      text-align: center;
      /* NEU: Oben 15vh, Links/Rechts auto (zentriert), Unten auf 3vh reduziert (vorher 10vh) */
      margin: 15vh auto 3vh; 
      color: #1d1d1b;
      max-width: 1000px;
    }

   /* ═══════════════════════════════════════════════════════════════════════ */    
    /* ── ANIMATIONS LOGIK ── */    
    /* ═══════════════════════════════════════════════════════════════════════ */    
    .anim-fade-in {      
      opacity: 0;      
      transition: opacity 2s ease-out, transform 2s ease-out !important;  
    }        

    /* NEU: Von Links einschieben */
    .anim-slide-from-left {      
      opacity: 0;      
      transform: translateX(-15vw); /* Startet leicht links */
      transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);    
    }

    /* NEU: Von Rechts einschieben */
    .anim-slide-from-right {      
      opacity: 0;      
      transform: translateX(15vw); /* Startet leicht rechts */
      transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);    
    }

    /* Aktivierter Zustand (setzt jetzt sowohl X- als auch Y-Achse auf 0 zurück) */    
    .is-visible {      
      opacity: 1;      
      transform: translate(0, 0);    
    }

    /* Perfektes Timing-Chaining: Erst Text, dann rechtes Bild, dann linkes Bild */    
    .intro-text.is-visible {      
      transition-delay: 0.2s;    
    }    
    .image-wrapper.is-visible.delay-right {      
      transition-delay: 1.1s; /* Startet, wenn der Text stabil eingeblendet ist */    
    }    
    .image-wrapper.is-visible.delay-left {      
      transition-delay: 1.5s; /* Folgt direkt danach */    
    }


    /* ═══════════════════════════════════════════════════════════════════════ */
    /* ── MOBILE MASTER-BLOCK ── */
    /* ═══════════════════════════════════════════════════════════════════════ */
    @media (max-width: 768px) {
      #header-bg { height: 55px !important; } 
      .nav-item { font-size: 12px !important; top: 21px; }
     

      #logo-block { width: 100vw !important; }
      .svg-marco { margin-right: 6px !important; }
      .svg-marco, .svg-ordier, .svg-c { height: 55px !important; width: auto !important; }
      .svg-design-studio { height: 36px !important; width: auto !important; }

     /* ── Mobile Overrides "Über uns" Scrollbereich ── */
     /* ── Mobile Overrides "Über uns" Scrollbereich ── */
      #hero-scroll-container { height: 200vh !important; } 
      
     #scroll-image-grid { 
        gap: 0; 
        top: 50% !important;  /* NEU: Auch am Handy mittig */
        bottom: auto !important; 
        transform: translateY(-50%);
        justify-content: center; 
      }
      
      .scroll-img-wrapper { 
        height: 65vh !important;  /* NEU: Auch am Handy deutlich größer */
        width: auto !important; 
        aspect-ratio: 2/3; 
      }
      #scroll-img-2 { display: none !important; }
      
      /* NEU: Schriftgröße drastisch verkleinert für den langen Text */
      #scroll-text { 
        font-size: 15px !important; 
        line-height: 1.4 !important; 
        max-width: 100vw; 
        padding: 0 6vw !important; 
      }
     .scroll-text2 { 
        font-size: 15px !important; 
        line-height: 1.4 !important; 
        max-width: 100vw; 
        padding: 0 6vw !important; 
        /* NEU: Überschreibt die großen 5rem vom Desktop mit einem kleineren Wert für Handys */
        margin: 0 auto 2rem auto !important; 
      }

/* NEU: Pfeil auf dem Handy anheben, um Android/iOS-Leisten auszuweichen */
      #hero-scroll-indicator { bottom: 3vh !important; }
      .zusammenarbeit-title {
        margin: 15vh auto 5vh;
      }
    }