/* poppins-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/poppins-v22-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/poppins-v22-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/poppins-v22-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
}

/* Content width control */
.container-fluid:not(.full-width) {
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero section and footer should stretch full width */
footer {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow-x: hidden;
}

/* Content sections */

#side,
#kreislaufwirtschaft
 {
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-nav>li {
  margin-left: 40px;
}

/* Navbar Styling mit Glaseffekt */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
.navbar-active{
  color: #2ecc71 !important;
}

/* Navigation Links mit Hover-Effekt */
.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2ecc71 !important;
}

.hero {
  height: 110vh;
  position: relative;
  overflow: hidden;
}

/* Head Image */
.head-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(1.5);
}

.head-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.head-content {
  position: absolute;
  top: 50%;
  transform: translateY(-40%);
  left: 0;
  right: 0;
  padding: 20px;
  color: white;
}

/* Base styles for both header and text */
.head-content-header,
.head-content-text {
  width: fit-content;
  padding: 25px;
  border-radius: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease;
}

/* Specific styles for header */
.head-content-header {
  font-size: clamp(2rem, 5vh, 3.5rem); /* Responsive font size */
  max-width: 100%;
}

/* Specific styles for text */
.head-content-text {
  font-size: clamp(1rem, 2vw, 1.2rem); /* Responsive font size */
  max-width: 800px; /* Maximum width for very large screens */
}

/* Hover effects for non-touch devices */
@media (hover: hover) {
  .head-content-header:hover,
  .head-content-text:hover {
    transform: translateY(-10px);
  }
}

/* Responsive adjustments */
@media screen and (min-width: 1200px) {
  .head-content {
    padding-left: 100px;
    padding-right: 100px;
  }
  
  .head-content-text {
    max-width: 50%;
  }
}

/* Tablet adjustments */
@media screen and (max-width: 991px) {
  .head-content-text {
    max-width: 70%;
  }
}

/* Mobile adjustments */
@media screen and (max-width: 767px) {
  .head-content {
    transform: translateY(-30%);
  }

  .head-content,
  .head-content-header,
  .head-content-text {   
    top: 30%;
    width: 100%;
    max-width: 100%;
    padding: 15px;
    margin-bottom: 20px;
  }
}

/* Small mobile adjustments */
@media screen and (max-width: 480px) {
  .head-content {
    transform: translateY(-20%);
  }
}

/* Button Styling mit Animation */
.btn-primary {
  background: #2ecc71 !important;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
  background: #663399 !important;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(102, 51, 153, 0.3) !important;
  filter: brightness(110%) !important;
}

/* Accordion Styling */
.accordion {
  --accordion-color: #2ecc70;
  --accordion-hover-brightness: 110%;
  --accordion-transition: 0.3s ease;
}

.accordion-item {
  margin-block-end: 1rem;
}

.custom-accordion-btn {
  background-color: var(--accordion-color) !important;
  color: white !important;
  padding: 1rem 1.25rem;
  font-weight: 500;
  width: 100%;
  text-align: left;
  border: none;
  transition: all var(--accordion-transition);

  &:focus {
    box-shadow: 0 0 0 0.25rem rgba(46, 204, 112, 0.021);
  }

  &:hover {
    filter: brightness(var(--accordion-hover-brightness));
    transform: translateY(-1px);
  }

  /* Custom Accordion Icons */
  &::after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important;
    transition: transform var(--accordion-transition);
  }

  &:not(.collapsed)::after {
    transform: rotate(180deg);
  }
}

.accordion-body {
  padding: 1rem;
  background-color: white;
  border-radius: 0.375rem;
}

.accordion-body-large {
  font-size: 1.18rem;
  background-color: #f8f9fa !important;
  padding: 1rem 1.5rem !important;
}

.accordion-collapse {
  transition: all var(--accordion-transition);
}

/* Base responsive styles */
.section-padding {
  padding: 40px 15px;
}

/* Card styles */
.card-body {
  padding: 20px !important;
}

/* Heading styles */
h2.display-4.fw-bold {
  font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
  line-height: 1.2;
}

/* Card and icon alignment */
@media screen and (max-width: 767px) {
  .d-flex.align-items-center {
    flex-direction: column;
    text-align: center;
  }

  .d-flex.align-items-center i {
    margin-bottom: 10px;
    margin-right: 0 !important;
  }
}

/* Model and Modal styles */
#smallModelSvg {
  aspect-ratio: 4/3;
  width: 100%;
  display: block;
}

