:root {
  --header-h: 59px;
  --viewport-h: 100vh;
}

@supports (height: 100svh) {
  :root {
    --viewport-h: 100svh;
  }
}

@supports (height: 100dvh) {
  :root {
    --viewport-h: 100dvh;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #fafafa;
  overscroll-behavior: none;
  overflow-x: hidden;
}
body {
  overscroll-behavior: none;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
}

.container {
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #fff;
  color: #333;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e0e0e0;
}

header .container {
  display: flex;
  align-items: center;
  padding: 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding-left: 20px;
}

.logo img {
  height: 20px;
  width: auto;
}

header nav {
  margin-left: auto;
  padding-right: 20px;
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: clamp(0.8rem, calc(0.8rem + 1.2rem * (100vw - 768px) / 432px), 2rem);
}

nav a {
  color: #333;
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: 500;
  font-size: clamp(0.7rem, calc(0.7rem + 0.3rem * (100vw - 768px) / 432px), 1rem);
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #1a3a5c;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.lang-switch {
  margin-left: clamp(1rem, calc(1rem + 3rem * (100vw - 768px) / 432px), 4rem);
  font-size: clamp(0.65rem, calc(0.65rem + 0.25rem * (100vw - 768px) / 432px), 0.9rem);
  white-space: nowrap;
}

.lang-link {
  color: #999;
  text-decoration: none;
  font-weight: 500;
  padding: 0;
}

.lang-link:hover,
.lang-link.active {
  color: #1a3a5c;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.lang-sep {
  color: #ccc;
  margin: 0 0.3rem;
}

/* Hero */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

#produkt-hero {
  height: calc(var(--viewport-h) - var(--header-h));
  position: relative;
  z-index: 1;
  display: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

#produkt-hero .hero-text {
  opacity: 1;
}

.produkt-content-wrap {
  display: none;
}



/* Home hero – sticky within hero-fade-zone for scroll fade effect */
.hero-fade-zone {
  position: relative;
}

#hero {
  min-height: calc(var(--viewport-h) - var(--header-h) + env(safe-area-inset-bottom));
  position: sticky;
  top: var(--header-h);
  z-index: 1;
  width: 100vw;
  margin-left: calc((100% - 100vw) / 2);
  scroll-snap-align: start;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

.hero-text h2 {
  font-size: 2.2rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.hero-dots {
  position: absolute;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: 20px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

#hero .scroll-indicator,
#produkt-hero .scroll-indicator {
  position: absolute;
  bottom: calc(30px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: scrollBounce 2s ease-in-out infinite;
}

#hero .scroll-indicator-text,
#produkt-hero .scroll-indicator-text {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.scroll-indicator-arrow {
  animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollArrow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-dot {
  position: relative;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
}

.progress-fill {
  stroke: #fff;
  stroke-dasharray: 50.27;
  stroke-dashoffset: 50.27;
  transition: none;
}

.hero-dot.active .progress-fill {
  animation: progress-fill 3s linear forwards;
}

@keyframes progress-fill {
  from { stroke-dashoffset: 50.27; }
  to { stroke-dashoffset: 0; }
}

.dot-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: background 0.3s;
}

.hero-dot.active .dot-inner {
  background: #fff;
}

.page-hero {
  display: none;
}

.page-hero .hero-text {
  flex-direction: column;
  gap: 0.5rem;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: #fff;
  margin: 0.5rem 0;
}

.hero-subtext {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* About Us */
.produkt-detail {
  display: none;
  margin-bottom: 3rem;
  padding-left: 0;
}

.produkt-detail > p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-us {
  padding: 3rem 0;
}

.about-us h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.about-us > p {
  margin-bottom: 1rem;
  line-height: 1.8;
  max-width: 900px;
}

.btn-mehr {
  margin-top: 1rem;
  background: #1a3a5c;
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.btn-mehr:hover {
  background: #2a4a6c;
  transform: translateY(-2px);
}

.home-intro-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.home-intro-buttons .btn-mehr {
  background: #fff;
  color: #1a3a5c;
  border: none;
  transition: background 0.3s, transform 0.2s;
}

.home-intro-buttons .btn-mehr:hover {
  background: #1a3a5c;
  color: #fff;
  transform: translateY(-2px);
}

.about-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
}

.about-list li {
  padding: 0.4rem 0 0.4rem 1.8rem;
  position: relative;
  line-height: 1.7;
}

.about-list li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  color: #1a3a5c;
  font-weight: bold;
}

.scroll-spacer {
  height: 120vh;
}



/* Home contact section */
.home-produkte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0 4rem 0;
  scroll-snap-align: start;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.home-produkt-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.2s;
  container-type: inline-size;
}

