/* ============================================================
   AHLERS PYROTECHNIK · BASIS-CSS FÜR DAS SHOP-THEME
   Unverändert aus der Hauptseite übernommen (Child-Theme divi-ahlers, style.css,
   Stand Website 1.15.0). Quelle der Wahrheit für Farben, Schrift, Abstände,
   Buttons und Fokuszustände. Divi-spezifische Overrides sind bewusst NICHT enthalten.
   Schriften liegen im Theme unter assets/fonts/.
   ============================================================ */

/* ── Schrift: Open Sans, lokal (DSGVO), Variable Font 400 bis 800 ── */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design-Tokens ── */
:root {
  --color-black:       #1e1e1e;
  --color-white:       #ffffff;
  --color-dark:        #111111;
  --color-dark-2:      #181818;
  --color-red:         #fe0000;
  --color-red-dark:    #c80000;
  --color-red-glow:    rgba(254, 0, 0, 0.18);
  --color-red-subtle:  rgba(254, 0, 0, 0.07);
  --color-gray:        #8d9199;
  --color-light-gray:  #c9cdd3;
  --color-border:      rgba(255, 255, 255, 0.07);
  --color-border-red:  rgba(254, 0, 0, 0.25);

  --font-primary: "Open Sans", Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --transition:      0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s  cubic-bezier(0.4, 0, 0.2, 1);

  --container-max:     1200px;
  --container-padding: 1.5rem;
  --header-height:     120px;

  /* iOS Safe Area (Dynamic Island / Notch) */
  --safe-top:    env(safe-area-inset-top,    0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left,   0px);
  --safe-right:  env(safe-area-inset-right,  0px);

  --shadow-card:    0 4px 32px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-glow-sm: 0 0 24px rgba(254, 0, 0, 0.2);
  --shadow-glow-lg: 0 0 60px rgba(254, 0, 0, 0.18), 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-lift:    0 20px 60px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ── Bewegung (aus Abschnitt „UI/UX POLISH") ── */
:root {
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-expo:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-micro: 150ms;
  --duration-base:  220ms;
  --duration-macro: 420ms;
  --glow-red:       0 0 0 3px rgba(254, 0, 0, 0.25);
}

/* ── Basis ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  background-color: var(--color-black);
  color: var(--color-white);
  margin: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }

/* ── Layout ── */
.ap-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.ap-section { padding: var(--space-xl) 0; position: relative; }
.ap-section--black { background-color: var(--color-black); }
.ap-section--dark  { background-color: var(--color-dark); }

.ap-section--dark::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-red), transparent);
  pointer-events: none;
}

/* ── Abschnittsköpfe (Label, Titel, Intro) ── */
.ap-section-header { text-align: center; margin-bottom: var(--space-lg); }

.ap-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 1.25rem;
  text-shadow: 0 0 20px rgba(254, 0, 0, 0.5);
}

.ap-section-label::before,
.ap-section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-red));
}
.ap-section-label::after { background: linear-gradient(90deg, var(--color-red), transparent); }

.ap-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-white);
  margin: 0 0 1rem;
}

.ap-section-intro {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-gray);
  max-width: 580px;
  margin: 0 auto;
}

/* ── Buttons ── */
.ap-btn-primary,
.ap-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.ap-btn-primary {
  background: linear-gradient(135deg, #fe0000 0%, #c80000 100%);
  color: var(--color-white);
  border-color: rgba(254, 80, 80, 0.3);
  box-shadow: 0 2px 16px rgba(254, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.ap-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  background-size: 200% 100%;
  background-position: -200% center;
  transition: none;
}

.ap-btn-primary:hover::before { animation: ap-shimmer 0.7s ease forwards; }

.ap-btn-primary:hover {
  background: linear-gradient(135deg, #ff2020 0%, #e00000 100%);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(254, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}

.ap-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.ap-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--color-white);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
}

.ap-btn-group { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ── Fokus, Druckzustand, weichere Übergänge (aus „UI/UX POLISH") ── */
/* ── Focus-visible rings for keyboard nav (a11y) ── */
a:focus-visible,
button:focus-visible,
.ap-btn-primary:focus-visible,
.ap-btn-secondary:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Button press state ── */
.ap-btn-primary:active  { transform: translateY(-1px) scale(0.98); }
.ap-btn-secondary:active { transform: translateY(-1px) scale(0.98); }

/* ── Button: smoother easing ── */
.ap-btn-primary,
.ap-btn-secondary {
  transition: transform var(--duration-base) var(--ease-out-expo),
              box-shadow var(--duration-base) var(--ease-out-expo),
              background var(--duration-base) ease,
              border-color var(--duration-base) ease;
}

/* ── Primary button: richer glow on hover ── */
.ap-btn-primary:hover {
  box-shadow: 0 8px 32px rgba(254, 0, 0, 0.5),
              0 2px 8px rgba(254, 0, 0, 0.3),
              inset 0 1px 0 rgba(255,255,255,0.18);
}

/* ── Secondary button: glass shimmer ── */
.ap-btn-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}
