/* ---------- Farbpalette ----------
   Schwarz:     #0a0a0a
   Weiß:        #f5f1ea
   Gold:        #d4af37  /  hell: #f2d57a
   Dunkelrot:   #6b1414
   Orange-Akz.: #c9742a
---------------------------------- */

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #f5f1ea;
  min-height: 100vh;
  background-color: #0a0a0a;
  background-image: url("public/images/business-bg.png");
  background-image: image-set(
    url("public/images/business-bg.webp") type("image/webp"),
    url("public/images/business-bg.png") type("image/png")
  );
  background-image: -webkit-image-set(
    url("public/images/business-bg.webp") type("image/webp"),
    url("public/images/business-bg.png") type("image/png")
  );
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.6;
}

/* dezenter dunkler Overlay über dem Bild */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(20, 6, 6, 0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ---------- Side-Menü (links, vertikal) ---------- */
.side-menu {
  position: fixed;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 170px;
}

.side-btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.55rem 0.85rem;
  text-align: center;
  color: rgba(245, 241, 234, 0.92);
  background: rgba(15, 8, 8, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.side-btn:hover {
  color: #f2d57a;
  border-color: #d4af37;
  background: rgba(107, 20, 20, 0.55);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh clamp(1rem, 4vw, 3rem) 4vh;
}

.hero-card {
  width: 100%;
  max-width: 1400px;
  padding: 1rem 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-bottom: 40px;
  color: transparent;
  white-space: normal;
  background: linear-gradient(
    180deg,
    #fff3a8 0%,
    #ffd86b 30%,
    #f4c430 65%,
    #b88a14 100%
  );
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 240, 180, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.55),
    0 4px 2px rgba(0, 0, 0, 0.7),
    0 6px 12px rgba(0, 0, 0, 0.75);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.75));
}

.hero-title .accent {
  background: linear-gradient(180deg, #f2d57a 0%, #d4af37 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* 3-Spalten-Layout: WordPress-Btn | Scrolltext | Digital-Btn */
.hero-row {
  display: grid;
  grid-template-columns: 220px minmax(520px, 900px) 220px;
  column-gap: 32px;
  align-items: start;
  justify-content: center;
  width: 100%;
  height: calc(100vh - 6vh - 4vh - 75px - 4rem);
  max-height: calc(100vh - 6vh - 4vh - 75px - 4rem);
  min-height: 320px;
  margin-bottom: 0;
}

.demo-hint {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: rgba(245, 241, 234, 0.7);
  text-align: center;
  margin: 1rem auto 0;
  max-width: 280px;
  font-style: italic;
}
.demo-hint strong {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-style: normal;
  color: rgba(245, 241, 234, 0.85);
  letter-spacing: 0.04em;
}

.hero-row > .hero-side:nth-of-type(1) { grid-column: 1; }
.hero-row > .hero-scroll { grid-column: 2; }
.hero-row > .hero-side:nth-of-type(2) { grid-column: 3; }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
  padding-bottom: 5rem;
}

.hero-side-btn {
  width: 100%;
  min-height: 0;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  text-align: center;
  box-shadow: none;
}

/* Button-Akzente nur innerhalb der Demo-Karten */
.hero-side .btn-primary {
  border: 1px solid #d97706;
  box-shadow: none;
}
.hero-side .btn-primary:hover { box-shadow: none; }

.hero-side .btn-secondary {
  border: 1px solid #7f1d1d;
  box-shadow: none;
}
.hero-side .btn-secondary:hover { box-shadow: none; }

/* Vorschau-Bilder unter den Buttons */
.hero-side-img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: none;
  background-color: #0a0a0a;
  border-radius: 12px;
  transform: perspective(900px) rotateX(8deg);
  transform-origin: center bottom;
  filter: none;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-side-img img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.8);
  border-radius: 12px;
  box-shadow: none !important;
  filter: none !important;
}

.hero-side-img:hover {
  transform: perspective(900px) rotateX(6deg);
}

/* Scrollbarer Textbereich */
.hero-scroll {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  background: rgba(10, 10, 10, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  text-align: left;
  color: #f5f1ea;
}

.hero-scroll p,
.hero-scroll ul {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: #f5f1ea;
  margin-bottom: 0.85rem;
}

.hero-scroll .lead {
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.hero-scroll h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f2d57a;
  margin: 1.1rem 0 0.4rem;
}

.hero-scroll h3:first-of-type { margin-top: 0.5rem; }

.hero-scroll ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1rem;
  padding: 0;
}

.hero-scroll ul li {
  position: relative;
  padding-left: 0.9rem;
}

.hero-scroll ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #d4af37;
}

.hero-contact {
  margin-top: 1.1rem;
  font-weight: 500;
  color: #ffffff;
}

