@charset "UTF-8";
/* CSS Document */

@media screen and (max-width: 2200px) {
	
	.container {
	max-width: 100%;
	height: auto;
} 
	
}


@media screen and (max-width: 1400px) {
	.wrapper-menu {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 330ms ease-out;
}

.wrapper-menu.open {
  transform: rotate(-45deg); 
}

.line-menu {
  background-color: var(--green-color);
  border-radius: 5px;
  width: 100%;
  height: 6px; 
}
  
.line-menu.half {
  width: 50%;
}

.line-menu.start {
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: right;
}

.open .line-menu.start {
  transform: rotate(-90deg) translateX(3px);
}

.line-menu.end {
  align-self: flex-end;
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: left;
}

.open .line-menu.end {
  transform: rotate(-90deg) translateX(-3px);
}
	
 nav ul {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 10px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px;
  gap: 10px;
	width: 180px;
}

	nav ul.active {
  display: flex;
}
	
	.apotheken-logo {
		display: none;
	}
	
}


@media screen and (max-width: 1150px) {
	

	.kontakt-section {
	flex-direction: column;
    width: 100%;
}
	
}


@media screen and (max-width: 1024px) {
    /* Tablet-Layout */

	.background{
		height: auto;
	}
	
	
	.koenigsfeld-klickdown, .sulgen-klickdown {
       	display: none;
    }

	
	.apotheken-logo {
		display: none;
	}
	
		.parallax-layer1, .parallax-layer3, .parallax-layer5, .parallax-layer6, .parallax-layer7 {
		display: none;
	}
	
	h1 {
	font-family: "Titillium-Bold";
	font-size: 54px;
}

h2 {
	font-family: "Titillium-Bold";
	font-size: 40px;
}

h3 {
	font-family: "Titillium-Bold";
	font-size: 34px;
}

h4 {
	font-family: "Titillium-Bold";
	font-size: 28px;
}


}

/* Responsives Design */
@media screen and (max-width: 768px) {

	
	.container{ 
		display: flex;
		flex-direction: row;
		max-width: 100%;
	} 
	
	.person-container {
		flex-direction: row;
	}

	.apotheken-logo {
		display: none;
	}

    .arrow-image, .partner-logo {
        margin: 0 auto;
    }
	
	    .product-section {
        flex-direction: column; /* Stapeln auf mobilen Geräten */
        align-items: center;
    }

    .product-images img {
        max-width: 80px; /* Bilder auf mobilen Geräten kleiner */
    }
	
  .layout-wrapper {
        flex-direction: column;
        gap: 30px; /* Abstand zwischen den Abschnitten */
    }

    .text-section, .image-section {
        max-width: 100%;
        text-align: center;
    }
	
	  .card-container {
        flex-direction: column; /* Auf größeren Bildschirmen nebeneinander */
    }
	
	.custom-container {
    flex-direction: column; 
    width: 100%;
}

	
 }


@media screen and (max-width: 678px) {
	
	
	.app-download {
		display: none;
	}
	

}

@media screen and (max-width: 475px) {
	

	
	.logo-nav {
		width: 100%;
		max-width: 70%;
		gap: 0;
	}
	
	.app-download {
		display: none;
	}
	
	.background {
		height: 100%;
	}
	
	        .parallax-layer2 img {
            width: 150px;
            z-index: 92;
            left: 15%;
            top: 23%;
            transform: translateY(-100px) rotate(-20deg);
        }

        .parallax-layer4 img {
            width: 200px;
            z-index: 99;
            left: 60%;
            top: 40%;
            transform: translateY(-100px) rotate(20deg);
        }

        .parallax-layer8 img {
            width: 200px;
            z-index: 95;
            left: 30%;
            top: 10%;
            transform: translateY(-100px) rotate(20deg);
        }

        .parallax-layer9 img {
            width: 150px;
            z-index: 95;
            top: 35%;
            left: 30%;
            transform: translateY(-100px) rotate(10deg);
        }

        .parallax-layer10 img {
            width: 200px;
            z-index: 98;
            left: 10%;
            top: 50%;
            transform: translateY(-100px) rotate(-40deg);
        }

        .parallax-layer11 img {
            width: 150px;
            z-index: 93;
            left: 60%;
            top: 20%;
            transform: translateY(-100px);
        }
	
	.apotheken-logo {
	display: none;
	}
	
	.d-none {
		display: none;
	}
	

	
	
  
	
	.footer-container, .footer-container2 {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
	
	.footer-nav {
		margin: 10px 0;
	}
	
	.footer-nav ul {
		margin-right: 0;
	}
	
	
}

/* =========================================================
   MOBILE & TABLET OPTIMIERUNG – Desktop bleibt unverändert
   ========================================================= */
@media screen and (max-width: 1024px) {
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }

  .navigation {
    position: sticky;
    top: 0;
    z-index: 10000;
    align-items: center;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }

  nav ul {
    top: 64px;
    right: 12px;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 10001;
  }

  nav ul li,
  nav ul li a {
    width: 100%;
    box-sizing: border-box;
  }

  ul li ul.drop-down,
  ul li ul.drop-down-yellow {
    position: static;
    width: 100%;
    display: block;
    box-shadow: none;
    padding: 0 0 0 14px;
    border-radius: 0;
  }

  .background,
  .background-kosmetik {
    min-height: auto;
    height: auto;
    background-attachment: scroll;
  }

  section.background:not(#Home),
  section.background-kosmetik {
    padding: 70px 0;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 24px clamp(20px, 5vw, 48px);
    box-sizing: border-box;
  }

  .container-parallax,
  .custom-container,
  .layout-wrapper,
  .person-container,
  .kontakt-section,
  .container-kontakt {
    width: 100%;
    box-sizing: border-box;
  }

  .custom-container,
  .layout-wrapper,
  .kontakt-section,
  .container-kontakt {
    flex-direction: column;
    align-items: stretch;
  }

  .text-section,
  .text-section2,
  .image-section,
  .image-section2,
  .image-section3,
  .kontakt-image,
  .kontakt-details {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    box-sizing: border-box;
  }

  .text-section,
  .text-section2 {
    padding: 0;
  }

  .text-section p,
  .text-section2 p,
  .text-box p,
  .reformhaus-content p,
  .privacy-section p {
    max-width: 70ch;
    font-size: 19px;
    line-height: 1.65;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  .centered-image,
  .main-image,
  .custom-image,
  .custom-image2,
  .person-container img,
  .image-section img {
    height: auto;
    object-fit: contain;
  }

  .custom-image {
    width: min(720px, 100%);
    transform: none;
  }

  .custom-image2,
  .custom-logo {
    max-width: min(520px, 100%);
  }

  .image-section {
    margin-top: 28px;
  }

  .product-images {
    gap: 18px;
  }

  .product-images img {
    width: clamp(110px, 24vw, 190px);
    max-width: none;
    margin: 0;
  }

  .produkt1,
  .produkt2,
  .produkt3 {
    transform: none;
  }

  .kontakt-details {
    flex-basis: auto;
    padding: clamp(25px, 5vw, 50px);
  }

  .border-top {
    width: 100%;
  }

  footer {
    position: static;
    width: 100%;
  }

  .footer-container,
  .footer-container2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px clamp(20px, 5vw, 48px);
    background-size: cover;
  }

  footer p {
    margin: 0;
  }

  .footer-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-nav ul {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 0;
  }

  /* Startseite: klare, ruhige Produktkomposition ohne starke Überlagerung */
  #Home {
    min-height: 760px;
    height: 100svh;
  }

  #Home .container-parallax,
  #Home .parallax {
    height: 100%;
    min-height: 760px;
  }

  #Home .parallax img {
    position: absolute;
    max-width: 30vw;
    height: auto;
  }

  #Home .parallax-layer1,
  #Home .parallax-layer3,
  #Home .parallax-layer5,
  #Home .parallax-layer6,
  #Home .parallax-layer7 {
    display: none;
  }

  #Home .parallax-layer2 img,
  #Home .parallax-layer4 img,
  #Home .parallax-layer8 img,
  #Home .parallax-layer9 img,
  #Home .parallax-layer10 img,
  #Home .parallax-layer11 img {
    position: absolute;
    width: clamp(115px, 22vw, 210px);
    opacity: 1 !important;
  }

  #Home .parallax-layer2 img { left: 6%; top: 18%; transform: rotate(-12deg) !important; }
  #Home .parallax-layer8 img { left: 38%; top: 9%; transform: rotate(8deg) !important; }
  #Home .parallax-layer11 img { left: auto; right: 5%; top: 20%; transform: rotate(4deg) !important; }
  #Home .parallax-layer10 img { left: 8%; top: 50%; transform: rotate(-12deg) !important; }
  #Home .parallax-layer9 img { left: 40%; top: 47%; transform: rotate(8deg) !important; }
  #Home .parallax-layer4 img { left: auto; right: 4%; top: 53%; transform: rotate(12deg) !important; }

  .koenigsfeld-klickdown,
  .sulgen-klickdown {
    display: block;
    position: absolute;
    top: auto;
    bottom: 96px;
    width: auto;
    height: auto;
    transform: none;
    z-index: 200;
  }

  .koenigsfeld-klickdown { left: 7%; }
  .sulgen-klickdown { left: auto; right: 7%; }

  .koenigsfeld-klickdown h1,
  .sulgen-klickdown h1 {
    font-size: clamp(30px, 5vw, 46px);
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
  }

  .arrow-leftside,
  .arrow-rightside {
    display: none;
  }

  .scroll-down {
    position: absolute;
    top: auto;
    bottom: 24px;
  }
}

