/* MAG Consulting – eigene Ergänzungen (Consent-Banner, Hero-Split, Calendly-Sektion) */

/* ---------- Cookie-Consent-Banner ---------- */
.mag-consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.1rem 1.4rem;
  background-color: #15131f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.mag-consent-text { flex: 1 1 18rem; }
.mag-consent-text a { color: #897aff; text-decoration: underline; }
.mag-consent-buttons { display: flex; gap: 0.6rem; }
.mag-consent-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 100rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.mag-consent-accept {
  background-color: #897aff;
  border-color: #897aff;
  color: #15131f;
  font-weight: 600;
}

/* ---------- Startseite: Zielgruppen-Split im Hero ---------- */
.mag-audience-split {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}
.mag-audience-card {
  flex: 1 1 16rem;
  max-width: 24rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  background: rgba(21, 19, 31, 0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: block;
}
.mag-audience-card:hover {
  border-color: #897aff;
  transform: translateY(-2px);
}
.mag-audience-card .mag-audience-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #897aff;
  margin-bottom: 0.4rem;
}
.mag-audience-card .mag-audience-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.mag-audience-card .mag-audience-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}
.mag-audience-card .mag-audience-arrow { margin-left: 0.3rem; }

/* ---------- Landingpage: Calendly-Sektion ---------- */
.mag-calendly-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}
.mag-calendly-heading {
  color: #fff;
  text-align: center;
  margin-bottom: 0.6rem;
  font-size: 2rem;
  font-weight: 600;
}
.mag-calendly-sub {
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.2rem;
}
.mag-calendly-frame {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}

@media (max-width: 600px) {
  .mag-consent-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .mag-consent-buttons { justify-content: flex-end; }
}

/* ---------- Navigation: volle Breite, am Inhalt ausgerichtet ---------- */
.navbar4_container.container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Zielgruppen-Button-Paar: klar unterscheidbar, gleichwertig */
@media (min-width: 992px) {
  .navbar4_menu-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .navbar4_menu-wrapper .navbar4_link-2 { padding-left: 0; padding-right: 0; }
  .navbar4_menu-wrapper .button-4 { margin: 0 !important; }
  .navbar4_menu-wrapper .button-4 + .button-4 { margin-left: -1.25rem !important; }
}
@media (max-width: 991px) {
  .navbar4_menu-wrapper .button-4 { margin-left: 0 !important; }
}

