/* =================== WEBFONTS =================== */
@font-face {
  font-family: "Noto Sans Regular";
  src: url("../assets/fonts/NotoSans-VariableFont_wdth,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Italic";
  src: url("../assets/fonts/NotoSans-Italic-VariableFont_wdth,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* =================== CSS-Variablen =================== */
:root {
  /* Farben */
  --mb: #192440;  /* Mitternachtsblau */
  --gd: #D2A857;  /* Gold */
  --wt: #FFFFFF;  /* Weiß */
  --bd: #222222;  /* Schwarz/Dunkel */
  --sl: #C0C0C0;  /* Silber */

  /* Typografie */
  --fs-base: 1rem;  /* Basis-Schriftgröße (16px) */
  --fs-h1: 4rem;    /* H1 = 64px */
  --fs-h2: 3rem;  /* H2 = 48px */
  --fs-h3: 2.5rem;    /* H3 = 40px */
  --fs-h4: 2rem;  /* H4 = 32px */
  --fs-h5: 1.5rem; /* H5 = 24px */
  --fs-h6: 1.25rem;    /* H6 = 20px */
  --fs-p: 1.125rem; /* Fließtext = 18px */

  /* Abstände */
  --sp-sm: 1rem;    /* Kleine Abstände (16px) */
  --sp-md: 2rem;    /* Mittlere Abstände (32px) */
  --sp-lg: 3rem;    /* Große Abstände (48px) */
  --sp-padding: 2rem; /* Abstände für Sections */
  --sp-gap: 1.5rem;  /* Abstand zwischen Grid-Elementen */

  /* Layout / Maximalbreiten */
  --mw: 1200px;     /* Maximalbreite der Seite */
  --mw-lg: 1300px;  /* Größere Maximalbreite für bestimmte Sektionen (z.B. Navigation) */
}


/* =================== BODY-BASICS =================== */
html {
  font-size: 16px;
}

@media (max-width: 700px) {
  html {
    font-size: 14px;
  }
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 0;
}

[id]:focus {
  outline: none;
}


/* =================== STANDARD ÜBERSCHRIFTEN =================== */
h1 {
  font-size: var(--fs-h1);  /* H1 = 64px */
}

h2 {
  font-size: var(--fs-h2);  /* H2 = 48px */
}

h3 {
  font-size: var(--fs-h3);  /* H3 = 40px */
}

h4 {
  font-size: var(--fs-h4);  /* H4 = 32px */
}

h5 {
  font-size: var(--fs-h5);  /* H5 = 24px */
}

h6 {
  font-size: var(--fs-h6);  /* H6 = 20px */
}

p {
  font-size: var(--fs-p);  /* Fließtext = 18px */
  line-height: 1.6;
}

/* =================== BODY-BASICS =================== */
body {
  margin: 0;
  font-family: "Noto Sans Regular", Arial, Helvetica, sans-serif;
  color: var(--bd);
  background: var(--wt);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* =================== NAVIGATION =================== */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--mb); /* Mitternachtsblau */
}

.main-nav {
  width: 100vw;
  height: 6rem;
  box-shadow: 0 2px 16px var(--mb)22;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mb);
  padding-top: 8px;
  padding-bottom: 20px;
}

.nav-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: var(--mw-lg);
  margin: 0 auto;
  padding: 0 12px;
  width: 100%;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
}

.logo-link img {
  height: 50px;
  display: block;
  margin: 0;
  padding: 0 0 0 15px;
}

@media (max-width: 460px) {
  .logo-link img { height: 38px;} 
  }

/* Hamburger-Menü-Button */
.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--wt);
  cursor: pointer;
  margin-left: auto;
  padding: 0 15px 0 0;
  align-self: center;
  margin-top: 15px;
}

.nav-toggle img {
  width: 30px;
}

/* Navigation-Menü (ul) */
.nav-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  background: #192440e7;
  position: absolute;
  left: 50%;
  top: 50px;
  transform: translate(-50%, -20px);
  width: 80%;  /* Das Menü nimmt 80% der Bildschirmbreite ein */
  max-width: 300px; /* Maximale Breite für größere Geräte */
  z-index: 199;
  text-align: center;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 16px var(--mb)44;
  padding: 30px 0 20px 0;
  opacity: 0; /* Unsichtbar bei Start */
  pointer-events: none; /* Klicks deaktiviert */
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.nav-menu.open {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.nav-menu li {
  list-style: none;
}

.nav-menu a {
  color: var(--wt);
  text-decoration: none;
  padding: 7px 12px;
  display: block;
  font-weight: 500;
  font-family: "Noto Sans Regular", Arial, sans-serif;
  position: relative;
  transition: color 0.3s ease;
  text-align: center; 
}

.nav-menu a:hover {
  transform: scale(1.3);
  transition: transform 0.3s ease;}


  /* Linie für aktiven Menüpunkt und Hover-Effekt */
/* .nav-menu a::after {
  display: none;
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 0;
  height: 2px;
  background-color: var(--wt);
  transform: translateX(-50%);
  opacity: 0;
  transition: width 0.3s ease;
} */


/* Hover-Effekt und aktive Seite */
/* .nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 80%;
  opacity: 1;
} */


/* .nav-menu a.active {
  color: var(--wt);
  font-weight: 600;
  background-color: var(--gd);
  border: 2px solid var(--sl);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 7px 12px;
  border-radius: 4px;
  width: 100px;
  text-align: center;
  display: inline-block;
  white-space: nowrap;
} */


/* Anpassung der Linie in der mobilen Ansicht */
/* @media (max-width: 700px) {
  .nav-menu a::after {
    width: 5%;
  }

  .nav-menu a.active::after {
    width: 30%;
  }
} */


/* =================== EXTRAS =================== */
 header, .main-nav, .nav-inner, .hero, .intro {
  box-sizing: border-box;
  will-change: transform;
  backface-visibility: hidden;
}  

/* =================== LANGUAGE SWITCH =================== */
.language-switch {
  display: flex;
  gap: 16px;  /* Abstand zwischen den Flaggen */
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 55%;  /* Desktop: Mittig, leicht nach unten */
  transform: translate(-50%, -50%);
  z-index: 201;
}

.language-switch .lang-btn {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
}

.language-switch .lang-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid var(--sl);
}

.language-switch .lang-btn.active {
  transform: scale(1.3);
}

.language-switch .lang-btn:hover {
  opacity: 0.5;
}

/* Tablet */
@media (max-width: 1024px) {
  .language-switch {
    top: 58%;  
    gap: 14px;
  }

  .language-switch .lang-btn {
    width: 28px;
    height: 28px;
  }
}

/* Mobil */
@media (max-width: 768px) {
  .language-switch {
    top: 56%; 
    gap: 12px;
  }

  .language-switch .lang-btn {
    width: 24px;
    height: 24px;
  }
}

/* Kleinstes Mobil */
@media (max-width: 480px) {
  .language-switch {
    top: 54%; 
    gap: 10px;
  }

  .language-switch .lang-btn {
    width: 20px;
    height: 20px;
  }
}


/* =================== HERO SECTION (VIDEO, LOGO, SCROLL) =================== */
.hero {
  position: relative;
  width: 100vw;
  height: 85vh;
  min-height: 350px; 
  max-height: 900px; 
  overflow: hidden;
  background: #111; 
  display: flex;
  align-items: center; 
  justify-content: center;
}

.hero-video {
  width: 100vw;
  height: 100vh;
  min-height: 85vh;
  max-height: 900px;
  object-fit: cover; 
  display: block;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
}

.mute-btn {
  position: absolute;
  top: 22px;
  right: 16px;
  z-index: 12;  
  font-size: 1.7em;
  background: rgba(25,36,64,0.87);
  color: var(--gd);  
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px #0006;
}