@media screen and (max-width: 768px) {
  h1 { font-size: clamp(38px, 11vw, 54px); line-height: 1.05; }
  h2 { font-size: clamp(32px, 9vw, 44px); line-height: 1.12; }
  h3 { font-size: clamp(27px, 7vw, 36px); line-height: 1.18; }
  h4 { font-size: clamp(23px, 6vw, 30px); line-height: 1.2; }

  .container {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 22px 20px;
  }

  .person-container {
    flex-direction: column;
  }

  .text-section,
  .text-section2,
  .text-box {
    text-align: left;
  }

  .text-section p,
  .text-section2 p,
  .text-box p,
  .reformhaus-content p,
  .privacy-section p {
    font-size: 17px;
    line-height: 1.6;
  }

  .product-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    width: 100%;
    gap: 10px;
  }

  .product-images img {
    width: 100%;
    max-width: 125px;
    justify-self: center;
  }

  .card-container,
  .card-karriere-container {
    flex-direction: column;
    width: 100%;
  }

  .card,
  .big-card,
  .card-karriere,
  .card-karriere-yellow {
    width: 100%;
    max-width: 100%;
  }

  .reformhaus-section {
    min-height: auto;
  }

  .reformhaus-content {
    position: static;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .button-container {
    flex-direction: column;
    align-items: stretch;
  }

  .button-container a,
  .btn-emergency,
  .btn-emergency-yellow,
  .custom-btn,
  .custom-btn-yellow {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  #Home {
    min-height: 680px;
    height: 100svh;
  }

  #Home .container-parallax,
  #Home .parallax {
    min-height: 680px;
  }

  #Home .parallax-layer2 img,
  #Home .parallax-layer4 img,
  #Home .parallax-layer8 img,
  #Home .parallax-layer9 img,
  #Home .parallax-layer10 img,
  #Home .parallax-layer11 img {
    width: clamp(95px, 28vw, 145px);
  }

  #Home .parallax-layer2 img { left: 2%; top: 17%; }
  #Home .parallax-layer8 img { left: 35%; top: 10%; }
  #Home .parallax-layer11 img { right: 2%; top: 21%; }
  #Home .parallax-layer10 img { left: 3%; top: 47%; }
  #Home .parallax-layer9 img { left: 36%; top: 43%; }
  #Home .parallax-layer4 img { right: 2%; top: 49%; }

  .koenigsfeld-klickdown { left: 20px; }
  .sulgen-klickdown { right: 20px; }

  .koenigsfeld-klickdown h1,
  .sulgen-klickdown h1 {
    font-size: clamp(27px, 8vw, 36px);
  }
}

@media screen and (max-width: 475px) {
  .logo-nav {
    max-width: calc(100% - 62px);
    gap: 12px;
  }

  .logo-nav img {
    max-height: 48px;
    width: auto !important;
  }

  .wrapper-menu {
    width: 34px;
    height: 30px;
    flex: 0 0 auto;
  }

  .line-menu {
    height: 5px;
  }

  #Home .parallax-layer2 img,
  #Home .parallax-layer4 img,
  #Home .parallax-layer8 img,
  #Home .parallax-layer9 img,
  #Home .parallax-layer10 img,
  #Home .parallax-layer11 img {
    width: clamp(82px, 27vw, 118px);
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   KORREKTUREN MOBILE/TABLET – 10.07.2026
   Nur Ansichten bis 1024 px, Desktop bleibt unverändert
   ========================================================= */
@media screen and (max-width: 1024px) {
  /* Startseite: dunkle Schwarzwald-Bäume wieder sichtbar */
  #Home .parallax-layer1,
  #Home .parallax-layer3,
  #Home .parallax-layer5,
  #Home .parallax-layer6,
  #Home .parallax-layer7 {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  #Home .parallax-layer1 img,
  #Home .parallax-layer3 img,
  #Home .parallax-layer5 img,
  #Home .parallax-layer6 img,
  #Home .parallax-layer7 img {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: -2px;
    width: 115%;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    opacity: 1;
  }

  #Home .parallax-layer1 img { z-index: 91; width: 115%; bottom: 8%; }
  #Home .parallax-layer3 img { z-index: 90; width: 125%; bottom: 13%; }
  #Home .parallax-layer5 img { z-index: 94; width: 120%; bottom: 5%; }
  #Home .parallax-layer6 img { z-index: 97; width: 125%; bottom: 1%; }
  #Home .parallax-layer7 img { z-index: 100; width: 130%; bottom: -3%; }

  /* Arzneimittel fliegen beim Laden weich ein, danach bleiben sie geordnet */
  #Home .parallax-layer2 img,
  #Home .parallax-layer4 img,
  #Home .parallax-layer8 img,
  #Home .parallax-layer9 img,
  #Home .parallax-layer10 img,
  #Home .parallax-layer11 img {
    animation: mobileProductFlyIn .85s cubic-bezier(.22,.8,.28,1) both;
  }

  #Home .parallax-layer2 img { --mobile-rotate: -12deg; animation-delay: .05s; }
  #Home .parallax-layer8 img { --mobile-rotate: 8deg; animation-delay: .14s; }
  #Home .parallax-layer11 img { --mobile-rotate: 4deg; animation-delay: .23s; }
  #Home .parallax-layer10 img { --mobile-rotate: -12deg; animation-delay: .32s; }
  #Home .parallax-layer9 img { --mobile-rotate: 8deg; animation-delay: .41s; }
  #Home .parallax-layer4 img { --mobile-rotate: 12deg; animation-delay: .50s; }

  @keyframes mobileProductFlyIn {
    from {
      opacity: 0;
      transform: translateY(-90px) scale(.88) rotate(var(--mobile-rotate));
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1) rotate(var(--mobile-rotate));
    }
  }

  /* Reformhaus: Öffnungszeiten im normalen Dokumentfluss statt über Text */
  .reformhaus-section {
    display: block;
    padding: 28px clamp(20px, 5vw, 48px) 60px;
  }

  .reformhaus-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
  }

  .reformhaus-image {
    position: relative;
    top: auto;
    left: auto;
    z-index: 0;
    width: 100%;
    height: clamp(260px, 48vw, 480px);
    border-radius: 14px;
    margin-bottom: 20px;
  }

  .reformhaus-hours {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px !important;
    box-sizing: border-box;
  }

  .reformhaus-content {
    margin: 0;
  }

  /* Apotheken-Unterseiten: Hero auf mobilen Geräten kompakter und passend zugeschnitten */
  #home .hero-image {
    width: 100%;
    height: clamp(360px, 68vh, 680px);
  }

  #home .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body:has(img[src*="sonnen-apothe-hero-image"]) #home .hero-image img {
    object-position: center center;
  }

  body:has(img[src*="skopek-schwarzwald-apotheke"]) #home .hero-image img {
    object-position: center center;
  }
}

