/* ============================================
   MANAGEMENT V3 - NYT Style mit festen Animationen
   ============================================ */

/* Keine Google Fonts - nutzen System Serif */

/* Overlay Body Scroll Lock */
body.overlay-open {
  overflow: hidden;
}

/* Management Navigation */
.man-list-nav {
  display: none;
  position: fixed;
  top: var(--nav-height, 0px);
  left: 0;
  right: 0;
  z-index: 100;
	top:50px;
  background-color: transparent;
  border-bottom: none;
}

/* Mobile: Navigation ausblenden */
@media (max-width: 899px) {
  .man-list-nav {
    display: none !important;
  }
}

.man-nav-inner {
  display: flex;
  gap: 0;
	margin-top:-3px;
  padding: 4px;
	padding-top:20px;
	border-bottom-right-radius:1px;
	border-bottom-left-radius:1px;
  justify-content: center;
  align-items: center;
	
}

.man-nav-link {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
	margin-left:3px;
	margin-right:3px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s ease, color 0.3s ease, border-bottom-color 0.3s ease, opacity 0.2s ease, text-shadow 0.3s ease;
  flex-shrink: 0;
	border-bottom-left-radius:1px;
	border-bottom-right-radius:1px;
  background-color: transparent;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);

}

.man-nav-link:hover {
  opacity: 0.8;
}

/* Section Wrap */
.nbd-section-wrap.mng-section-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Fullscreen Section */
.mng-section.mng-fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Max Container */
.mng-section .max-cont {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2vmin;
  z-index: 1;
}

/* Section Line - Split Layout */
.mng-section .section-line {
  display: flex;
  gap: 4vmin;
  align-items: flex-start;
  width: 100%;
}

.mng-section .section-line.reverse {
  flex-direction: row-reverse;
}

/* Section Containers - 50/50 Split */
.mng-section .section-cont {
  flex: 1;
  position: relative;
}