/* =================== HERO-LOGO  =================== */
.hero-logo-flip {
  position: absolute;
  top: 45%;   
  left: 50%;    
  width: 38vw;  
  aspect-ratio: 1106 / 686; /* Immer Originalverhältnis PNG! */
  min-width: 120px; 
  max-width: 265px;  
  transform: translate(-50%, -50%);
  z-index: 11; 
  perspective: 1200px;      /* Für 3D-Flip-Animation */
  outline: none;
  cursor: pointer; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-flip img {
  width: 100%; 
  height: auto;  
  display: block;
  filter: drop-shadow(0 0 2px #fff)
          drop-shadow(0 2px 2px #000c);
  pointer-events: none; 
  user-select: none;
  opacity: 0.98;
  backface-visibility: hidden;
  transition: transform 0.8s cubic-bezier(.86,.01,.3,1);
}

/* Animation für Drehung: Wird durch JS beim Klick getriggert */
.hero-logo-flip.spin img {
  transform: rotateY(360deg);
}

/* ========== SCROLL DOWN ANIMATION ========== */
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 24px; 
  transform: translateX(-50%);
  z-index: 20; 
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.scroll-down .arrow {
  width: 18px;
  height: 18px;
  border-left: 4px solid var(--gd);
  border-bottom: 4px solid var(--gd);
  transform: rotate(-45deg);
  margin-bottom: 4px;
  animation: bounce 1.4s infinite; /* Hüpfende Animation */
  opacity: 0.85;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(-45deg); }
  40% { transform: translateY(7px) rotate(-45deg);}
  70% { transform: translateY(-1px) rotate(-45deg);}
}

.scroll-down .scroll-text {
  font-size: 0.93em;
  color: var(--gd);
  opacity: 0.69;
  letter-spacing: 0.04em;
}

/* =================== RESPONSIVE FÜR MOBILE =================== */
@media (max-width: 350px) {
  .hero-logo-flip {
    width: 66vw;
    min-width: 70px;
    max-width: 120px;
    aspect-ratio: 1106 / 686;
  }
  .scroll-down { bottom: 12px; }
}

@media (max-width: 700px) {
  .hero-logo-flip {
    width: 80vw;    
    min-width: 120px;   
    max-width: 265px;  
    aspect-ratio: 1106 / 686;
  }
}

/* =================== TABLET & DESKTOP =================== */
@media (min-width: 700px) { 
  .hero-logo-flip {
    width: 28vw;
    min-width: 265px; 
    max-width: 520px;
    aspect-ratio: 1106 / 686;
    top: 45%;
  }

  .mute-btn { width: 48px; height: 48px; font-size: 2em; right: 40px; bottom: 40px;}
  .scroll-down { bottom: 44px; }
  .scroll-down .arrow { width: 28px; height: 28px; }
}

/* =================== XXL SCREENS =================== */
@media (min-width: 1400px) {
  .hero-logo-flip { max-width: 600px; }
}

/* =================== INTRO SECTION  =================== */
.intro {
  max-width: var(--mw-lg);
  margin: 0 auto;
  padding: 100px 14px 80px 14px;
  text-align: center;
}

.intro h1 {
  font-size: var(--fs-h3);
  text-transform: uppercase;
  color: var(--mb);
  margin-bottom: 12px;
}

.intro h2 {
  font-size: var(--fs-h5);
  margin-bottom: 24px;
}

.button {
  display: inline-block;
  background: var(--gd);
  color: var(--mb);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  font-size: 1.13em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 12px rgba(25, 36, 64, 0.2);
}

.button:hover, .button:focus {
  background: var(--mb);
  color: var(--gd);
}

/* =================== BUTTONS =================== */
.button-wrapper {
  display: flex; 
  flex-direction: column; 
  gap: 12px;  
  align-items: center;   
  margin-top: 20px; 
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .button-wrapper {
    width: 100%; 
    padding: 0 16px; 
  }

  .button {
    width: 50%;  
    font-size: 1em;
    padding: 12px 20px; 
  }
}

@media (min-width: 701px) {
  .button-wrapper {
    flex-direction: row;      /* Buttons nebeneinander anordnen */
    justify-content: center;  /* Buttons in der Mitte des Containers ausrichten */
    gap: 24px;                /* Abstand zwischen den Buttons */
  }

  .button {
    width: auto;  
    min-width: 160px;  
    font-size: 1.1em;  
    padding: 14px 30px; 
    text-align: center;  
  }
}

/* Initialer Zustand der Elemente */
#intro h1, #intro h2 {
  opacity: 0;
  transform: translateY(20px);
}

#intro h1.animate {
  animation: movein-left 1s ease-out forwards;
  animation-delay: 0.1s;
}

#intro h2.animate {
  animation: movein-right 1s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes movein-left {
  from {
    transform: translateX(-100%) scale(0);
    opacity: 0; 
  }
  to {
    transform: translateX(0%) scale(1);
    opacity: 1;
  }
}

@keyframes movein-right {
  from {
    transform: translateX(100%) scale(0);
    opacity: 0;
  }
  to {
    transform: translateX(0%) scale(1);
    opacity: 1; 
  }
}


/* =================== SERVICES SECTION =================== */
.services {
  text-align: center;
  padding: 50px 20px 100px 20px;
  background-color: #fdfdfd;
  max-width: var(--mw-lg); 
  margin: 0 auto; 
}

.services h2 {
  margin-bottom: var(--sp-lg);
  color: var(--mb);
}

.underline {
  display: inline-block;
  border-bottom: 3px solid var(--gd);
  padding-bottom: 8px; 
}

/* Container für die Begriffe */
.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: var(--sp-sm); 
  text-align: center;
}

/* Allgemeiner Stil für die Begriffe */
.service-item .focus {
  font-weight: 700;
  color: var(--mb); 
  text-transform: uppercase;
  opacity: 0; 
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1.2s ease-out;
  margin: 20px;
  cursor: pointer;
  display: inline-block;
  position: relative;
}

/* Sichtbar-Status */
.service-item .as-h3.visible,
.service-item .as-h4.visible {
  opacity: 1; 
  transform: translateY(0);
  animation: moveUp 1s ease-out forwards;
}

/* Automatische Richtungs-Animation (nth-child) */
.service-item:nth-child(odd) .as-h3,
.service-item:nth-child(odd) .as-h4 {
  animation: move-up 1s ease-out forwards;
}

.service-item:nth-child(even) .as-h3,
.service-item:nth-child(even) .as-h4 {
  animation: move-down 1s ease-out forwards;
}

/* Individuelle Overrides falls benötigt */
.service-item:nth-child(3) .as-h3,
.service-item:nth-child(3) .as-h4 {
  animation: move-up 1s ease-out forwards;
}

.service-item:nth-child(4) .as-h3,
.service-item:nth-child(4) .as-h4 {
  animation: move-down 1s ease-out forwards;
}

.service-item:nth-child(5) .as-h3,
.service-item:nth-child(5) .as-h4 {
  animation: move-center 1s ease-out forwards;
}

