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

:root {
  --header: #111827;
  --bg: #01010f;
  --font: #dadadc;
  --bg-navi: #dadadc;
  --card: #111827;
  --button-color: #25d366;
  --navi-font-mobile: #333;
}

/* Anmeldefenster */

.overlay-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.popup h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 24px;
}

.popup p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  font-size: 18px;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: #333;
}

.toggle-password i {
  pointer-events: none;
  margin: 10px;
}

.popup input {
  width: 100%;
  padding: 12px;
  padding-right: 45px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  box-sizing: border-box;
  display: block;
}

.popup input:focus {
  outline: none;
  border-color: #667eea;
}

.popup button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #111827 0%, #01010f 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s;
  box-sizing: border-box;
  display: block;
}

.popup button:hover {
  transform: translateY(-2px);
}

.error {
  color: #e74c3c;
  margin-top: 10px;
  font-size: 14px;
  display: none;
}

.content {
  display: none;
  text-align: center;
  color: white;
  padding: 40px;
}

.content h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.content p {
  font-size: 20px;
}

.hidden {
  display: none;
}

/* Blockiert alle Interaktionen wenn Passwort-Overlay aktiv ist */

body.locked {
  overflow: hidden;
  pointer-events: none;
}

body.locked .overlay-popup {
  pointer-events: auto;
}

html {
  background-color: var(--bg);
}

@font-face {
  font-family: "RobotoThin";
  src: url(../fonts/Roboto/Roboto-Thin.ttf);
}

@font-face {
  font-family: "RobotoBlack";
  src: url(../fonts/Roboto/Roboto-Black.ttf);
}

.header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--header);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.name-home {
  text-decoration: none;
}

.burger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.burger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
}

/* Burger Animation */

.burger-icon.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.burger-icon.active span:nth-child(2) {
  opacity: 0;
}

.burger-icon.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Mobile */
#navi {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--bg-navi);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  padding-top: 80px;
}

#navi.active {
  right: 0;
}

#navi ul {
  list-style: none;
  padding: 0;
}

#navi ul li {
  border-bottom: 1px solid #eee;
}

#navi ul li a {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--navi-font-mobile);
  text-decoration: none;
  font-size: 1.1rem;
  transition:
    background 0.2s,
    color 0.2s;
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dropdown-toggle i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #111827;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 150px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  border-bottom: 1px solid #333;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #dadadc;
  text-decoration: none;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  font-size: 1.1rem;
}

.dropdown-menu a:hover {
  background-color: rgba(218, 218, 220, 0.1);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

h1,
h2,
h3,
p,
a {
  font-family: "RobotoThin", sans-serif;
  color: var(--font);
}

.list li {
  font-family: "RobotoThin", sans-serif;
}

#hero {
  position: relative;
  background-image: url(../img/6I2A0848.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 100vh;
  margin-top: 6rem;
  background-attachment: scroll;
}

@media (min-width: 1024px) {
  #hero {
    background-attachment: fixed;
  }
}

#hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  color: var(--font);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Gestaltung der Schrift inkl. des Schattens*/
#hero-title span {
  font-size: 27vw;
  font-weight: 800;
  text-shadow: -0.08em 0.03em 0.12em rgba(0, 0, 0, 0.9);
}

/* 
		Um die Buchstaben nach links zu versetzen für die Überlappung.
		Außer dem ersten Buchstaben, deshalb not :first-child
		*/
#hero-title span:not(:first-child) {
  margin-left: -0.23em;
}

/* Style About */

#about {
  position: relative;
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
}

.about-titel {
  text-align: center;
  margin-bottom: 3rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.about-foto {
  border-radius: 20px;
  background: linear-gradient(135deg, #020617, #020617);
  border: 1px solid #dadadc;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
}

.about-foto img {
  width: 100%;
  display: block;
}

.about-text {
  flex: 1;
}

.about-text p {
  text-align: left;
  line-height: 1.8;
  color: var(--font);
}

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

  .about-foto {
    flex: 0 0 350px;
    max-width: 350px;
  }

  .about-text {
    flex: 1;
  }
}
@media (min-width: 1024px) {
  .about-content {
    gap: 4rem;
  }

  .about-foto {
    flex: 0 0 400px;
    max-width: 400px;
  }
}

/* Style Work */

#work {
  position: relative;
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.work-titel {
  text-align: center;
}

.friseur-mockup {
  margin: 30px 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #020617, #020617);
  border: 1px solid #dadadc;
  overflow: hidden;
}

.friseur-mockup img {
  width: 100%;
  display: block;
}

.kontakt-mockup {
  margin: 30px 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #020617, #020617);
  border: 1px solid #dadadc;
  overflow: hidden;
}

.kontakt-mockup img {
  width: 100%;
  display: block;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--card);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

#work-print > .btn {
  align-self: flex-start;
}

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

