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

:root {
  --color-bg: #01010f;
  --color-header: #111827;
  --color-card: #111827;
  --color-btn: #111827;
  --color-btn-hover: #0a0e17;
  --color-font: #dadadc;
  --color-font-muted: #666;
  --color-navi-bg-mobile: #dadadc;
  --color-navi-font-mobile: #333;
  --color-navi-mobile-border: #cdcdcd;
  --color-whatsapp: #25d366;
  --color-overlay-nav: rgba(0, 0, 0, 0.5);
  --color-overlay-content: rgba(0, 0, 0, 0.95);
  --color-dropdown-border: #333;
  --color-dropdown-hover: rgba(218, 218, 220, 0.1);
  --color-about-foto-bg: #020617;
  --color-slider-btn: #333;
  --color-shadow: rgba(0, 0, 0, 0.3);

  --container: 1100px;
  --radius-lg: 20px;
  --radius-sm: 5px;
  --radius-round: 50%;
  --gap: 20px;
  --border: 1px solid var(--color-border);
}

/* ========================
BASIS
===========================*/

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

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

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

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

a {
  font-family: "RobotoThin", sans-serif;
  color: var(--color-font);
  text-decoration: none;
}

/*=============================== 
Wiederverwendbare UI-Elemente 
=================================*/

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

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

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

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

/* Mockup-Rahmen */
.mockup {
  border-radius: var(--radius-lg);
  background-color: var(--color-about-foto-bg);
  border: var(--border);
  overflow: hidden;
  width: 100%;
}

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

/* =================== 
Header und Navi - MOBILE
======================*/
.header-container {
  position: fixed;
  inset: 0 0 auto 0;
  background-color: var(--color-header);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.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: var(--color-navi-font-mobile);
  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);
}

/* Nav Panel (Mobile: Slide-in von rechts) */
#navi {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--color-navi-bg-mobile);
  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;
}

#navi ul li {
  border-bottom: 1px solid var(--color-navi-mobile-border);
}

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

/* Overlay hinter Mobile-Nav */
.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay-nav);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 999;
}

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

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

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

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

/* Dropdown Menu - Mobile (eingeklappt) */
.dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: static;
  background-color: transparent;
  box-shadow: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

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

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

/* Dropdown Menu (Desktop Verhalten) */

.dropdown-menu li {
  border-bottom: 1px solid var(--color-dropdown-border);
}

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

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: var(--color-font-muted);
  white-space: nowrap;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

/*======================================= 
HEADER & NAVIGATION - DESKTOP (ab 768px)
=========================================*/
@media (min-width: 768px) {
  .burger-icon {
    display: none;
  }

  .overlay {
    display: none;
  }

  #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(--color-font);
    font-size: 2rem;
  }

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

  /* Dropdown Menu - Desktop (schwebend) */
  .dropdown-toggle {
    justify-content: flex-start;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-header);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--color-shadow);
    min-width: 150px;
    max-height: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease,
      transform 0.3s ease;
    z-index: 1000;
    overflow: visible;
  }

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

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

  .dropdown-menu a {
    padding: 0.8rem 1.2rem;
    color: var(--color-font);
    font-size: 1.1rem;
  }

  .dropdown-menu a:hover {
    background-color: var(--color-dropdown-hover);
  }
}

/* ==================
WHATSAPP BUTTON
=====================*/
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-whatsapp);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  text-decoration: none;
}

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

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

#hero-title span {
  font-size: 27vw;
  font-weight: 800;
  text-shadow: -0.08em 0.03em 0.12em rgba(0, 0, 0, 0.9);
}

#hero-title span:not(:first-child) {
  margin-left: -0.23em;
}

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

/* =================
ABOUT - MOBILE
====================*/
#about {
  position: relative;
  max-width: var(--container);
  margin: auto;
  padding: 40px 20px;
  text-align: center;
}

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

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

.about-foto {
  border-radius: var(--radius-lg);
  background-color: var(--color-about-foto-bg);
  border: var(--border);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
}

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

.about-text p {
  text-align: left;
  line-height: 1.8;
}

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

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

/*==================== 
WORK - MOBILE
======================*/
#work {
  position: relative;
  max-width: var(--container);
  margin: auto;
  padding: 40px 20px;
}

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

#work section {
  margin: 50px 0;
}

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

.work-mockup {
  margin-bottom: 30px;
}

.print-mockup {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

/* Grid Cards */
.work-grid {
  display: grid;
  gap: var(--gap);
}

.work-card {
  background: var(--color-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

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

.print-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ===================================
OVERLAYS (Print-Previews) - MOBILE
======================================*/
.overlay-base {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay-content);
  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 var(--color-font);
  color: var(--color-font);
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  cursor: pointer;
  z-index: 10;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.close-overlay:hover {
  background-color: var(--color-font);
  color: var(--color-header);
  transform: rotate(90deg);
}

/* Flyer Layout */
.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: var(--color-font);
  font-weight: 600;
}

/* OVERLAYS - DESKTOP */
@media (min-width: 768px) {
  .overlay-content {
    max-width: var(--container);
    max-height: 90vh;
    padding: 2rem;
  }

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

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

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

/* ===================================
PHOTO / BEFORE-AFTER SLIDER - MOBILE
======================================*/
#work-photo {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

#work-photo h2 {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.comparison-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--color-shadow);
}

.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: 200%;
  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: var(--radius-round);
  box-shadow: 0 4px 10px var(--color-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-slider-btn);
}

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

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

/* ==================
Contact/Footer
===================== */
#contact,
footer {
  position: relative;
  max-width: var(--container);
  margin: auto;
  padding: 40px 20px;
}

#contact p {
  margin: 1rem 0;
}
