/* Design System for tolleskleid.de */
:root {
  --color-bg: #fdfcf8;
  --color-text: #6d8765;
  --color-accent: #5d4037;
  --color-secondary: #a5d6a7;
  --color-white: #ffffff;
  --font-heading: 'Handlee', cursive;
  --font-body: 'Handlee', cursive;
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.background-anim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  background-image: url('Bilder/Hintergrund.png');
  background-size: auto;
  background-repeat: repeat;
  background-position: center;
  background-attachment: fixed;
  animation: bgPulse 20s infinite alternate ease-in-out;
}

@keyframes bgPulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}

.content-wrapper {
  background: rgba(255, 255, 255, 0.5);
  /* 50% transparency */
  min-height: 100vh;
}


h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

section {
  padding: 100px 5%;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 5%;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--color-text);
  transition: transform 0.3s ease-in-out;
}

header.header-hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.main-logo {
  max-width: 150px;
  height: auto;
}

.slogan {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-top: 5px;
  font-size: 1rem;
  text-align: center;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  top: 25px;
  left: 20px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

nav {
  width: 100%;
  transition: max-height 0.3s ease-in-out;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  padding: 8px 15px;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

nav a:hover {
  animation: pulse-border 1.5s infinite;
}

nav a.active {
  background-color: #69835A;
  color: white !important;
}

@keyframes pulse-border {
  0% {
    border-color: rgba(105, 131, 90, 0.4);
    box-shadow: 0 0 0 0 rgba(105, 131, 90, 0.4);
  }
  50% {
    border-color: rgba(105, 131, 90, 1);
    box-shadow: 0 0 0 5px rgba(105, 131, 90, 0);
  }
  100% {
    border-color: rgba(105, 131, 90, 0.4);
    box-shadow: 0 0 0 0 rgba(105, 131, 90, 0);
  }
}

@media (max-width: 800px) {
  .hamburger {
    display: flex;
    top: 15px;
    left: 15px;
  }

  .main-logo {
    max-width: 90px;
  }

  .slogan {
    font-size: 0.8rem;
    margin-top: 3px;
  }

  nav {
    max-height: 0;
    overflow: hidden;
  }

  nav.nav-open {
    max-height: 400px;
    margin-top: 15px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: transparent;
}

.hero-content h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(50px);
}

.hero-image {
  position: relative;
  width: auto;
  height: 70vh;
  aspect-ratio: 4/5;
  object-fit: cover;
  transform: scale(1.1);
  filter: brightness(0.9);
  -webkit-mask-image: radial-gradient(ellipse, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 75%);
  mask-image: radial-gradient(ellipse, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 75%);
  margin-top: 0px;
  margin-bottom: 30px;
  filter: brightness(0.9);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: .4s;
  border: 1px solid var(--color-text);
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 3px;
  background-color: var(--color-text);
  transition: .4s;
}
input:checked + .slider {
  background-color: var(--color-text);
}
input:checked + .slider:before {
  background-color: white;
  transform: translateX(24px);
}
.slider.round {
  border-radius: 24px;
}
.slider.round:before {
  border-radius: 50%;
}

/* Mission Section */
.mission {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.mission-text {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.4);
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.mission-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  line-height: 1.4;
}

.mission-text h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 15px;
}

.mission-image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.mission-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
}

/* Image Grids */
.image-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.image-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.image-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {

  .image-row-2,
  .image-row-3,
  .image-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

/* Kollektion Grid */
.kollektion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.kollektion-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  border-radius: 5px;
}

.kollektion-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.kollektion-item:hover img {
  transform: scale(1.05);
}

.kollektion-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  color: white;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.kollektion-item:hover .kollektion-info {
  transform: translateY(0);
}

/* Animations Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.parallax-wrapper {
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 30px;
  transition: var(--transition-smooth);
}

.btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-accent);
}

/* Footer */
footer {
  padding: 50px 5%;
  background-color: var(--color-accent);
  color: white;
  text-align: center;
}