/* Keyframes */
@keyframes move-left {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes move-right {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes move-up {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes move-down {
  from { transform: translateY(-100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes move-center {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* =================== MOBILE VIEW =================== */
@media (max-width: 768px) {
  .service-item .as-h4 {
    font-size: 1.8rem;
  }

  .service-item .as-h3 {
    font-size: 2.2rem;
  }

  .services-list {
    display: block;
    text-align: center;
  }
}

/* Screenreader-Text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =================== AWARD SECTION =================== */
.award {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 100px 20px 100px;
  text-align: center;
}

.award h2 {
  font-size: var(--fs-h4);
  text-transform: uppercase;
  color: var(--mb);
  margin: 0;
  padding-bottom: 10px;
}

p#award-description {
  margin-bottom: 20px;
}

.award p {
  font-size: 1rem;
  color: var(--bd);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.nowrap {
  white-space: nowrap;
  text-transform: uppercase;
}

.award-farsi-note {
  font-size: 0.75rem;
  font-family: 'Noto Naskh Arabic', 'Vazirmatn', serif;
  direction: rtl;
  text-align: center;
  color: var(--sl);
  margin: 10px auto;
  display: block;
  max-width: 100%;
}


h6.award-farsi-note {
  margin-top: 20px;
  color: var(--gd);
}

.button {
  margin-top: 0;
}

.pdf-button {
  margin-bottom: 10px;
}

.award-meta {
  font-family: "Noto Sans Italic";
  font-size: 0.6rem;
  color: var(--sl);
}

/* =================== RESPONSIVE ANPASSUNG =================== */
@media (max-width: 700px) {
  .award h2 {
    font-size: 1.5rem;
  }

  .award h3 {
    font-size: 1rem;
  }

  .award p {
    font-size: 0.8rem;
    padding: 0 1rem;
  }

  .award-meta {
    font-size: 0.5rem;
  }
}


.extra {
  text-align: center;
  color: var(--mb);
}


.wurfel{
  margin-bottom: 150px;
  min-height: 70vh;
  display: grid;
  place-content: center;
  background: #556270;
  animation: b 9s infinite;
  clip-path: polygon(0% 0%, 5% 5%, 10% 4%, 20% 9%, 30% 5%, 40% 10%, 50% 8%, 60% 5%, 70% 10%, 80% 8%, 90% 5%, 100% 0%, 100% 100%, 90% 95%, 80% 90%, 70% 93%, 60% 91%, 50% 95%, 40% 92%, 30% 94%, 20% 96%, 10% 98%, 0% 100%);
}

.wurfel h2{
  margin-bottom: 100px;
}

.gallery {
  --s: 250px;
  display: grid;
  transform-style: preserve-3d;
  --_p: perspective(calc(2.5*var(--s)));
  animation: r 9s infinite cubic-bezier(.5,-0.5,.5,1.5);
}

.gallery img {
  grid-area: 1/1;
  width: var(--s);
  aspect-ratio: 1;
  object-fit: cover;
  transform: var(--_t,) translateZ(calc(var(--s)/2));
}

.gallery img:nth-child(2) {--_t: rotateX(-90deg)}
.gallery img:nth-child(3) {--_t: rotateY( 90deg)}
.gallery img:nth-child(4) {--_t: rotateX(180deg) rotate( 90deg)}
.gallery img:nth-child(5) {--_t: rotateX( 90deg)}
.gallery img:nth-child(6) {--_t: rotateY(-90deg)}

@keyframes r {
  0%,3%   {transform: var(--_p) rotate3d(0, 0, 0, 0deg)}
  14%,19% {transform: var(--_p) rotate3d(-1, 1, 0, 180deg)}
  31%,36% {transform: var(--_p) rotate3d(0, -1, 0, 90deg)}
  47%,52% {transform: var(--_p) rotate3d(1, 0, 0, 90deg)}
  64%,69% {transform: var(--_p) rotate3d(1, 0, 0, -90deg)}
  81%,86% {transform: var(--_p) rotate3d(0, 1, 0, 90deg)}
  97%,100%{transform: var(--_p) rotate3d(0, 0, 0, 0deg)}
}

@keyframes b {
  0%,3%   {background: #192440}
  14%,19% {background: #D2A857}
  31%,36% {background: #C0C0C0}
  45%,55% {background: #192440}
  64%,69% {background: #D2A857}
  81%,86% {background: #C0C0C0}
  97%,to  {background: #192440}
}

/* =================== MOBILE VIEW =================== */
@media (max-width: 768px) {
  .wurfel {
    min-height: 50vh;
    padding: 0 10px; 
  }

  .gallery {
    --s: 150px;
  }
}

.blatt {
  margin-bottom: 150px;
  min-height: 70vh;
  display: grid;
  place-content: center;
  background: #CDB380;
  overflow: hidden;
  animation: b 9s infinite;
  clip-path: polygon(0% 0%, 15% 5%, 25% 6%, 35% 9%, 45% 7%, 55% 10%, 65% 8%, 75% 7%, 85% 5%, 100% 0%, 100% 100%, 85% 97%, 75% 94%, 65% 93%, 55% 92%, 45% 91%, 35% 92%, 25% 90%, 15% 92%, 0% 100%);
}

.gallery02  {
  display: grid;
  width: 320px;
}

.gallery02 > img {
  grid-area: 1/1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 0 4px #0007;
  animation: slide 6s infinite;
}

.gallery02 > img:last-child {
  animation-name: slide-last;
}

.gallery02 > img:nth-child(2) { animation-delay: -2s; } 
.gallery02 > img:nth-child(3) { animation-delay: -4s; }

@keyframes slide {
  0%     {transform: translateX(0%)  ;z-index: 2;}
  16.66% {transform: translateX(120%);z-index: 2;}
  16.67% {transform: translateX(120%);z-index: 1;} 
  33.34% {transform: translateX(0%)  ;z-index: 1;}
  66.33% {transform: translateX(0%)  ;z-index: 1;}
  66.34% {transform: translateX(0%)  ;z-index: 2;} 
  100%   {transform: translateX(0%)  ;z-index: 2;}  
}

@keyframes slide-last {
  0%     {transform: translateX(0%)  ;z-index: 2;}
  16.66% {transform: translateX(120%);z-index: 2;}
  16.67% {transform: translateX(120%);z-index: 1;} 
  33.34% {transform: translateX(0%)  ;z-index: 1;}
  83.33% {transform: translateX(0%)  ;z-index: 1;}
  83.34% {transform: translateX(0%)  ;z-index: 2;} 
  100%   {transform: translateX(0%)  ;z-index: 2;}  
}

/* =================== MOBILE VIEW =================== */
@media (max-width: 768px) {
  .blatt {
    min-height: 50vh;
    padding: 0 10px; 
  }

  .gallery02 {
    width: 250px;
  }
  
  .gallery02 > img {
    width: 90%; 
  }
}


/* Tablet-Styling */
@media (min-width: 834px) and (max-width: 1024px) {
  .wurfel,
  .blatt {
    min-height: 100vh;
    padding: 60px 20px;
  }

  .gallery {
    --s: 180px;
  }

  .gallery img {
    width: var(--s);
    aspect-ratio: 1;
    object-fit: cover;
  }

  .gallery02 {
    width: 240px;
  }

  .gallery02 > img {
    width: 100%;
    max-width: 100%;
  }
}

/* Mobile Landscape */
@media (max-width: 812px) and (orientation: landscape) {
  .wurfel,
  .blatt {
    min-height: 85vh;
    padding: 40px 10px;
  }

  .gallery {
    --s: 140px;
  }

  .gallery02 {
    width: 200px;
  }
}




/* =================== WEB-DESIGN SECTION =================== */
.webdesign-section {
  max-width: var(--mw-lg); 
  margin: 0 auto; 
  padding: var(--sp-padding); 
  text-align: center;
}

.webdesign-section h2 {
  font-size: var(--fs-h2); 
  color: var(--mb);
  margin-bottom: var(--sp-md);
}

.webdesign-section p {
  font-size: var(--fs-p); 
  color: var(--bd); 
  margin-bottom: var(--sp-lg);
}

/* =================== GRID SYSTEM FÜR BILDER =================== */
.webdesign-images {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: var(--sp-sm);
  align-items: center; 
  margin-bottom: var(--sp-lg); 
  justify-items: center;
}

/* =================== IMAGE CONTAINER =================== */
.image-container {
  width: 100%; 
  display: flex;
  justify-content: center; 
  align-items: center;
}

.image-container img {
  width: 100%;
  max-width: 1000px; 
  height: auto; 
  transition: transform 0.3s ease; 
}

/* =================== MOBILE ANPASSUNGEN =================== */
@media (max-width: 700px) {
  .webdesign-images {
    grid-template-columns: 1fr; 
  }

  .image-container {
    margin-bottom: var(--sp-md); 
  }

  .image-container img {
    width: 90%; 
    max-width: none; 
    margin: 0 auto; 
  }

  

  .bottom-image img {
    width: 100%;  /* Das untere Bild wird größer */
    transform: scale(1.1);  /* Leicht vergrößert */
  }
}

/* =================== TABELLE & DESKTOP (ab 700px) =================== */
@media (min-width: 700px) {
  .webdesign-images {
    grid-template-columns: 1fr 1fr; 
  }

  .mitte {
    grid-column: span 2; 
  }

  .bottom-image {
    grid-column: span 2; 
    display: flex;
    justify-content: center; 
  }

  .bottom-image img {
    /* grid-column: span 2; */  /* Das Bild unten muss beide Spalten bedecken */
    width: 100%;  /* Das Bild unten wird wieder normal */
    transform: scale(1);  /* Normalgröße */
  }
}

/* @keyframes movein-left {
  from {
    transform: translateX(-100%) scale(0);
    opacity: 0; 
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes movein-right {
  from {
    transform: translateX(100%) scale(0);
    opacity: 0; 
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes movein-bottom {
  from {
    transform: translateY(100%) scale(0);
    opacity: 0; 
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1; 
  }
} */

/* =================== SCROLL-EVENT ANIMATION =================== */
/* .image-container img {
  opacity: 0; 
  transition: opacity 0.5s ease, transform 1s ease-out;
}

.image-container img.is-visible {
  opacity: 1;
}

.left-image img {
  animation: movein-left 1s ease-out forwards;
  animation-delay: 0.5s;
}

.right-image img {
  animation: movein-right 1s ease-out forwards;
  animation-delay: 1s;
}

.bottom-image img {
  animation: movein-bottom 1s ease-out forwards;
  animation-delay: 1.5s;
} */


.design-section {
  max-width: var(--mw-lg);
  margin: 0 auto;
  padding: 0px 14px 80px 14px;
  text-align: center;
}

.design-section h2 {
  font-size: var(--fs-h4);
  text-transform: uppercase;
  color: var(--mb);
  margin-bottom: 12px;
}

.design-section h3 {
  font-size: var(--fs-p);
  margin-bottom: 24px;
}

.design-section .button-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .design-section .button-wrapper {
    width: 100%;
    padding: 0 16px;
  }
  .design-section .button {
    width: 50%;
    font-size: 1em;
    padding: 12px 20px;
  }
}

@media (min-width: 701px) {
  .design-section .button-wrapper {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
  .design-section .button {
    width: auto;
    min-width: 160px;
    font-size: 1.1em;
    padding: 14px 30px;
  }
}

@media (min-width: 801px) {
  #design-section h3, #design-section a {
    opacity: 0;
    transform: translateY(20px);
  }

  #design-section h2.animate {
    animation: movein-left 1s ease-out forwards;
    animation-delay: 0.1s;
  }

  #design-section h3.animate {
    animation: movein-right 1s ease-out forwards;
    animation-delay: 0.2s;
  }

  #design-section a:first-of-type.animate {
    animation: movein-left 1s ease-out forwards;
    animation-delay: 0.3s;
  }

  #design-section a:last-of-type.animate {
    animation: movein-right 1s ease-out forwards;
    animation-delay: 0.4s;
  }
}


.miniapp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: var(--mw-lg);
  margin: 0 auto;
  padding: 0px 20px 150px 20px;
  text-align: center;
}

.app-image {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  padding: 0 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.app-image img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  opacity: 1;
  transform: none;
}

  .app-image img.fadein {
  animation: fadeIn 0.8s ease-out forwards;
}

/* @keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
} */

@media (max-width: 768px) {
  .miniapp {
    padding: 0px 16px 150px 16px;
  }

  .app-image {
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .miniapp {
    padding: 0px 16px 150px 16px;
  }

  .app-image {
    padding: 0 12px;
  }
}


.quote-section {
  margin: 0 auto;
  padding: 80px 14px;
  text-align: center;
  color: var(--wt);
  overflow: hidden;
  position: relative;
  background: #556270;
  animation: b 9s infinite;
  clip-path: polygon(0% 0%, 5% 5%, 10% 4%, 20% 9%, 30% 5%, 40% 10%, 50% 8%, 60% 5%, 70% 10%, 80% 8%, 90% 5%, 100% 0%, 100% 100%, 90% 95%, 80% 90%, 70% 93%, 60% 91%, 50% 95%, 40% 92%, 30% 94%, 20% 96%, 10% 98%, 0% 100%);
}

.quote-wrapper {
  position: relative;
  height: var(--fs-h4); 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.quote-text {
  font-family: "Noto Sans Italic", Arial, sans-serif;
  font-size: var(--fs-h4);
  line-height: 1.4;
  color: var(--wt);
  opacity: 0;
  position: absolute;
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translateY(20px);
}

.quote-text.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .quote-text {
    font-size: var(--fs-h5); 
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .quote-text {
    font-size: var(--fs-p); 
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .quote-text {
    font-size: 1rem; 
    padding: 6px;
  }
}


.statement-section {
  max-width: var(--mw-lg);
  margin: 0 auto;
  padding: 80px 20px 150px 20px;
  text-align: center;
}

.statement-section h2 {
  font-size: var(--fs-h4); 
  color: var(--mb);
  margin-bottom: 16px;
  line-height: 1.4;
}

.statement-section h3 {
  font-size: var(--fs-p);
  color: var(--bd);
  margin-bottom: 24px;
}

.statement-section .button-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .statement-section .button-wrapper {
    width: 100%;
    padding: 0 16px;
  }
  .statement-section .button {
    width: 50%;
    font-size: 1em;
    padding: 12px 20px;
  }
}

@media (min-width: 701px) {
  .statement-section .button-wrapper {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
  .statement-section .button {
    width: auto;
    min-width: 160px;
    font-size: 1.1em;
    padding: 14px 30px;
  }
}

/* Animationen */
@media (min-width: 801px) {
#statement-section h2, #statement-section h3, #statement-section a {
  opacity: 0;
  transform: translateY(20px);
}

#statement-section h2.animate {
  animation: movein-left 1s ease-out forwards;
  animation-delay: 0.1s;
}

#statement-section h3.animate {
  animation: movein-right 1s ease-out forwards;
  animation-delay: 0.2s;
}

#statement-section a:first-of-type.animate {
  animation: movein-left 1s ease-out forwards;
  animation-delay: 0.3s;
}

#statement-section a:last-of-type.animate {
  animation: movein-right 1s ease-out forwards;
  animation-delay: 0.4s;
}
}

/* === Portfolio Hero / Overlay – gehärtet === */
.portfolio {
  position: relative;
  overflow: hidden;
  height: 100vh;
}

/* creates its own stacking context so z-index inside is reliable */
.portfolio .portfolio-container {
  position: relative;
  isolation: isolate; /* wichtiger Fix */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* Background */
  background-image: url(../assets/images/portfolio/portfolio_header_sam_saket_studio.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

  /* Textfarbe sicherstellen */
  color: var(--wt);
}

/* Overlay-Layer */
.portfolio .portfolio-container .overlay {
  position: absolute;
  inset: 0;               /* kurz für top/left/right/bottom:0 */
  background: rgba(0, 0, 0, 0.72);
  z-index: 1;
  pointer-events: none;   /* Klicks gehen durch zum Inhalt */
}

/* Titel – höhere Spezifität, damit globale H2-Regeln nicht gewinnen */
.portfolio .portfolio-container h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  font-weight: 700;
  /* robuste, responsive Größe: passt sich Viewport an, nutzt deine Variablen als Bounds */
  font-size: clamp(var(--fs-h5), 2.2vw + 0.6rem, var(--fs-h3));
  line-height: 1.2;
}

/* Content-Wrapper über dem Overlay */
.portfolio .portfolio-container .portfolio-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  font-size: var(--fs-h5);
}

/* Absatz: eigene Spezifität + Breite begrenzen */
.portfolio .portfolio-container .portfolio-content p {
  padding-top: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* ========= Mobile Tweaks ========= */
@media (max-width: 768px) {
  /* Parallax auf Mobil aus – iOS Bug vermeiden */
  .portfolio .portfolio-container {
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
  }

  .portfolio .portfolio-container h2 {
    /* kleiner, aber nicht winzig */
    font-size: clamp(16px, 5vw, var(--fs-h4));
  }

  .portfolio .portfolio-container .portfolio-content {
    font-size: var(--fs-p);
  }

  .portfolio .portfolio-container .portfolio-content p {
    padding-top: var(--fs-h6);
  }

  /* etwas leichteres Overlay für bessere Lesbarkeit auf kleinen Screens */
  .portfolio .portfolio-container .overlay {
    background: rgba(0, 0, 0, 0.6);
  }
}

/* Optional: sehr kleine Phones – konsistent nach 768px-Regeln, NICHT größer machen als davor */
@media (max-width: 480px) {
  .portfolio .portfolio-container h2 {
    font-size: clamp(15px, 6vw, var(--fs-h5));
  }
}



.redesign {
  max-width: var(--mw-lg);
  margin: auto;
  padding: 2rem;
}

.redesign h2 {
  color: var(--mb);
  text-align: center;
  font-size: 48px;
  margin-bottom: 3rem;
  padding-top: 3rem;
}

.logo-comparison {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.logo-comparison img {
  max-width: 100%;
  width: 300px;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.disclaimer {
  color: var(--wt);
  background-color: var(--mb);
  border: 1px solid var(--gd);
  padding: 1rem;
  font-size: 0.95rem;
  margin: 1rem 0 2rem;
}

.card-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.card {
  position: relative;
  width: 300px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s ease;
}

.card img.back {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.card:hover img.back {
  opacity: 1;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mockup-grid .mockup {
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  cursor: pointer;
}

.mockup-grid .mockup img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s ease;
}

.mockup-grid .mockup img.hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.mockup-grid .mockup:hover img.hover {
  opacity: 1;
}

.description {
  font-size: 20px;
  max-width: 800px;
  margin: auto;
  text-align: center;
  color: var(--bd);
  padding: 30px 20px 30px 20px;
}

.assets-cover {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 2rem auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.assets-cover .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade 6s infinite ease-in-out;
  animation-fill-mode: forwards;
}

.assets-cover .slide:first-child {
  opacity: 1;
  z-index: 1;
}

.assets-cover .slide.second {
  z-index: 2;
  animation-delay: 3s;
}

@keyframes fade {
  0%, 49% {
    opacity: 1;
  }
  50%, 99% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .mockup-grid {
    grid-template-columns: 1fr;
  }
}


.between-section {
  padding: 30px 20px 50px 20px;
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.between-text {
  max-width: var(--mw-lg);
  margin: 0 auto;
  color: var(--mb);
  font-size: 2rem;          
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);       
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  text-align: center;
  will-change: opacity, transform;
}

.between-text.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .between-text {
    padding: 50px 20px;
    font-size: 1.5rem;
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  .between-text {
    padding: 50px 20px;
    font-size: 1.3rem;
    font-weight: 600;
  }
}

.print-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.full-image {
  width: 100%;
  height: auto;
  display: block;
}

.print-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; 
}

.print-title {
  color: var(--wt);
  font-size: 3rem;
  font-weight: 800;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .print-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .print-title {
    font-size: 1.5rem;
  }
}


/* Grundlayout für das Magazin */
.magazine {
  padding: 100px 0 50px 0;
  max-width: var(--mw-lg);
  margin: 0 auto;
}

.magazine-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 15px;
}

.magazine-left {
  flex: 1;
  max-width: 50%;
  padding: 0 20px 0 20px;
  text-align: center;
}

.magazine-left h2 {
  font-size: var(--fs-h5);
  margin-bottom: 1rem;
  color: var(--mb);
}

.magazine-left h3 {
  font-size: var(--fs-h6);
  margin-bottom: 1.5rem;
  color: var(--mb);
}

.magazine-left p {
  font-size: var(--fs-p);
  margin-bottom: 1.5rem;
}

.magazine-right {
  padding: 100px 0;
}

.mockup-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); */
  margin-bottom: 20px;
  object-fit: contain; 
}

/* .mockup-image:hover {
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
} */


@media (max-width: 768px) {
   #magazine {
    padding-bottom: 0;
  }
  
  .magazine-content {
    flex-direction: column;
    align-items: center;
  }

  .magazine-left {
    max-width: 100%;
  }

  .magazine-right {
    max-width: 100%;
  }

  .button-wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 15px;
  }

  .button {
    width: 50%;
    max-width: 300px;
  }
}


/* Grundlayout für das Kinderbuch */
.children-book {
  padding: 0;
  max-width: var(--mw-lg);
  margin: 0 auto;
}

.children-book-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 15px;
}

.children-book-left {
  flex: 1;
  max-width: 50%;
  padding: 100px 0;
  text-align: center;
}

.children-book-right {
  flex: 1;
  max-width: 50%;
  padding: 0 20px 0 20px;
  text-align: center;
}

.children-book-left .mockup-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.children-book-right h2 {
  font-size: var(--fs-h5);
  margin-bottom: 1rem;
  color: var(--mb);
}

.children-book-right h3 {
  font-size: var(--fs-h6);
  margin-bottom: 1.5rem;
  color: var(--mb);
}

.children-book-right p {
  font-size: var(--fs-p);
  margin-bottom: 1.5rem;
}

/* .button-wrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.button {
  width: 200px;
  text-align: center;
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
}


.github-btn {
  background-color: #333;
  color: white;
  text-decoration: none;
}

.contact-btn {
  background-color: #28a745;
  color: white;
  text-decoration: none;
} */

/* Mobile Ansicht: Reihenfolge ändern (Text zuerst, dann Bilder) */
@media (max-width: 768px) {
  .children-book-content {
    flex-direction: column;
    align-items: center;
  }

  .children-book-left,
  .children-book-right {
    max-width: 100%;
  }

  .button-wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 15px;
  }

  .button {
    width: 50%;
    max-width: 300px;
  }

  .children-book-left {
    order: 2;
  }

  .children-book-right {
    order: 1;
  }
}


/* Grundlayout für Flyer und Broschüren */
.flyer-brochure {
  padding: 0 0 100px 0;
  max-width: var(--mw-lg);
  margin: 0 auto;
}

.flyer-brochure-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 15px;
}

