/* Dárdai zuerst, Pia danach */
.bento-pia {
  grid-area: 2/3 !important;
}
.bento-center-img {
  grid-area: 2/1 !important;
}

@media (max-width: 768px) {
  .bento-pia {
    grid-area: 5/1 !important;
  }
  .bento-center-img {
    grid-area: 4/1 !important;
  }
}

/* Pia Partner Card — grüner Badge */
.partner-card-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 6, 6, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.partner-badge-green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

/* Pia Bio Strip */
.pia-bio-strip {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(233, 30, 140, 0.25);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.pia-bio-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #e91e8c;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}
.pia-bio-strip p {
  color: rgba(242, 242, 242, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* Trust Bar flach unter der Section */
.partners-trust-bar {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.partners-trust-bar p {
  color: rgba(242, 242, 242, 0.6);
  font-size: 0.95rem;
  margin: 0;
}
@media (max-width: 768px) {
  .pia-bio-strip {
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    margin-top: 14px;
  }
  .partners-trust-bar {
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    margin-top: 10px;
  }
}

/* Mobile: kein horizontaler Überlauf */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  * {
    box-sizing: border-box;
  }

  /* Fullscreen-Menü-Fix: 100dvh statt 100vh für iOS Safari */
  .nav-links.open {
    height: 100dvh;
  }

  /* backdrop-filter auf navbar entfernen wenn Menü offen (iOS Safari fixed-positioning Fix) */
  body.menu-open .navbar.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* App Preview — Flow Layout */
.app-preview-flow {
  width: 100%;
}

.flow-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13%;
  margin-bottom: 44px;
}

.flow-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid #e91e8c;
  background: rgba(233, 30, 140, 0.07);
  color: #e91e8c;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 28px rgba(233, 30, 140, 0.22), inset 0 0 20px rgba(233, 30, 140, 0.05);
  position: relative;
  z-index: 1;
}

.flow-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(233,30,140,0.7), rgba(233,30,140,0.25), rgba(233,30,140,0.7));
}

.flow-phones {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
}

.flow-phone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 320px;
}

.flow-phone-card {
  width: 100%;
  display: flex;
  justify-content: center;
}

.flow-phone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.flow-phone-item .mockup-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(180, 80, 255, 0.22));
}

.flow-label-box {
  margin-top: 20px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
}

.flow-label-box p {
  font-size: 1rem;
  font-weight: 600;
  color: #f2f2f2;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Mobile: vertikaler Flow — Kreis links, Phone+Label rechts */
.flow-mobile-step {
  display: none;
}

@media (max-width: 768px) {
  .flow-steps-bar {
    display: none;
  }

  .flow-mobile-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 56px;
    padding-top: 4px;
  }

  .flow-mobile-step .flow-circle {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .flow-mobile-vline {
    width: 2px;
    flex: 1;
    min-height: 40px;
    background: linear-gradient(180deg, rgba(233,30,140,0.65), rgba(233,30,140,0.1));
    margin-top: 8px;
  }

  .flow-phones {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 8px;
  }

  .flow-phone-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    max-width: 100%;
    width: 100%;
    padding-bottom: 28px;
  }

  .flow-phone-item:last-child {
    padding-bottom: 0;
  }

  .flow-phone-content {
    flex: 1;
    min-width: 0;
    align-items: flex-start;
  }

  .flow-phone-item .mockup-img {
    max-width: 100%;
  }

  .flow-label-box {
    width: 100%;
  }
}

/* Ernährung: Bild größer und vollständig sichtbar */
.nutrition-layout {
  grid-template-columns: 1fr 500px !important;
}
.nutrition-visual .mockup-img {
  max-width: 520px !important;
  width: 100% !important;
  filter: drop-shadow(0 20px 60px rgba(180, 80, 255, 0.25));
}
@media (max-width: 1024px) {
  .nutrition-layout {
    grid-template-columns: 1fr !important;
  }
  .nutrition-visual .mockup-img {
    max-width: 460px !important;
  }
}