@media screen and (max-width: 768px) {
  #Home .parallax-layer1 img { width: 155%; bottom: 9%; }
  #Home .parallax-layer3 img { width: 165%; bottom: 14%; }
  #Home .parallax-layer5 img { width: 160%; bottom: 6%; }
  #Home .parallax-layer6 img { width: 165%; bottom: 1%; }
  #Home .parallax-layer7 img { width: 175%; bottom: -3%; }

  .reformhaus-section {
    padding: 20px 20px 45px;
  }

  .reformhaus-image {
    height: 300px;
  }

  #home .hero-image {
    height: clamp(300px, 55vh, 520px);
  }
}


/* =========================================================
   MOBILE/TABLET-KORREKTUREN V2
   Nur bis 1024px – Desktop bleibt unverändert
   ========================================================= */
@media screen and (max-width: 1024px) {
  /* Reformhaus: Öffnungszeiten stehen im normalen Lesefluss */
  .reformhaus-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .reformhaus-hours {
    position: static !important;
    inset: auto !important;
    order: 2;
    width: min(100%, 520px) !important;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .reformhaus-image { order: 1; }
  .reformhaus-content { order: 3; }

  /* Apotheker-Seiten: Headerbild auf Mobil/Tablet weniger stark vergrößert */
  .hero-image.hero-image-sonnen,
  .hero-image.hero-image-schwarzwald {
    width: 100%;
    height: clamp(360px, 62svh, 680px);
    min-height: 0;
  }

  .hero-image.hero-image-sonnen img,
  .hero-image.hero-image-schwarzwald img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-image.hero-image-sonnen img { object-position: center center; }
  .hero-image.hero-image-schwarzwald img { object-position: center center; }

  /* Startseite: dunkle Schwarzwald-Ebenen unten wieder sichtbar */
  #Home .parallax-layer1,
  #Home .parallax-layer3,
  #Home .parallax-layer5,
  #Home .parallax-layer6,
  #Home .parallax-layer7 {
    display: block !important;
    position: static;
  }

  #Home .parallax-layer1 img,
  #Home .parallax-layer3 img,
  #Home .parallax-layer5 img,
  #Home .parallax-layer6 img,
  #Home .parallax-layer7 img {
    display: block;
    position: absolute !important;
    left: 50% !important;
    top: auto !important;
    bottom: -2px !important;
    width: 118% !important;
    max-width: none !important;
    height: auto;
    opacity: 1 !important;
    transform: translateX(-50%) !important;
    pointer-events: none;
  }

  #Home .parallax-layer1 img { z-index: 81; width: 112% !important; bottom: 10% !important; }
  #Home .parallax-layer3 img { z-index: 82; width: 116% !important; bottom: 7% !important; }
  #Home .parallax-layer5 img { z-index: 83; width: 120% !important; bottom: 4% !important; }
  #Home .parallax-layer6 img { z-index: 84; width: 124% !important; bottom: 1.5% !important; }
  #Home .parallax-layer7 img { z-index: 85; width: 128% !important; bottom: -2% !important; }

  /* Produkte fliegen beim Laden geordnet ein; Endpositionen bleiben erhalten */
  #Home .parallax-layer2 img,
  #Home .parallax-layer8 img,
  #Home .parallax-layer10 img {
    animation: productFlyLeft .9s cubic-bezier(.22,.8,.28,1) both;
  }

  #Home .parallax-layer4 img,
  #Home .parallax-layer9 img,
  #Home .parallax-layer11 img {
    animation: productFlyRight .9s cubic-bezier(.22,.8,.28,1) both;
  }

  #Home .parallax-layer8 img { animation-delay: .08s; }
  #Home .parallax-layer11 img { animation-delay: .16s; }
  #Home .parallax-layer10 img { animation-delay: .24s; }
  #Home .parallax-layer9 img { animation-delay: .32s; }
  #Home .parallax-layer4 img { animation-delay: .4s; }

  /* Produkte vor den hinteren Bäumen, aber hinter der vordersten Baumkante */
  #Home .parallax-layer2 img,
  #Home .parallax-layer4 img,
  #Home .parallax-layer8 img,
  #Home .parallax-layer9 img,
  #Home .parallax-layer10 img,
  #Home .parallax-layer11 img {
    z-index: 84 !important;
  }

  .koenigsfeld-klickdown,
  .sulgen-klickdown,
  .scroll-down {
    z-index: 120 !important;
  }
}

@keyframes productFlyLeft {
  from { opacity: 0; translate: -65vw -35px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes productFlyRight {
  from { opacity: 0; translate: 65vw -35px; }
  to   { opacity: 1; translate: 0 0; }
}

@media screen and (max-width: 768px) {
  .home-location-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: 100svh;
    z-index: 10000;
  }

  .hero-image.hero-image-sonnen,
  .hero-image.hero-image-schwarzwald {
    height: clamp(300px, 52svh, 520px);
  }

  .hero-image.hero-image-sonnen img { object-position: 52% center; }
  .hero-image.hero-image-schwarzwald img { object-position: 50% center; }

  .reformhaus-hours {
    width: 100% !important;
    padding: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #Home .parallax-layer2 img,
  #Home .parallax-layer4 img,
  #Home .parallax-layer8 img,
  #Home .parallax-layer9 img,
  #Home .parallax-layer10 img,
  #Home .parallax-layer11 img {
    animation: none !important;
  }
}

/* =========================================================
   MOBILE/TABLET-FEINSCHLIFF V3
   Nur bis 1024px – Desktop bleibt unverändert
   ========================================================= */
@media screen and (max-width: 1024px) {
  /* Startseite: einfliegende Produkte etwas größer */
  #Home .parallax-layer2 img,
  #Home .parallax-layer4 img,
  #Home .parallax-layer8 img,
  #Home .parallax-layer9 img,
  #Home .parallax-layer10 img,
  #Home .parallax-layer11 img {
    width: clamp(135px, 25vw, 245px) !important;
    max-width: none !important;
  }

  /* Startseite: Onlineshop-Klinker etwas größer */
  #Home .overlay {
    width: min(92vw, 520px);
    max-width: 520px;
  }

  #Home .overlay img {
    width: clamp(330px, 62vw, 500px) !important;
    max-width: 100%;
    height: auto;
  }

  /* Datenschutz und Impressum: angenehme, sichere Lesebreite */
  .privacy-section,
  .text-section {
    width: 100%;
    max-width: 100%;
    padding-left: clamp(20px, 5vw, 48px) !important;
    padding-right: clamp(20px, 5vw, 48px) !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: visible;
  }

  .privacy-section .privacy-content,
  .text-section .text-box {
    width: 100%;
    max-width: 900px;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .privacy-section .border-top,
  .text-section .border-top {
    width: 100% !important;
    max-width: 900px;
    box-sizing: border-box;
  }

  .privacy-section ul,
  .text-section ul {
    width: 100%;
    max-width: 100%;
    padding-left: 24px;
    padding-right: 0;
    box-sizing: border-box;
  }

  .privacy-section a,
  .text-section a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media screen and (max-width: 600px) {
  #Home .parallax-layer2 img,
  #Home .parallax-layer4 img,
  #Home .parallax-layer8 img,
  #Home .parallax-layer9 img,
  #Home .parallax-layer10 img,
  #Home .parallax-layer11 img {
    width: clamp(130px, 31vw, 175px) !important;
  }

  #Home .overlay {
    width: min(94vw, 410px);
  }

  #Home .overlay img {
    width: clamp(300px, 78vw, 390px) !important;
  }

  .privacy-section,
  .text-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .privacy-section .privacy-content,
  .text-section .text-box {
    font-size: 16px;
    line-height: 1.65;
  }

  .privacy-section h1,
  .text-section h1 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.15;
  }

  .privacy-section h5,
  .text-section h5 {
    font-size: 20px;
    line-height: 1.35;
  }
}