.flyer-brochure-left {
  flex: 1;
  text-align: center; 
}

.flyer-brochure-left h2 {
  font-size: var(--fs-h5);
  margin-bottom: 1rem;
  color: var(--mb);
}

.flyer-brochure-left h3 {
  font-size: var(--fs-h6);
  margin-bottom: 1.5rem;
  color: var(--mb);
}

.flyer-brochure-left p {
  font-size: var(--fs-p);
  margin-bottom: 1.5rem;
}

.flyer-brochure-right {
  flex: 1;
  padding-left: 20px;
  text-align: center;
}

.flyer-brochure-right .flyer-image,
.flyer-brochure-right .brochure-image {
  margin-bottom: 20px;
}

.flyer-brochure-right img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
}


@media (max-width: 768px) {
  .flyer-brochure-content {
    flex-direction: column;
    align-items: center;
  }

  .flyer-brochure-left,
  .flyer-brochure-right {
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }
}


.poster {
  margin-top: 50px;
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.poster-container {
  position: relative;
  isolation: isolate; /* wie bei Portfolio */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* Background */
  background: url(../assets/images/portfolio/poster_breakfast_table.jpg) center center / cover no-repeat;
  background-attachment: fixed;

  /* Textfarbe */
  color: var(--wt);
}

.poster-container .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

/* Titel */
.poster-container h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(var(--fs-h5), 2.2vw + 0.6rem, var(--fs-h3)); /* wie Portfolio */
  line-height: 1.2;
  max-width: 900px;
}