/* FAQ-Button unter den Kontaktdaten */
.faq-btn {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.4rem 1rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.faq-btn:hover {
  color: #f2d57a;
  border-color: #f2d57a;
  background: rgba(107, 20, 20, 0.4);
}

.hero-scroll p.scroll-hint {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(245, 241, 234, 0.7);
}

.scroll-bottom-img {
  display: block;
  height: 210px;
  width: auto;
  margin: 1.5rem auto 0.4rem;
  background-color: #050505;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.hero-scroll p.scroll-legal {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(245, 241, 234, 0.7);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.scroll-legal a {
  color: rgba(245, 241, 234, 0.85);
  text-decoration: none;
  margin: 0 0.25rem;
  transition: color 0.2s ease;
}

.scroll-legal a:hover {
  color: #f2d57a;
}

/* Scrollbalken dezent */
.hero-scroll::-webkit-scrollbar { width: 6px; }
.hero-scroll::-webkit-scrollbar-track { background: transparent; }
.hero-scroll::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 3px;
}
.hero-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.65);
}
.hero-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}

/* ---------- Buttons ---------- */
.hero-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.5rem auto 4rem;
  max-width: 620px;
}

.hero-buttons .btn {
  width: 100%;
  min-height: 56px;
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  color: #0a0a0a;
  background: linear-gradient(135deg, #f2d57a 0%, #d4af37 100%);
  border-color: #d4af37;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffe08a 0%, #e6c170 100%);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
  color: #f5f1ea;
  background: linear-gradient(135deg, #6b1414 0%, #4a0d0d 100%);
  border: 1px solid #d4af37;
  box-shadow:
    inset 0 1px 0 rgba(212, 175, 55, 0.18),
    0 2px 10px rgba(0, 0, 0, 0.4);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #8b1a1a 0%, #5a1010 100%);
  color: #f2d57a;
  box-shadow:
    inset 0 1px 0 rgba(212, 175, 55, 0.3),
    0 0 18px rgba(212, 175, 55, 0.35);
}

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
  html, body { overflow: auto; }

  .hero {
    height: auto;
    max-height: none;
    overflow: visible;
    justify-content: center;
    padding: 5vh 1rem 2rem;
  }

  .hero-title {
    white-space: normal;
    margin-bottom: 40px;
  }

  .hero-row {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1.25rem;
    height: auto;
  }

  /* Mobile-Reihenfolge:
       1. Haupttext (Webseiten-Erstellung …)
       2. WordPress-Demo-Karte
       3. Digitale-Demo-Karte
     So springt der Digital-Button nicht mehr in den Text.
     Per :nth-child statt :nth-of-type, weil die alte CSS-Notation
     :nth-of-type(2) den Digital-Button nicht trifft (alle 3 Kinder
     sind divs — das vorhandene CSS lebte nur dank grid-auto-flow). */
  .hero-row > :nth-child(1) { grid-column: 1; order: 2; }  /* WordPress-Demo */
  .hero-row > :nth-child(2) { grid-column: 1; order: 1; }  /* Haupttext */
  .hero-row > :nth-child(3) { grid-column: 1; order: 3; }  /* Digital-Demo */

  .hero-side {
    padding-bottom: 1.5rem;
  }

  .hero-side-btn {
    align-self: stretch;
    min-height: 52px;
  }

  .hero-side-img {
    transform: none;
    aspect-ratio: 16 / 9;
  }

  /* Text fließt natürlich — KEIN 320-px-Scrollkasten mehr (siehe auch
     640-px-Breakpoint weiter unten). */
  .hero-scroll {
    height: auto;
    max-height: none;
    overflow-y: visible;
  }

  .side-menu {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 1.5rem auto 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    gap: 0.4rem;
  }

  .side-btn { width: auto; padding: 0.5rem 0.85rem; }
}

@media (max-width: 640px) {
  /* Wichtig: KEIN max-height mehr — Text fließt natürlich, sonst springt
     der Digital-Demo-Button mitten in den Text. */
  .hero-scroll {
    max-height: none;
    overflow-y: visible;
    padding: 1rem 1.1rem;
  }
  .hero-scroll ul {
    grid-template-columns: 1fr;
  }
  .hero-scroll p,
  .hero-scroll ul { font-size: 0.95rem; }
}

@media (max-width: 640px) {
  .hero { padding: 1.5rem 1rem; }

  .hero-card {
    padding: 1rem 0;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .hero-lead { font-size: 1rem; }
  .hero-text { font-size: 0.95rem; }
  .hero-text-muted { font-size: 0.9rem; }

  .hero-buttons {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 3rem;
  }

  .btn {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
}