#work section {
  margin: 50px 0;
}

#work h3 {
  font-size: 24px;
  margin: 12px 0;
}
#work p,
#work li {
  line-height: 1.7;
  color: var(--font);
}

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 800px) {
  .grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid #dadadc;
  border-radius: 20px;
  padding: 20px;
}

.list {
  padding-left: 18px;
}

/* Style Print */

#work-print {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.poster,
.flyer,
.dimarq {
  display: flex;
  justify-content: center;
  width: 100%;
}

.poster img {
  max-width: 100%;
  height: auto;
}

.flyer img {
  max-width: 100%;
  height: auto;
}

.dimarq img {
  max-width: 100%;
  height: auto;
}

.overlay-base {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: none;
}

.overlay-base.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-content {
  position: relative;
  width: 100%;
  max-height: 100vh;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.overlay-images img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.close-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 2px solid #dadadc;
  color: #dadadc;
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.close-flyer:hover {
  background-color: #dadadc;
  color: #111827;
  transform: rotate(90deg);
}

.flyer-images {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.flyer-image-wrapper {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.flyer-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.flyer-image-wrapper p {
  margin-top: 15px;
  font-size: 18px;
  color: #dadadc;
  font-weight: 600;
}

/* Desktop Ansicht - Bilder nebeneinander */
@media (min-width: 768px) {
  .overlay-content {
    max-width: 1100px;
    max-height: 90vh;
    padding: 2rem;
  }

  .flyer-images {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
}

/* Scroll sperren wenn Overlay offen */
body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

/* Vorher Nachher Bild */

#work-photo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50;
  width: 100%;
  max-width: 1400;
  margin: 0 auto;
  padding: 20px;
}
.comparison-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.comparison-container img {
  display: block;
  width: 100%;
  height: auto;
}

.image-before {
  position: relative;
  width: 100%;
}

.image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.image-after img {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  max-width: none;
  height: auto;
}

.slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  cursor: ew-resize;
  z-index: 10;
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333;
}

/* .label {
  position: absolute;
  top: 20px;
  padding: 8px 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  z-index: 5;
}

.label-before {
  left: 20px;
}

.label-after {
  right: 20px;
} */

/* Tablet - 2 Spalten */
@media (min-width: 768px) {
  #work-photo {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Desktop - 4 Spalten */
/* @media (min-width: 1200px) {
  #work-photo {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
} */

/* Sehr große Bildschirme */
@media (min-width: 1600px) {
  #work-photo {
    max-width: 1800px;
    gap: 30px;
  }
}

#contact {
  position: relative;
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

#contact p {
  margin: 1rem 0;
}

#contact a {
  text-decoration: none;
}

.pfeil-unten {
  position: absolute;
  bottom: 30px;
  left: 50%;
  cursor: pointer;
  z-index: 10;
  /* animation-play-state: paused;
  transform: translateX(-50%) scale(1.2); */
}

/* .pfeil-unten:hover {
  animation: bounce 2s infinite;
  transition: all 0.3s ease;
} */

/* CSS Pfeil */
.pfeil-unten::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-right: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-20px);
  }
  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Mobile Dropdown Anpassungen */
@media (max-width: 767px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.active .dropdown-menu {
    max-height: 300px;
  }

  .dropdown-menu a {
    padding-left: 2.5rem;
    font-size: 1rem;
    color: #666;
  }

  .dropdown-toggle {
    justify-content: space-between;
  }

  .dropdown-toggle i {
    margin-left: auto;
  }

  .nav-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
  }
}

/* Desktop Navigation */
@media (min-width: 768px) {
  /* Burger-Icon auf Desktop verstecken */
  .burger-icon {
    display: none;
  }
  /* Navigation immer sichtbar */
  #navi {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    padding-top: 0;
    right: 0;
  }

  #navi > ul {
    display: flex;
    gap: 2rem;
  }

  #navi ul li {
    border-bottom: none;
  }
  #navi ul li a {
    padding: 0.5rem 1rem;
    color: var(--font);
    font-size: 2rem;
  }

  #navi ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }
  .overlay {
    display: none;
  }

  .flyer-images {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }

  .flyer-image-wrapper {
    max-width: 450px;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}