/* =========================================================
   MOBILE/TABLET-FEINSCHLIFF V4
   Nur bis 1024px – Desktop bleibt unverändert
   ========================================================= */
@media screen and (max-width: 1024px) {
  /* Einfliegende Produkte nochmals größer, Positionen/Animation bleiben gleich */
  #Home .parallax-layer2 img,
  #Home .parallax-layer4 img,
  #Home .parallax-layer8 img,
  #Home .parallax-layer9 img,
  #Home .parallax-layer10 img,
  #Home .parallax-layer11 img {
    width: clamp(160px, 29vw, 285px) !important;
  }

  /* Geschlossener, gerader Abschluss unter den schwarzen Bäumen */
  #Home .parallax {
    position: relative;
    overflow: hidden !important;
  }

  #Home .parallax::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 18px;
    background: #000;
    z-index: 101;
    pointer-events: none;
  }

  #Home .parallax-layer7 img {
    bottom: 0 !important;
    width: 136% !important;
  }
}

@media screen and (max-width: 600px) {
  #Home .parallax-layer2 img,
  #Home .parallax-layer4 img,
  #Home .parallax-layer8 img,
  #Home .parallax-layer9 img,
  #Home .parallax-layer10 img,
  #Home .parallax-layer11 img {
    width: clamp(150px, 36vw, 205px) !important;
  }

  #Home .parallax::after {
    height: 16px;
  }
}

/* =========================================================
   HEADER-KORREKTUR FÜR KLEINE HANDYS & TABLETS
   Nur bis 1024px – Desktop und übrige Inhalte unverändert
   ========================================================= */