/* Content */
.poster-container .poster-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  font-size: var(--fs-h5);
}

.poster-content p {
  padding-top: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .poster-container {
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
  }

  .poster-container h2 {
    font-size: clamp(16px, 5vw, var(--fs-h4));
  }

  .poster-container .poster-content {
    font-size: var(--fs-p);
  }

  .poster-content p {
    padding-top: var(--fs-h6);
  }

  .poster-container .overlay {
    background: rgba(0, 0, 0, 0.6);
  }
}

@media (max-width: 480px) {
  .poster-container h2 {
    font-size: clamp(15px, 6vw, var(--fs-h5));
  }
}


.poster-section {
  padding: 2rem 1rem;
  margin: 100px 0 50px 0;
}

.poster-section-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.poster-text {
  text-align: center;
  margin: 0 auto;
}

.poster-text h2 {
  font-size: var(--fs-h5);
  color: var(--mb);
  margin-bottom: 0.5rem;
}

.poster-text h3 {
  font-size: var(--fs-h6);
  color: var(--mb);
  margin-bottom: 1rem;
}

.poster-text p {
  font-size: var(--fs-p);
  line-height: 1.6;
  color: var(--bd);
}

.poster-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}


@media (min-width: 768px) {
  .poster-section-content {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .poster-text {
    flex: 1;
  }

  .poster-image {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .poster-image img {
    max-width: 350px;
  }
}


#verpackung .underline {
  font-size: clamp(var(--fs-h5), 2.2vw + 0.6rem, var(--fs-h3));
  line-height: 1.2;
  text-align: center;
}

#verpackung {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: var(--mw-lg);
  margin: 0 auto;
  padding: 100px 20px 50px 20px;
  text-align: center;
}

.verpackung {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  padding: 0 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.verpackung img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateX(-100%);
  animation: slideIn 1s forwards;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  #verpackung {
    padding: 100px 16px 150px 16px;
  }

  .verpackung {
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  #verpackung {
    padding: 0px 16px 50px 16px;
  }

  .verpackung {
    padding: 0 12px;
  }
}


.kampagne-intro-text {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  padding: 0 20px;
  font-size: var(--fs-p);
  line-height: 1.6;
  color: var(--bd);
  text-align: center;
}

#kampagne-intro h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: var(--fs-h4);
  padding: 0 20px;
}

section#kampagnenbild.kampagnenbild-wrapper {
  padding: 20px 0 0 0;
}

.kampagnenbild-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px 0 10px;
}

#kampagnenbild {
  width: 100%;
  margin: 0 auto;
}

.kampagnenbild {
  width: 80%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Detailbeschreibung */
#verpackung-detail {
  padding: 0 20px 20px 20px;
  max-width: var(--mw-lg);
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
}

#verpackung-detail h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: var(--fs-h4);
  color: var(--mb);
}

#verpackung-detail h4 {
  font-size: var(--fs-h5);
  margin-top: 1.5rem;
  color: var(--mb);
}

.verpackung-detail-text h5 {
  font-size: var(--fs-h6);
  margin-top: 1.2rem;
  font-weight: 600;
  color: var(--mb);
  text-align: center;
}


