/* =========================
   style.css
   ========================= */

/* --- 1. VARIABLEN & GRUNDEINSTELLUNGEN --- */
:root {
  --c-bg: #fceed6;
  --c-primary: #d85100;
  --c-text: #43302e;
  --c-hover-bg: rgba(216, 81, 0, 0.12);
  --font-main: "Poppins", sans-serif;
  --header-padding: 7%;

  /* Reveal Animation Tuning */
  --reveal-duration: 700ms;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-blur: 14px;
  --reveal-y: 18px;
}

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

/* Verhindert seitliches Scrollen bei den breiten Bildern */
html,
body {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--c-bg);
  font-family: var(--font-main);
  min-height: auto;
  position: relative;
  margin: 0 auto;
}

/* =========================
   REVEAL (Fade + Blur on scroll)
   ========================= */

.reveal {
  opacity: 0;
  filter: blur(var(--reveal-blur));
  transform: translateY(var(--reveal-y));
  transition: opacity var(--reveal-duration) var(--reveal-ease),
    filter var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
  will-change: opacity, filter, transform;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* wenn User Reduced Motion aktiviert: sofort sichtbar */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- 2. HEADER & NAVIGATION --- */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 7vw var(--header-padding);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 100;
}

.logo {
  color: var(--c-primary);
  font-size: 13.55vw;
  font-weight: 700;
  line-height: 1;
}

.burger {
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 10.7vw;
  height: 10.7vw;
  padding: 2vw;
  margin-top: 1.8vw;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4vw;
  z-index: 110;
}

.burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--c-text);
  border-radius: 999px;
  transition: all 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 22vw;
  right: var(--header-padding);
  background: var(--c-bg);
  border: 4px solid var(--c-primary);
  border-radius: 14px;
  padding: 10px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.dropdown-menu.open {
  display: flex;
}

.dropdown-menu a {
  text-decoration: none;
  color: var(--c-primary);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.3s;
  font-size: 16px;
}

/* --- 3. HERO BEREICH (MOBILE = BASIS) --- */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  width: 100%;
}

.abs-container {
  position: absolute;
  overflow: hidden;
  z-index: 2;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Picture füllt Container */
.hero-picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Referenz: contain + center (kein Cropping, keine abgeschnittenen Seiten) */
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-overlay-img {
  width: 100%;
  height: auto;
  display: block;
}

.pos-logo-overlay {
  top: 18vw;
  left: 38%;
  width: 13%;
}

/* --- KORREKTUR: Pfeil-Container --- */
.pos-arrow {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: 155vw;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.pos-arrow img {
  height: 15vh;
  width: auto;
  display: block;
}

/* --- 4. GEMEINSAME SECTION STYLES --- */
.section-wrapper {
  padding: 25vw var(--header-padding);
  color: var(--c-primary);
  position: relative;
  z-index: 5;
  --section-shift: 18vh;
  transform: translateY(calc(-1 * var(--section-shift)));
  margin-bottom: calc(-1 * var(--section-shift));
}

.section-title {
  font-size: 13.55vw;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 70vw;
  text-transform: uppercase;
}

.content-text {
  color: var(--c-text);
  font-size: 5.15vw;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.05em;
  margin-left: 6.5%;
  margin-right: 6.5%;
}

#about,
#work {
  scroll-margin-top: -10vh;
}
#preise {
  scroll-margin-top: -40vh;
}

/* --- 5. INDIVIDUELLE BILDER --- */
.pos-bottom-img {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.pos-bottom-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-about {
  --img-width: 75vw;
  width: var(--img-width);
  left: 50%;
  top: 67.5vw;
}

.img-work {
  --img-width: 110vw;
  width: var(--img-width);
  left: 50%;
  top: 108vw;
}

/* --- 6. PREISE --- */
#preise {
  padding-top: 95vw;
}

#preise .section-title {
  margin-bottom: 3.5vw;
}

.price-container {
  margin-left: 6.5%;
  margin-right: 6.5%;
  color: var(--c-text);
}