@media screen and (max-width: 1024px) {
  .navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 12px;
    padding: 7px 12px;
    min-height: 64px;
  }

  .navigation > .logo-nav {
    display: flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    gap: 10px;
    overflow: visible;
  }

  .navigation > .logo-nav a {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
  }

  .navigation > .logo-nav a:first-child img {
    display: block;
    width: auto !important;
    height: 50px;
    max-width: 100%;
    object-fit: contain;
  }

  .navigation > .logo-nav a:nth-child(2) img {
    display: block;
    width: auto !important;
    height: 44px;
    max-width: 100%;
    object-fit: contain;
  }

  .navigation > nav {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navigation > a {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .navigation .app-download {
    display: block !important;
    width: 88px;
    max-width: 88px;
    height: auto;
    object-fit: contain;
  }

  .navigation .apotheken-logo {
    display: none !important;
  }

  .navigation nav > ul {
    top: 64px;
  }
}

@media screen and (max-width: 600px) {
  .navigation {
    grid-template-columns: minmax(0, 1fr) 72px 34px;
    column-gap: 8px;
    padding: 7px 9px;
    min-height: 58px;
  }

  .navigation > .logo-nav {
    gap: 6px;
    max-width: 100%;
  }

  .navigation > .logo-nav a:first-child img {
    height: 40px;
  }

  .navigation > .logo-nav a:nth-child(2) img {
    height: 36px;
  }

  .navigation .app-download {
    width: 72px;
    max-width: 72px;
  }

  .navigation .wrapper-menu {
    width: 32px;
    height: 28px;
  }

  .navigation nav > ul {
    top: 58px;
    right: 8px;
    width: min(300px, calc(100vw - 16px));
  }
}

@media screen and (max-width: 360px) {
  .navigation {
    grid-template-columns: minmax(0, 1fr) 58px 30px;
    column-gap: 6px;
    padding-left: 7px;
    padding-right: 7px;
  }

  .navigation > .logo-nav {
    gap: 4px;
  }

  .navigation > .logo-nav a:first-child img {
    height: 34px;
  }

  .navigation > .logo-nav a:nth-child(2) img {
    height: 31px;
  }

  .navigation .app-download {
    width: 58px;
    max-width: 58px;
  }

  .navigation .wrapper-menu {
    width: 29px;
    height: 25px;
  }
}


/* 24/7 Bestellhinweise responsiv */
@media screen and (max-width: 760px) {
  .promo-24-7 {
    padding: 28px 16px;
  }

  .promo-24-7__inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .promo-24-7__headline {
    max-width: 520px;
  }

  .promo-24-7__buttons {
    width: 100%;
    gap: 14px;
  }

  .promo-24-7__button {
    width: min(132px, 38vw);
  }
}

@media screen and (max-width: 360px) {
  .promo-24-7__buttons {
    gap: 10px;
  }

  .promo-24-7__button {
    width: min(118px, 39vw);
  }
}

/* Reformhaus – stabiles Layout auf Tablet und Mobil */
@media screen and (max-width: 1024px) {
  .reformhaus-section {
    min-height: auto;
    overflow: visible;
  }

  .reformhaus-container {
    width: min(100% - 40px, 900px);
    padding: 24px 0 55px;
  }

  .reformhaus-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .reformhaus-hours {
    position: static !important;
    order: 1;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .reformhaus-content {
    order: 2;
    width: 100%;
    box-sizing: border-box;
  }

  .reformhaus-hours-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .reformhaus-hours-row {
    padding: 0 18px;
    border-right: 1px solid rgba(35,130,62,.16);
    border-bottom: 0;
  }

  .reformhaus-hours-row:first-child { padding-left: 0; }
  .reformhaus-hours-row:last-child {
    padding-right: 0;
    border-right: 0;
  }
}

@media screen and (max-width: 700px) {
  .reformhaus-container {
    width: min(100% - 28px, 900px);
  }

  .reformhaus-hours-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .reformhaus-hours-row,
  .reformhaus-hours-row:first-child,
  .reformhaus-hours-row:last-child {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(35,130,62,.16);
  }

  .reformhaus-hours-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .reformhaus-content {
    padding: 24px 20px;
  }

  .reformhaus-content p,
  .reformhaus-list li {
    font-size: 18px;
  }

  .reformhaus-highlight-box {
    padding: 22px 20px 5px;
  }
}

/* =========================================================
   REFORMHAUS – mobile Reihenfolge endgültig korrigiert
   Bild zuerst, danach Öffnungszeiten und Inhalt
   ========================================================= */
@media screen and (max-width: 1024px) {
  .reformhaus-container {
    display: flex !important;
    flex-direction: column !important;
  }

  .reformhaus-image {
    order: 1 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: clamp(260px, 48vw, 480px) !important;
    margin: 0 0 22px !important;
    z-index: 1 !important;
    overflow: hidden;
    border-radius: 14px;
  }

  .reformhaus-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  .reformhaus-layout {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    gap: 22px;
  }

  .reformhaus-hours {
    order: 1 !important;
    position: static !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .reformhaus-content {
    order: 2 !important;
    width: 100%;
  }
}

@media screen and (max-width: 700px) {
  .reformhaus-image {
    height: 280px !important;
  }
}

/* =========================================================
   GESAMTE WEBSITE – Responsive Absicherung 2026
   Verhindert Überlagerungen und horizontales Scrollen auf
   Desktop, Laptop, iPad, Tablet und Smartphone.
   ========================================================= */

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

main,
section,
.container,
.custom-container,
.layout-wrapper,
.card-container,
.container-kontakt,
.kontakt-section,
.footer-container,
.footer-container2 {
  min-width: 0;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

img,
video {
  height: auto;
}

p,
li,
a,
strong,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}

/* Flüssige Überschriften, ohne die Desktopwirkung zu verlieren */
h1 { font-size: clamp(48px, 5.7vw, 110px); line-height: 1.02; }
h2 { font-size: clamp(38px, 4.8vw, 92px); line-height: 1.08; }
h3 { font-size: clamp(31px, 3.7vw, 70px); line-height: 1.12; }
h4 { font-size: clamp(27px, 3vw, 56px); line-height: 1.15; }
h5 { font-size: clamp(25px, 2.6vw, 48px); line-height: 1.18; }
h6 { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }

/* Navigation: Logos und Menü dürfen sich nicht gegenseitig verdrängen */
.navigation {
  align-items: center;
  gap: 18px;
  min-height: 90px;
}

.logo-nav {
  min-width: 0;
  flex-shrink: 1;
  align-items: center;
}

.logo-nav img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

nav {
  min-width: 0;
}

nav ul {
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

nav ul.drop-down,
nav ul.drop-down-yellow,
ul li ul.drop-down,
ul li ul.drop-down-yellow {
  max-width: min(350px, calc(100vw - 30px));
}

/* Flexible Inhaltsbereiche */
.container,
.custom-container,
.layout-wrapper,
.card-container,
.container-kontakt,
.kontakt-section {
  max-width: 100%;
}

.text-section,
.text-section2,
.text-container,
.content-container,
.image-section,
.image-section2,
.image-section3,
.person-container,
.product-section,
.kontakt-image,
.kontakt-details,
.big-card,
.card-text {
  min-width: 0;
}

.text-box,
.card-text,
.privacy-section,
.text-section,
.service-detail-card,
.reformhaus-content {
  width: 100%;
}

.custom-image {
  width: min(100%, 1000px);
}

.border-top {
  width: min(800px, 100%);
}

/* Karten und Blogs passen sich schon vor der Smartphone-Breite an */
.card,
.card-karriere,
.card-karriere-yellow,
.blog-card {
  max-width: 100%;
}

.blog-container,
.card-karriere-container {
  padding-left: 18px;
  padding-right: 18px;
}

/* Tabellen und lange Inhaltsblöcke nicht über den Bildschirm hinausragen lassen */
table {
  max-width: 100%;
}

.privacy-content,
.service-detail-card,
.reformhaus-content,
.text-enhanced {
  overflow-wrap: anywhere;
}

@media screen and (max-width: 1400px) {
  body {
    padding-top: 90px;
  }

  .navigation {
    padding: 8px 14px;
  }

  .logo-nav {
    gap: clamp(10px, 2vw, 28px);
    max-width: min(55vw, 430px);
  }

  .logo-nav img:first-child {
    max-width: clamp(105px, 14vw, 150px);
  }

  .logo-nav img:nth-child(2) {
    max-width: clamp(58px, 8vw, 80px);
  }

  nav ul {
    top: 72px;
    right: 14px;
    width: min(310px, calc(100vw - 28px));
    padding: 16px;
    border-radius: 12px;
    z-index: 1100;
  }

  nav ul li,
  nav ul li a {
    width: 100%;
  }

  nav ul li a {
    display: block;
    font-size: 20px;
    line-height: 1.25;
  }

  ul li ul.drop-down,
  ul li ul.drop-down-yellow {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    padding: 6px 10px;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,.09);
  }

  ul li ul.drop-down a,
  ul li ul.drop-down-yellow a {
    font-size: 17px;
  }
}

@media screen and (max-width: 1150px) {
  /* Footer nicht mehr über den Inhalt legen */
  footer {
    position: relative;
    bottom: auto;
    left: auto;
    z-index: 10;
  }

  main {
    min-height: calc(100vh - 170px);
  }

  .footer-container,
  .footer-container2 {
    gap: 18px;
    padding: 14px 20px;
  }

  .footer-container p,
  .footer-container2 p {
    margin: 0;
  }

  .footer-nav ul {
    margin-right: 0;
    gap: 24px;
  }

  .kontakt-details {
    flex: 1 1 auto;
    width: 100%;
    padding: 45px clamp(20px, 5vw, 60px);
  }

  .kontakt-image img {
    max-height: 58vh;
    object-fit: cover;
  }

  .card-karriere,
  .card-karriere-yellow {
    width: min(420px, 100%);
    height: auto;
    min-height: 540px;
  }
}

@media screen and (max-width: 1024px) {
  body {
    padding-top: 84px;
  }

  .navigation {
    min-height: 84px;
  }

  /* Zweispaltige Bereiche werden auf iPad sauber gestapelt */
  .custom-container,
  .layout-wrapper,
  .card-container,
  .container-kontakt,
  .kontakt-section,
  .service-detail-layout {
    flex-direction: column;
  }

  .container {
    align-items: stretch;
  }

  .text-section,
  .text-section2,
  .text-container,
  .content-container,
  .image-section,
  .image-section2,
  .image-section3,
  .person-container,
  .product-section,
  .kontakt-image,
  .kontakt-details,
  .big-card,
  .card-text {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
  }

  .text-section,
  .privacy-section {
    padding-left: clamp(20px, 5vw, 48px);
    padding-right: clamp(20px, 5vw, 48px);
  }

  .text-box,
  .card-text {
    padding: clamp(20px, 4vw, 34px);
    margin-left: auto;
    margin-right: auto;
  }

  .custom-logo {
    max-width: min(360px, 72%);
  }

  .image-section img,
  .person-container img,
  .big-card img,
  .main-image,
  .centered-image {
    width: 100%;
    max-width: min(760px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    width: 100%;
    min-height: 480px;
    height: min(72vh, 720px);
  }

  .promo-24-7__inner {
    flex-wrap: wrap;
    text-align: center;
  }

  .promo-24-7__headline {
    max-width: 100%;
  }

  /* Fixierte Seitenelemente auf Tablets kleiner und sicher positionieren */
  .fab-sticky,
  .fab-sticky2 {
    transform: translate(calc(100% - 48px), 0);
  }

  .fab-sticky-icon,
  .fab-sticky-icon2 {
    width: 48px;
    height: 48px;
  }

  .scroll-down {
    top: auto;
    bottom: 24px;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding-top: 78px;
  }

  .navigation {
    min-height: 78px;
    gap: 10px;
    padding: 8px 10px;
  }

  .logo-nav {
    max-width: calc(100% - 62px);
    width: auto;
  }

  .logo-nav img:first-child {
    max-width: min(125px, 35vw);
  }

  .logo-nav img:nth-child(2) {
    max-width: min(68px, 19vw);
  }

  .wrapper-menu {
    width: 36px;
    height: 32px;
    flex: 0 0 36px;
  }

  .line-menu {
    height: 5px;
  }

  nav ul {
    top: 68px;
    right: 10px;
    width: min(320px, calc(100vw - 20px));
  }

  /* Globale mobile Typografie */
  h1 { font-size: clamp(40px, 12vw, 62px); }
  h2 { font-size: clamp(32px, 9vw, 46px); }
  h3 { font-size: clamp(27px, 7vw, 38px); }
  h4 { font-size: clamp(24px, 6vw, 32px); }
  h5 { font-size: clamp(22px, 5.5vw, 29px); }
  h6 { font-size: clamp(20px, 5vw, 26px); }

  p,
  .text-section,
  .text-section2 p,
  .text-box,
  .card-text,
  .reformhaus-content p,
  .service-detail-card p {
    font-size: 18px;
    line-height: 1.62;
  }

  .container,
  .custom-container,
  .layout-wrapper,
  .card-container,
  .kontakt-section,
  .container-kontakt {
    width: 100%;
  }

  .container {
    flex-direction: column;
    padding: 18px;
  }

  .text-section,
  .privacy-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .card-text {
    transform: none;
    opacity: 1;
  }

  .big-card {
    transform: none;
    opacity: 1;
  }

  .card-karriere-container {
    gap: 30px;
  }

  .card-karriere,
  .card-karriere-yellow {
    width: min(100%, 420px);
    min-height: 500px;
  }

  .blog-card {
    width: min(100%, 450px);
  }

  .blog-section-green,
  .blog-section-yellow {
    padding: 55px 14px 80px;
  }

  .blog-image {
    height: clamp(190px, 52vw, 240px);
  }

  .btn-emergency,
  .btn-emergency-yellow {
    font-size: clamp(24px, 7vw, 34px);
    padding: 10px;
  }

  .price {
    margin-left: 24px;
  }

  .promo-24-7 {
    padding: 28px 16px;
  }

  .promo-24-7__inner,
  .promo-24-7__buttons {
    width: 100%;
  }

  .promo-24-7__buttons {
    flex-wrap: wrap;
  }

  .promo-24-7__button {
    width: clamp(118px, 37vw, 150px);
  }

  .footer-container,
  .footer-container2 {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    background-size: cover;
  }

  .footer-nav,
  .footer-nav ul {
    width: 100%;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 24px;
  }

  /* Seitliche Sticky-Elemente verdecken auf kleinen Displays keinen Text */
  .fab-sticky,
  .fab-sticky2 {
    display: none;
  }

  .scroll-down {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .hero-image {
    min-height: 360px;
    height: 58vh;
  }

  .custom-btn,
  .custom-btn-yellow,
  .btn-transparent,
  .btn-transparent-glow-green,
  .btn-transparent-glow-yellow {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .item {
    align-items: flex-start;
    gap: 12px;
  }

  .price {
    margin-left: 10px;
    font-size: 17px;
  }

  .contact-hours,
  .reformhaus-hours,
  .service-detail-card,
  .reformhaus-content {
    border-radius: 14px;
  }

  .contact-hours__row {
    display: block;
  }

  .contact-hours__row strong {
    margin-bottom: 4px;
  }

  .service-detail-card .service-list--compact {
    grid-template-columns: 1fr;
  }

  .card-karriere,
  .card-karriere-yellow {
    min-height: 460px;
  }

  .card-body {
    padding: 18px;
  }
}

@media screen and (max-width: 475px) {
  .navigation {
    min-height: 72px;
  }

  body {
    padding-top: 72px;
  }

  .logo-nav {
    max-width: calc(100% - 52px);
  }

  .logo-nav img:first-child {
    max-width: 108px;
  }

  .logo-nav img:nth-child(2) {
    max-width: 58px;
  }

  nav ul {
    top: 62px;
  }

  .product-images {
    gap: 12px;
  }

  .product-images img {
    max-width: min(29vw, 105px);
  }

  .promo-24-7__buttons {
    gap: 12px;
  }

  .promo-24-7__button {
    width: min(40vw, 138px);
  }

  .reformhaus-container {
    width: min(100% - 20px, 900px);
  }

  .reformhaus-image {
    height: 235px !important;
  }

  .reformhaus-content,
  .service-detail-card,
  .text-box,
  .card-text {
    padding: 22px 17px;
  }

  .reformhaus-highlight-box,
  .service-detail-card .service-item-card,
  .service-detail-card .service-intro,
  .service-detail-card .service-notice {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-container,
  .footer-container2 {
    font-size: 15px;
  }
}

/* =========================================================
   STARTSEITE: Arznei-Produkte vollständig vor dem Parallax-Wald
   ========================================================= */
#Home .parallax-layer2 img,
#Home .parallax-layer4 img,
#Home .parallax-layer8 img,
#Home .parallax-layer9 img,
#Home .parallax-layer10 img,
#Home .parallax-layer11 img {
  z-index: 600 !important;
}

/* =========================================================
   FLUIDER ZWISCHENBEREICH – TABLET QUERFORMAT / KLEINE LAPTOPS
   Verhindert starre Desktop-Positionen zwischen 1025 und 1400 px.
   ========================================================= */
@media screen and (min-width: 1025px) and (max-width: 1400px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  /* Der Footer gehört in diesem Größenbereich wieder in den Dokumentfluss.
     So bleibt der Balken bündig am Seitenende und schwebt nicht im Viewport. */
  footer {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    box-sizing: border-box;
  }

  .footer-container,
  .footer-container2 {
    width: 100%;
    min-height: clamp(64px, 6.5vw, 88px);
    padding: 12px clamp(24px, 4vw, 64px);
    box-sizing: border-box;
    gap: clamp(20px, 4vw, 60px);
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  .footer-nav ul {
    gap: clamp(20px, 3vw, 50px);
    margin-right: 0;
  }

  /* Startseite: geschlossene, viewportgebundene Bühne statt fixierter Ebenen. */
  #Home {
    height: clamp(720px, 100svh, 980px);
    min-height: 720px;
    overflow: hidden;
  }

  #Home .container-parallax,
  #Home .parallax {
    width: 100%;
    height: 100%;
    min-height: inherit;
    position: relative;
    overflow: hidden;
  }

  #Home .parallax img {
    height: auto;
    max-width: none;
  }

  /* Schwarzwald-Ebenen: immer am unteren Rand verankert und fluid skaliert. */
  #Home .parallax-layer1 img,
  #Home .parallax-layer3 img,
  #Home .parallax-layer5 img,
  #Home .parallax-layer6 img,
  #Home .parallax-layer7 img {
    position: absolute !important;
    left: 50% !important;
    top: auto !important;
    height: auto !important;
    transform: translateX(-50%) !important;
    pointer-events: none;
  }

  #Home .parallax-layer1 img { width: clamp(1120px, 108vw, 1540px); bottom: 10%; }
  #Home .parallax-layer3 img { width: clamp(1160px, 112vw, 1600px); bottom: 7%; }
  #Home .parallax-layer5 img { width: clamp(1200px, 116vw, 1660px); bottom: 4%; }
  #Home .parallax-layer6 img { width: clamp(1240px, 120vw, 1720px); bottom: 1.5%; }
  #Home .parallax-layer7 img { width: clamp(1280px, 124vw, 1780px); bottom: -2%; }

  /* Produkte: Größen und Positionen skalieren kontinuierlich mit dem Viewport. */
  #Home .parallax-layer2 img,
  #Home .parallax-layer4 img,
  #Home .parallax-layer8 img,
  #Home .parallax-layer9 img,
  #Home .parallax-layer10 img,
  #Home .parallax-layer11 img {
    position: absolute !important;
    width: clamp(190px, 19vw, 300px) !important;
    opacity: 1 !important;
    transition: none;
  }

  #Home .parallax-layer2 img {
    left: clamp(3%, 5vw, 7%);
    top: clamp(110px, 15vh, 160px);
    transform: rotate(-16deg) !important;
  }

  #Home .parallax-layer8 img {
    left: clamp(27%, 30vw, 34%);
    top: clamp(35px, 5vh, 75px);
    transform: rotate(14deg) !important;
  }

  #Home .parallax-layer9 img {
    left: auto;
    right: clamp(22%, 25vw, 29%);
    top: clamp(60px, 8vh, 105px);
    transform: rotate(8deg) !important;
  }

  #Home .parallax-layer11 img {
    left: auto;
    right: clamp(2%, 4vw, 6%);
    top: clamp(115px, 16vh, 175px);
    transform: rotate(2deg) !important;
  }

  #Home .parallax-layer10 img {
    left: clamp(14%, 18vw, 22%);
    top: clamp(355px, 47vh, 490px);
    transform: rotate(-28deg) !important;
  }

  #Home .parallax-layer4 img {
    left: auto;
    right: clamp(5%, 8vw, 11%);
    top: clamp(350px, 46vh, 485px);
    transform: rotate(16deg) !important;
  }

  #Home .overlay {
    width: clamp(300px, 30vw, 430px);
    max-width: none;
  }

  #Home .overlay img {
    width: 100%;
    max-width: 100%;
  }

  .home-location-overlay {
    height: clamp(720px, 100svh, 980px);
    pointer-events: none;
  }

  .home-location-overlay a {
    pointer-events: auto;
  }

  .koenigsfeld-klickdown,
  .sulgen-klickdown {
    bottom: clamp(34px, 5vh, 72px);
  }

  .koenigsfeld-klickdown { left: clamp(28px, 5vw, 80px); }
  .sulgen-klickdown { right: clamp(28px, 5vw, 80px); }

  .koenigsfeld-klickdown h1,
  .sulgen-klickdown h1 {
    font-size: clamp(38px, 4.2vw, 60px);
  }

  .scroll-down {
    position: absolute;
    top: auto;
    bottom: clamp(22px, 3vh, 38px);
  }
}