.home-produkt-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.home-produkt-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.home-produkt-item[data-scroll-id="produkt-packs"] img,
.home-produkt-item[data-scroll-id="produkt-pallet"] img {
  object-position: 50% 75%;
}

.home-produkt-item p {
  padding: 0.75rem 0.5rem 0.25rem;
  font-weight: 600;
  color: #1a3a5c;
  font-size: min(1.35rem, 8cqi);
  line-height: 1.2;
  flex: 1 0 auto;
}

.home-produkt-label {
  display: block;
  padding: 0 0.5rem 0.5rem;
  font-size: 0.75rem;
  color: #888;
  font-weight: 400;
  margin-top: auto;
}

.home-contact-wrap {
  padding: 2rem 0;
  text-align: center;
}

.home-contact-tagline {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 2rem;
}

.home-contact-map {
  width: 100%;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

/* Home intro overlay */
.home-intro {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  opacity: 0;
  padding: 0 20px;
}

.home-intro p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #fff;
  max-width: 800px;
}

.home-intro .home-intro-bold {
  font-weight: 700;
  font-size: 1.3rem;
}

#page-ueber-uns {
  padding: 3rem 0 4rem;
}

.team-heading {
  margin-top: 3rem;
  color: #1a3a5c;
}

.team-category {
  margin-top: 2rem;
}

.team-category h3 {
  color: #1a3a5c;
  border-bottom: 2px solid #1a3a5c;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.team-card {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
}

.team-name {
  font-weight: 600;
  color: #1a3a5c;
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.team-email a {
  color: #1a3a5c;
  text-decoration: none;
  font-size: 0.85rem;
}

.team-email a:hover {
  text-decoration: underline;
}

/* Main */
main {
  min-height: calc(var(--viewport-h) - 140px);
  padding: 2rem 0;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

#page-produkte {
  position: relative;
  width: 100vw;
  left: calc(-50vw + 50%);
  height: calc(var(--viewport-h) - var(--header-h));
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

#page-produkte::-webkit-scrollbar {
  display: none;
}

.section-heading {
  font-size: 1.8rem;
  color: #1a3a5c;
  margin: 2.5rem 0 1.5rem;
  border-bottom: 2px solid #1a3a5c;
  padding-bottom: 0.3rem;
}

h1 {
  margin-bottom: 1rem;
  color: #1a3a5c;
}

p {
  margin-bottom: 1rem;
}

/* Produktseite */
#page-produkte .produkt-scroll-body h2 {
  color: #1a3a5c;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

#page-produkte h3 {
  color: #2a4a6c;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.produkt-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.3rem, calc(0.3rem + 0.2rem * (min(100vw, 100vh) - 360px) / 1040px), 0.5rem);
  padding: 0;
  margin: 0 0 1rem 0;
  width: auto;
}

.produkt-list button {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: clamp(2.5px, calc(2.5px + 3.5px * (min(100vw, 100vh) - 360px) / 1040px), 6px) solid #fff;
  border-radius: clamp(5px, calc(5px + 10px * (min(100vw, 100vh) - 360px) / 1040px), 15px);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-align: center;
}