/* Kategorie-Karten: Bild hat mehr Abstand zu den Rändern */
.category-card-image {
  padding: 20px 12px;
  background: var(--bg-card);
}
.category-card-image img {
  object-fit: contain !important;
  object-position: center;
  border-radius: 8px;
}

/* Training: single combined 3-phone image */
.training-phones.single-img {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.training-phones.single-img .mockup-img {
  position: static;
  width: 100%;
  max-width: 580px;
  opacity: 1 !important;
  transform: none !important;
  filter: drop-shadow(0 20px 60px rgba(180, 80, 255, 0.25));
}

/* Mobile: single combined image in training-phones-mobile — nur auf Mobile sichtbar */
@media (max-width: 768px) {
  .training-phones-mobile.single-img {
    height: auto;
    position: static;
    display: flex;
    justify-content: center;
    animation: floatUpDown 3.5s ease-in-out infinite;
  }
  .training-phones-mobile.single-img .mockup-img {
    position: static;
    width: 80vw;
    max-width: 360px;
    opacity: 1 !important;
    transform: none !important;
    filter: drop-shadow(0 20px 50px rgba(180, 80, 255, 0.3));
  }
}

/* Float animation */
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

/* Hero mobile mockup (between h1 and subtitle) */
.hero-mockup-mobile {
  display: none;
}
.training-phones-mobile {
  display: none;
}
.challenge-visual-mobile {
  display: none;
}
.nutrition-visual-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero-mockup-mobile {
    display: flex;
    justify-content: center;
    margin: 24px 0 16px;
  }
  .hero-mockup-mobile img {
    width: 85vw;
    max-width: 380px;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(180, 80, 255, 0.3));
    animation: floatUpDown 3.5s ease-in-out infinite;
  }
  .hero-visual {
    display: none !important;
  }
  /* Training section mobile */
  .training-phones,
  .training-phones.single-img {
    display: none !important;
  }
  .team-banner-section {
    display: none;
  }
  .challenge-visual {
    display: none;
  }
  .nutrition-visual {
    display: none !important;
  }
  .nutrition-visual-mobile {
    display: flex;
    justify-content: center;
    margin: 20px 0 16px;
  }
  .nutrition-visual-mobile img {
    width: 80vw;
    max-width: 380px;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(180, 80, 255, 0.3));
    animation: floatUpDown 3.5s ease-in-out infinite;
  }
  .challenge-visual-mobile {
    display: flex;
    justify-content: center;
    margin: 20px 0 16px;
  }
  .challenge-visual-mobile img {
    width: 80vw;
    max-width: 380px;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(180, 80, 255, 0.3));
    animation: floatUpDown 3.5s ease-in-out infinite;
  }
  .training-phones-mobile {
    display: flex;
    justify-content: center;
    position: relative;
    height: 260px;
    margin: 20px 0 16px;
    animation: floatUpDown 3.5s ease-in-out infinite;
  }
  .training-phones-mobile .phone-overlap-1 {
    position: absolute;
    left: 5%;
    width: 38%;
    z-index: 1;
  }
  .training-phones-mobile .phone-overlap-2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 42%;
    z-index: 2;
    bottom: 0;
  }
  .training-phones-mobile .phone-overlap-3 {
    position: absolute;
    right: 5%;
    width: 38%;
    z-index: 1;
    top: 20px;
  }
}