/* Footer grundsätzlich gegen horizontales Ablösen absichern. */
footer,
.footer-container,
.footer-container2 {
  box-sizing: border-box;
  max-width: 100%;
}

/* =========================================================
   FINALER FOOTER-ANKER – in jeder Viewportgröße sichtbar
   ========================================================= */
footer {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 9000 !important;
  box-sizing: border-box !important;
}

footer .footer-container,
footer .footer-container2 {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Auf kleinen Ansichten bleibt der Balken kompakt, aber vollständig nutzbar. */
@media screen and (max-width: 700px) {
  footer .footer-container,
  footer .footer-container2 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    gap: 4px !important;
  }

  footer .footer-nav {
    margin: 0 !important;
  }
}


/* =========================================================
   FLUIDE MASTER-LOGIK 2026
   Eine Quelle für Footer, Zwischenbreiten und Home-Parallax.
   ========================================================= */
:root {
  --skopek-footer-h: clamp(54px, 4.4vw, 72px);
  --skopek-page-gutter: clamp(14px, 3vw, 48px);
}

html {
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  padding-bottom: var(--skopek-footer-h) !important;
  overflow-x: clip;
}

/* Der Balken bleibt immer exakt am unteren Viewportrand, ohne 100vw-
   Überbreite durch Scrollbars und ohne wechselnde Layoutmodi. */