/* Image Side */
.mng-section .section-cont.mng-image-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.mng-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.mng-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Desktop Bild-Animationen - ab 900px */
@media (min-width: 900px) {
  .mng-image-wrapper {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
  }

  /* Von links reinscrollen (Standard) */
  .mng-image-wrapper.mng-slide-from-left:not(.mng-animated-desktop) {
    transform: translateX(-100px);
  }

  /* Von rechts reinscrollen */
  .mng-image-wrapper.mng-slide-from-right:not(.mng-animated-desktop) {
    transform: translateX(100px);
  }

  /* Animiert State */
  .mng-image-wrapper.mng-animated-desktop {
    opacity: 1;
    transform: translateX(0);
  }

  /* Text-Seite Animation: Von unten nach oben */
  .mng-content-inner {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1.2s ease 0.3s, transform 1.2s ease 0.3s;
  }

  .mng-content-inner.mng-animated-desktop {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Headline/Subline über Bild Content (Desktop) */
.mng-image-content {
  margin-bottom: 2rem;
}

.mng-image-content .mng-section-title {
  margin-bottom: 1rem;
}

.mng-image-content .mng-byline {
  margin-bottom: 0;
}

/* Text Side */
.mng-section .section-cont.mng-text-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mng-content-inner {
  padding: 4vmin 3vmin;
}

/* Headline - NYT Style */
.mng-section-title {
  font-size: clamp(2.8rem, 5.6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 1.5rem 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Subline - Elegant Serif wie Startseite */
.mng-byline {
  display: block;
  font-family: 'Georgia', 'Garamond', 'Times New Roman', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.3;
}

/* Text Content */
.mng-text {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.mng-text p {
  margin-bottom: 1.5rem;
}

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

.mng-text a {
  color: #FFDE0D;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mng-text a:hover,
.mng-text a:focus {
  text-decoration: underline;
}

.mng-text ul,
.mng-text ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.mng-text strong {
  font-weight: 700;
}

/* ============================================
   ANIMATIONEN
   ============================================ */

/* Mobile: Content-Inner slide + fade (MIT opacity!) */
@keyframes mng-slideUpContentInner {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile: Bild von unten fade + slide */
@keyframes mng-slideUpFadeImage {
  from {
    opacity: 0;
    transform: translateY(150px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile: Content von unten fade + slide (langsamer als Bild) */
@keyframes mng-slideUpFadeContent {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile: Fade In Animation (nur opacity) */
@keyframes mng-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive - Mobile Stacking */
@media (max-width: 900px) {

  /* Section Wrap statisch (keine Animation) */
  .nbd-section-wrap.mng-section-wrap {
    padding-bottom: 25px;
  }

  /* Letzte Section - negativer margin */
  .mng-big-wrapper .nbd-section-wrap.mng-section-wrap:last-child {
    margin-bottom: -35px;
  }

  /* Max-Cont auf Mobile overflow erlauben */
  .mng-section .max-cont {
    padding: 0;
    overflow: visible;
  }

  .mng-section .section-line {
    flex-direction: column !important;
    gap: 0;
  }

  .mng-section .section-line.reverse {
    flex-direction: column !important;
  }

  /* Bild fullwidth - 100% von links nach rechts */
  .mng-section .section-cont.mng-image-side {
    order: 1;
    width: 100vw !important;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .mng-image-wrapper {
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    margin: 0;
    overflow: hidden;
  }

  .mng-section .section-cont.mng-text-side {
    order: 2;
    width: 100%;
    margin-top: -10%;
    padding: 0 5%;
    overflow: hidden;
  }

  /* Content-Box mit 10px padding - Background solid */
  .mng-content-inner {
    padding: 10px;
    border-radius: 4px;
    transform: translateY(100px);
    opacity: 0;
  }

  /* Content-Inner Animation - MIT opacity fade! */
  .mng-content-inner.mng-animate-content {
    animation: mng-slideUpContentInner 0.9s ease-out forwards;
  }

  .mng-section.mng-fullscreen {
    min-height: auto;
    padding: 0 0 25px 0;
  }

  /* Mobile: Bild Initial State */
  .mng-image-side {
    opacity: 0;
  }

  /* Mobile: Bild Animation - SCHNELLER */
  .mng-image-side.mng-animate-image-mobile {
    animation: mng-slideUpFadeImage 1s ease-out forwards;
  }

  .mng-text-side {
    opacity: 1;
  }

  /* Mobile: Headline/Subline Initial State */
  .mng-text-side .mng-section-title,
  .mng-text-side .mng-byline {
    opacity: 0;
  }

  /* Mobile: Headline/Subline Fade In - SCHNELLER */
  .mng-text-side .mng-section-title.mng-fade-in,
  .mng-text-side .mng-byline.mng-fade-in {
    animation: mng-fadeIn 0.7s ease-out forwards;
  }

  /* Mobile: Section Background transparent - Wrap hat Background */
  .mng-section.mng-fullscreen {
    background-color: transparent !important;
  }

  /* Mobile: Content Collapse wenn zu hoch */
  .mng-text.has-more-content {
    max-height: 26vh;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-out;
  }

  .mng-text.has-more-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, var(--section-bg-color, #ffffff) 100%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
  }

  .mng-text.expanded {
    max-height: none;
  }

  .mng-text.expanded::after {
    opacity: 0;
  }

  /* Mobile: Weiter lesen Button */
  .mng-read-more-btn {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 45px;
    padding: 0;
    background-color: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.3s ease;
  }

  .mng-read-more-btn::before {
    content: '⊕ ';
    margin-right: 8px;
    font-size: 1.2em;
  }

  .mng-read-more-btn:hover {
    opacity: 0.7;
  }
}

/* Desktop: Layout */
@media (min-width: 901px) {
  /* Management Navigation sichtbar */
  .man-list-nav {
    display: block;
  }

  /* Section mit Nav-Height */
  .mng-section.mng-fullscreen {
    min-height: calc(100vh - var(--nav-height, 0px));
    background-color: transparent;
  }

  /* Section-Line: volle Höhe + align children center */
  .mng-section .section-line {
    min-height: calc(100vh - var(--nav-height, 0px));
    align-items: center;
  }

  /* Image-Side + Text-Side: beide vertical center */
  .mng-section .section-cont.mng-image-side,
  .mng-section .section-cont.mng-text-side {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mng-content-inner {
    width: 100%;
    max-width: 600px;
    background-color: transparent !important;
  }

  .mng-image-wrapper {
    width: 100%;
  }

  /* Desktop: Mehr Abstand zwischen Headline und Subline */
  .mng-section-title {
    margin-bottom: 4rem;
    padding-bottom: 25px;
  }

  .mng-byline {
    margin-bottom: 2.5rem;
  }

  /* Content verstecken auf Desktop initial */
  .mng-text {
    display: none;
  }

  /* Button auf Desktop anzeigen */
  .mng-read-more-btn {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.3s ease;
  }

  .mng-read-more-btn::before {
    content: '⊕ ';
    margin-right: 8px;
    font-size: 1.2em;
  }

  .mng-read-more-btn:hover {
    opacity: 0.7;
  }

  /* Overlay für Desktop */
  .mng-overlay {
    position: fixed;
    top: var(--nav-height, 0px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow: hidden;
  }

  .mng-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Overlay Background - Fixed Image */
  .mng-overlay-bg {
    position: fixed;
    top: var(--nav-height, 0px);
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
  }

  /* Overlay Content */
  .mng-overlay-content {
    position: relative;
    z-index: 2;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 35vh;
  }

  /* Content Box */
  .mng-overlay-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 80px 120px;
    border-radius: 8px 8px 0 0;
    min-height: calc(100vh - var(--nav-height, 0px));
  }

  /* Close Button - FontAwesome Cancel Icon */
  .mng-overlay-close {
    position: fixed;
    top: calc(var(--nav-height, 0px) + 30px);
    right: 40px;
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 42px;
    color: #ff0000;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
    transition: all 0.3s ease;
    padding: 0;
  }

  .mng-overlay-close:hover {
    color: #cc0000;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1));
    transform: scale(1.1);
  }

  /* Overlay Title + Subline - Gleiche Größe wie Hauptseite */
  .mng-overlay-title {
    font-size: clamp(2.8rem, 5.6vw, 4.2rem);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 1.5rem 0;
    line-height: 1.15;
  }

  .mng-overlay-subline {
    font-family: 'Georgia', 'Garamond', 'Times New Roman', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 3rem;
    line-height: 1.3;
  }

  .mng-overlay-text {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    line-height: 1.4;
  }

  .mng-overlay-text p {
    margin-bottom: 2rem;
  }

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

  /* Close Button am Ende des Contents */
  .mng-overlay-close-bottom {
    display: inline-block;
    margin-top: 3rem;
    padding: 20px 42px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: inherit;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
  }

  .mng-overlay-close-bottom:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
  }
}

@media (max-width: 768px) {
  .mng-section-title {
    font-size: clamp(2rem, 7vw, 3rem);
    letter-spacing: 1px;
  }

  .mng-byline {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .mng-text {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
  }

  .mng-content-inner {
    padding: 3vmin 2vmin;
  }
}

@media (max-width: 480px) {
  .mng-byline {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .mng-content-inner {
    padding: 2vmin 1.5vmin;
  }
}

.mng-big-wrapper{
 margin-bottom: -35px;
}