.price-group {
  cursor: pointer;
  margin-bottom: 3.5vw;
}

.price-group summary {
  list-style: none;
  font-size: 5.6vw;
  font-weight: 400;
  color: var(--c-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 0;
  outline: none;
}

.price-group summary::-webkit-details-marker {
  display: none;
}

.price-group .plus {
  font-size: 7vw;
  transition: transform 0.7s ease;
}

.price-group[open] .plus {
  transform: rotate(45deg);
}

.price-details {
  padding: 3.5vw 0;
  display: flex;
  flex-direction: column;
  gap: 2.5vw;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 4.2vw;
  border-bottom: 1px solid rgba(67, 48, 46, 0.1);
  padding-bottom: 1.2vw;
}

/* Wave Divider (Basis: Mobile wie vorher) */
.wave-divider {
  width: 75vw;
  height: auto;
  margin: 3.5vw 0;
  display: block;
}

.wave-divider img {
  width: 100%;
  height: auto;
  display: block;
}

.price-footer-note {
  font-size: 3.3vw;
  color: var(--c-text);
  text-align: center;
  margin-top: 9vw;
  font-weight: 300;
  opacity: 0.8;
}

/* --- 7. ANIMATIONEN & BUCHEN --- */
.bounce-animation {
  animation: arrow-bounce 1.4s ease-in-out infinite;
  will-change: transform;
}

.book-here-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -220px;
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
}

.book-here-img {
  width: 250px;
  height: auto;
  cursor: pointer;
}

.book-footer-text {
  margin-top: 20px;
  font-size: 4.5vw;
  color: var(--c-text);
  font-weight: 300;
  letter-spacing: 0.02em;
  font-family: inherit;
}

.book-here-link:hover {
  transform: scale(1.03);
}

/* --- 8. KONTAKT SEKTION --- */
#kontakt {
  padding-top: 25vw;
  text-align: left;
  margin-bottom: -150px;
  padding-bottom: 0;
}

#kontakt .section-title {
  margin-bottom: 10vw;
}

#kontakt .contact-container {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 6vw;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 1.4vw;
}

.contact-label {
  font-size: 3.5vw;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--c-primary);
  opacity: 0.6;
}

.contact-link {
  text-decoration: none;
  color: var(--c-text);
  border-bottom: 1px solid rgba(67, 48, 46, 0.2);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.contact-link:hover {
  border-bottom-color: var(--c-primary);
}

.contact-item p {
  margin: 0;
  font-style: normal;
  line-height: 1.4;
}

.address-link {
  display: inline-block;
  line-height: 1.5;
  text-align: inherit;
}

.address-link:hover {
  text-decoration: none;
  border-bottom-color: var(--c-primary);
  opacity: 1;
}

/* --- 9. FOOTER STYLES --- */
.site-footer {
  width: 100%;
  position: relative;
  margin-top: 50px;
  padding-bottom: 20px;
}

.footer-wave-img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  padding: 0 var(--header-padding);
}

.footer-link {
  background: none;
  border: none;
  color: var(--c-text);
  font-family: var(--font-main);
  font-size: 3vw;
  font-weight: 300;
  cursor: pointer;
  opacity: 0.7;
  text-transform: uppercase;
}

