/*
Theme Name: Bergstraße Digital
Theme URI: https://bergstrasse.digital
Author: David
Author URI: https://bergstrasse.digital
Description: Professionelle Website für Bergstraße Digital – Webdesign & Entwicklung aus der Region
Version: 1.0.0
License: Private
Text Domain: bergstrasse-digital
*/

*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #0D2137;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.07s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.21s; }
.d4 { transition-delay: 0.28s; }
.d5 { transition-delay: 0.35s; }

/* ── Noise overlay ── */
.noise::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  pointer-events: none;
  z-index: 1;
}
.noise > * { position: relative; z-index: 2; }

/* ── Header ── */
#hdr {
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#hdr.scrolled {
  background: rgba(13,33,55,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* ── Nav links ── */
.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: #C8A24A;
  transition: width 0.3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.nav-link:focus-visible { outline: 2px solid #C8A24A; outline-offset: 4px; border-radius: 2px; }

/* ── Buttons ── */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  background: #C8A24A;
  color: #0D2137;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  padding: 0.8125rem 1.875rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer; border: none;
}
.btn-gold:hover {
  background: #D6B05A;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(200,162,74,0.3);
}
.btn-gold:active { transform: translateY(0); }
.btn-gold:focus-visible { outline: 2px solid #C8A24A; outline-offset: 3px; }

.btn-outline-w {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.8);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.8125rem 1.875rem;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.btn-outline-w:hover {
  border-color: rgba(255,255,255,0.65);
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.btn-outline-w:focus-visible { outline: 2px solid rgba(255,255,255,0.4); outline-offset: 3px; }

.btn-navy {
  display: inline-flex; align-items: center; justify-content: center;
  background: #0D2137;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  padding: 0.9375rem 1.875rem;
  border-radius: 6px;
  text-decoration: none;
  width: 100%;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer; border: none;
}
.btn-navy:hover {
  background: #152E4A;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13,33,55,0.25);
}
.btn-navy:active { transform: translateY(0); }
.btn-navy:focus-visible { outline: 2px solid #0D2137; outline-offset: 3px; }

/* ── Section label ── */
.s-label {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C8A24A;
}

/* ── Service cards ── */
.svc-card {
  border: 1px solid #E4DDD4;
  border-radius: 10px;
  padding: 2rem;
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(13,33,55,0.09);
  border-color: #C8A24A;
}

/* ── Pricing cards ── */
.p-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.25rem 2rem;
  border: 1.5px solid #E4DDD4;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
  position: relative;
}
.p-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(13,33,55,0.1);
}
.p-card--featured {
  border-color: #C8A24A;
  box-shadow: 0 0 0 1px #C8A24A, 0 20px 56px rgba(200,162,74,0.12);
}
.p-card--featured:hover {
  box-shadow: 0 0 0 1px #D6B05A, 0 28px 64px rgba(200,162,74,0.18);
}

/* ── Pricing feature list ── */
.p-features li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #F0EBE4;
  font-size: 0.875rem;
  color: #3A4A5A;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.5;
}
.p-features li:last-child { border-bottom: none; }
.p-features li strong {
  font-weight: 600;
  color: #0D2137;
}

/* ── Benefit cards ── */
.ben-card {
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.ben-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(200,162,74,0.25);
  transform: translateY(-2px);
}

/* ── Form select ── */
.f-select {
  width: 100%;
  padding: 0.8125rem 2.5rem 0.8125rem 1rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23697585' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1.5px solid #E4DDD4;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #0D2137;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.f-select:focus {
  border-color: #C8A24A;
  box-shadow: 0 0 0 3px rgba(200,162,74,0.12);
}

/* ── Form inputs ── */
.f-input {
  width: 100%;
  padding: 0.8125rem 1rem;
  background: #fff;
  border: 1.5px solid #E4DDD4;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #0D2137;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.f-input:focus {
  border-color: #C8A24A;
  box-shadow: 0 0 0 3px rgba(200,162,74,0.12);
}
.f-input::placeholder { color: #AAA5A0; }
textarea.f-input { resize: vertical; min-height: 130px; }

/* ── Mobile menu ── */
#mob-menu {
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
#mob-menu[aria-hidden="true"] {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

/* ── Gold line divider ── */
.hr-gold {
  border: none; height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,162,74,0.4), transparent);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0D2137; }
::-webkit-scrollbar-thumb { background: #2A4060; border-radius: 3px; }

/* ── Anchor-Offset: verhindert dass der fixe Header Sections verdeckt ── */
section[id] {
  scroll-margin-top: 76px;
}

/* ── Mobile Fixes ── */
@media (max-width: 767px) {
  /* Hero: weniger Blau oben */
  .hero-inner { padding-top: 2.5rem; padding-bottom: 4rem; }

  /* Sections: kompaktere Abstände */
  .section-pad { padding-top: 4rem; padding-bottom: 4rem; }

  /* Pricing badge "BESTE WAHL" nicht abschneiden */
  .best-badge-wrap { left: 50%; transform: translateX(-50%); }

  /* Metriken-Row: kleinere Lücken */
  .metrics-row { gap: 1rem; }

  /* Metrics Trennlinien auf sehr kleinen Screens ausblenden */
  .metrics-divider { display: none; }
}

/* ── Hero Shader Canvas ── */
#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
}

/* ── Floating Logo Animation ── */
@keyframes hero-float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-22px) rotate(1.5deg); }
}
.hero-logo-float {
  animation: hero-float 9s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(200,162,74,0.4))
          drop-shadow(0 0 100px rgba(200,162,74,0.15));
  will-change: transform;
}

/* ── WordPress admin bar fix ── */
.admin-bar #hdr {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar #hdr {
    top: 46px;
  }
}