.verpackung-detail-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
  font-size: var(--fs-p);
  line-height: 1.7;
  color: var(--bd);
}

.verpackung-detail-text ol,
.verpackung-detail-text ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.verpackung-detail-text li {
  margin-bottom: 0.5rem;
}

/* Slideshow */
#verpackung-slideshow {
  text-align: center;
  padding: 20px 20px;
  max-width: var(--mw-lg);
  margin: 0 auto;
}

.verpackung-slideshow-container {
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
}

.verpackung-slideshow-container img {
  width: 100%;
  height: auto;
  display: block;
  /* border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
  transition: opacity 0.5s ease-in-out;
}

/* Beschreibung unter der Slideshow */
#verpackung-interpretation h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: var(--fs-h4);
  color: var(--mb);
  padding: 0 20px;
}

.verpackung-slideshow-text {
  max-width: 700px;
  margin: 1rem auto 2rem auto;
  padding: 0 20px;
  font-size: var(--fs-p);
  line-height: 1.6;
  text-align: center;
  color: var(--bd);
}

#verpackung-interpretation {
  padding-bottom: 100px;
}


.dimension {
  margin-top: 50px;
  position: relative;
  overflow: hidden;
  height: 100vh; 
}

/* Parallax-Background */
.dimension-container {
  position: relative;
  height: 100%;
  background: url(../assets/images/portfolio/Billboard_Welcher_Typ_bist_du.jpg) center/cover no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--wt);
  flex-direction: column;
}

/* Überlagerung - Semi-transparentes schwarzes Overlay */
.dimension-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.dimension-container h2 {
  font-size: clamp(var(--fs-h5), 2.2vw + 0.6rem, var(--fs-h3));
  text-align: center;
  z-index: 2;
  position: relative;
  margin: 0;
  font-weight: bold;
  padding: 0 20px;
  max-width: 1000px;
}

.dimension-content p {
  padding-top: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.dimension-container .dimension-content {
  position: relative;
  z-index: 2;
  font-size: var(--fs-h5);
  text-align: center; 
  padding: 0 20px;
}

@media (max-width: 768px) {
  .dimension-container h2 {
    font-size: clamp(16px, 5vw, var(--fs-h4));
    animation: zoomInBackground 5s infinite alternate;
  }

  
  .dimension-container .dimension-content {
    font-size: var(--fs-p);
  }
  
  .dimension-content p {
    padding-top: 20px;
  }

  /* Für mobile Geräte: Parallax-Effekt deaktivieren */
  .dimension-container {
    background-attachment: scroll; /* Parallax-Effekt deaktiviert */
    background-size: cover; /* Bildgröße bleibt konstant */
    background-position: center; /* Bild bleibt immer zentriert */
  }
  
  @keyframes zoomInBackground {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.1);
    }
  }

  /* Alternative Lösung für den Parallax-Effekt auf mobilen Geräten: Verwendung eines statischen Hintergrunds mit Overlay */
  .dimension-container .overlay {
    background: rgba(0, 0, 0, 0.6);
  }

  .dimension-container {
    background-image: url(../assets/images/portfolio/Billboard_Welcher_Typ_bist_du.jpg);
  }
}

@media (max-width: 480px) {
  .dimension-container h2 {
    font-size: clamp(15px, 6vw, var(--fs-h5));
  }
}


.messe-intro {
  padding: 100px 20px 0 20px;
  max-width: var(--mw-lg);
  margin: 0 auto;
}

.messe-intro-followup {
  padding: 50px 20px 0 20px;
  max-width: 800px;
  margin: 0 auto;
}
.messe-intro-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-direction: row;
}
.messe-intro-text {
  flex: 1;
  text-align: center;
}
.messe-intro-text h2 {
  font-size: var(--fs-h4);
  color: var(--mb);
  margin-bottom: 1rem;
}
.messe-intro-text p {
  font-size: var(--fs-p);
  line-height: 1.6;
  color: var(--bd);
  margin-bottom: 1rem;
}
.btn-wrapper {
  margin-top: 1.5rem;
  text-align: center;
}

.kontakt-btn {
  min-width: 160px;
  display: inline-block;
  background: var(--gd);
  color: var(--mb);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  font-size: 1.13em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 12px rgba(25, 36, 64, 0.2);
  text-align: center;
}

.kontakt-btn:hover, .kontakt-btn:focus {
  background: var(--mb);
  color: var(--gd);
}


.messe-intro-image {
  flex: 1;
  text-align: center;
}
.messe-intro-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .messe-intro-container {
    flex-direction: column;
  }

  .messe-intro-text,
.messe-intro-image {
  flex: unset;
}

  .kontakt-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}


.messe-text {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  text-align: center;
  padding: 0 1rem;
}
.messe-text h2 {
  font-size: var(--fs-h4);
  color: var(--mb);
  margin-bottom: 1rem;
}
.messe-text p {
  font-size: var(--fs-p);
  line-height: 1.7;
  color: var(--bd);
  margin-bottom: 1.2rem;
}
.gallery-header h2 {
  font-size: var(--fs-h4);
  color: var(--mb);
  margin-bottom: 0.3rem;
}
.gallery-hint {
  font-size: 0.9rem;
  color: var(--sl);
  font-style: italic;
  margin-bottom: 1rem;
}
.scroll-gallery-wrapper {
  overflow: hidden;
  padding: 0 10vw;
}
.scroll-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 2rem;
  scroll-padding: 0 10vw;
  padding-bottom: 20px;
  max-width: 1000px;
  justify-self: center;
}
.scroll-gallery figure {
  flex: 0 0 auto;
  width: 80vw;
  max-width: 600px;
  scroll-snap-align: center;
  margin: 0;
  text-align: center;
}
.scroll-gallery img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.scroll-gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--gd);
}


.website {
  margin: 150px 0 100px 0;
  position: relative;
  overflow: hidden;
  height: 100vh; 
}

/* Parallax-Background */
.website-container {
  position: relative;
  height: 100%;
  background: url(../assets/images/portfolio/schuhmanufaktur-formschön_website_bilder.jpg) center/cover no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--wt);
  flex-direction: column;
}

/* Überlagerung - Semi-transparentes schwarzes Overlay */
.website-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.website-container h2 {
  font-size: clamp(var(--fs-h5), 2.2vw + 0.6rem, var(--fs-h3));
  text-align: center;
  z-index: 2;
  position: relative;
  margin: 0;
  font-weight: bold;
  padding: 0 20px;
  max-width: 1000px;
}

.website-content p {
  padding-top: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.website-container .website-content {
  position: relative;
  z-index: 2;
  font-size: var(--fs-h5);
  text-align: center; 
  padding: 0 20px;
}

@media (max-width: 768px) {
  .website-container h2 {
    font-size: clamp(16px, 5vw, var(--fs-h4));
    /* animation: zoomInBackground 5s infinite alternate; */
  }

  
  .website-container .website-content {
    font-size: var(--fs-p);
  }
  
  .website-content p {
    padding-top: 20px;
  }

  /* Für mobile Geräte: Parallax-Effekt deaktivieren */
  .website-container {
    background-attachment: scroll; /* Parallax-Effekt deaktiviert */
    background-size: cover; /* Bildgröße bleibt konstant */
    background-position: center; /* Bild bleibt immer zentriert */
  }
  
  @keyframes zoomInBackground {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.1);
    }
  }

  /* Alternative Lösung für den Parallax-Effekt auf mobilen Geräten: Verwendung eines statischen Hintergrunds mit Overlay */
  .website-container .overlay {
    background: rgba(0, 0, 0, 0.5);
  }

  .website-container {
    background-image: url(../assets/images/portfolio/schuhmanufaktur-formschön_website_bilder.jpg);
  }
}

@media (max-width: 480px) {
  .website-container h2 {
    font-size: clamp(15px, 6vw, var(--fs-h5));
  }
}