a.mag-btn-outline {
  background-color: #897aff !important;
  border-color: #897aff !important;
  color: #0a0812 !important;
  font-weight: 600;
}
a.mag-btn-outline + a.mag-btn-outline {
  background-color: #fff !important;
  border-color: #fff !important;
  color: #0a0812 !important;
}
a.mag-btn-outline:hover { background-color: #a294ff !important; border-color: #a294ff !important; }
a.mag-btn-outline + a.mag-btn-outline:hover { background-color: #d9d4ff !important; border-color: #d9d4ff !important; }

/* ---------- Landingpage: Sektionen auf volle Breite strecken ---------- */
.page-wrapper.mag-stretch { align-items: stretch; }
.page-wrapper.mag-stretch > .page-wrapper,
.page-wrapper.mag-stretch > .footer_wrapper { width: 100%; }

/* ---------- Kontaktseite: Inline-Formular ---------- */
.mag-contact-inline {
  padding: 1rem 2.5rem 6rem;
}
.mag-contact-inline .modal-container {
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  position: static;
}
.mag-contact-inline h2 {
  color: #fff;
  margin-bottom: 0.4rem;
}
.mag-contact-inline .mag-contact-sub {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}
@media (max-width: 600px) {
  .mag-contact-inline { padding: 0 1.25rem 4rem; }
  .mag-contact-inline .modal-container { padding: 2rem 1.25rem; }
}

/* ---------- Landingpage: Calendly-Rahmen + Hero-Abstand unter fixer Nav ---------- */
.calendly-widget-section { padding-top: 4rem; padding-bottom: 5rem; }
.calendly-widget-content-wrapper {
  max-width: 64rem;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}



/* ---------- Kontaktseite: Galerie-Bilder deutlich kleiner ---------- */
.contact_gallery-item img {
  max-height: 240px;
  width: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}
.mag-contact-inline { padding-top: 2rem; padding-bottom: 3rem; }

/* ---------- Calendly-Sektion: zusammengeführte Conversion-Sektion ---------- */
.mag-calendly-tag {
  text-align: center;
  color: #897aff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.mag-trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin: -0.8rem 0 2.2rem;
}
.mag-trust-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* ---------- Navigation: Zwischenbreiten (Tablet quer / schmales Fenster) ---------- */
@media (min-width: 992px) and (max-width: 1299px) {
  .navbar4_logo-link { margin-right: 1.5rem; }
  .navbar4_link-2 {
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
    font-size: 0.88rem;
    white-space: nowrap;
  }
  .navbar4_component-2 .button-4.is-menu-button {
    padding: 0.55rem 1rem !important;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-top: 0 !important;
  }
}

/* ---------- Hero Startseite: Inhalt unter der fixen Nav halten ---------- */
@media (max-width: 1299px) {
  .header114_component {
    padding-top: 7.5rem;
    padding-bottom: 3rem;
  }
}

/* ============ MOBILE-FIXES ============ */
@media (max-width: 767px) {
  /* Consent-Banner: kompakt statt halber Bildschirm */
  .mag-consent-banner { gap: 0.8rem; padding: 1rem 1.1rem; }
  .mag-consent-text { flex: 0 0 auto; font-size: 0.85rem; }

  /* Unterseiten-Heroes: Headline nicht mehr ans Ende eines
     vollhohen Bildschirms drücken */
  .header113_component {
    height: auto;
    min-height: 0;
    padding-top: 7rem;
    padding-bottom: 2.5rem;
    justify-content: flex-start;
  }
  .hero_new { height: auto; min-height: 70svh; padding-top: 6.5rem; padding-bottom: 2.5rem; }
}

/* Startseite-Hero: Kontakt-Links zurück in den Textfluss.
   Das Original pinnt sie bis 991px absolut an den Hero-Boden,
   wo sie mit den Zielgruppen-Karten kollidieren. */
@media (max-width: 991px) {
  .header114_component { min-height: 0; padding-top: 6rem; padding-bottom: 2.5rem; }
  .header114_content-wrapper { grid-template-columns: 1fr; }
  .header114_content-right {
    position: static !important;
    inset: auto !important;
    margin-top: 2rem;
    align-items: flex-start;
  }
}

/* ---------- Navigation: Hintergrund, damit Logo/Links über Text lesbar bleiben ---------- */
.navbar-wrapper-2 {
  margin-top: 0 !important;
  background-color: rgba(10, 8, 18, 0.72) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.navbar4_component-2 { margin-top: 0 !important; }

/* ---------- "Made in Webflow"-Badge ausblenden (selbst gehostet) ---------- */
.w-webflow-badge { display: none !important; }

/* ============ STARTSEITE: ZIELGRUPPEN-GATE ============ */
.mag-gate {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 6.5rem 1rem 1rem;
  gap: 1.6rem;
}
.mag-gate-head {
  text-align: center;
  animation: magGateIn 0.7s ease 0.05s both;
}
.mag-gate-kicker {
  color: #897aff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.mag-gate-title {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 500;
  margin: 0 auto;
  max-width: 60rem;
}
.mag-gate-panels {
  flex: 1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
  min-height: 0;
}
.mag-gate-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  min-height: 30rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.mag-gate-panel.is-freelancer { animation: magGateIn 0.7s ease 0.15s both; }
.mag-gate-panel.is-corporate { animation: magGateIn 0.7s ease 0.28s both; }
.mag-gate-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.is-freelancer .mag-gate-bg { object-position: 70% 30%; }
.mag-gate-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(8, 6, 16, 0.96) 0%,
      rgba(8, 6, 16, 0.86) 28%,
      rgba(8, 6, 16, 0.55) 55%,
      rgba(8, 6, 16, 0.18) 80%,
      rgba(8, 6, 16, 0.05) 100%);
}
.mag-gate-content {
  position: relative;
  z-index: 1;
  padding: 2.4rem 2.6rem;
  max-width: 36rem;
}
.mag-gate-tag {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #c6bcff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.mag-gate-tag::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: #897aff;
  border-radius: 2px;
}
.mag-gate-heading {
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}
.mag-gate-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  margin-bottom: 1.4rem;
}
.mag-gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 100rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: gap 0.25s ease, background-color 0.25s ease;
}
.mag-gate-btn.is-filled { background: #897aff; color: #0a0812; }
.mag-gate-btn.is-outline {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(10, 8, 18, 0.4);
}
.mag-gate-panel:hover { border-color: #897aff; box-shadow: 0 12px 60px rgba(137, 122, 255, 0.22); }
.mag-gate-panel:hover .mag-gate-bg { transform: scale(1.045); }
.mag-gate-panel:hover .mag-gate-btn { gap: 0.95rem; }
.mag-gate-panel:hover .mag-gate-btn.is-filled { background: #a294ff; }

@keyframes magGateIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 991px) {
  .mag-gate { padding-top: 5.5rem; }
  .mag-gate-panels { grid-template-columns: 1fr; }
  .mag-gate-panel { min-height: 24rem; }
  .mag-gate-content { padding: 1.6rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mag-gate-head, .mag-gate-panel { animation: none; }
}

/* ---------- Startseite: MAG-Intro-Sektion zentrieren ---------- */
.layout441_content { grid-template-columns: 1fr !important; display: grid; }
.layout441_content-left { display: none; }
.layout441_content-right {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.layout441_content-right .text-size-medium { margin-left: auto; margin-right: auto; }

/* ---------- Nav: aktives Zielgruppen-Button-Paar markieren ---------- */

.layout441_content-right .button-wrapper,
.layout441_content-right .button-group { justify-content: center; }
.layout441_content-right a.button { margin-left: auto; margin-right: auto; }

/* ---------- Freelancer-Seite: Video darf Stat-Karten nicht überlappen
   (Original-Webflow-Bug: .project-image-copy hat feste Höhe < Videohöhe) ---------- */
.project-image-copy { height: auto !important; }

/* ---------- Landing-Hero mobil: Kopf nicht abschneiden ---------- */
@media (max-width: 991px) {
  .hero_new {
    background-position: 0 0, 50% 22% !important;
    min-height: 82svh;
  }
}