footer {
  position: fixed !important;
  inset: auto 0 0 0 !important;
  width: auto !important;
  max-width: none !important;
  height: var(--skopek-footer-h) !important;
  min-height: var(--skopek-footer-h) !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  z-index: 5000 !important;
  overflow: hidden !important;
  isolation: isolate;
}

footer .footer-container,
footer .footer-container2 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 var(--skopek-page-gutter) !important;
  gap: clamp(12px, 2.4vw, 42px) !important;
  box-sizing: border-box !important;
  background-size: cover !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
}

footer .footer-container {
  background-color: rgb(35,130,62) !important;
  background-image: linear-gradient(90deg, rgb(35,130,62) 0%, rgb(35,130,62) 52%, rgba(35,130,62,.92) 74%, rgba(35,130,62,.72) 100%) !important;
}

footer .footer-container2 {
  background-color: rgb(242,202,20) !important;
  background-image: linear-gradient(90deg, rgb(242,202,20) 0%, rgb(242,202,20) 52%, rgba(242,202,20,.92) 74%, rgba(242,202,20,.76) 100%) !important;
}

footer p {
  min-width: 0;
  margin: 0 !important;
  font-size: clamp(11px, 1.05vw, 16px) !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

footer .footer-nav,
footer .footer-nav ul {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

footer .footer-nav ul {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-end !important;
  gap: clamp(12px, 2.2vw, 42px) !important;
  white-space: nowrap;
}

footer .footer-nav a {
  font-size: clamp(12px, 1.1vw, 16px) !important;
}

/* Tablet quer / kleine Laptops: eine einzige, proportional skalierende Bühne. */
@media screen and (min-width: 769px) and (max-width: 1400px) {
  #Home {
    height: max(640px, calc(100svh - var(--skopek-footer-h))) !important;
    min-height: 640px !important;
    overflow: hidden !important;
  }

  #Home .container-parallax,
  #Home .parallax {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    position: relative !important;
    overflow: hidden !important;
  }

  #Home .parallax-layer1 img,
  #Home .parallax-layer3 img,
  #Home .parallax-layer5 img,
  #Home .parallax-layer6 img,
  #Home .parallax-layer7 img {
    position: absolute !important;
    left: 50% !important;
    top: auto !important;
    height: auto !important;
    max-width: none !important;
    transform: translate3d(-50%, 0, 0) !important;
  }

  #Home .parallax-layer1 img { width: clamp(980px, 109vw, 1540px) !important; bottom: 9% !important; }
  #Home .parallax-layer3 img { width: clamp(1030px, 114vw, 1600px) !important; bottom: 6.5% !important; }
  #Home .parallax-layer5 img { width: clamp(1080px, 119vw, 1660px) !important; bottom: 3.5% !important; }
  #Home .parallax-layer6 img { width: clamp(1130px, 124vw, 1720px) !important; bottom: 1% !important; }
  #Home .parallax-layer7 img { width: clamp(1180px, 129vw, 1780px) !important; bottom: -2.5% !important; }

  #Home .parallax-layer2 img,
  #Home .parallax-layer4 img,
  #Home .parallax-layer8 img,
  #Home .parallax-layer9 img,
  #Home .parallax-layer10 img,
  #Home .parallax-layer11 img {
    position: absolute !important;
    width: clamp(155px, 17.5vw, 285px) !important;
    height: auto !important;
    max-width: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  #Home .parallax-layer2 img  { left: 4% !important;  top: 16% !important; transform: rotate(-15deg) !important; }
  #Home .parallax-layer8 img  { left: 29% !important; top: 7% !important;  transform: rotate(12deg) !important; }
  #Home .parallax-layer9 img  { left: 54% !important; top: 10% !important; transform: rotate(7deg) !important; }
  #Home .parallax-layer11 img { left: auto !important; right: 3% !important; top: 17% !important; transform: rotate(2deg) !important; }
  #Home .parallax-layer10 img { left: 17% !important; top: 48% !important; transform: rotate(-25deg) !important; }
  #Home .parallax-layer4 img  { left: auto !important; right: 7% !important; top: 47% !important; transform: rotate(15deg) !important; }

  #Home .overlay {
    width: clamp(260px, 28vw, 420px) !important;
    max-width: none !important;
  }

  #Home .overlay img {
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-location-overlay {
    height: calc(100svh - var(--skopek-footer-h)) !important;
  }

  .koenigsfeld-klickdown,
  .sulgen-klickdown {
    bottom: calc(var(--skopek-footer-h) + clamp(12px, 2vh, 28px)) !important;
  }

  .scroll-down {
    bottom: calc(var(--skopek-footer-h) + 18px) !important;
  }
}

