/* ==========================
   NST Project Slider CSS
   ========================== */

/* 1. Reset / Normalize */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  font-size: 16px;
  color: #333;
  background-color: #fff;
}

/* 2. CSS Custom Properties */
:root {
  --color-primary: #1D70B7;
  --color-secondary: #28225C;
  --color-grey: #6F6F6E;
  --color-white: #fff;
  --color-black: #000;

  --font-base: 'Inter', sans-serif;
  --font-heading: 'Titillium Web', sans-serif;

  --max-width: 1200px;
  --spacing: 1rem;
}

/* 3. Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* 4. Utility-Klassen */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

.grid {
  display: grid;
  gap: var(--spacing);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* 5. Standard Elemente */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 0.5em;
  line-height: 1.2;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* 6. NST Project Slider Styles */
.nst-project-slider-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  padding: 2rem 0;
}

.nst-project-swiper .swiper-slide {
  width: auto;
}

.nst-slide-inner {
  background-color: #25225C;
  border: 1px solid #6f6f6f;
  border-radius: 30px;
  overflow: hidden;
  max-height: 500px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}
.nst-project-swiper .swiper-slide {
  width: auto;
  max-width: 800px; /* 768px + 2em padding = ~800px */
  margin-right: 24px;
}

.nst-project-swiper {
  padding-left: 1rem;
  padding-right: 1rem;
}


.nst-slide-padding {
  padding: 2em;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Swiper Navigation */
.nst-project-navigation {
  margin-top: 2rem;
  text-align: center;
}

.nst-swiper-btn {
  display: inline-block;
  width: 48px;
  height: 48px;
  margin: 0 10px;
  background-color: #1D70B7;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.nst-swiper-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid white;
  border-right: 2px solid white;
  transform: translate(-50%, -50%) rotate(45deg);
}

.swiper-button-prev::after {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.nst-swiper-btn:hover {
  background-color: #28225C;
  transform: scale(1.05);
}

/* Slide Info Overlay */
.nst-slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 1em 1.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(6px);
  box-sizing: border-box;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.nst-info-left {
  width: 70%;
  padding-right: 1em;
}

.nst-info-right {
  width: 30%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color:#fff;
  border-radius: 30px;
  padding:10px;
}

.nst-info-right img {
    max-height: 150px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
  margin:auto;
}

.nst-project-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.3em;
  color: #ede552; /* zartes Gelb für Kontrast */
}

.nst-project-description {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
  color: #ffffff;
}

.nst-project-swiper {
  padding-left: 1rem;
  padding-right: 1rem;
}

.nst-project-button {
  display: inline-block;
  margin-top: 0.5em;
  padding: 0.4em 1em;
  background-color: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.nst-project-button:hover {
  background-color: var(--color-secondary);
}


/* 7. Responsive Behavior */
@media (min-width: 768px) {
  .nst-slide-padding {
    max-height: 500px;
    overflow: hidden;
    position: relative;
  }

  .nst-slide-padding:hover img {
    animation: scrollImage 8s linear forwards;
  }

  @keyframes scrollImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
  }

  .nst-slide-padding img {
    transition: transform 0.3s ease;
    will-change: transform;
  }
}

@media (max-width: 767px) {
  .nst-slide-inner {
    max-height: 500px;
    overflow: hidden;
  }

  .nst-slide-padding {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nst-slide-padding a {
    display: block;
  }

  .nst-slide-padding img {
    height: auto;
    width: 100%;
  }
}

@media (min-width: 992px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  /* extra large devices */
}