.wordpress {
  max-width: var(--mw-lg);
  margin: 0 auto;
  padding: 0 20px 100px 20px;
  box-sizing: border-box;
}
.wordpress-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.wordpress-text {
  flex: 1 1 400px;
}
.wordpress-text h2 {
  font-size: var(--fs-h4);
  color: var(--mb);
  margin-bottom: 16px;
  line-height: 1.4;
}
.wordpress-text p {
  font-size: var(--fs-p);
  color: var(--bd);
  margin-bottom: 24px;
  line-height: 1.6;
}
.wordpress-image {
  flex: 1 1 400px;
  text-align: center;
}
.wordpress-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  /* border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
}
.button-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  box-sizing: border-box;
}
@media (min-width: 701px) {
  .wordpress-container {
    flex-direction: row;
    text-align: center;
  }
  .button-wrapper {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    padding-bottom: 30px;
  }
  
}
@media (max-width: 700px) {
  .wordpress {
    padding: 0 20px 0px 20px;
  }
  
  .wordpress-container {
    flex-direction: column;
    padding: 0 16px;
    gap: 50px;
  }
  .button-wrapper .button {
    width: 60%;
    font-size: 0.95rem;
    padding: 12px 20px;
  }
}


.halloween {
  max-width: var(--mw-lg);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.halloween-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.halloween-image {
  flex: 1 1 400px;
  text-align: center;
}

.halloween-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  /* border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); */
}

.halloween-text {
  flex: 1 1 400px;
  text-align: center;
}

.halloween-text h2 {
  font-size: var(--fs-h4);
  color: var(--mb);
  margin-bottom: 16px;
  line-height: 1.4;
}

.halloween-text p {
  font-size: var(--fs-p);
  color: var(--bd);
  margin-bottom: 24px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .halloween-container {
    flex-direction: column-reverse;
    gap: 50px;
  }
  .button-wrapper {
    width: 100%;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    box-sizing: border-box;
  }
  .button {
    width: 50%;
    font-size: 1em;
    padding: 12px 20px;
  }
}

@media (min-width: 769px) {
  .button-wrapper {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
  .button {
    width: auto;
    min-width: 160px;
    font-size: 1.1em;
    padding: 14px 30px;
  }
}


.uxui {
  margin-top: 50px;
  position: relative;
  overflow: hidden;
  height: 100vh; 
}

/* Parallax-Background */
.uxui-container {
  position: relative;
  height: 100%;
  background: url(../assets/images/portfolio/ux-ui-design/kochen_mit_kinder_app_presentaion_UX-UI_design_header.jpg) center/cover no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--wt);
  flex-direction: column;
}

/* Überlagerung - Semi-transparentes schwarzes Overlay */
.uxui-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.uxui-container h2 {
  font-size: clamp(var(--fs-h5), 2.2vw + 0.6rem, var(--fs-h3));
  text-align: center;
  z-index: 2;
  position: relative;
  margin: 0;
  font-weight: bold;
  padding: 0 20px;
  max-width: 1000px;
}

.uxui-content p {
  padding-top: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.uxui-container .uxui-content {
  position: relative;
  z-index: 2;
  font-size: var(--fs-h5);
  text-align: center; 
  padding: 0 20px;
}

@media (max-width: 768px) {
  .uxui-container h2 {
    font-size: clamp(16px, 5vw, var(--fs-h4));
    animation: zoomInBackground 5s infinite alternate;
  }

  
  .uxui-container .uxui-content {
    font-size: var(--fs-p);
  }
  
  .uxui-content p {
    padding-top: 20px;
  }

  /* Für mobile Geräte: Parallax-Effekt deaktivieren */
  .uxui-container {
    background-attachment: scroll; /* Parallax-Effekt deaktiviert */
    background-size: cover; /* Bildgröße bleibt konstant */
    background-position: center; /* Bild bleibt immer zentriert */
  }
  
  @keyframes zoomInBackground {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.1);
    }
  }

  /* Alternative Lösung für den Parallax-Effekt auf mobilen Geräten: Verwendung eines statischen Hintergrunds mit Overlay */
  .uxui-container .overlay {
    background: rgba(0, 0, 0, 0.6);
  }

  .uxui-container {
    background-image: url(../assets/images/portfolio/ux-ui-design/kochen_mit_kinder_app_presentaion_UX-UI_design_header.jpg);
  }
}

@media (max-width: 480px) {
  .uxui-container h2 {
    font-size: clamp(15px, 6vw, var(--fs-h5));
  }
}


.uxui-intro {
  padding: 100px 20px 0 20px;
  max-width: var(--mw-lg);
  margin: 0 auto;
}

.uxui-intro-followup {
  padding: 50px 20px 10px 20px;
  max-width: 800px;
  margin: 0 auto;
}
.uxui-intro-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-direction: row;
}
.uxui-intro-text {
  flex: 1;
  text-align: center;
}
.uxui-intro-text h2 {
  font-size: var(--fs-h4);
  color: var(--mb);
  margin-bottom: 1rem;
}
.uxui-intro-text p {
  font-size: var(--fs-p);
  line-height: 1.6;
  color: var(--bd);
  margin-bottom: 1rem;
}

.uxui-intro-image {
  flex: 1;
  text-align: center;
}
.uxui-intro-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
}
@media (max-width: 768px) {
  .uxui-intro-container {
    flex-direction: column;
  }

  .uxui-intro-text,
.uxui-intro-image {
  flex: unset;
}
}


.uxui-text {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  text-align: center;
  padding: 0 1rem;
}
.uxui-text h2 {
  font-size: var(--fs-h4);
  color: var(--mb);
  margin-bottom: 1rem;
}
.uxui-text p {
  font-size: var(--fs-p);
  line-height: 1.7;
  color: var(--bd);
  margin-bottom: 1.2rem;
}


.about {
  margin-top: 50px;
  position: relative;
  overflow: hidden;
  height: 100vh; 
}

/* Parallax-Background */
.about-container {
  position: relative;
  height: 100%;
  background: url(../assets/images/portfolio/kollektion_hund_sam_saket_studio.jpg) center/cover no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--wt);
  flex-direction: column;
}

/* Überlagerung - Semi-transparentes schwarzes Overlay */
.about-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.about-container h2 {
  font-size: clamp(var(--fs-h5), 2.2vw + 0.6rem, var(--fs-h3));
  text-align: center;
  z-index: 2;
  position: relative;
  margin: 0;
  font-weight: bold;
  padding: 0 20px;
  max-width: 1000px;
}

.about-content p {
  padding-top: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.about-container .about-content {
  position: relative;
  z-index: 2;
  font-size: var(--fs-h5);
  text-align: center; 
  padding: 0 20px;
}

@media (max-width: 768px) {
  .about-container h2 {
    font-size: clamp(16px, 5vw, var(--fs-h4));
    animation: zoomInBackground 5s infinite alternate;
  }

  
  .about-container .about-content {
    font-size: var(--fs-p);
  }
  
  .about-content p {
    padding-top: 20px;
  }

  /* Für mobile Geräte: Parallax-Effekt deaktivieren */
  .about-container {
    background-attachment: scroll; /* Parallax-Effekt deaktiviert */
    background-size: cover; /* Bildgröße bleibt konstant */
    background-position: center; /* Bild bleibt immer zentriert */
  }
  
  @keyframes zoomInBackground {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.1);
    }
  }

  /* Alternative Lösung für den Parallax-Effekt auf mobilen Geräten: Verwendung eines statischen Hintergrunds mit Overlay */
  .about-container .overlay {
    background: rgba(0, 0, 0, 0.6);
  }

  .about-container {
    background-image: url(../assets/images/portfolio/kollektion_hund_sam_saket_studio.jpg);
  }
}

@media (max-width: 480px) {
  .about-container h2 {
    font-size: clamp(15px, 6vw, var(--fs-h5));
  }
}


.philosophie-structure {
  margin: 0;
  padding: 80px 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Obere Zeile: Text & Bild nebeneinander, 50/50 */
.philosophie-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  text-align: center;
}

.philosophie-text h3 {
  font-size: var(--fs-h4);
}

.philosophie-top p {
  margin: 16px 0 40px 0;
}

.philosophie-top .philosophie-text,
.philosophie-top .philosophie-image {
  flex: 1 1 50%;
  max-width: 600px;
  box-sizing: border-box;
}

/* Nur für das Bild in der oberen Section */
.philosophie-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  /* border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); */
}

/* Nur für das Portrait in der unteren Section */
.philosophie-portrait img {
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.20);
  margin: 0 auto;
}