@media screen and (max-width: 767px) {
  .modal-dialog {
    margin: 10px;
  }

  .modal-body {
    padding: 10px;
  }

  #smallModelSvg {
    max-height: 300px !important;
  }

  .transparent-card-hover {
    margin: 0;
    margin-block-start: 2rem !important;
    border-radius: 10px;
    overflow: hidden;
  }
}

@media screen and (max-width: 576px) {
  h2.display-4.fw-bold {
    font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
    margin-bottom: 1rem;
  }

  #smallModelSvg {
    max-height: 250px !important;
  }

  .transparent-card-hover {
    margin-block-start: 1.5rem !important;
    padding: 0.5rem !important;
  }

  .fa-hand-pointer {
    font-size: 1.25rem;
  }
}

/* Lead paragraph styles */
.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

@media screen and (max-width: 767px) {
  .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem !important;
    padding-inline: 1rem !important;
  }
}

@media screen and (max-width: 576px) {
  .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem !important;
    padding-inline: 0.75rem !important;
  }
}

.icon-color {
  color: #2ecc71;
}

.link {
  color: #2ecc71;
}

.green-text {
  color: #2ecc71;
}

.transparent-card{
  background: rgba(255, 255, 255, 0.8); 
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.transparency-card{
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease;
}

.transparent-card-hover{
  background: rgba(255, 255, 255, 0.8); 
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.transparent-card-hover:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.background-section {
  background-image: url('../images/background.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 8px;
  margin-top: 8px;
}

.dropdown-item:hover {
  background-color: rgba(108, 117, 125, 0.1);
}

object {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Add these navbar-specific mobile optimizations */
@media screen and (max-width: 767px) {
  /* Navbar mobile styling */
  .navbar {
    padding: 10px 15px;
  }

  .navbar-brand img {
    width: 150px; /* Smaller logo on mobile */
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav {
    gap: 10px;
  }

  .navbar-nav > li {
    margin-left: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 0;
  }

  .navbar-nav > li:last-child {
    border-bottom: none;
  }

  /* Button adjustments */
  .btn-secondary {
    width: 100%;
    margin: 10px 0;
  }

  /* Language dropdown adjustments */
  .dropdown {
    width: 100%;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
}

/* Additional navbar improvements */
.navbar-toggler {
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler:hover {
  transform: scale(1.1);
}

/* Add these optimizations for the Kreislaufwirtschaft section */
@media screen and (max-width: 767px) {
  .section-padding {
    padding: 40px 15px;
  }
  
  .card-body {
    padding: 20px !important;
  }
  
  /* Adjust headings for mobile */
  h2.display-4.fw-bold {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
    margin-bottom: 1rem;
  }
  
  /* Adjust icon and text alignment in cards */
  .d-flex.align-items-center {
    flex-direction: column;
    text-align: center;
  }
  
  .d-flex.align-items-center i {
    margin-bottom: 10px;
    margin-right: 0 !important;
  }
  
  /* Adjust SVG model display */
  #smallModelSvg {
    height: 400px !important;
  }
  
  /* Modal adjustments */
  .modal-dialog {
    margin: 10px;
  }
  
  .alert {
    flex-direction: column;
    text-align: center;
  }
  
  .alert .btn {
    margin: 10px 0 0 0;
    width: 100%;
  }
}

/* Kreislaufwirtschaft section */
.kreislaufwirtschaft {
  max-width: 1200px;
  margin: 0 auto;
}
.btn-cehub-main {
  background: #2ecc71;
  color: #fff !important;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 1.5rem;
  transition: background 0.12s, transform 0.12s, box-shadow 0.12s;
  box-shadow: 0 4px 18px rgba(13,110,253,0.10), 0 1.5px 6px rgba(25,135,84,0.08);
}
.btn-cehub-main:hover, .btn-cehub-main:focus {
  background: #29b866;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(13,110,253,0.18), 0 2px 8px rgba(25,135,84,0.10);
  text-decoration: none;
}
.btn-cehub-main:active {
  transform: scale(0.98);
}
/* Small mobile adjustments */
@media screen and (max-width: 576px) {
  h2.display-4.fw-bold {
    font-size: clamp(1.5rem, 3vw, 1.8rem) !important;
  }
  
  #smallModelSvg {
    height: 300px !important;
  }
  
  .modal-body {
    padding: 10px;
  }
}

/* Logo size adjustments */
@media screen and (max-width: 767px) {
  .tub-logo {
    max-width: 100px !important;
  }
}

@media screen and (max-width: 576px) {
  .tub-logo {
    max-width: 80px !important;
  }
}

.svg-wrapper {
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center;     /* vertical centering */
  height: 100vh;           /* take full viewport height */
  width: 100%;             /* full width */
}

#modelSvg {
  max-width: 90%;  /* keep responsive */
  max-height: 90%;
}
