/* ── Fonts (correct weights) ─────────────────────────────────── */
@font-face {
  font-family: 'Soehne Leicht';
  src: url('./Söhne/Test Söhne/test-soehne-leicht.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Soehne Halb Fett';
  src: url('./Söhne/Test Söhne/test-soehne-halbfett.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Soehne Kraftig';
  src: url('./Söhne/Test Söhne/test-soehne-kraftig.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

/* ── Base layout ─────────────────────────────────────────────── */
body {
  background: #f7efdb;
  margin: 0;
  font-family: 'Soehne Leicht', sans-serif;
  color: #111;
}

.logo-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem;
}

.logo-image {
  width: 60px;
  height: auto;
}

.logo-text {
  font-size: 4rem;
  margin: 0;
  color: #111;
  font-weight: normal;
}

/* Section defaults */
section {
  padding: 1rem 1rem;
  max-width: min(80vw, 800px);
  margin: 0 auto;
}

.products-section {
  max-width: 1600px;
  padding: 1rem 1rem;
}

/* Typography */
h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-family: 'Soehne Kraftig', sans-serif;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Links */
.team-section p, 
.contact-section p {
  text-align: center;
}

.team-section a, 
.contact-section a {
  color: #111;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: inset 0 0 0 1px transparent;
}

.team-section a:hover, 
.contact-section a:hover {
  opacity: 0.7;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.2);
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #555;
}

/* ── Products carousel ───────────────────────────────── */
.carousel-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1500px;
  margin: 0 auto;
}

.carousel-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.carousel-track li {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  position: relative;
}

.carousel-track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Image overlay for hover text */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.carousel-track li:hover .image-overlay {
  opacity: 1;
}

.overlay-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-family: 'Soehne Kraftig', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
}

/* Layout rules */
@media(min-width: 1024px) {
  .carousel-track li {
    flex: 0 0 calc((100% - 1.5rem) / 2); /* 2-across with the new gap */
  }
}

/* Arrows - positioned outside the carousel */
.carousel-btn{
  background:transparent;
  border:none;
  color:#111;
  font-size:3rem;
  cursor:pointer;
  padding:1rem 0.5rem;
  transition:all .2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  user-select:none;
  font-weight:300;
  line-height:1;
}
.carousel-btn:hover{
  color:#666;
  transform:translateX(0);
}
.carousel-btn.prev:hover{
  transform:translateX(-3px);
}
.carousel-btn.next:hover{
  transform:translateX(3px);
}
.carousel-btn:active{
  color:#333;
}

/* Responsive design */
@media (max-width: 768px) {
  .logo-text {
    font-size: 3rem;
  }
  
  section {
    padding: 1.5rem 1rem;
  }
  
  .products-section {
    padding: 1.5rem 0.5rem;
  }
}

@media (max-width: 600px) {
  .carousel-container {
    gap: 0.5rem;
  }
  
  .carousel-track {
    gap: 1rem;
  }
  
  .carousel-btn {
    font-size: 2rem;
    padding: 0.5rem 0.3rem;
    min-width: 2.5rem;
  }
  
  .overlay-top {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 400px) {
  .logo-text {
    font-size: 2.5rem;
  }
  
  .carousel-container {
    gap: 0.25rem;
  }
  
  .carousel-track {
    gap: 0.5rem;
  }
  
  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.4rem 0.2rem;
    min-width: 2rem;
  }
  
  .overlay-top {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}