/* --- OVERLAY STYLES --- */
.legal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(67, 48, 46, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.legal-box {
  background: var(--c-bg);
  padding: 30px;
  border-radius: 15px;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 2px solid var(--c-primary);
  color: var(--c-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.legal-overlay.active {
  display: flex;
}

@keyframes arrow-bounce {
  0%,
  100% {
    transform: translateY(8px);
  }
  50% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bounce-animation {
    animation: none;
  }
}

/* ==========================================================================
   --- 10. DESKTOP OPTIMIERUNG (ab 1024px) ---
   ========================================================================== */
@media (min-width: 1024px) {
  :root {
    --header-padding: 40px;
    --footer-bottom-space: 20px;
  }
  /* Desktop: sauberes Anchor-Scrolling (Menü-Sprünge) */
  :root {
    --desktop-scroll-offset: 0px; /* <- hier einstellen (Headerhöhe + Luft) */
  }
  /* Desktop: Pfeil wieder sichtbar im Hero */

  .pos-arrow {
    top: 82vh !important;
    transform: translate(-4%, -50%); /* <- erster Wert = links/rechts */
  }
  #about,
  #work,
  #preise,
  #buchen,
  #kontakt {
    scroll-margin-top: var(--desktop-scroll-offset) !important;
  }
  header,
  .hero {
    max-width: 100% !important;
    width: 100%;
    margin: 0;
  }

  header {
    padding-top: 30px;
    align-items: center;
    position: absolute;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    padding-left: var(--header-padding);
    padding-right: var(--header-padding);
    box-sizing: border-box;
  }

  .hero {
    height: 100vh;
    max-height: 900px;
  }

  .hero-bg-img {
    object-fit: cover;
    object-position: center top;
  }

  .pos-logo-overlay {
    top: 70px !important;
    left: 11% !important;
    width: 5% !important;
  }

  .logo {
    font-size: 50px;
  }

  .burger {
    display: none;
  }

  .dropdown-menu {
    display: flex !important;
    flex-direction: row;
    position: relative;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    padding: 0;
    gap: 40px;
    min-width: auto;
  }

  .dropdown-menu a {
    font-size: 18px;
    padding: 5px 10px;
    color: inherit;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .dropdown-menu a:hover {
    background: var(--c-hover-bg);
    border-radius: 4px;
  }

  main {
    display: block;
  }

  .section-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 35px 40px !important;
    transform: none !important;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #work.section-wrapper {
    max-width: 1600px !important;
  }

  .section-title {
    font-size: 64px;
    margin-bottom: 50px !important;
    text-align: center;
    width: 100%;
    order: 1;
  }

  .content-text {
    font-size: 22px;
    max-width: 800px;
    margin: 0 auto 50px auto !important;
    text-align: center;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    order: 2;
  }

  .pos-bottom-img {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    margin: 10px auto !important;
    display: block;
    z-index: 1;
    opacity: 1 !important;
    order: 3;
  }

  .img-about {
    width: 500px !important;
  }

  .img-work {
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
  }

  .img-work img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  #preise {
    padding-top: 100px !important;
    margin-top: -80px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .price-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    order: 2;
  }

  .price-footer-note {
    order: 4;
    text-align: center;
    margin-top: 5px;
    font-size: 14px !important;
    color: #777;
    max-width: 600px;
  }

  .price-group summary {
    font-size: 28px;
  }

  .price-group .plus {
    font-size: 40px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }

  .price-group div,
  .price-group p,
  .price-group table {
    font-size: 18px !important;
    line-height: 1.4;
    color: #555;
  }

  .wave-divider {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    order: 3;
    display: block;
  }

  .wave-divider img {
    width: 100%;
    height: auto;
    display: block;
  }

  .book-here-link {
    margin-top: 20px !important;
    transform: scale(1.2);
  }

  .book-here-link:hover {
    transform: scale(1.08);
  }

  .book-footer-text {
    font-size: 13px !important;
    line-height: 1.35;
    opacity: 0.75;
    margin-top: 10px;
    letter-spacing: 0.01em;
  }

  #kontakt {
    padding-top: 100px !important;
    margin-bottom: 50px !important;
  }

  #kontakt .contact-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }

  #kontakt .contact-label {
    font-size: 29px;
    letter-spacing: 0.12em;
    opacity: 0.65;
  }

  #kontakt .contact-container p,
  #kontakt .contact-container a {
    font-size: 18px;
    line-height: 1.5;
  }

  .footer-link {
    font-size: 12px;
    font-weight: 300;
    opacity: 0.55;
    letter-spacing: 0.08em;
  }

  .footer-link:hover {
    opacity: 0.85;
  }

  .footer-wave-img {
    width: 50%;
    max-width: 600px;
    margin: 0 auto 15px auto;
    display: block;
    transform: translateX(-5%);
  }

  .site-footer {
    padding-bottom: var(--footer-bottom-space);
  }
}