.produkt-list button:hover {
  border: clamp(2.5px, calc(2.5px + 3.5px * (min(100vw, 100vh) - 360px) / 1040px), 6px) solid #1a3a5c;
  background: #fff;
}

.produkt-list button img {
  width: 100%;
  height: auto;
  max-height: clamp(70px, calc(70px + 130px * (min(100vw, 100vh) - 360px) / 1040px), 200px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

@media (orientation: landscape) {
  .produkt-list button img {
    aspect-ratio: 1 / 1;
  }
  #produkt-pallet .produkt-list button img {
    aspect-ratio: 1 / 2;
  }
}

.produkt-list button[style*="grid-column:1/-1"] img {
  aspect-ratio: 8/3;
}

@media (orientation: landscape) {
  .produkt-list button[style*="grid-column:1/-1"] img {
    aspect-ratio: 2/1;
  }
}

.produkt-list button:hover .produkt-list-img img {
  transform: scale(1.1);
}

.produkt-list button span {
  display: flex;
  align-items: center;
  justify-content: center;
   height: clamp(2.4rem, calc(2.4rem + 0.6rem * (min(100vw, 100vh) - 360px) / 1040px), 3rem);
  padding: 0.5rem;
  font-weight: 600;
  color: #1a3a5c;
  font-size: clamp(0.8rem, calc(0.8rem + 0.1rem * (min(100vw, 100vh) - 360px) / 1040px), 0.9rem);
  line-height: 1.2;
}

.hero-btn-video {
  margin-top: clamp(0.3rem, calc(0.3rem + 0.7rem * (min(100vw, 100vh) - 360px) / 1040px), 1rem);
  background: #fff;
  color: #1a3a5c;
  border: none;
  padding: clamp(0.5rem, calc(0.5rem + 0.1rem * (min(100vw, 100vh) - 360px) / 1040px), 0.6rem) clamp(1.2rem, calc(1.2rem + 0.3rem * (min(100vw, 100vh) - 360px) / 1040px), 1.5rem);
  border-radius: 999px;
  cursor: pointer;
  font-size: clamp(0.85rem, calc(0.85rem + 0.1rem * (min(100vw, 100vh) - 360px) / 1040px), 0.95rem);
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.btn-produkt {
  margin-bottom: 1.5rem;
}

.hero-btn-video {
  margin-top: clamp(0.3rem, calc(0.3rem + 0.7rem * (min(100vw, 100vh) - 360px) / 1040px), 1rem);
  background: #fff;
  color: #1a3a5c;
  border: none;
  padding: clamp(0.5rem, calc(0.5rem + 0.1rem * (min(100vw, 100vh) - 360px) / 1040px), 0.6rem) clamp(1.2rem, calc(1.2rem + 0.3rem * (min(100vw, 100vh) - 360px) / 1040px), 1.5rem);
  border-radius: 999px;
  cursor: pointer;
  font-size: clamp(0.85rem, calc(0.85rem + 0.1rem * (min(100vw, 100vh) - 360px) / 1040px), 0.95rem);
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

#produkt-hero .hero-text .btn-video {
  margin-top: clamp(0.3rem, calc(0.3rem + 0.7rem * (100vh - 360px) / 1040px), 1rem);
  padding: clamp(0.5rem, calc(0.5rem + 0.1rem * (100vh - 360px) / 1040px), 0.6rem) clamp(1.2rem, calc(1.2rem + 0.3rem * (100vh - 360px) / 1040px), 1.5rem);
  font-size: clamp(0.85rem, calc(0.85rem + 0.1rem * (100vh - 360px) / 1040px), 0.95rem);
}

.hero-btn-video:hover {
  background: #1a3a5c;
  color: #fff;
  transform: translateY(-2px);
}

.btn-show-more {
  display: block;
  margin-top: 0.5rem;
  background: none;
  color: #fff;
  border: none;
  padding: 0.3rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-show-more:hover {
  background: none;
  color: #fff;
}

@media (hover: hover) {
  .btn-show-more:hover {
    color: #ccc;
  }
}

.produkt-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.produkt-card > h3,
.produkt-card > h2 {
  flex-basis: 100%;
  font-size: 1.6rem;
  color: #1a3a5c;
  margin: 0 0 0.5rem;
}

.produkt-card-text {
  flex: 1;
}

.produkt-card-image {
  width: 50%;
  display: flex;
  gap: 0.5rem;
}

.produkt-card-image img {
  width: 50%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

/* Even cards: image left, text right */
.produkt-card:nth-child(even) .produkt-card-image {
  order: 0;
}

.produkt-card:nth-child(even) .produkt-card-text {
  order: 1;
}

/* Odd cards: text left, image right */
.produkt-card:nth-child(odd) .produkt-card-image {
  order: 1;
}

.produkt-card:nth-child(odd) .produkt-card-text {
  text-align: right;
}

.produkt-card:nth-child(odd) > h3,
.produkt-card:nth-child(odd) > h2 {
  text-align: right;
}

.detail-card {
  display: block;
  overflow: hidden;
  margin-bottom: 2rem;
}

.detail-card-text {
  display: block;
}

.detail-card-media {
  float: right;
  width: 50%;
  margin: 0 0 1rem 2rem;
}

@media (max-width: 640px) {
  .detail-card-media {
    float: none;
    width: 100%;
    margin: 1rem 0 0;
  }
}

#produkt-pallet .produkt-list {
  grid-template-columns: 1fr;
  max-width: 380px;
}

#produkt-pallet .produkt-list button img {
  aspect-ratio: 4 / 9;
  object-position: 50% 60%;
  max-height: clamp(120px, calc(120px + 380px * (100vh - 360px) / 1040px), 500px);
}

#produkt-pallet .produkt-list button span {
  height: clamp(2.8rem, calc(2.8rem + 0.7rem * (min(100vw, 100vh) - 360px) / 1040px), 3.5rem);
  font-size: clamp(0.8rem, calc(0.8rem + 0.1rem * (min(100vw, 100vh) - 360px) / 1040px), 0.9rem);
}

.detail-card-media .modal-images img,
.detail-card-media .modal-images-3 img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

/* Produkt Detail */
#page-produkt-flaschen-dosen h3,
#page-produkt-packs-karton h3,
#page-produkt-trays-kasten h3,
#page-produkt-palettiertechnik h3,
#page-produkt-sonderloesungen h3 {
  color: #1a3a5c;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.btn-zuruck {
  margin-bottom: 1rem;
  background: none;
  color: #1a3a5c;
  padding: 0.3rem 0;
}

