/* ============================================
   beeconnected GmbH – Design Tokens & Base
   ============================================ */

:root {
  /* Farben */
  --honey:        #ef7d00;
  --honey-light:  #fff3e6;
  --honey-mid:    #fdddb3;
  --honey-dark:   #c46600;
  --ink:          #1A1A18;
  --ink-soft:     #3D3D38;
  --muted:        #8A8A84;
  --surface:      #FAFAF8;
  --white:        #FFFFFF;
  --border:       rgba(26,26,24,0.10);
  --border-strong: rgba(26,26,24,0.18);

  /* Abstände */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  5rem;
  --space-2xl: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Schatten */
  --shadow-sm:    0 1px 3px rgba(26,26,24,0.06), 0 1px 2px rgba(26,26,24,0.04);
  --shadow-md:    0 4px 16px rgba(26,26,24,0.08), 0 2px 6px rgba(26,26,24,0.04);
  --shadow-lg:    0 12px 40px rgba(26,26,24,0.10), 0 4px 12px rgba(26,26,24,0.06);
  --shadow-honey: 0 4px 20px rgba(239,125,0,0.25);

  /* Übergänge */
  --ease:       cubic-bezier(0.4,0,0.2,1);
  --transition: 200ms cubic-bezier(0.4,0,0.2,1);

  /* Schriften */
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  /* Breite */
  --max-width: 1320px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Skip Link (Accessibility) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--honey);
  color: var(--ink);
  padding: 0.5rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ---- Focus States ---- */
:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---- Typografie ---- */
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 42px); }
h3 { font-size: clamp(19px, 2.5vw, 22px); }
h4 { font-size: 16px; font-weight: 500; line-height: 1.4; }

p { color: var(--muted); line-height: 1.75; font-weight: 300; }
p strong { color: var(--ink); font-weight: 500; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* sections provide vertical padding only; container handles horizontal */
section { padding: var(--space-xl) 0; }

/* Scroll-Margin für Anker-Links */
[id] { scroll-margin-top: 80px; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }

.section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey-dark);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 2px;
  background: var(--honey);
  border-radius: 2px;
}

.section-sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
  font-weight: 300;
  margin-top: 0.5rem;
}
.section-sub.wide  { max-width: 640px; }
.section-sub.centered { margin-left: auto; margin-right: auto; }

/* ---- Fade-in Animationen ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ---- Trennlinie ---- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hide-mobile { display: none !important; }
  body.nav-open {
    overflow: hidden !important;
  }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.5rem; }
}

/* Extra small devices */
@media (max-width: 480px) {
  :root {
    --space-xl: 3rem;
    --space-lg: 2rem;
  }
  section { padding: 2.5rem 0; }
  h1 { font-size: clamp(28px, 6vw, 40px); }
  h2 { font-size: clamp(22px, 5vw, 32px); }
  #hero { padding-top: 104px !important; }
}

/* ---- Hero Grid ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 60px);
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
/* fallback for old inline-style grids */
#hero > .container > div[style*="grid-template-columns"] {
  display: grid;
}
@media (max-width: 1024px) {
  #hero > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

/* ---- Steps: 4-step layout – 3 oben + 1 zentriert darunter ---- */
.steps-4 {
  grid-template-columns: repeat(3, 1fr);
}

/* Schritt 4 zentriert in Zeile 2 */
.steps-4 .step:last-child {
  grid-column: 2;
  margin-top: 4rem;
  padding: 1.75rem 2rem;
  background: var(--honey-light);
  border: 1.5px solid var(--honey-mid);
  border-radius: var(--radius-lg);
  position: relative;
}

/* Verbindungspfeil von Zeile 1 zu Schritt 4 */
.steps-4 .step:last-child::before {
  content: '';
  position: absolute;
  top: -3.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 3.2rem;
  background: linear-gradient(to bottom, rgba(245,166,35,0.35), var(--honey));
  border-radius: 2px;
}

/* Nummer in Schritt 4 – gleicher Stil wie die anderen */
.steps-4 .step:last-child .step-number {
  background: var(--white);
  border-color: var(--honey);
  color: var(--honey-dark);
  box-shadow: none;
}

@media (max-width: 900px) {
  .steps-4 {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }
  .steps-4 .step:last-child {
    grid-column: 1 / -1;   /* volle Breite, zentriert durch text-align */
    max-width: 340px;
    margin: 0.5rem auto 0;
  }
  .steps-4::before { display: none; }
}

@media (max-width: 720px) {
  .steps-4 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .steps-4 .step:last-child {
    grid-column: 1;
    max-width: 100%;
    margin: 0;
    text-align: left;
    padding: 1rem 0 1rem 3.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  .steps-4 .step:last-child::before { display: none; }
  .steps-4 .step:last-child > span {
    display: none;
  }
  .steps-4 .step:last-child .step-number {
    position: absolute;
    left: 0;
    top: 1rem;
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 16px;
    background: var(--honey-light);
    border-color: var(--honey);
  }
}

/* ---- Hero Image ---- */
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  /* subtle warm gradient overlay on bottom to blend with badge */
  background: var(--honey-light);
}

.hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  border-radius: var(--radius-xl);
  transition: transform 0.6s var(--ease);
}
.hero-image-wrap:hover .hero-img {
  transform: scale(1.02);
}

/* Frosted-glass price badge */
.hero-img-badge .price-amount {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1;
}
.hero-img-badge .price-suffix {
  color: var(--muted);
}

.hero-img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
  .hero-image-wrap {
    order: 1; /* Bild unter dem Text auf Mobile/Tablet */
  }
  .hero-img {
    height: 360px;
    object-position: center 10%;
  }
}

@media (max-width: 768px) {
  .hero-img {
    height: 280px;
  }
  .hero-img-badge {
    bottom: 1rem;
    left: 1rem;
    padding: 0.65rem 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-img {
    height: 240px;
    border-radius: var(--radius-lg);
  }
  .hero-image-wrap {
    border-radius: var(--radius-lg);
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