/* Mittlerer Teil: zentrierter Text */
.philosophie-middle {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.philosophie-middle h3 {
  margin: 0 0 0 16px;
  font-size: var(--fs-h4);
}

.philosophie-middle p {
  margin-bottom: 16px;
}

/* Unterer Bereich: Bild + Text auf dunkelblauem Hintergrund */
.philosophie-bottom {
  background-color: #192440; /* dein Mitternachtsblau */
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.philosophie-bottom .philosophie-portrait {
  margin-bottom: 40px;
}

.philosophie-bottom h3 {
  margin-bottom: 16px;
  font-size: var(--fs-h4);
}

.philosophie-bottom p {
  max-width: 800px;
  margin: 0 auto 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .philosophie-top {
    flex-direction: column;
    gap: 20px;
  }

  .philosophie-middle {
    padding: 0 16px;
  }

  .philosophie-bottom {
    padding: 40px 16px;
  }

  .philosophie-portrait img {
    margin-top: 20px;
  }
}


/* Grundlegendes Styling für das Formular */
.form-container {
   max-width: var(--mw-lg);
  margin: 0 auto;
  padding: 120px 15px 0 15px;
  background-color: var(--wt);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.input-field {
  margin-bottom: 20px;
}

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.two-column input {
  width: 48%;
  margin-right: 4%;
}

.two-column input:last-child {
  margin-right: 0;
}

/* .file-upload {
  margin-bottom: 20px;
  padding: 10px;
  border: 2px dashed #007bff;
  border-radius: 5px;
  text-align: center;
}

.file-upload-label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
}

input[type="file"] {
  display: none;
}

#file-preview {
  margin-top: 10px;
  font-size: 14px;
}

.file-item {
  display: inline-block;
  margin-right: 10px;
  margin-top: 10px;
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 5px;
  position: relative;
}

.file-item button {
  background: none;
  border: none;
  color: red;
  font-size: 16px;
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
} */

button.submit-btn {
  padding: 15px 30px;
  font-size: 18px;
  background-color: var(--gd);
  color: var(--mb);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 30px;
}

button.submit-btn:hover {
  background-color: var(--mb);
  color: var(--gd);
}

.response-message {
  padding: 20px;
  margin-top: 20px;
  background-color: var(--bd);
  color: var(--wt);
  border-radius: 5px;
  display: none;
}

@media (max-width: 768px) {
  .form-container {
    padding: 120px 15px 0 15px;
  }
  .input-field input, .input-field textarea {
    font-size: 14px;
  }
  .two-column input {
    width: 100%;
    margin-right: 0;
  }
  button.submit-btn {
    font-size: 16px;
  }
}

/* =================== TOOLS SECTION =================== */
.tools {
  max-width: var(--mw-lg);
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

/* Container für die Tools-Karten */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-items: center; 
}

/* Tool-Karten für jedes Programm */
.tool-card {
  opacity: 0;
  transform: translateY(50px); /* Startet unten */
  transition: opacity 1.2s ease-out, transform 1.2s ease-out; /* Längere Animation für deutlicheren Effekt */
  background-color: #f9f9f9;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 90%; 
  max-width: 300px; 
  margin: 0 auto; 
}

.tool-card.visible {
  opacity: 1; 
  transform: translateY(0); 
}

.tool-card img {
  width: 80px; 
  height: 80px;
}

.tool-card h4 {
  font-size: 1.2rem;
  margin-top: 10px;
}

.tool-card p {
  font-size: 1rem;
  color: #555;
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr; 
    gap: 30px;
  }

  .tool-card {
    width: 90%; 
    max-width: 300px; 
    margin: 0 auto;
  }

  .tool-card img {
    width: 60px;
    height: 60px;
  }
}

@media (min-width: 769px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


.footer {
  background-color: var(--mb);
  color: var(--wt);
  padding: 40px 0;
  width: 100%;
}

.footer-container {
  max-width: var(--mw-lg);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  order: 2;
}

.footer-nav a {
  color: var(--wt);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-nav a:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.social-icons {
  display: flex;
  gap: 16px;
  order: 1;
}

.social-link img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s, opacity 0.3s;
}

.social-link:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

.footer-logo {
  order: 3;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 25px 0 0 0;
}

.footer-logo img {
  width: 100px;
  height: 100px;
}

.footer-copyright {
  order: 4;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  margin-top: 12px;
}

.footer-copyright a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

/* ===== Tablet Styles ===== */
@media (max-width: 1024px) {
  .footer-container {
    gap: 20px;
  }

  .social-icons {
    order: 2;
  }

  .footer-nav {
    order: 1;
    width: 100%;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
  }

  .footer-logo {
    order: 3;
  }

  .social-link img {
    width: 28px;
    height: 28px;
  }
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 16px;
  }

  .footer-nav {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  .social-icons {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .footer-logo {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .social-link img {
    width: 24px;
    height: 24px;
  }

  .footer-copyright {
    order: 4;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
  }
}

/* ===== Smallest Mobile ===== */
@media (max-width: 360px) {
  .social-link img {
    width: 20px;
    height: 20px;
  }
}



/* Impressum-Styling */
body.impressum-page {
  background-color: var(--mb);
}

.impressum-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 20px 20px;
  color: var(--wt);
  line-height: 1.6;
  text-align: center;
}

.impressum-content h1 {
  font-size: var(--fs-h2);
  text-align: center;
  margin-bottom: 30px;
  color: var(--wt);
}

.impressum-content h2 {
  font-size: var(--fs-h3);
  text-align: center;
  margin-bottom: 20px;
  color: var(--wt);
}

.impressum-content p {
  font-size: var(--fs-p);
  margin-bottom: 20px;
}

.impressum-content a {
  color: var(--sl);
  text-decoration: none;
}
.impressum-content a:hover {
  color: var(--gd);
}

/* Klickbarer Bereich für Adresse */
.toggle-container {
  margin-top: 1rem;
}

.address-toggle {
  display: none;
}

.address-label {
  cursor: pointer;
  text-decoration: none;
}

.address-content {
  display: none;
  margin-top: 0.5rem;
  padding: 10px;
  background-color: var(--sl);
  border-top: 4px solid var(--gd);
}

.address-toggle:checked + .address-content {
  display: block;
}

@media (max-width: 768px) {
  h1.wrap {
    font-size: var(--fs-h4);
  }

  h2.wrap {
    font-size: var(--fs-h4);
  }
}


.visitenkarten-body {
  background-color: var(--mb);
  color: var(--wt);
  font-family: "Noto Sans Regular", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 0 16px;
}

.visitenkarte {
  max-width: 480px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-gap);
  animation: fadeIn 1s ease-out;
}

.visitenkarte video {
  width: 70%;
  align-self: center;
  /* padding-bottom: 10px; */
}

.portrait {
  width: 200px;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.20);
}

.visitenkarte h1 {
  margin: 0 auto;
  font-size: var(--fs-h3);
}

.visitenkarte h2 {
  margin: 0 auto;
  font-size: var(--fs-h4);
}

.contact-info {
  line-height: 1.6;
}

.contact-info a {
  font-size: var(--fs-h6);
  color: var(--wt);
  text-decoration: none;
  display: block;
}

.link-highlight {
  color: var(--gd); /* z. B. Goldton aus deiner CI */
  text-decoration: none;
  font-weight: bold;
  animation: colorPulse 1s infinite ease-in-out;
  transition: color 0.7s ease;
}

.link-highlight:hover {
  color: var(--sl); /* z. B. Weiß beim Hover */
}

@keyframes colorPulse {
  0%   { color: var(--gd); }
  50%  { color: var(--sl); }
  100% { color: var(--gd); }
}

.social-icons-visit-card {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.social-icons-visit-card img {
  width: 36px;
  height: 36px;
  /* padding-bottom: 10px; */
  filter: brightness(0) invert(1);
}

.vcf-button {
  max-width: 200px;
  /* margin-top: 1.5rem; */
  background-color: var(--gd);
  color: var(--bd);
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  align-self: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#toggle-audio {
  position: absolute;
  top: 63%;
  right: 20%;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 10;
}

.brand-intro {
  width: 100vw !important;
  display: block;
  font-family: 'Noto Sans', monospace;
  font-size: 1.2rem;
  background-color: var(--mb);
  color: var(--wt);
  letter-spacing: 0.05em;
  text-align: center !important;
  margin-left: calc(50% - 50vw);
  margin-right: 0 !important;
  padding: 10px 0;
  /* opacity: 0.9; */
}


.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--mb);
  padding: 5px;
  border: var(--gd) 1px solid;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 9999;
}
.whatsapp-float:hover {
  background-color: var(--gd);
}

.whatsapp-float:hover svg path {
  fill: var(--mb);
}


#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background-color: rgba(0, 0, 0, 0.6); /* dezenter Hintergrund */
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

/* Sichtbar beim Scrollen */
#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

/* Hover-Effekt */
#scrollTopBtn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

#scrollTopBtn svg {
  pointer-events: none; /* verhindert versehentliche Klick-Blockade */
}