@media (min-width: 769px) {
  body.home main {
    padding: 0;
    margin: 0;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {

body:not(.home) main {
  padding-bottom: 6rem !important; 
}

body.home main {
    padding: 0;
    margin: 0;
  }

  /* Header & Navigation */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: none;
    border-bottom: none;
    margin: 0;
    padding: 0;
  }

  /* Plus/Minus Menu Button */
  .menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 102;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    font-size: 4rem;
    line-height: 1;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
   font-family: revert;
    font-weight: lighter;
  }

  .menu-toggle::before {
    content: '+';
    transition: all 0.3s ease;
  }

  /* Menu Toggle Active State (Minus) */
  .menu-toggle.active::before {
    content: '−';
  }

  /* Menu Navigation */
  .menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 101;
    display: none;
    padding: 2rem 2rem 2rem;
    overflow-y: auto;
  }

  .menu.active {
    display: block;
  }

  .menu ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .menu li {
    width: 100%;
  }

  .menu li:not(:last-child)::after {
    display: none;
  }

  .menu a {
    font-size: 2.2rem !important;
    display: block;
  }

  /* Main Content */
  main {
    display: block;
    padding: 0;
    margin: 0;
    height: 100vh !important;
  }

  /* Content Grid - Mobile */
  .content-full,
  .content-left,
  .content-right {
    grid-column: 1 / -1;
    border-right: none;
    padding-right: 0;
    margin-bottom: 2rem;
  }
.content-full {
    display: block;
}
  /* Sidebar Hidden on Mobile */
  .mitglieder-sidebar,
  .projects-sidebar {
    display: none;
  }

  /* HOME - Carousel */
  .carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    grid-column: 1 / -1;
    z-index: 1;
  }

  .carousel-slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
  }

  .carousel-button {
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
  }

  .carousel-button.prev {
    left: 10px;
  }

  .carousel-button.next {
    right: 10px;
  }

  .carousel-dots {
    bottom: 100px;
  }

  /* projektegrid - One Column */
  .projektegrid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .projekte-alle {
    flex-direction: column;
  }

  .projektegrid figure {
    position: relative;
  }

  .projektegrid img {
    aspect-ratio: 1/1;
  }

  .projektegrid figure::before {
    opacity: 0.9;
  }

  .projektegrid figcaption {
    opacity: 1;
    font-size: 1.8rem !important;
  }

  /* Touch interaction for mobile */
  .projektegrid a:active figure::before {
    opacity: 0.9;
  }

  .projektegrid a:active figcaption {
    opacity: 1;
  }

 /* PROJEKT */
  main.projekt-detail {
    display: flex;
    flex-direction: column;
  }

  .content-left {
    order: 1;
    margin-bottom: 0;
  }

  .content-left ul {
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .content-left ul li:has(.video) {
    order: 1;
    margin-bottom: 1rem;
  }

  .content-left ul li:first-of-type,
  .content-left ul li:nth-child(2):not(:has(.video)) {
    order: 2;
    margin-bottom: 1rem;
  }

  .content-right {
    order: 3;
    margin-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .content-left ul li:nth-child(n+3) {
    order: 4;
  }

  .projekt-text{
    margin-top: 1rem;
  }

  .projekt-details {
    margin-top: 1.5rem;
    padding-bottom: 4rem;
  }

  .foerderer-logos {
    flex-direction: row;
    align-items: flex-start;
  }

.projekt-team-mobile {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 99;
    overflow: hidden;
    padding: 0.8rem 0;
    border-top: 1px solid #000;
    width: 100%;
  }

  .team-scroll {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 10s linear infinite;
    min-width: fit-content;
  }

  .team-member {
    color: #000;
    text-decoration: none;
    font-size: 1.8rem;
    padding: 0 0.3rem;
    flex-shrink: 0;
  }

  .team-member.active {
    color: var(--color-blue-text);
    text-decoration: underline;
    text-decoration-color: var(--color-blue-text);
  }

  .team-separator {
    color: #000;
    padding: 0 0.3rem;
    text-decoration: none;
    font-size: 1.8rem;
    flex-shrink: 0;
  }

  @keyframes scroll-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
}

 .logo-higher {
  bottom: 4rem !important;
}

  /* ÜBER UNS */
  .fullheight img {
    height: auto;
    max-height: 60vh;
    padding-bottom: 1rem;
    width: 100vw;
  }

  .content-right h1 {
    font-size: 1.8rem !important;
  }

  .content-right p {
    font-size: 1rem !important;
  }

  .beirat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* AKTUELLES */
.aktuelles-wrapper {
    width: 100%;
    max-width: 100vw;
    display: block;
    border-right: none !important;
    padding-right: 0 !important;
    border: none;
    overflow-x: hidden;
  }
  
  .aktuelles-artikel {
    display: flex !important;
    flex-direction: column;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: none;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .aktuelles-artikel:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 9rem !important;
  }
  
  .artikel-image {
    width: 100%;
    padding-right: 0;
    margin-bottom: 1rem;
    order: 1;
  }
  
  .artikel-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }
  
  .artikel-content {
    border-left: none !important;
    border-right: none !important;
    padding-left: 0;
    order: 2;
    max-width: 100vw;
    padding-right: 1rem;
  }
  
  .artikel-content .title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
  }
  
  .artikel-content .untertitel {
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
  }
  
  .artikel-content time {
    font-size: 0.9rem !important;
    display: block;
    margin-bottom: 1rem;
    color: #666;
  }
  
  .artikel-content p {
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 1rem;
  }
  
  .artikel-link {
    margin-top: 0.5rem;
  }
  
  .artikel-link a {
    font-size: 1rem;
  }

  /* KONTAKT */
  .adresse,
  .email,
  .website {
    font-size: 1rem;
    line-height: 1.6;
  }

/* CHEMIEFASERLANDKARTE */
  .karte-container {
    width: 100% !important;
    height: auto;
    height: 100vh !important;
  }
  .karte-container svg{
      width: auto !important;
      height: 100% !important;
  }
  .stadt-tooltip {
    max-width: 220px !important;
    overflow: scroll;
    padding: 0.6rem !important;
  }

  .stadt-tooltip p{
    font-size: 0.85rem !important;
    line-height: 1 !important;
  }

  .stadt-tooltip h3 {
    font-size: 0.95rem !important;
  }
  .stadt-tooltip p.quelle {
    font-size: 0.5rem !important;
  }

  .chemiefasertitel{
  padding-left: 1rem;
  }
  .chemiefasertext{
    padding-left: 1rem;
  }
  /* Logo */
  .logo {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 103;
  }

  .logo img {
    width: 100px;
  }

  /* Video */
  .video {
   padding-bottom: 0rem;
  }

  .video iframe {
    width: 100%;
    aspect-ratio: 16/9;
  }

  /* Typography */
  h1 {
    font-size: 1.8rem !important;
  }

  p {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* Very Small Phones */
@media (max-width: 380px) {
  .menu a {
    font-size: 1.3rem;
  }

  .logo img {
    width: 100px;
  }

  .carousel-dots {
    bottom: 80px;
  }

  .projektegrid figcaption {
    font-size: 1rem;
  }
}