.btn-zuruck:hover {
  background: none;
  text-decoration: underline;
}

.modal-images {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.modal-images img {
  width: 50%;
  height: auto;
  border-radius: 4px;
}

.modal-images-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-images-3 img {
  width: calc(33.33% - 0.35rem);
  height: auto;
  border-radius: 4px;
}

.modal-video {
  width: calc(33.33% - 0.35rem);
}

.detail-card[data-detail-keys="product.syncswitch"] .modal-video {
  width: 100%;
}

.detail-card[data-detail-keys="product.syncswitch"] .modal-video video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.detail-card#detail-manipulator .modal-images-3 {
  display: block;
}

.detail-card#detail-manipulator .modal-images-3 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-card[data-detail-keys="product.cratemagazine"] .modal-video {
  width: 100%;
  margin-top: 0.5rem;
}

.detail-card[data-detail-keys="product.cratemagazine"] .modal-video video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.modal-video video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.modal-grid-video {
  grid-column: span 2;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 4px;
}

.produkt-detail-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.produkt-detail-list li {
  margin-bottom: 0.3rem;
}

/* Contact Form */
form {
  max-width: 500px;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  resize: none;
}

button {
  background: #1a3a5c;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background: #2a4a6c;
}

.contact-info {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
}

/* Jobs */
#page-kontakt {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
}

#page-kontakt .home-contact-tagline {
  margin: 2rem 0;
  text-align: center;
}