@media screen and (max-width: 768px) {
  :root { --skopek-footer-h: 54px; }

  footer .footer-container,
  footer .footer-container2 {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 0 14px !important;
    gap: 10px !important;
  }

  footer p {
    font-size: 11px !important;
  }

  footer .footer-nav ul {
    gap: 12px !important;
  }

  footer .footer-nav a {
    font-size: 12px !important;
  }
}

@media screen and (max-width: 475px) {
  :root { --skopek-footer-h: 48px; }

  footer .footer-container,
  footer .footer-container2 {
    padding: 0 10px !important;
  }

  footer p {
    max-width: 42vw;
  }

  footer .footer-nav ul {
    gap: 9px !important;
  }

  footer .footer-nav a {
    font-size: 11px !important;
  }
}

/* =========================================================
   FEINSCHLIFF: Scroll-Hinweis + Meine-Apotheke-Stickys
   ========================================================= */
.scroll-down {
  top: auto !important;
  bottom: calc(var(--skopek-footer-h, 60px) + clamp(22px, 3vh, 42px)) !important;
  left: 50% !important;
  z-index: 20000 !important;
  pointer-events: none;
}

/* Der externe Web-Component-Host bleibt oberhalb von Footer und Inhalt.
   Die eigentlichen beiden Buttons werden zusätzlich in main.js innerhalb
   des offenen Shadow-DOMs kontrolliert nach oben versetzt. */
chat-widget {
  position: relative;
  z-index: 18000 !important;
}

@media screen and (max-width: 768px) {
  .scroll-down {
    bottom: calc(var(--skopek-footer-h, 54px) + 18px) !important;
  }
}


/* NAVIGATION-ONLY BREAKPOINT 1850PX
   Bewusst separat: keine Bilder, Parallax-Elemente oder Inhaltslayouts werden beeinflusst. */
.mobile-home-link {
  display: none;
}

@media screen and (min-width: 1401px) and (max-width: 1850px) {
  .wrapper-menu {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 330ms ease-out;
    flex: 0 0 40px;
  }

  .wrapper-menu.open {
    transform: rotate(-45deg);
  }

  .line-menu {
    background-color: var(--green-color);
    border-radius: 5px;
    width: 100%;
    height: 6px;
  }

  .line-menu.half { width: 50%; }
  .line-menu.start {
    transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
    transform-origin: right;
  }
  .open .line-menu.start { transform: rotate(-90deg) translateX(3px); }
  .line-menu.end {
    align-self: flex-end;
    transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
    transform-origin: left;
  }
  .open .line-menu.end { transform: rotate(-90deg) translateX(-3px); }

  .navigation nav > ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 90px;
    right: 14px;
    width: min(310px, calc(100vw - 28px));
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    margin-top: 0;
    padding: 16px;
    gap: 10px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    z-index: 1100;
  }

  .navigation nav > ul.active { display: flex; }
  .navigation nav > ul > li,
  .navigation nav > ul > li > a { width: 100%; }
  .navigation nav > ul > li > a {
    display: block;
    font-size: 20px;
    line-height: 1.25;
  }

  .navigation ul li ul.drop-down,
  .navigation ul li ul.drop-down-yellow {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
  }

  .navigation .apotheken-logo { display: none; }
  .mobile-home-link { display: list-item; }
}

@media screen and (max-width: 1400px) {
  .mobile-home-link { display: list-item; }
}

/* =========================================================
   V36 – gezieltes Feintuning Startseite 1200–1700 px
   Nur Schwarzwald-Ebenen und Ortswahl; Produkte bleiben unverändert.
   ========================================================= */

/* Zwischenlayout 1200–1400 px: Waldkomposition minimal tiefer setzen,
   ohne Größen, Produktpositionen oder Parallax-Struktur zu verändern. */
@media screen and (min-width: 1200px) and (max-width: 1400px) {
  #Home .parallax-layer1 img,
  #Home .parallax-layer3 img,
  #Home .parallax-layer5 img,
  #Home .parallax-layer6 img,
  #Home .parallax-layer7 img {
    transform: translate3d(-50%, 22px, 0) !important;
  }
}

/* Desktop-Zwischenbereich 1401–1700 px: ausschließlich die fünf
   Schwarzwaldgrafiken etwas nach unten versetzen. */
@media screen and (min-width: 1401px) and (max-width: 1700px) {
  #Home .parallax-layer1 img { top: calc(40% + 22px) !important; }
  #Home .parallax-layer3 img { top: calc(40% + 22px) !important; }
  #Home .parallax-layer5 img { top: calc(55% + 22px) !important; }
  #Home .parallax-layer6 img { top: calc(45% + 22px) !important; }
  #Home .parallax-layer7 img { top: calc(40% + 22px) !important; }
}

/* Ortswahl vollständig im Viewport halten. Die Inhalte selbst werden
   nicht verkleinert; nur die großen Positionierungsflächen werden sauber
   an den linken bzw. rechten Fensterrand gebunden. */
@media screen and (min-width: 1200px) and (max-width: 1700px) {
  .koenigsfeld-klickdown,
  .sulgen-klickdown {
    width: min(600px, calc(50vw - 32px)) !important;
    max-width: calc(50vw - 32px) !important;
    box-sizing: border-box !important;
  }

  .koenigsfeld-klickdown {
    left: clamp(18px, 3vw, 52px) !important;
    right: auto !important;
    transform: none !important;
  }

  .sulgen-klickdown {
    left: auto !important;
    right: clamp(18px, 3vw, 52px) !important;
    transform: none !important;
  }
}

/* =========================================================
   V37 – belastbare Korrektur 1200–1700 px
   Ausschließlich Wald-Unterkante und Ortswahl; Produkte bleiben unberührt.
   ========================================================= */

/* 1200–1400 px: bestehende Waldgrößen und Layerabstände bewahren,
   die komplette Waldkomposition aber sicher unter den festen Footer ziehen. */
@media screen and (min-width: 1200px) and (max-width: 1400px) {
  #Home .parallax-layer1 img,
  #Home .parallax-layer3 img,
  #Home .parallax-layer5 img,
  #Home .parallax-layer6 img,
  #Home .parallax-layer7 img {
    transform: translate3d(-50%, 86px, 0) !important;
  }
}

/* 1401–1700 px: nur die vertikale Ausgangsposition der fünf Waldlayer
   nach unten korrigieren. Horizontale Position, Breite und Scrollbewegung
   bleiben unverändert. */
@media screen and (min-width: 1401px) and (max-width: 1700px) {
  #Home .parallax-layer1 img { top: calc(40% + 82px) !important; }
  #Home .parallax-layer3 img { top: calc(40% + 82px) !important; }
  #Home .parallax-layer5 img { top: calc(55% + 82px) !important; }
  #Home .parallax-layer6 img { top: calc(45% + 82px) !important; }
  #Home .parallax-layer7 img { top: calc(40% + 82px) !important; }
}

/* Ortswahl: keine künstlichen Halbfenster-Boxen mehr. Beide Bereiche
   verwenden wieder ihre tatsächliche Inhaltsbreite. Sulgen sitzt dadurch
   sichtbar am rechten Fensterrand, ohne abgeschnitten zu werden. */
@media screen and (min-width: 1200px) and (max-width: 1700px) {
  .koenigsfeld-klickdown,
  .sulgen-klickdown {
    width: max-content !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box !important;
  }

  .koenigsfeld-klickdown {
    left: clamp(16px, 2vw, 36px) !important;
    right: auto !important;
    transform: none !important;
  }

  .sulgen-klickdown {
    left: auto !important;
    right: clamp(8px, 1vw, 18px) !important;
    transform: none !important;
  }
}
