*,
*::before,
*::after {
  box-sizing: border-box;
}
html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* verhindert horizontales Scrollen */
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Theme */
:root {
  --olive: #808000;
  --beige: #d1bc8a;
  --black: #111;
  --white: #fff;
  --olive-600: #6e6e00;
  --olive-700: #5f5f00;
  --beige-200: #e7dcb7;
  --container: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--black);
  line-height: 1.6;
  background: #faf8f3;
}
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
/* Mobile (<600): Brand links, Burger rechts */
.nav {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand .title {
  text-align: left;
}
.brand .title strong {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand .title span {
  font-size: 0.85rem;
  color: #444;
}
.nav a {
  font-weight: 600;
}

.menu {
  display: none;
  gap: 1.2rem;
  align-items: center;
  justify-self: end;
}
.menu a {
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.menu a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--white);
  justify-self: end;
  cursor: pointer;
}
.burger span {
  width: 20px;
  height: 2px;
  background: var(--black);
  position: relative;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--black);
}
.burger span::before {
  top: -6px;
}
.burger span::after {
  top: 6px;
}

/* Desktop (>=600): Marke mittig, Inline-Menü, kein Burger/Drawer */
@media (min-width: 600px) {
  .nav {
    grid-template-columns: 1fr auto 1fr;
  }
  .brand {
    justify-self: center;
  }
  .brand .title {
    text-align: center;
  }
  .menu {
    display: flex;
  }
  .burger {
    display: none;
  }
  .drawer,
  .backdrop {
    display: none !important;
  }
}

/* ------------------------------ */
/* Kompaktes Burger-Menü (Popover) */
/* ------------------------------ */
.drawer {
  position: fixed;
  top: 64px; /* unter dem Header */
  right: max(1rem, calc((100vw - var(--container)) / 2 + 1rem));
  width: min(92vw, 320px);
  max-height: calc(100vh - 96px);
  overflow: auto;

  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.75rem 1rem;

  display: grid;
  gap: 0.25rem;
  z-index: 60;

  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.drawer a {
  padding: 0.9rem 0;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.drawer a:last-child {
  border-bottom: none;
}
.drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Backdrop nur zum „außerhalb klicken“ – ohne Abdunkeln */
.backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 55;
}
.backdrop.show {
  opacity: 1; /* bleibt unsichtbar, fängt Klicks */
  pointer-events: auto;
}

/* ---------------------------------- */
/* SLIDER – kompletter korrigierter Bereich */
/* ---------------------------------- */

.slider {
  position: relative;
}
.slider .slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 0.6s ease;
}
.slide {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: center;
  color: var(--white);
  background: #222 center/cover no-repeat;
}
@media (max-width: 599.98px) {
  html,
  body {
    overflow-x: hidden;
  }
  .slide {
    min-height: 60vh;
  }
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
}
.slide .content {
  position: relative;
  z-index: 1;
}
.slide h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  margin: 0.3rem 0;
}
.slide p {
  max-width: 60ch;
  margin: 0;
}
.slider .controls {
  position: absolute;
  inset: auto 0 16px 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.dot.active {
  background: var(--beige);
}
.arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.arrow:hover {
  background: rgba(0, 0, 0, 0.4);
}
.arrow.prev {
  left: 10px;
}
.arrow.next {
  right: 10px;
}

/* -------------------------- */
/* SLIDE 0 – Transparentes Intro-Logo */
/* -------------------------- */

/* SLIDE 0 – Transparentes Intro-Logo */
.slider .slide.logo-slide {
  background-color: #faf8f3 !important; /* heller Seitenbackground */
  background-image: url("../img/Luans_Logo_transparent_klein.png") !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto; /* Logo Größe */
  display: block;
}

/* Overlay entfernen */
.slider .slide.logo-slide::after {
  display: none !important;
}

.slider .slide.logo-slide img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

/* Slides 1–5 */
.slider .slide:nth-child(2) {
  background-image: url("../img/slides/slide-01.jpg");
}
.slider .slide:nth-child(3) {
  background-image: url("../img/slides/slide-02.jpg");
}
.slider .slide:nth-child(4) {
  background-image: url("../img/slides/slide-03.jpg");
}
.slider .slide:nth-child(5) {
  background-image: url("../img/slides/slide-04.jpg");
}
.slider .slide:nth-child(6) {
  background-image: url("../img/slides/slide-05.jpg");
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 72vh;
  color: var(--white);
  background: #333;
}
@media (max-width: 599.98px) {
  .hero {
    background-attachment: scroll;
  }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}
.badge {
  display: inline-block;
  background: var(--beige);
  color: var(--black);
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 1rem 0 0.5rem;
}
.hero p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 60ch;
}
.cta {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 700;
  cursor: pointer;
}
.btn.primary {
  background: var(--olive);
  color: var(--white);
}
.btn.primary:hover {
  background: var(--olive-600);
}
.btn.secondary {
  background: var(--white);
  color: var(--black);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Sections */
section {
  padding: 3.5rem 0;
}
.section-head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.8rem;
}
.section-eyebrow {
  color: var(--olive-700);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Leistungen Grid */
.grid {
  display: grid;
  gap: 1rem;
}
.grid.cols-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service {
  padding: 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.service .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--beige);
  font-weight: 900;
  color: var(--black);
}
.service h3 {
  margin: 0.2rem 0;
  font-size: 1.1rem;
}
.service p {
  margin: 0;
  color: #333;
}