/* Hero mockup fix */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .mockup-main {
  max-width: 100%;
  width: clamp(260px, 44vw, 560px);
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(180, 80, 255, 0.25));
}
@media (max-width: 768px) {
  .hero-visual .mockup-main {
    width: 90vw;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Partner Hero: Gradient-Orbs auf Desktop verstecken, auf Mobile für Übergang sichtbar */
@media (min-width: 769px) {
  .partner-hero-bg .hero-bg-effects {
    display: none;
  }
}

/* Partner-Desc-Box unter dem Hero */
.partner-desc-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  padding: 24px 32px;
  margin: 0 clamp(16px, 5vw, 80px) 40px;
  text-align: center;
}

.partner-desc-box p {
  color: rgba(242, 242, 242, 0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .partner-desc-box {
    margin: -68px 16px 32px;
    padding: 12px 16px;
    position: relative;
    z-index: 2;
  }
}

/* Partner Hero Background */
.partner-hero-bg {
  position: relative;
  background-image: url('/images/team-banner.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  min-height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
}
.partner-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 5, 30, 0.0) 0%,
    rgba(10, 5, 30, 0.0) 55%,
    rgba(10, 5, 30, 0.55) 80%,
    rgba(10, 5, 30, 0.75) 100%
  );
  z-index: 0;
}
@media (min-width: 769px) {
  .partner-hero-bg .hero-bg-effects {
    position: relative;
    z-index: 1;
  }
}
.partner-hero-bg .container {
  position: absolute !important;
  bottom: 6%;
  left: 0;
  right: 0;
  z-index: 1;
  padding-left: clamp(20px, 5vw, 80px);
  padding-right: clamp(20px, 5vw, 80px);
}
.partner-hero-bg .subpage-hero-content {
  padding: 0;
}
.partner-hero-bg .subpage-hero-content .section-tag {
  display: none;
}
.partner-hero-bg .subpage-hero-content h1 {
  margin-bottom: 6px;
  margin-top: 0;
  line-height: 1;
}
.partner-hero-bg .subpage-hero-desc {
  margin-top: 6px;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .partner-hero-bg {
    background-image: url('/images/team-banner.jpg');
    background-size: 100% auto;
    background-position: center 90px;
    background-repeat: no-repeat, no-repeat;
    min-height: 148vw;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .partner-hero-bg::before {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 60%,
      rgba(10, 5, 30, 0.45) 80%,
      rgba(10, 5, 30, 0.7) 100%
    );
  }
  .partner-hero-bg .container {
    position: static !important;
    padding: 0 20px 8px;
  }
  .partner-hero-bg .subpage-hero-content {
    padding-top: 0;
  }
  .partner-hero-bg .subpage-hero-content h1 {
    margin-bottom: 0;
  }
  .partner-hero-bg .hero-bg-effects {
    bottom: auto;
    height: 100px;
    overflow: hidden;
  }
}

/* MOTM Mannschaft Section */
.motm-team-section {
  padding: 80px clamp(16px, 5vw, 80px);
  box-sizing: border-box;
}
.motm-team-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.motm-team-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1;
  margin: 8px 0 20px;
  color: #f2f2f2;
}
.motm-team-text p {
  color: rgba(242,242,242,0.65);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 380px;
}
.motm-team-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.motm-team-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 20px;
}
.motm-team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,5,30,0.15) 0%, transparent 60%);
  border-radius: 20px;
}
.motm-team-img-mobile {
  display: none;
}
@media (max-width: 768px) {
  .motm-team-section {
    padding: 48px 20px;
  }
  .motm-team-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .motm-team-img-wrap {
    display: none;
  }
  .motm-team-text p {
    max-width: 100%;
  }
  .motm-team-img-mobile {
    display: block;
    margin: 20px 0 24px;
    border-radius: 16px;
    overflow: hidden;
  }
  .motm-team-img-mobile img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
  }
}

/* Team Banner — hidden everywhere (replaced by motm-team-section) */
.team-banner-section {
  display: none !important;
}
.team-banner-section-old {
  width: 100%;
  padding: 40px clamp(16px, 4vw, 60px) 60px;
  box-sizing: border-box;
}
.team-banner-inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  height: clamp(340px, 55vw, 620px);
}
.team-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.team-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,5,25,0.55) 0%, rgba(10,5,25,0.1) 60%, transparent 100%);
}
.team-banner-label {
  position: absolute;
  bottom: 24px;
  left: 28px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}
@media (max-width: 768px) {
  .team-banner-inner {
    height: clamp(260px, 80vw, 420px);
    border-radius: 16px;
  }
  .team-banner-section {
    padding: 32px 16px 40px;
  }
}