.kontakt-layout {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: flex-start;
}

.kontakt-jobs,
.kontakt-info {
  flex: 1;
}

.kontakt-jobs h2 {
  font-size: 2em;
  margin-bottom: 1rem;
  color: #1a3a5c;
}

.job-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 1.5rem;
}

.job-card h2 {
  color: #1a3a5c;
  margin-bottom: 1rem;
}

.job-card p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.job-reqs {
  margin: 1rem 0;
}

.job-reqs p {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.job-contact {
  margin-top: 1.5rem;
  font-weight: bold;
}

.job-email {
  font-size: 1.1rem;
}

.job-email a {
  color: #1a3a5c;
  text-decoration: none;
}

.job-email a:hover {
  text-decoration: underline;
}

.btn-apply {
  display: inline-block;
  margin-top: 1rem;
  background: #1a3a5c;
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.btn-apply:hover {
  background: #2a4a6c;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: #1a3a5c;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
  position: relative;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.footer-visible footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 1;
  z-index: 10;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  row-gap: 0.5rem;
  width: 100%;
  font-size: clamp(0.65rem, 1.2vw, 0.9rem);
}

.footer-legal-links {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

@media (max-width: 650px) {
  .footer-info {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    column-gap: 1.5rem;
  }

  .footer-info > p:first-child {
    align-self: center;
  }

  .footer-legal-links {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .footer-address {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-addr-sep {
    display: none;
  }

  .footer-sep {
    display: none;
  }
}

@media (max-width: 500px) {
  .footer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-items: center;
    column-gap: 0.5rem;
  }

  .footer-contact,
  .footer-address {
    width: 100%;
    text-align: center;
  }

  .footer-info > p:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-legal-links {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .footer-contact {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .footer-address {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.produkte-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #1a3a5c;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.produkte-footer.visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a3a5c;
  color: #ccc;
  padding: 0.8rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 9998;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.cookie-bar.show {
  display: flex;
}

.cookie-text {
  margin: 0;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-btn {
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.cookie-btn-accept {
  background: #fff;
  color: #1a3a5c;
}

.cookie-btn-accept:hover {
  background: #e0e0e0;
}

.cookie-btn-decline {
  background: transparent;
  color: #ccc;
  border: 1px solid #666;
}

.cookie-btn-decline:hover {
  border-color: #ccc;
}

.dienst-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.dienst-card:nth-child(even) {
  flex-direction: row-reverse;
}

.dienst-card-text {
  flex: 1;
}

.dienst-card-text h3 {
  color: #1a3a5c;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.dienst-card-text p {
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.dienst-card-image {
  width: 40%;
}

.dienst-card-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.produkt-card-image img:hover,
.modal-images img:hover,
.modal-images-3 img:hover {
  opacity: 0.85;
}
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  animation: lightboxFadeIn 0.3s ease;
}
.lightbox.open {
  display: flex;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  animation: lightboxZoomIn 0.3s ease;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: #ccc;
}

.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  box-sizing: border-box;
  animation: lightboxFadeIn 0.3s ease;
}

.gallery-modal.open {
  display: flex;
}

.gallery-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 1200px);
  width: 100%;
  max-height: 90vh;
}

.gallery-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 80vh;
}

.gallery-media img,
.gallery-media video {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-counter {
  margin-top: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
}

.gallery-close {
  position: fixed;
  top: 20px;
  right: 40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10002;
  line-height: 1;
  transition: color 0.2s;
}

.gallery-close:hover {
  color: #ccc;
}

.gallery-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  cursor: pointer;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.12);
}

.gallery-nav[hidden] {
  display: none;
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

@media (max-width: 640px) {
  .gallery-close {
    top: 12px;
    right: 16px;
    font-size: 32px;
  }

  .gallery-nav {
    width: 2.5rem;
    height: 2.5rem;
  }

  .gallery-prev {
    left: 0.25rem;
  }

  .gallery-next {
    right: 0.25rem;
  }
}
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lightboxZoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.hamburger:hover {
  background: #e0e0e0;
  border-radius: 4px;
}
.hamburger-line {
  display: block;
  width: 26px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    margin-left: auto;
    margin-right: 20px;
    z-index: 300;
  }

  header nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 150;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  }

  header nav.open {
    max-height: 400px;
  }

  header nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 0.5rem;
    width: 100%;
  }

  header nav ul li {
    width: 100%;
    text-align: center;
  }

  header nav ul li a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  header nav .lang-switch {
    margin: 1.5rem 0 1.2rem 0;
    text-align: center;
  }

  header nav .lang-link {
    font-size: 1rem;
  }

  .home-intro p {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }

  .home-intro .home-intro-bold {
    font-size: 1rem;
  }

  .home-intro-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .dienst-card {
    flex-direction: column;
  }

  .dienst-card:nth-child(even) {
    flex-direction: column;
  }

  .dienst-card-image {
    width: 100%;
  }

  .produkt-card {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  .produkt-card-image {
    width: 100%;
  }

  .produkt-card:nth-child(odd) .produkt-card-image {
    order: 0;
  }

  .produkt-card:nth-child(odd) .produkt-card-text {
    text-align: left;
  }

  .produkt-card:nth-child(odd) > h3,
  .produkt-card:nth-child(odd) > h2 {
    text-align: left;
  }

  .home-contact-map {
    height: 250px;
  }

  .home-contact-tagline {
    font-size: 1.2rem;
  }

  .produkt-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .produkt-list button img {
    max-height: 130px;
  }
}

/* Info-Button (nur sichtbar auf Mobile) */
.info-btn {
  display: none;
}

.info-tooltip {
  display: none;
}

@media (max-width: 768px) {
  .produkt-scroll-content {
    position: relative;
  }

  .produkt-scroll-content h2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .info-btn {
    display: inline-flex;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 0.5rem;
    padding: 0;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
  }

  .info-btn:hover,
  .info-btn.active {
    background: #fff;
    color: #1a3a5c;
  }

  .info-tooltip {
    display: none;
    position: fixed;
    z-index: 9999;
    background: #fff;
    color: #333;
    border-radius: 8px;
    padding: 0;
    max-width: 85vw;
    width: max-content;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    font-size: 0.85rem;
    line-height: 1.5;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
  }

  .info-tooltip.open {
    display: block;
    opacity: 1;
  }

  .info-tooltip-inner {
    position: relative;
    padding: 1rem;
  }

  .info-tooltip-inner::before {
    content: '';
    position: absolute;
    top: -8px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
  }

  .info-tooltip.above .info-tooltip-inner::before {
    top: auto;
    bottom: -8px;
    border-bottom: none;
    border-top: 8px solid #fff;
  }

  #produkt-bottles .produkt-scroll-content > p,
  #produkt-packs .produkt-scroll-content > p,
  #produkt-pallet .produkt-scroll-content > p {
    display: none;
  }

  .home-produkte-grid {
    gap: 1rem;
  }

  .home-produkt-item img {
    height: 120px;
  }

  .kontakt-layout {
    flex-direction: column;
  }

  #page-kontakt {
    max-width: 100%;
    padding: 0;
  }

  .kontakt-layout {
    gap: 0;
  }

  .kontakt-jobs,
  .kontakt-info {
    width: 100%;
    padding: 1rem;
  }

  .kontakt-jobs hr,
  .kontakt-info hr {
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .contact-info {
    border-radius: 8px;
  }
}

.detail-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  animation: lightboxFadeIn 0.3s ease;
}

.detail-modal.open {
  display: flex;
}

.detail-modal-content {
  background: #fff;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  animation: lightboxZoomIn 0.3s ease;
}

.video-modal .detail-modal-content {
  width: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.detail-modal-content .detail-card {
  margin: 0;
  padding: 0;
  border: none;
}

.detail-modal-content .detail-card p {
  margin-bottom: 1rem;
}

.detail-modal-content .detail-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 4px;
}

.detail-modal-content .detail-card video {
  max-width: 100%;
  display: block;
  margin: 1rem 0;
  border-radius: 4px;
}

.detail-modal-content img,
.detail-modal-content video {
  cursor: zoom-in;
}

.detail-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #000;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
  line-height: 1;
}

.detail-modal-close:hover {
  color: #666;
}

.video-modal .detail-modal-close {
  color: #fff;
}

.video-modal .detail-modal-close:hover {
  color: #ccc;
}

/* Produkt Scroll Sections */
.produkt-scroll {
  height: calc(var(--viewport-h) - var(--header-h));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.produkt-scroll::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

.produkt-scroll-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(0.4rem, calc(0.4rem + 1.6rem * (min(100vw, 100vh) - 360px) / 1040px), 2rem);
  pointer-events: auto;
}

.produkt-scroll-inner {
  display: flex;
  gap: clamp(0.3rem, calc(0.3rem + 1.7rem * (min(100vw, 100vh) - 360px) / 1040px), 2rem);
  align-items: center;
  padding: clamp(0.3rem, calc(0.3rem + 1.7rem * (min(100vw, 100vh) - 360px) / 1040px), 2rem);
}

.produkt-scroll:nth-of-type(even) .produkt-scroll-inner {
  flex-direction: row-reverse;
}

.produkt-scroll-content {
  flex: 1;
  min-width: 0;
}

.produkt-scroll-content p {
  margin-bottom: clamp(0.3rem, calc(0.3rem + 0.3rem * (min(100vw, 100vh) - 360px) / 1040px), 0.6rem);
  line-height: clamp(1.3, calc(1.3 + 0.3 * (min(100vw, 100vh) - 360px) / 1040px), 1.6);
  color: #fff;
  font-weight: 400;
  font-size: clamp(0.9rem, calc(0.9rem + 0.3rem * (min(100vw, 100vh) - 360px) / 840px), 1.2rem);
}

.info-tooltip-inner p {
  color: #333;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

#produkt-packs .produkt-scroll-content p {
  font-size: clamp(0.75rem, calc(0.75rem + 0.45rem * (min(100vw, 100vh) - 360px) / 840px), 1.2rem);
}

.info-tooltip-inner p:last-child {
  margin-bottom: 0;
}

#page-produkte .produkt-scroll-content h2,
#page-produkte .produkt-scroll-content h3 {
  color: #fff;
  font-size: clamp(0.8rem, calc(0.8rem + 1.3rem * (min(100vw, 100vh) - 360px) / 840px), 2.1rem);
  margin-bottom: clamp(0.3rem, calc(0.3rem + 0.3rem * (min(100vw, 100vh) - 360px) / 1040px), 0.6rem);
}

@media (max-width: 768px) {
  #page-produkte .produkt-scroll-content h2,
  #page-produkte .produkt-scroll-content h3 {
    font-size: 1.7rem;
  }
}

@media (max-width: 560px) {
  #produkt-bottles .produkt-scroll-content h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 432px) {
  #produkt-bottles .produkt-scroll-content h2 {
    font-size: 1rem;
  }
}

.produkt-scroll-body .produkt-list {
  width: clamp(260px, 40vw, 600px);
  flex-shrink: 0;
  margin: 0;
}

.produkt-scroll-section-heading {
  text-align: center;
  padding: 3rem 0 0;
  font-size: 1.8rem;
  color: #1a3a5c;
  pointer-events: auto;
}

@media (orientation: portrait) {
  .produkt-scroll-inner,
  .produkt-scroll:nth-of-type(even) .produkt-scroll-inner {
    flex-direction: column;
  }
  .produkt-scroll-body .produkt-list {
    width: 100%;
  }
}

.produkt-list-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (orientation: landscape) {
  .produkt-scroll-inner > div:last-child {
    align-self: stretch;
  }
  .produkt-scroll-content {
    transform: translateY(-50px);
  }
}