/* Über uns */
.about {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 600px) {
  .about {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}
.about > * {
  align-self: start;
}

.about .photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.about .about-card {
  padding: 1.2rem;
}

/* Instagram */
.about .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Kontakt */
.contact {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .contact {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
form.card {
  padding: 1rem;
}
.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
label {
  font-weight: 600;
}
.input,
textarea {
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--white);
}
textarea {
  min-height: 140px;
  resize: vertical;
}
.error {
  color: #a40000;
  font-size: 0.9rem;
  display: none;
}
.form-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.lead {
  margin-top: 0;
}

.contact.single {
  grid-template-columns: 1fr;
}
.contact-info a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-info p {
  margin: 0.25rem 0;
}

#form-success {
  display: none;
  color: green;
  margin: 0.5rem 0 0;
}

/* Footer */
footer {
  margin-top: 3rem;
  background: var(--black);
  color: var(--white);
  padding: 2rem 0;
}
.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
  }
}

footer .legal {
  padding: 0;
  display: grid;
  gap: 0.5rem;
  justify-items: end;
  text-align: right;
}
footer .legal > .social {
  grid-row: 1;
}
footer .legal > a {
  grid-row: 2;
}
footer .legal > a + a {
  margin-left: 0.5rem;
}
@media (max-width: 599.98px) {
  footer .legal {
    justify-items: center;
    text-align: center;
  }
}

.legal a {
  opacity: 0.9;
}
.legal a:hover {
  text-decoration: underline;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}

.legal {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.legal h2 {
  margin-bottom: 0.6rem;
}
.legal h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}
.legal p,
.legal li {
  color: #222;
}
.legal ol,
.legal ul {
  padding-left: 1.2rem;
}
.legal-hr {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

footer .social {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0.75rem 0 0;
  padding: 0;
}
footer .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-weight: 600;
}
footer .social-link:hover {
  background: rgba(255, 255, 255, 0.12);
}
footer .social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
footer .social-link.instagram {
  border-color: rgba(209, 188, 138, 0.35);
}
footer .social-link.whatsapp {
  border-color: rgba(37, 211, 102, 0.35);
}
footer .social-link.whatsapp:hover {
  background: rgba(37, 211, 102, 0.12);
}

.input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #a40000;
  outline: none;
}

.ig-embed {
  width: 100%;
  max-width: 380px;
}
.ig-embed .instagram-media {
  width: 100% !important;
  max-width: 380px !important;
  min-width: 0 !important;
  margin: 0 !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
