/* ==========================================================================
   JungAdler – Bugfixes (Nov 2026)
   Wird nach jungadler-startseite.webflow.css geladen und überschreibt nur
   gezielt die fehlerhaften Stellen. Original-CSS bleibt unverändert.
   ========================================================================== */

/* 1) Navigation: Menüpunkte wurden zwischen 992px und 1279px Breite
      abgeschnitten (z. B. "VIDEOPRODUKTION", "LET'S CONNECT!"). */
.navlink-wrapper,
.button.nav.header {
  white-space: nowrap;
}

@media screen and (min-width: 992px) and (max-width: 1279px) {
  .nav-menu {
    grid-column-gap: 22px;
    column-gap: 22px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .navlink,
  .navlink.small {
    font-size: 12px;
  }
  .navlink-wrapper {
    white-space: normal; /* "BRAND BUILDING" darf zweizeilig bleiben */
  }
  .button.nav.header {
    width: auto;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 14px;
  }
}

/* 2) Handy: Seiten liessen sich seitlich verschieben (horizontaler Scroll). */
@media screen and (max-width: 767px) {
  /* Kontaktformular hatte feste 500px Breite */
  #contactForm,
  #labelName, #labelEmail, #labelMessage,
  #inputName, #inputEmail, #inputMessage {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* (Silbentrennung in Ueberschriften entfernt – Woerter werden nicht mehr
     getrennt; zu lange Woerter bekommen stattdessen passende Schriftgroessen,
     siehe Abschnitt 12.) */

  /* Newsletter-Formular (ActiveCampaign) im Footer */
  .container-3,
  .container-3 ._form,
  .code-embed {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Sicherheitsnetz gegen restliche Überbreite */
  html, body {
    overflow-x: clip;
  }
}

/* 3) Startseite: Teamfoto (z-index 1, Scroll-Animation) konnte das
      Showreel-Video überdecken -> Video liegt immer darüber. */
.background-video-4 {
  position: relative;
  z-index: 2;
}

/* 4) Footer am Handy: Container war 30px schmaler als der Bildschirm und
      klebte links, Überschrift zu gross, Menü brach unregelmässig um. */
@media screen and (max-width: 767px) {
  .container.footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    align-items: center;
  }
  .container.footer .content-center,
  .container.footer .content-bottom,
  .container.footer .div-block-5,
  .container.footer .content-legal {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .h1.footer {
    font-size: 13vw;
    line-height: 1.05;
    text-align: center;
  }
  .footer-line {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
  }
  /* Menü als sauberes 2-Spalten-Raster */
  .footer-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    row-gap: 22px;
    width: 100%;
    justify-items: center;
  }
  .footer-navigation .footer-navlink-wrapper {
    margin: 0;
    text-align: center;
  }
  .footer-navigation .navlink.footer {
    font-size: 15px;
    white-space: nowrap;
  }
  .footer-wrapper-three,
  .footer-social-block-three {
    width: 100%;
    justify-content: center;
  }
  .footer-social-block-three {
    display: flex;
    gap: 22px;
  }
  .footer-social-link-three {
    margin: 0;
  }
  .legal-left-block,
  .legal-right-block {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .legal-right-block {
    gap: 20px;
  }
}

/* 5) Footer: Abschnitt hatte am Handy nur rechts 30px Innenabstand
      (Inhalt sass schief). Fester schwarzer Hintergrund, damit beim
      Scrollen kein grauer Zwischenzustand der Farb-Animation sichtbar ist. */
.section.footer {
  background-color: #000;
}
@media screen and (max-width: 767px) {
  .section.footer {
    padding-left: 0;
    padding-right: 0;
  }
}

/* 6) Footer war fest auf 100vh begrenzt: bei niedrigen Bildschirmen quoll der
      Inhalt nach oben heraus und "READY TO CREATE?" lag unter dem Newsletter. */
.section.footer {
  height: auto;
  min-height: 100vh;
  max-height: none;
}

/* 7) Startseite Laptop/Desktop: Teamfoto war so hoch, dass der grosse
      "JUNGADLER"-Schriftzug unter dem sichtbaren Bereich lag. Das Foto wird
      jetzt auf die Bildschirmhoehe begrenzt und beschnitten (Gesichter bleiben
      sichtbar), damit der Schriftzug "above the fold" steht. */
@media screen and (min-width: 992px) {
  .container.hero.home .hero-image-wrapper {
    width: 100%;
    aspect-ratio: 571 / 723;
    max-height: calc(100vh - 120px);
  }
  .container.hero.home .hero-image {
    height: 90%;
    object-fit: cover;
    object-position: 50% 35%;
  }
}

/* 8) Separater Button zum Projekt-Finder (unter "LET'S CONNECT!").
      Gefuellte Variante des bestehenden Buttons, damit er sich klar abhebt. */
.finder-button {
  background-color: #1b1b1b;
  border: 1px solid #1b1b1b;
  color: #f9f9f9;
  margin-top: 12px;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.finder-button:hover,
.finder-button:focus-visible {
  background-color: transparent;
  color: #1b1b1b;
}
.finder-button .button-text,
.finder-button .button-text:hover {
  background-color: transparent;
  color: inherit;
}
.button.finder-button {
  margin-top: 0; /* Startseite: Abstand kommt vom Flex-Gap */
}
@media screen and (max-width: 767px) {
  /* Hero-Buttons am Handy etwas breiter, damit "ZUM PROJEKT-FINDER →"
     einzeilig bleibt; beide Buttons bleiben gleich breit. */
  .button-copy.text:not(.work) {
    width: 240px;
    max-width: 100%;
  }
  .finder-button .button-text {
    white-space: nowrap;
  }
}

/* 9) Header bei schwarzem Hintergrund: Die Scroll-Animation tauscht nur
      --colors--primary (Hintergrund) und --colors--secondary (Text). Der Header
      nutzte eigene Variablen und blieb dunkel auf schwarz. Jetzt folgen
      Menü-Links, Button, Menü-Icon und Linien der Textfarbe der Animation. */
:root {
  --colors--secondary-nav: var(--colors--secondary);
  --colors--secondary-button: var(--colors--secondary);
  --colors--button-text: var(--colors--secondary);
}
/* Logo: weisse Variante einblenden, sobald der Hintergrund dunkel ist
   (Klasse kommt von js/nav-contrast.js). */
.navbar .brand-logo-black,
.navbar .brand-logo-white {
  transition: opacity .3s ease;
}
html.nav-dark .navbar .brand-logo-black {
  opacity: 0;
}
html.nav-dark .navbar .brand-logo-white {
  opacity: 1;
}

/* 10) Footer unabhaengig von der Scroll-Animation: Die Webflow-Animation
       ("Color Change - White to Black") erreicht Schwarz erst bei exakt 50 %
       Scroll-Fortschritt, davor gibt es Grau-Zwischenstufen. Der Footer bekommt
       deshalb feste Farben (schwarz/hell) – lokal gesetzte Variablen gelten fuer
       alle Elemente im Footer. */
.section.footer {
  --colors--primary: #000;
  --colors--secondary: rgb(217, 217, 217);
  --colors--secondary-nav: rgb(217, 217, 217);
  --colors--secondary-button: rgb(217, 217, 217);
  --colors--button-text: rgb(217, 217, 217);
  color: rgb(217, 217, 217);
}

/* 11) Einheitliche Abstaende
   a) Erste Ueberschrift jeder Seite immer 120px vom oberen Rand
      (Header 84px + 36px Luft). Die Seiten hatten vorher 78-221px.
      Markierung per Klassen ja-top / ja-top-grid / ja-top-heading. */
.ja-top {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.ja-top-grid {
  margin-top: 120px !important;
  padding-top: 0 !important;
}
.ja-top-heading {
  margin-top: 0 !important;
}

/* b) Laufband-Abschnitte (Kundenlogos) bekommen denselben Abstand wie normale
      Abschnitte (vorher je Seite 0, 50, 60 oder 100px). */
.section-7, .section-8, .section-10, .section-12, .section-13, .section-14, .section-15, section:not([class]) {
  margin-top: 101px;
  margin-bottom: 0;
}
@media screen and (min-width: 1280px) {
  .section-7, .section-8, .section-10, .section-12, .section-13, .section-14, .section-15, section:not([class]) { margin-top: 92px; }
}
@media screen and (min-width: 1440px) {
  .section-7, .section-8, .section-10, .section-12, .section-13, .section-14, .section-15, section:not([class]) { margin-top: 120px; }
}
@media screen and (min-width: 1920px) {
  .section-7, .section-8, .section-10, .section-12, .section-13, .section-14, .section-15, section:not([class]) { margin-top: 148px; }
}

/* c) Tablet (480-991px): Abschnitte hatten 0px Abstand und klebten aneinander. */
@media screen and (min-width: 480px) and (max-width: 991px) {
  .section,
  .section-7, .section-8, .section-10, .section-12, .section-13, .section-14, .section-15, section:not([class]) {
    margin-top: 72px;
  }
  .section.footer { margin-top: 72px; }
}
@media screen and (max-width: 479px) {
  .section-7, .section-8, .section-10, .section-12, .section-13, .section-14, .section-15, section:not([class]) {
    margin-top: 51px;
  }
}

/* d) Handy: ueberall 16px Seitenrand links und rechts (vorher 7-48px,
      je nach Seite und Abschnitt unterschiedlich). */
@media screen and (max-width: 767px) {
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section .w-container,
  .section .container,
  .ja-top.w-container,
  .ja-top .w-container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .ja-top-grid,
  .section ._12-col-grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  /* Hero-Bereiche ohne .section (Startseite, Social Media, Foto …) */
  .ja-top:not(.section) {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .ja-top .ja-top {
    padding-left: 0;
    padding-right: 0;
  }
}
@media screen and (max-width: 767px) {
  /* Footer behaelt seinen eigenen 16px-Rand (Abschnitt 4) */
  .section.footer .container.footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* e) Ursachen fuer Abweichungen beim oberen Abstand:
      Kontakt: Abschnitt zentrierte den Inhalt vertikal (+40px),
      Webdesign/Video/Workshops/Brand: leere Clearfix-Pseudo-Elemente (+17px). */
.ja-top {
  justify-content: flex-start !important;
}
.ja-top::before,
.ja-top::after {
  display: none !important;
}

/* f) Tablet (768-991px): "Our work"-Bereiche sassen am linken Rand (1px). */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .section .container.mobile,
  .section .grid-6 {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* 12) Woerter nicht trennen: Ueberschriften, die auf kleinen Bildschirmen
       zu breit waren, bekommen passende Groessen. */
@media screen and (max-width: 479px) {
  .heading-3 {                      /* AGB: "GESCHÄFTSBEDINGUNGEN" */
    font-size: min(26px, 6.6vw);
    line-height: 1.15;
  }
}
/* Hero-Buttons auch auf Tablets breit genug fuer einzeilige Texte */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .button-copy.text:not(.work) {
    width: 280px;
    max-width: 100%;
  }
}
.nowrap { white-space: nowrap; }

/* g) "Our work"-Raster: 30px Aussenabstand rechts schob den Inhalt aus der
      Mitte (links 1px / rechts 39px). */
.grid-6 {
  margin-right: 0;
}
/* h) Startseite Handy: Original-Regel schob den oberen Bereich 10px nach rechts. */
@media screen and (max-width: 767px) {
  .container.hero.home.ja-top {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* i) Hero-Buttons 480-991px: Text (20px) passte nicht in 240px. */
@media screen and (min-width: 480px) and (max-width: 991px) {
  .button-copy.text:not(.work) {
    width: 280px;
    max-width: 100%;
  }
  /* Projekttitel in den Kacheln */
  .work-name {
    font-size: 15px;
    line-height: 1.25;
  }
}

/* j) Desktop: gleiche linke Kante fuer gleiche Elemente auf allen Seiten.
      - "OUR WORK" lag je nach Seite bei 30 / 40 / 54px -> ueberall 40px
      - Hero-Ueberschrift Social Media + Fotografie lag bei 30px, alle anderen
        Seiten bei ca. 48-71px (mitwachsend) -> angeglichen */
@media screen and (min-width: 992px) {
  .section > .w-container:has(> .grid-6) {
    padding-left: 10px;
    padding-right: 0;
  }
  .section > .grid-6 {
    margin-left: 10px;
    width: calc(100% - 10px);
  }
  .section-5 > .ja-top-grid:not(.jjjjjj) {
    margin-left: calc(2.6vw + 21px);
    width: calc(100% - 2.6vw - 21px);
  }
}
/* k) Kontakt Handy: "Give us a Call"/Newsletter-Block liegt ausserhalb der
      Abschnitte und hatte keinen Seitenrand. */
@media screen and (max-width: 767px) {
  .ja-top ~ .container-6 {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}
/* l) Datenschutz: lange Internet-Adressen duerfen umbrechen statt ueberzustehen */
._12-col-grid.legal a,
._12-col-grid.legal p {
  overflow-wrap: break-word;
}
@media screen and (min-width: 992px) and (max-width: 1023px) {
  .section-5 > .ja-top-grid:not(.jjjjjj) { margin-left: 56px; width: calc(100% - 56px); }
}

/* m) Handy: Blocksatz erzeugte grosse Luecken zwischen Woertern
      (schmale Spalten) -> linksbuendig. Desktop bleibt im Blocksatz. */
@media screen and (max-width: 767px) {
  p.smalltext,
  p.paragraph-15 {
    text-align: left;
  }
}

/* n) Hero-Fliesstext: 10px Einzug auf 7 von 8 Seiten (Brand Building ohne).
      Einheitlich buendig mit der Ueberschrift. */
.hero-top-wrapper p {
  padding-left: 0;
  padding-right: 0;
}

/* o) Button unter "our work" auf 480-991px zu schmal fuer "LET'S CONNECT!" */
@media screen and (min-width: 480px) and (max-width: 991px) {
  .button-copy.text.work {
    width: 280px;
    max-width: 100%;
  }
}
@media screen and (max-width: 479px) {
  .heading-2 {                      /* Datenschutz: "DATENSCHUTZ" */
    font-size: min(50px, 12.5vw);
  }
}
@media screen and (min-width: 480px) and (max-width: 991px) {
  /* Spalte ist hier nur 170-230px breit */
  .button-copy.text.work {
    padding-left: 10px;
    padding-right: 10px;
  }
  .button-copy.text.work .button-text {
    font-size: 16px;
    white-space: nowrap;
  }
}

/* p) Workshops: laengere Button-Texte einzeilig halten */
@media screen and (min-width: 480px) and (max-width: 1279px) {
  .hero-top-wrapper:has(a[href*="jungadleracademy"]) .button-copy.text .button-text {
    font-size: 16px;
    white-space: nowrap;
  }
}
@media screen and (max-width: 767px) {
  .button-copy.text.work.academy {
    width: auto;
    min-width: 200px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .button-copy.text.work.academy .button-text {
    white-space: nowrap;
  }
}

/* q) Tablet 768-991px: Hero-Ueberschrift war mit 60px groesser als auf dem
      Desktop (50px) und lief bei langen Woertern ("Online-Präsenz",
      "einprägsamen") ins Bild. */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .h2.ja-top-heading {
    font-size: 48px;
  }
}

/* r) Startseite: Leistungs-Ueberschriften immer einzeilig
      ("SOCIAL MEDIA MARKETING" brach um, "VIDEOPRODUKTION" lief bei 900px
      ueber die Spalte). Alle gleich gross, Groesse passt sich der Spalte an.
      Gilt nur fuer die Startseite (data-wf-page der Startseite). */
html[data-wf-page="662228208720f198f8c80cca"] h2.h2 {
  white-space: nowrap;
}
@media screen and (max-width: 479px) {
  html[data-wf-page="662228208720f198f8c80cca"] h2.h2 {
    font-size: min(36px, calc((100vw - 40px) / 12.6));
  }
}
@media screen and (min-width: 480px) and (max-width: 767px) {
  html[data-wf-page="662228208720f198f8c80cca"] h2.h2 {
    font-size: min(48px, calc((100vw - 40px) / 12.6));
  }
}
@media screen and (min-width: 768px) and (max-width: 1279px) {
  html[data-wf-page="662228208720f198f8c80cca"] h2.h2 {
    font-size: min(50px, calc((50vw - 12px) / 12.6));
  }
}

/* Events: Partner-Logos (weiße Logos auf dunklem Hintergrund) */
.events-logos-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 32px 80px; padding: 0 16px; }
.events-logos-row .events-logo { width: auto; max-width: 100%; display: block; }
.events-logo-link { display: block; transition: opacity .3s; }
.events-logo-link:hover { opacity: .7; }
.events-logos-row .bmw { height: 68px; }
.events-logos-row .geins { height: 56px; }
.events-logos-row .keepers { height: 48px; }
@media screen and (max-width: 767px) {
  .events-logos-row { gap: 24px 32px !important; }
  .events-logos-row .bmw { height: 52px !important; }
  .events-logos-row .geins { height: 42px !important; }
  .events-logos-row .keepers { height: 36px !important; }
}
/* Events: Referenz-Grid war auf 5 Projekte ausgelegt (leere Zeilen) -> Zeilen nach Inhalt */
.events-work .grid-6 { grid-template-rows: none; grid-auto-rows: auto; margin-bottom: 0; }
/* Events-Seite: einheitlicher Abstand zwischen allen Abschnitten
   (Handy 51 px, Tablet 72 px, Desktop 96 px – gemessen von Inhalt zu Inhalt) */
.events-page { --ev-gap: 96px; }
@media screen and (max-width: 991px) { .events-page { --ev-gap: 72px; } }
@media screen and (max-width: 767px) { .events-page { --ev-gap: 51px; } }
.events-page .container.hero { height: auto; }
.events-page .section-5 ._12-col-grid.jjjjjj { padding-bottom: 0; }
.events-page .section-5 ~ .section, .events-page .section-5 ~ .section-8 { margin-top: var(--ev-gap) !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.events-page .section-5 ~ .section > .container,
.events-page .section-5 ~ .section > .container > .w-layout-grid { margin-top: 0 !important; margin-bottom: 0 !important; }
.events-page .section-5 .h1 { margin-bottom: 0; }
.events-page .section-header-right > .overflow-hidden:first-child > .h4 { margin-top: 0; }
.events-page .hero-services-wrapper > .service-wrapper:last-child { margin-bottom: 0; }
.events-page .events-work .grid-6 > * { align-self: start; }
@media screen and (min-width: 480px) and (max-width: 991px) {
  .events-page .events-work .grid-6 { grid-template-columns: 1fr 1fr !important; grid-template-rows: auto !important; grid-auto-rows: auto; row-gap: var(--ev-gap); }
  .events-page .events-work .grid-6 > * { grid-area: auto !important; }
  .events-page .events-work .grid-6 > :first-child { grid-column: 1 / -1 !important; }
}
.events-page .section.footer { margin-top: var(--ev-gap) !important; min-height: 0; padding-top: 0; justify-content: flex-start; }
.events-page .section.footer > .container.footer { margin-top: 0; }
.events-page .section.footer .h1.footer { margin-top: 0; }

