/*
Theme Name: Ahlers Pyrotechnik
Template: Divi-2
Description: Divi Child Theme für Ahlers Pyrotechnik – professionelle Feuerwerke in Westerstede und Norddeutschland.
Version: 1.0.0
Author: Claude Code
*/

/* ============================================================
   SCHRIFT: Open Sans, lokal eingebunden (keine Verbindung zu Google, DSGVO)
   Variable Font, eine Datei deckt die Gewichte 400 bis 800 ab.
   Quelle: Google Fonts, Lizenz: SIL Open Font License 1.1
   ============================================================ */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/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("assets/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;
}

/* ============================================================
   DIVI LAYOUT OVERRIDES
   Removes Divi default padding so our sections control spacing
   ============================================================ */
#page-container                        { padding: 0 !important; margin: 0 !important; }
#main-content, #et-main-area          { padding: 0 !important; padding-top: 0 !important; margin-top: 0 !important; }
body.admin-bar #main-content          { margin-top: 0 !important; }
.et_pb_section                         { padding: 0 !important; margin: 0 !important; }
.et_pb_fullwidth_code,
.et_pb_fullwidth_code_inner           { padding: 0 !important; margin: 0 !important; }
.et_pb_code_inner                      { padding: 0 !important; margin: 0 !important; }
/* Hide Divi's own main header (we use our custom one) */
#main-header, #top-header             { display: none !important; }

/* Force full-width layout on all pages – hide sidebar, expand content */
#sidebar, #left-area                  { display: none !important; }
#main-content                         { width: 100% !important; max-width: 100% !important; }
.et_right_sidebar #main-content,
.et_left_sidebar  #main-content       { width: 100% !important; float: none !important; }
#et-boc, .et-l, .et-l--body          { width: 100% !important; }

/* Zentrierter Seitencontainer – verhindert Links-Offset auf mobilen Geräten */
html, body { width: 100%; max-width: 100%; }
#page-container { width: 100% !important; max-width: 100% !important; margin: 0 auto !important; }
.et_pb_section, .et_pb_row, .et_pb_column,
.et_pb_fullwidth_code, .et_pb_fullwidth_code_inner,
.et_pb_code_inner { width: 100% !important; max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
/* Force dark background everywhere – overrides Divi's white page default */
html, body                            { background-color: var(--color-black) !important; }
#main-content, #et-main-area,
.et-main-area                         { background-color: var(--color-black) !important; }
.entry-content, .et_pb_post_content   { background-color: var(--color-black) !important; }

/* Hide only Divi's auto-generated page title (we use our own hero h1) */
.entry-title                          { display: none !important; }
.page-header                          { display: none !important; }

/* Remove Divi content padding on pages */
.page-template-default .entry-content,
.et_full_width_page .et_post_meta_wrapper { padding: 0 !important; margin: 0 !important; }
/* Full-page layout */
body.et_pb_pagebuilder_layout         { overflow-x: hidden; }

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
: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);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes ap-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ap-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes ap-glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.85; transform: scale(1.12); }
}

@keyframes ap-bounce-line {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

@keyframes ap-border-pulse {
  0%, 100% { border-color: rgba(254, 0, 0, 0.4); box-shadow: 0 0 20px rgba(254,0,0,0.12); }
  50%       { border-color: rgba(254, 0, 0, 0.75); box-shadow: 0 0 40px rgba(254,0,0,0.28); }
}

@keyframes ap-hero-grain {
  0%, 100% { transform: translate(0, 0); }
  10%       { transform: translate(-2%, -1%); }
  30%       { transform: translate(1%, -2%); }
  50%       { transform: translate(-1%, 2%); }
  70%       { transform: translate(2%, 1%); }
  90%       { transform: translate(-2%, -2%); }
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary) !important;
  background-color: var(--color-black) !important;
  color: var(--color-white) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  animation: ap-hero-grain 8s steps(10) infinite;
  mix-blend-mode: overlay;
}

img { max-width: 100%; height: auto; display: block; }

/* WebP-Hülle (<picture>) soll das Layout nicht verändern: das <img> verhält sich wie zuvor */
.ap-picture { display: contents; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }

/* Admin bar offset */
.admin-bar .ap-header { top: 32px !important; }
@media screen and (max-width: 782px) {
  .admin-bar .ap-header { top: 46px !important; }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.ap-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.ap-section { padding: var(--space-xl) 0; position: relative; }
/* Sprungmarken aus dem Footer (/#anlaesse, /#feuerwerksarten): Platz für den festen Seitenkopf */
.ap-section[id] { scroll-margin-top: calc(var(--header-height) - 40px); }
.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;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.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; }

/* ============================================================
   HEADER
   ============================================================ */
.ap-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  /* Gesamthöhe = Inhaltshöhe + Safe-Area-Inset (Dynamic Island / Notch) */
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  background: transparent;
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
  border-bottom: 1px solid transparent;
}

.ap-header.is-scrolled {
  background: rgba(4, 4, 4, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 var(--color-border), 0 8px 32px rgba(0,0,0,0.4);
  border-bottom-color: var(--color-border);
}

.ap-header__inner {
  max-width: 1340px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.ap-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.ap-header__logo img { height: 100px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }

.ap-nav { display: flex; align-items: center; }

.ap-nav__toggle {
  display: flex; /* Standardmäßig sichtbar – Burger unter Full HD */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 201;
}

.ap-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.ap-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ap-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ap-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Standard: Overlay-Menü (aktiv bis Full HD = 1919px) */
.ap-nav__menu {
  position: fixed;
  top: calc(var(--header-height) + var(--safe-top));
  left: 0; right: 0; bottom: 0;
  background: rgba(4, 4, 4, 0.97);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 2rem;
  gap: 0.25rem;
  display: none;
  z-index: 199;
}

.ap-nav__menu.is-open { display: flex; }

/* BL-002: Bei geöffnetem Menü braucht der Header eine deckende Fläche,
   sonst bleibt der Streifen über dem Overlay transparent (Logo wirkt abgeschnitten,
   Hero scheint durch). Klasse ap-nav-open wird in main.js am body gesetzt. */
body.ap-nav-open .ap-header {
  background: rgba(4, 4, 4, 0.97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: var(--color-border);
}

/* BL-002: Adminbar verschiebt den Header (top: 32px/46px), das Overlay muss mitziehen */
body.admin-bar .ap-nav__menu { top: calc(var(--header-height) + var(--safe-top) + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .ap-nav__menu { top: calc(var(--header-height) + var(--safe-top) + 46px); }
}

.ap-nav__menu a {
  display: block;
  padding: 0.875rem 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
  width: 100%;
  text-align: center;
}
.ap-nav__menu a::after { display: none; }
.ap-header__cta { display: none; }

.ap-nav__menu a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.65rem; right: 0.65rem;
  height: 1px;
  background: var(--color-red);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.ap-nav__menu a:hover { color: var(--color-white); background: rgba(255,255,255,0.06); }
.ap-nav__menu a:hover::after { transform: scaleX(1); }

.ap-nav__shop {
  color: var(--color-red) !important;
  background: transparent !important;
  border: 1px solid rgba(254,0,0,0.5) !important;
  border-radius: var(--radius-sm);
  padding: 0.4rem 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  transition: color var(--transition), border-color var(--transition), background var(--transition) !important;
}
.ap-nav__shop:hover {
  color: var(--color-white) !important;
  background: rgba(254,0,0,0.15) !important;
  border-color: var(--color-red) !important;
}
.ap-nav__shop::after { display: none !important; }
.ap-nav__menu li.current-menu-item > a { color: var(--color-white); }

/* Aktive Seite rot hervorheben */
.ap-nav__menu a.is-active { color: var(--color-red); }
.ap-nav__menu a.is-active::after { display: block; transform: scaleX(1); }
.ap-nav__menu a.is-active:hover { color: var(--color-red); }

.ap-header__cta { padding: 0.6rem 1.2rem; font-size: 0.85rem; flex-shrink: 0; }

/* ── Full HD (≥ 1920px): Vollständiges horizontales Menü ── */
@media (min-width: 1920px) {
  .ap-nav__toggle { display: none; }

  .ap-nav__menu {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    gap: 0;
    z-index: auto;
    top: auto; left: auto; right: auto; bottom: auto;
  }

  .ap-nav__menu a {
    padding: 0.4rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    width: auto;
    text-align: left;
  }

  .ap-nav__menu a::after { display: block; }
  .ap-header__cta { display: inline-flex; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.ap-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-black);
  padding: calc(var(--header-height) + var(--safe-top)) var(--container-padding) 0;
}

.ap-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(254,0,0,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 25%, rgba(254,0,0,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 15%, rgba(180,0,0,0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.ap-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.008) 3px, rgba(255,255,255,0.008) 4px);
  pointer-events: none;
  z-index: 1;
}

.ap-hero .ap-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: ap-glow-pulse 6s ease-in-out infinite;
}

.ap-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.25;
  z-index: 0;
  filter: saturate(0.6);
}

.ap-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-xl) 0;
  animation: ap-fade-up 1s cubic-bezier(0.4, 0, 0.2, 1) both;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ap-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 1.75rem;
  text-shadow: 0 0 16px rgba(254,0,0,0.6);
}

.ap-hero__eyebrow::before,
.ap-hero__eyebrow::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-red));
}
.ap-hero__eyebrow::after { background: linear-gradient(90deg, var(--color-red), transparent); }

.ap-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
}

.ap-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #ff4040 0%, #fe0000 40%, #c00000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ap-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.85;
  color: rgba(201,205,211,0.85);
  margin: 0 auto 2.75rem;
  max-width: 560px;
}

.ap-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.ap-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: rgba(201,205,211,0.75);
}

.ap-hero__trust-item::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--color-red-subtle);
  border: 1px solid var(--color-border-red);
  border-radius: 50%;
  color: var(--color-red);
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ap-hero__scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  color: rgba(141,145,153,0.6);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: ap-bounce-line 2.8s ease-in-out infinite;
}

.ap-hero__scroll::after {
  content: '';
  display: block;
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(141,145,153,0.5), transparent);
}

/* ============================================================
   INTRO / ABOUT
   ============================================================ */
.ap-intro { background: linear-gradient(180deg, var(--color-dark) 0%, #0d0d0d 100%); }

.ap-intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
}

.ap-intro__text .ap-section-label,
.ap-intro__text .ap-section-title { text-align: center; }

.ap-intro__text .ap-section-label { justify-content: center; }
.ap-intro__text .ap-section-label::before { display: block; }

.ap-intro__text p {
  color: rgba(201,205,211,0.8);
  line-height: 1.9;
  margin: 0 0 1.25rem;
  font-size: 0.975rem;
  text-align: center;
}

.ap-intro__trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ap-trust-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-slow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.ap-trust-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(254,0,0,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.ap-trust-box:hover { border-color: var(--color-border-red); transform: translateY(-4px); box-shadow: var(--shadow-glow-sm), var(--shadow-card); }
.ap-trust-box:hover::before { opacity: 1; }

.ap-trust-box__icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; filter: drop-shadow(0 0 8px rgba(254,0,0,0.3)); }
.ap-trust-box__title { font-size: 0.875rem; font-weight: 700; color: var(--color-white); margin: 0 0 0.25rem; }
.ap-trust-box__text  { font-size: 0.8rem; color: var(--color-gray); margin: 0; line-height: 1.55; }

/* ============================================================
   OCCASIONS / ANLÄSSE
   ============================================================ */
.ap-occasions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.ap-occasion-card {
  background: rgba(17,17,17,0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
  backdrop-filter: blur(8px);
}

.ap-occasion-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-red), transparent);
  transform: scaleX(0);
  transition: transform var(--transition-slow);
}

.ap-occasion-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-red-subtle), transparent);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.ap-occasion-card:hover { border-color: var(--color-border-red); transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.ap-occasion-card:hover::before { transform: scaleX(1); }
.ap-occasion-card:hover::after  { opacity: 1; }

.ap-occasion-card__icon  { font-size: 2rem; margin-bottom: 1rem; display: block; position: relative; z-index: 1; }
/* Linien-Icons im gleichen Kästchen wie Feuerwerksarten und Vorteile; Emojis bleiben frei stehend */
.ap-occasion-card__icon:has(.ap-ico) {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(254,0,0,0.08);
  border: 1px solid rgba(254,0,0,0.18);
  transition: background var(--transition), box-shadow var(--transition);
}
.ap-occasion-card:hover .ap-occasion-card__icon:has(.ap-ico) { background: rgba(254,0,0,0.14); box-shadow: 0 0 16px rgba(254,0,0,0.2); }
.ap-occasion-card__icon .ap-ico { display: block; width: 32px; height: 32px; color: var(--color-white); }
.ap-occasion-card__title { font-size: 1.05rem; font-weight: 700; color: var(--color-white); margin: 0 0 0.6rem; position: relative; z-index: 1; }
.ap-occasion-card__text  { font-size: 0.875rem; color: var(--color-gray); line-height: 1.78; margin: 0 0 1.25rem; position: relative; z-index: 1; }

.ap-occasion-card__link {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-red);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}
.ap-occasion-card__link:hover { gap: 0.75rem; text-shadow: 0 0 12px rgba(254,0,0,0.5); }
.ap-occasion-card__link::after { content: '→'; }

/* ============================================================
   SERVICES
   ============================================================ */
.ap-services-grid {
  /* Bis zu drei Karten je Reihe; eine unvollständige letzte Reihe steht mittig
     (5 Karten = 3 + 2). Unter 1024 px zwei, unter 640 px eine Spalte */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.ap-services-grid > .ap-service-item { flex: 1 1 280px; max-width: calc((100% - 2.5rem) / 3); }
/* Genau vier Karten: auf dem Desktop alle in einer Reihe statt 3 + 1 */
@media (min-width: 1025px) { .ap-services-grid:has(> .ap-service-item:nth-child(4):last-child) > .ap-service-item { flex: 1 1 0; max-width: calc((100% - 3.75rem) / 4); } }
@media (max-width: 1024px) { .ap-services-grid > .ap-service-item { max-width: calc((100% - 1.25rem) / 2); } }
@media (max-width: 640px)  { .ap-services-grid > .ap-service-item { max-width: 100%; } }

.ap-service-item {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.ap-service-item::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(254,0,0,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.ap-service-item:hover { background: rgba(254,0,0,0.04); border-color: var(--color-border-red); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.ap-service-item:hover::before { opacity: 1; }

.ap-service-item__icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(254,0,0,0.08);
  border: 1px solid rgba(254,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.ap-service-item:hover .ap-service-item__icon { background: rgba(254,0,0,0.14); box-shadow: 0 0 16px rgba(254,0,0,0.2); }
.ap-service-item__icon .ap-ico { width: 32px; height: 32px; color: var(--color-white); }

.ap-service-item__title { font-size: 1rem; font-weight: 700; color: var(--color-white); margin: 0 0 0.625rem; }
.ap-service-item__text  { font-size: 0.875rem; color: var(--color-gray); line-height: 1.78; margin: 0; }

/* ── Über uns: Einleitung mit Werten (links) und Profilkarte (rechts) ── */
.ap-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.ap-about-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.ap-about-value {
  position: relative;
  padding: 1.35rem 1.4rem 1.4rem;
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}
.ap-about-value::before {
  content: '';
  position: absolute;
  top: 1.55rem; left: 0;
  width: 3px; height: 1.1rem;
  background: var(--color-red);
  border-radius: 0 2px 2px 0;
}
.ap-about-value:hover { border-color: var(--color-border-red); transform: translateY(-2px); }
/* Divi gibt jedem <p> padding-bottom: 1em, die Abstände regeln hier die margins */
.ap-about-value p,
.ap-about-visual p { padding-bottom: 0; }
/* Ungerade Anzahl Werte: letzter Wert über volle Breite statt Lücke */
.ap-about-value:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ap-about-value__title { font-size: 1rem; font-weight: 700; color: var(--color-white); line-height: 1.4; margin: 0 0 0.4rem; }
.ap-about-value__text  { font-size: 0.875rem; color: var(--color-gray); line-height: 1.7; margin: 0; }

.ap-about-visual {
  position: sticky;
  top: calc(var(--header-height) + var(--safe-top) + 2rem);
  padding: 2.75rem 2rem 2rem;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(254,0,0,0.14) 0%, transparent 70%),
    var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ap-about-visual::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-red), transparent);
}
.ap-about-visual__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px; height: 88px;
  margin-bottom: 1.25rem;
  font-size: 2.75rem;
  line-height: 1;
  border-radius: 50%;
  background: rgba(254,0,0,0.08);
  border: 1px solid var(--color-border-red);
  box-shadow: 0 0 40px rgba(254,0,0,0.18);
}
/* Kein Emoji im Plugin gepflegt: keinen leeren Kreis zeigen */
.ap-about-visual__emoji:empty { display: none; }
.ap-about-visual__name { font-size: 1.5rem; font-weight: 800; color: var(--color-white); letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.ap-about-visual__role { font-size: 0.9rem; color: var(--color-light-gray); line-height: 1.7; margin: 0; }
.ap-about-visual__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.ap-about-visual__contact-item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--color-gray); margin: 0; }
/* Telefon/E-Mail im Plugin leer: Zeile samt Icon ausblenden */
.ap-about-visual__contact-item:not(:has(a)) { display: none; }
.ap-about-visual__contact-item a { color: var(--color-white); font-weight: 600; }
.ap-about-visual__contact-item a:hover { color: var(--color-red); }

@media (max-width: 1024px) {
  .ap-about-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .ap-about-visual { position: relative; top: auto; width: 100%; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .ap-about-values { grid-template-columns: 1fr; }
  .ap-about-visual { padding: 2.25rem 1.5rem 1.75rem; }
}

/* ── Team-Sektion (Über uns): max. 2 Personen nebeneinander ── */
.ap-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 940px;
  margin: 0 auto;
}
.ap-team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, var(--color-dark) 55%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}
/* roter Akzentstreifen oben, der bei Hover erscheint */
.ap-team-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--color-red), #ff5a5a);
  opacity: 0; transform: scaleX(0); transform-origin: left;
  transition: opacity var(--transition), transform var(--transition-slow);
  z-index: 2;
}
.ap-team-card:hover { transform: translateY(-5px); border-color: var(--color-border-red); box-shadow: var(--shadow-card); }
.ap-team-card:hover::before { opacity: 1; transform: scaleX(1); }

.ap-team-card__photo { position: relative; aspect-ratio: 4 / 5; background: #0d0d0d; overflow: hidden; }
.ap-team-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.2,0.8,0.2,1); }
.ap-team-card:hover .ap-team-card__photo img { transform: scale(1.06); }
/* sanfter Verlauf von Foto in die Karte */
.ap-team-card__photo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(180deg, transparent 0%, rgba(22,22,22,0.85) 100%);
  pointer-events: none;
}

.ap-team-card__body { position: relative; padding: 1.75rem; z-index: 1; }
/* Body nur dann über das Foto ziehen, wenn auch ein Foto vorhanden ist */
.ap-team-card__photo + .ap-team-card__body { margin-top: -2.5rem; }
.ap-team-card__name { font-size: 1.4rem; font-weight: 800; color: var(--color-white); margin: 0 0 0.35rem; letter-spacing: -0.02em; line-height: 1.15; }
.ap-team-card__role {
  display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--color-red);
  text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 1.1rem;
  padding: 0.3rem 0.7rem; border: 1px solid var(--color-border-red);
  border-radius: 999px; background: rgba(254,0,0,0.07);
}
.ap-team-card__text { font-size: 0.92rem; color: var(--color-light-gray); line-height: 1.8; margin: 0 0 1.4rem; }

/* Qualifikations-Badges: Icon + Text als Pill */
.ap-team-card__badges { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.ap-team-card__badge {
  display: inline-flex; align-items: center; gap: 0.65rem; align-self: flex-start;
  max-width: 100%;
  padding: 0.5rem 0.9rem 0.5rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.ap-team-card__badge:hover { background: rgba(254,0,0,0.08); border-color: var(--color-border-red); transform: translateX(3px); }
.ap-team-card__badge-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(254,0,0,0.12); font-size: 1rem; line-height: 1;
}
.ap-team-card__badge-label { font-size: 0.82rem; font-weight: 600; color: var(--color-light-gray); line-height: 1.35; }
/* Linien-Icons im Badge: gleiche Optik wie die übrigen Icon-Kästchen der Seite */
.ap-team-card__badge-icon:has(.ap-ico) { background: var(--color-red-subtle); box-shadow: inset 0 0 0 1px var(--color-border-red); color: var(--color-white); }
.ap-team-card__badge-icon .ap-ico { width: 17px; height: 17px; }

@media (max-width: 768px) { .ap-team-grid { grid-template-columns: 1fr; } }
/* Ungerade Personenzahl: letzte Karte mittig statt allein links */
@media (min-width: 769px) {
  .ap-team-grid > .ap-team-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 1.75rem) / 2);
  }
}

/* ============================================================
   WHY US
   ============================================================ */
.ap-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.ap-why-item { display: flex; gap: 1.25rem; align-items: flex-start; transition: transform var(--transition); }
.ap-why-item:hover { transform: translateX(4px); }

.ap-why-item__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(254,0,0,0.08);
  border: 1px solid rgba(254,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
  transition: all var(--transition);
}

.ap-why-item:hover .ap-why-item__icon { background: rgba(254,0,0,0.15); box-shadow: 0 0 20px rgba(254,0,0,0.2); }
.ap-why-item__icon .ap-ico { width: 30px; height: 30px; color: var(--color-white); }

/* Genau vier Vorteile (z. B. Landingpages): 2 × 2 statt 3 + 1 einzelne Kachel */
@media (min-width: 1025px) {
  .ap-why-grid:has(> .ap-why-item:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin-left: auto; margin-right: auto; }
}

.ap-why-item__title { font-size: 1rem; font-weight: 700; color: var(--color-white); margin: 0 0 0.375rem; }
.ap-why-item__text  { font-size: 0.875rem; color: var(--color-gray); line-height: 1.78; margin: 0; }

/* ============================================================
   PACKAGES
   ============================================================ */
.ap-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.ap-package-card {
  background: rgba(17,17,17,0.9);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-slow);
  backdrop-filter: blur(12px);
}

.ap-package-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.ap-package-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(255,255,255,0.12); }

.ap-package-card--featured {
  border-color: rgba(254,0,0,0.45);
  background: linear-gradient(160deg, rgba(28,0,0,0.95) 0%, rgba(17,17,17,0.95) 60%);
  animation: ap-border-pulse 3s ease-in-out infinite;
}

.ap-package-card--featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 0%, rgba(254,0,0,0.1) 0%, transparent 65%);
  pointer-events: none;
}

/* Badge als eigenes Element, Text aus dem Plugin (Pakete → Hervorhebung und Button) */
.ap-package-card__badge {
  position: absolute;
  z-index: 1;
  top: -1px; right: 1.75rem;
  background: linear-gradient(135deg, #fe0000, #c00000);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 4px 12px rgba(254,0,0,0.4);
}

.ap-package-card--featured:hover { box-shadow: var(--shadow-glow-lg); transform: translateY(-8px); }

.ap-package-card__name    { font-size: 1.4rem; font-weight: 800; color: var(--color-white); margin: 0 0 0.375rem; letter-spacing: -0.02em; }
.ap-package-card__price   { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.15rem 0 0.25rem; line-height: 1.1; padding: 0; }
.ap-package-card__price-note { margin: 0 0 0.6rem; padding: 0; font-size: 0.75rem; color: var(--color-gray); }
.ap-package-card__price-prefix { font-size: 0.9rem; font-weight: 600; color: var(--color-gray); }
.ap-package-card__price-value  { font-size: clamp(1.8rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--color-white); font-variant-numeric: tabular-nums; }
.ap-package-card--featured .ap-package-card__price-value { text-shadow: 0 0 24px rgba(254,0,0,0.35); }
.ap-package-card__tagline { font-size: 0.875rem; color: var(--color-gray); margin: 0 0 1.75rem; }

.ap-package-specs { margin: 0 0 1.5rem; }

.ap-package-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border);
}
.ap-package-spec:first-child { border-top: 1px solid var(--color-border); }
.ap-package-spec__label { flex-shrink: 0; margin: 0; font-size: 0.8rem; color: var(--color-gray); }
.ap-package-spec__value { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--color-light-gray); text-align: right; }

.ap-package-features { list-style: none; padding: 0; margin: 0 0 2rem; }

.ap-package-features li {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.875rem; color: var(--color-light-gray);
  padding: 0.4rem 0; border-bottom: 1px solid var(--color-border); line-height: 1.5;
}
.ap-package-features li:last-child { border-bottom: none; }
.ap-package-features li::before { content: '✓'; color: var(--color-red); font-weight: 700; flex-shrink: 0; margin-top: 1px; text-shadow: 0 0 8px rgba(254,0,0,0.4); }

/* Zusatzoption (z. B. Spezialeffekte gegen Aufpreis) */
.ap-package-option {
  margin: -0.5rem 0 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(254,0,0,0.45);
  border-radius: var(--radius-md);
  background: rgba(254,0,0,0.06);
}
.ap-package-option__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin: 0 0 0.75rem; }
.ap-package-option__label {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
.ap-package-option__title { font-size: 0.95rem; font-weight: 700; color: var(--color-white); }
.ap-package-option__price { margin-left: auto; font-size: 0.95rem; font-weight: 800; color: var(--color-white); white-space: nowrap; }
.ap-package-option__text  { margin: 0.3rem 0 0; font-size: 0.82rem; line-height: 1.6; color: var(--color-light-gray); }
/* Mehrere Optionen als Liste mit feinen Trennlinien */
/* Divi setzt Listenpunkte und Absatz-Innenabstände: hier beides zurücksetzen */
.ap-package-option__list { list-style: none; margin: 0; padding: 0; }
.ap-package-option__item { list-style: none; margin: 0; padding: 0; }
.ap-package-option p { padding: 0; }
.ap-package-option__item + .ap-package-option__item { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(254,0,0,0.18); }
.ap-package-option__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; margin: 0; }
.ap-package-option__title::before { content: '+'; margin-right: 0.4rem; font-weight: 800; color: var(--color-red); }

.ap-package-card .ap-btn-primary,
.ap-package-card .ap-btn-secondary { width: 100%; justify-content: center; }
.ap-package-card__cta { margin-top: auto; }

/* ============================================================
   PROCESS STEPS — Modern Card Redesign
   ============================================================ */
.ap-process-steps {
  counter-reset: ap-step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.875rem;
  position: relative;
  align-items: stretch;
}

/* Top progress track */
.ap-process-steps::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--color-red) 0%,
    rgba(254,0,0,0.6) 60%,
    rgba(254,0,0,0.15) 100%);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}

.ap-process-step {
  counter-increment: ap-step;
  position: relative;
  background: linear-gradient(160deg, rgba(30,8,8,0.75) 0%, rgba(18,18,18,0.9) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem 1.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.42s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.42s cubic-bezier(0.16,1,0.3,1),
              border-color 0.2s ease;
}

/* Glowing top border on hover */
.ap-process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.ap-process-step:hover::before { transform: scaleX(1); }

/* Step badge — CSS counter */
.ap-process-step::after {
  content: 'Schritt ' counter(ap-step);
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-red);
  background: rgba(254,0,0,0.08);
  border: 1px solid rgba(254,0,0,0.22);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 1.1rem;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1;
}

/* Ghost number */
.ap-process-step__number {
  position: absolute;
  bottom: -0.75rem;
  right: 0.5rem;
  font-size: 5.5rem;
  font-weight: 900;
  color: rgba(254,0,0,0.06);
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  height: auto;
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  display: block;
  z-index: 0;
}

/* Shift title down to leave room for the badge */
.ap-process-step__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 2.25rem 0 0.625rem;
  position: relative;
  z-index: 1;
  line-height: 1.35;
}

.ap-process-step__text {
  font-size: 0.8rem;
  color: var(--color-gray);
  line-height: 1.78;
  margin: 0;
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Hover lift + red edge glow */
.ap-process-step:hover {
  transform: translateY(-7px);
  border-color: rgba(254,0,0,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55),
              0 0 0 1px rgba(254,0,0,0.15),
              0 0 40px rgba(254,0,0,0.06);
}

/* ============================================================
   CONTACT CTA
   ============================================================ */
.ap-contact-cta { position: relative; text-align: center; overflow: hidden; }

.ap-contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(254,0,0,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(254,0,0,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(254,0,0,0.05) 0%, transparent 55%);
  pointer-events: none;
}

.ap-contact-cta::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-red), transparent);
}

.ap-contact-cta > .ap-container { position: relative; z-index: 1; }

.ap-contact-cta__eyebrow {
  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-contact-cta__eyebrow::before,
.ap-contact-cta__eyebrow::after { content: ''; display: block; width: 24px; height: 1px; background: var(--color-red); opacity: 0.6; }

.ap-contact-cta__title { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; color: var(--color-white); margin: 0 0 1.25rem; letter-spacing: -0.025em; }
.ap-contact-cta__text  { font-size: 1.05rem; color: var(--color-gray); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.9; }

.ap-contact-details {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem; padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.ap-contact-detail { text-align: center; }
.ap-contact-detail__label { font-size: 0.65rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--color-gray); margin-bottom: 0.375rem; }
.ap-contact-detail__value { font-size: 1rem; font-weight: 700; color: var(--color-white); }
.ap-contact-detail__value a { color: var(--color-white); }
.ap-contact-detail__value a:hover { color: var(--color-red); }

/* ============================================================
   CONTACT FORM (CF7)
   ============================================================ */
.ap-contact-wrap { max-width: 700px; margin: 0 auto; text-align: left; }

/* wpcf7-form ist jetzt Block – internes Grid übernimmt ap-cf7-grid */
.ap-contact-wrap .wpcf7-form { display: block; }
.ap-contact-wrap .wpcf7-form p { margin: 0; }
.ap-field-full { grid-column: 1 / -1; }

/* Internes Formular-Grid */
.ap-cf7-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ap-cf7-field { display: flex; flex-direction: column; gap: 0.4rem; }
.ap-cf7-field--half { grid-column: span 1; }
.ap-cf7-field--full { grid-column: 1 / -1; }

.ap-cf7-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-light-gray);
  letter-spacing: 0.3px;
}
.ap-cf7-required { color: var(--color-red); margin-left: 2px; }

/* Submit-Bereich – immer unterhalb des Grids, volle Breite */
.ap-cf7-submit { width: 100%; }
.ap-cf7-submit .wpcf7-submit { width: 100%; }

.ap-contact-wrap input[type="text"],
.ap-contact-wrap input[type="email"],
.ap-contact-wrap input[type="tel"],
.ap-contact-wrap select,
.ap-contact-wrap textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  padding: 0.875rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  backdrop-filter: blur(8px);
}

.ap-contact-wrap input:focus,
.ap-contact-wrap select:focus,
.ap-contact-wrap textarea:focus { outline: none; border-color: var(--color-red); background: rgba(254,0,0,0.04); box-shadow: 0 0 0 3px rgba(254,0,0,0.1); }

.ap-contact-wrap input::placeholder,
.ap-contact-wrap textarea::placeholder { color: var(--color-gray); }
.ap-contact-wrap select { color: var(--color-light-gray); }
.ap-contact-wrap select option { background: #111; color: var(--color-white); }
.ap-contact-wrap textarea { height: 140px; resize: vertical; }

.ap-contact-wrap .wpcf7-submit {
  width: 100%;
  background: linear-gradient(135deg, #fe0000 0%, #c80000 100%);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 16px rgba(254,0,0,0.3);
}
.ap-contact-wrap .wpcf7-submit:hover { background: linear-gradient(135deg, #ff2020 0%, #e00000 100%); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(254,0,0,0.4); }

/* Datenschutz-Zustimmung */
.ap-cf7-consent { margin-bottom: 1.25rem; }
.ap-cf7-consent .wpcf7-list-item { margin: 0; }
.ap-cf7-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-light-gray);
  cursor: pointer;
}
.ap-cf7-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  accent-color: var(--color-red);
  cursor: pointer;
}
.ap-cf7-consent a { color: var(--color-white); text-decoration: underline; text-underline-offset: 2px; }
.ap-cf7-consent a:hover { color: var(--color-red); }

/* Honeypot: für Menschen unsichtbar, muss aber im DOM bleiben (kein display:none), damit Bots es ausfüllen */
.ap-cf7-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   FEUERWERK-KONFIGURATOR ([ap_konfigurator])
   Ohne JavaScript stehen alle Schritte untereinander; mit JS (.ap-konf--js)
   ist immer nur ein Schritt sichtbar.
   ============================================================ */
.ap-konf { position: relative; max-width: 920px; margin: 0 auto; text-align: left; }
.ap-konf p { padding-bottom: 0; }

.ap-konf__progress { display: flex; gap: 0.5rem; list-style: none; margin: 0 0 1.75rem; padding: 0; }
.ap-konf:not(.ap-konf--js) .ap-konf__progress { display: none; }
.ap-konf__progress-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-dark);
  color: var(--color-gray);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition);
}
.ap-konf__progress-num {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 26px; height: 26px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 0.8rem;
}
.ap-konf__progress-item.is-active { border-color: var(--color-border-red); color: var(--color-white); }
.ap-konf__progress-item.is-active .ap-konf__progress-num { background: var(--color-red); border-color: var(--color-red); color: var(--color-white); }
.ap-konf__progress-item.is-done { color: var(--color-light-gray); }
.ap-konf__progress-item.is-done .ap-konf__progress-num { background: rgba(254,0,0,0.15); border-color: var(--color-border-red); color: var(--color-white); }

.ap-konf__step {
  min-width: 0;
  margin: 0 0 1.5rem;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-dark);
}
.ap-konf__step[hidden], .ap-konf [hidden] { display: none !important; }
.ap-konf__step:focus { outline: none; }
/* legend verhält sich mit float wie eine normale Überschrift im fieldset */
.ap-konf__title {
  float: left;
  width: 100%;
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-white);
}
.ap-konf__count { display: block; margin-bottom: 0.5rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--color-red); }
.ap-konf__text { clear: both; margin: 0 0 1.5rem; color: var(--color-gray); line-height: 1.7; }

.ap-konf__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.9rem; }
.ap-konf__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
/* Radio bleibt fokussier- und per Tastatur bedienbar, ist aber unsichtbar */
.ap-konf__tile input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.ap-konf__tile:hover { border-color: var(--color-border-red); transform: translateY(-2px); }
.ap-konf__tile:has(input:checked) { border-color: var(--color-red); background: rgba(254,0,0,0.08); box-shadow: inset 0 0 0 1px var(--color-red); }
.ap-konf__tile:has(input:focus-visible) { outline: 2px solid var(--color-red); outline-offset: 3px; }
.ap-konf__tile:has(input:checked)::after {
  content: '✓';
  position: absolute; top: 0.7rem; right: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.75rem; font-weight: 700;
}
.ap-konf__tile:has(input[aria-invalid="true"]) { border-color: rgba(255,107,107,0.5); }
.ap-konf__tile-icon { font-size: 1.6rem; line-height: 1; }
.ap-konf__tile-icon .ap-ico { display: block; width: 34px; height: 34px; margin-left: -3px; color: var(--color-white); }
.ap-konf__tile-title { padding-right: 1.5rem; font-size: 0.98rem; font-weight: 700; color: var(--color-white); }
/* Lange Wörter (z. B. „Außergewöhnliches") trennen statt über den Kachelrand zu laufen */
.ap-konf__tile-title { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; min-width: 0; }
.ap-konf__tile-text { font-size: 0.82rem; line-height: 1.5; color: var(--color-gray); }

.ap-konf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.ap-konf__field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.ap-konf__field--full { grid-column: 1 / -1; }
.ap-konf__label { font-size: 0.8rem; font-weight: 600; color: var(--color-light-gray); }
.ap-konf__optional { font-weight: 400; color: var(--color-gray); }
.ap-konf input[type="text"],
.ap-konf input[type="email"],
.ap-konf input[type="tel"],
.ap-konf select,
.ap-konf textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  -webkit-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ap-konf select { color: var(--color-light-gray); }
.ap-konf select option { background: #111; color: var(--color-white); }
.ap-konf textarea { min-height: 120px; resize: vertical; }
.ap-konf input::placeholder, .ap-konf textarea::placeholder { color: var(--color-gray); }
.ap-konf input:focus, .ap-konf select:focus, .ap-konf textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(254,0,0,0.12);
}
.ap-konf [aria-invalid="true"]:not([type="radio"]) { border-color: #ff6b6b; }
.ap-konf__hint { margin: 0; font-size: 0.8rem; color: var(--color-gray); }
.ap-konf__error { margin: 0.5rem 0 0; font-size: 0.82rem; font-weight: 600; color: #ff6b6b; }

.ap-konf__consent { margin: 1.5rem 0 0; }
.ap-konf__consent label { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.85rem; line-height: 1.6; color: var(--color-light-gray); cursor: pointer; }
.ap-konf__consent input { flex-shrink: 0; width: 1.125rem; height: 1.125rem; margin: 0.2rem 0 0; accent-color: var(--color-red); }
.ap-konf__consent a { color: var(--color-white); text-decoration: underline; text-underline-offset: 2px; }

.ap-konf__summary {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--color-border-red);
  border-radius: var(--radius-md);
  background: rgba(254,0,0,0.05);
}
.ap-konf__summary-title { margin: 0 0 0.6rem; font-weight: 700; color: var(--color-white); }
.ap-konf__summary dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1.25rem; margin: 0; font-size: 0.9rem; }
.ap-konf__summary dt { color: var(--color-gray); }
.ap-konf__summary dd { margin: 0; color: var(--color-white); overflow-wrap: anywhere; }

.ap-konf__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.ap-konf__nav .ap-btn-primary { margin-left: auto; }
.ap-konf button.ap-btn-primary,
.ap-konf button.ap-btn-secondary { font-family: var(--font-primary); cursor: pointer; }
.ap-konf button[disabled] { opacity: 0.7; cursor: wait; transform: none; }
/* Ohne JavaScript gibt es keine Schritte, nur den Absende-Button */
.ap-konf:not(.ap-konf--js) [data-konf-next],
.ap-konf:not(.ap-konf--js) [data-konf-back] { display: none; }

.ap-konf__alert {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--color-red);
  border-radius: var(--radius-sm);
  background: rgba(254,0,0,0.08);
  color: var(--color-white);
}

.ap-konf__success {
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--color-border-red);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(254,0,0,0.14) 0%, transparent 70%),
    var(--color-dark);
}
.ap-konf__success:focus { outline: none; }
.ap-konf__success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 1.8rem; font-weight: 800;
  box-shadow: 0 0 40px rgba(254,0,0,0.35);
}
.ap-konf__success-title { margin: 0 0 0.75rem; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--color-white); }
.ap-konf__success > p { max-width: 560px; margin: 0 auto; color: var(--color-light-gray); line-height: 1.8; }
.ap-konf__success .ap-konf__summary { max-width: 520px; margin: 1.75rem auto; text-align: left; }
.ap-konf__direct { margin-top: 1.5rem !important; font-weight: 600; color: var(--color-gray) !important; }
.ap-konf__direct a { color: var(--color-white); }
.ap-konf__direct a:hover { color: var(--color-red); }

/* Effekte: Kacheln mit Illustration, Mehrfachauswahl */
.ap-konf__tiles--fx { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
.ap-konf__tile--fx { gap: 0.3rem; padding: 0.55rem 0.55rem 0.95rem; }
.ap-konf__tile--fx .ap-konf__tile-title,
.ap-konf__tile--fx .ap-konf__tile-text { padding: 0 0.4rem; }
.ap-konf__tile--fx .ap-konf__tile-text { font-size: 0.78rem; }
.ap-konf__fx-visual {
  display: block;
  overflow: hidden;
  margin-bottom: 0.35rem;
  aspect-ratio: 16 / 11;
  border-radius: calc(var(--radius-md) - 4px);
  background: radial-gradient(ellipse at 50% 40%, #1c0a0a 0%, #0a0a0a 70%);
}
.ap-konf__fx-visual svg,
.ap-konf__fx-visual .ap-konf__fx-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-fx { opacity: 0.8; transition: opacity var(--transition); }
.ap-konf__tile--fx:hover .ap-fx,
.ap-konf__tile--fx:has(input:checked) .ap-fx,
.ap-konf__tile--fx:has(input:focus-visible) .ap-fx { opacity: 1; }
/* Checkbox statt Radio: das Häkchen kennzeichnet jede gewählte Kachel */
.ap-konf__tile--fx:has(input:checked)::after { top: 0.95rem; right: 0.95rem; box-shadow: 0 0 0 2px rgba(0,0,0,0.5); }
@media (prefers-reduced-motion: no-preference) {
  .ap-konf__tile--fx:hover .ap-fx__burst,
  .ap-konf__tile--fx:has(input:checked) .ap-fx__burst,
  .ap-konf__tile--fx:has(input:focus-visible) .ap-fx__burst { animation: ap-fx-bloom 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .ap-konf__tile--fx:hover .ap-fx__tw,
  .ap-konf__tile--fx:has(input:checked) .ap-fx__tw { animation: ap-fx-twinkle 1.2s ease-in-out infinite alternate; }
}
@keyframes ap-fx-bloom {
  from { transform: scale(0.35); opacity: 0; }
  55%  { opacity: 1; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes ap-fx-twinkle {
  from { opacity: 1; }
  to   { opacity: 0.2; }
}

/* Karte im Schritt „Rahmen" (nur mit JavaScript) */
.ap-konf__map { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.ap-konf:not(.ap-konf--js) .ap-konf__map { display: none; }
.ap-konf__map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem; margin-bottom: 0.9rem; }
.ap-konf__map-status { flex: 1 1 320px; margin: 0; font-size: 0.85rem; line-height: 1.6; color: var(--color-light-gray); }
.ap-konf__map-btn,
.ap-konf__map-choice {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.ap-konf__map-btn::before { content: ''; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; background: var(--color-red); transform: rotate(-45deg); }
.ap-konf__map-btn:hover, .ap-konf__map-choice:hover { border-color: var(--color-border-red); background: rgba(254,0,0,0.08); }
.ap-konf__map-btn:focus-visible, .ap-konf__map-choice:focus-visible, .ap-konf__map-clear:focus-visible { outline: 2px solid var(--color-red); outline-offset: 2px; }
.ap-konf__map-btn[disabled] { opacity: 0.6; cursor: wait; }
.ap-konf__map-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.9rem; }
.ap-konf__map-choice { padding: 0.45rem 0.8rem; font-size: 0.78rem; font-weight: 500; color: var(--color-light-gray); text-align: left; }
.ap-konf__map-choice.is-active { border-color: var(--color-red); color: var(--color-white); background: rgba(254,0,0,0.1); }
.ap-konf__map-canvas {
  position: relative;
  z-index: 0;
  height: 320px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #0d0d0d;
}
.ap-konf__map.is-failed .ap-konf__map-canvas { display: none; }
/* Hintergrund im Farbton der eingefärbten Landfläche, damit Lücken beim Laden nicht auffallen */
.ap-konf__map-canvas.leaflet-container { background: #21201e; font-family: var(--font-primary); }
.ap-konf__map-canvas img { max-width: none !important; }
/* Dunkle Kartendarstellung passend zur Seite; Marker und Bedienelemente bleiben unverändert.
   Filter je Kachel statt auf der ganzen Ebene: vermeidet sichtbare Nähte bei hoher Pixeldichte */
.ap-konf__map-canvas img.leaflet-tile { filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.85) saturate(0.35); }
.ap-konf__map-canvas .leaflet-bar { border: 1px solid var(--color-border); box-shadow: none; }
.ap-konf__map-canvas .leaflet-bar a { background: #161616; color: var(--color-white); border-bottom-color: var(--color-border); }
.ap-konf__map-canvas .leaflet-bar a:hover { background: #222; color: var(--color-white); }
/* Leaflet-CSS wird später geladen: höhere Spezifität, damit die Quellenangabe gut lesbar bleibt */
.ap-konf .ap-konf__map-canvas .leaflet-control-attribution { padding: 2px 8px; background: rgba(0,0,0,0.75); color: var(--color-light-gray); font-size: 0.7rem; line-height: 1.5; }
.ap-konf .ap-konf__map-canvas .leaflet-control-attribution a { color: var(--color-white); text-decoration: underline; text-underline-offset: 2px; }
.ap-konf__pin span {
  position: absolute; left: 3px; top: 2px;
  width: 24px; height: 24px;
  border-radius: 50% 50% 50% 0;
  background: var(--color-red);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 2px var(--color-white), 0 6px 18px rgba(254,0,0,0.55);
}
.ap-konf__pin span::after { content: ''; position: absolute; top: 8px; left: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-white); }
.ap-konf__map-foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 0.6rem; }
.ap-konf__map-note { flex: 1 1 300px; margin: 0; font-size: 0.75rem; line-height: 1.6; color: var(--color-gray); }
.ap-konf__map-clear { padding: 0; border: 0; background: none; color: var(--color-light-gray); font-family: var(--font-primary); font-size: 0.8rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ap-konf__map-clear:hover { color: var(--color-red); }

/* Budget-Regler im Schritt „Rahmen"; --fill (0 bis 1) setzt konfigurator.js für den roten Füllbalken.
   Der Balken endet an der Daumenmitte: 13px = halbe Daumenbreite (26px) */
.ap-konf__budget { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.ap-konf__budget-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.4rem; }
.ap-konf__budget-label { font-size: 1rem; font-weight: 700; color: var(--color-white); }
.ap-konf__budget-value { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; color: var(--color-white); font-variant-numeric: tabular-nums; }
.ap-konf:not(.ap-konf--js) .ap-konf__budget-value { display: none; }
.ap-konf__budget .ap-konf__hint { line-height: 1.6; }
.ap-konf input[type="range"] {
  --fill: 0;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0.9rem 0 0.2rem;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.ap-konf input[type="range"]:focus { outline: none; }
.ap-konf input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--color-red) 0, var(--color-red) calc(13px + (100% - 26px) * var(--fill)), rgba(255,255,255,0.12) calc(13px + (100% - 26px) * var(--fill)));
}
.ap-konf input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.ap-konf input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--color-red); }
.ap-konf input[type="range"]::-webkit-slider-thumb {
  width: 26px; height: 26px;
  margin-top: -10px;
  border: 3px solid var(--color-red);
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 0 0 6px rgba(254,0,0,0.12), 0 4px 14px rgba(0,0,0,0.5);
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow var(--transition);
}
.ap-konf input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border: 3px solid var(--color-red);
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 0 0 6px rgba(254,0,0,0.12), 0 4px 14px rgba(0,0,0,0.5);
}
.ap-konf input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(254,0,0,0.18), 0 4px 14px rgba(0,0,0,0.5); }
.ap-konf input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--color-dark), 0 0 0 6px var(--color-white); }
.ap-konf input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--color-dark), 0 0 0 6px var(--color-white); }
.ap-konf__budget-scale { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.78rem; color: var(--color-gray); font-variant-numeric: tabular-nums; }

/* Budgetspanne: ohne JavaScript zwei beschriftete Regler untereinander. Mit JavaScript liegen
   beide auf einer gemeinsamen Spur; nur die Daumen nehmen Klicks und Berührungen an.
   --von / --bis (0 bis 1) setzt konfigurator.js, 13px = halbe Daumenbreite (26px). */
.ap-konf__budget-label { margin: 0; }
.ap-konf__budget-sub { display: block; margin-top: 0.6rem; font-size: 0.8rem; font-weight: 600; color: var(--color-light-gray); }
.ap-konf__budget-track { display: none; }
.ap-konf--js .ap-konf__budget-range { --von: 0; --bis: 1; position: relative; height: 44px; margin: 0.9rem 0 0.2rem; }
.ap-konf--js .ap-konf__budget-sub {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ap-konf--js .ap-konf__budget-track {
  display: block;
  position: absolute; left: 0; right: 0; top: 50%;
  height: 6px; margin-top: -3px;
  border-radius: 3px;
  background: linear-gradient(to right,
    rgba(255,255,255,0.12) calc(13px + (100% - 26px) * var(--von)),
    var(--color-red) calc(13px + (100% - 26px) * var(--von)),
    var(--color-red) calc(13px + (100% - 26px) * var(--bis)),
    rgba(255,255,255,0.12) calc(13px + (100% - 26px) * var(--bis)));
}
.ap-konf--js .ap-konf__budget-range input[type="range"] { position: absolute; inset: 0; z-index: 1; margin: 0; pointer-events: none; }
.ap-konf--js .ap-konf__budget-range input[type="range"].is-oben { z-index: 2; }
.ap-konf--js .ap-konf__budget-range input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.ap-konf--js .ap-konf__budget-range input[type="range"]::-moz-range-track { background: transparent; }
.ap-konf--js .ap-konf__budget-range input[type="range"]::-moz-range-progress { background: transparent; }
.ap-konf--js .ap-konf__budget-range input[type="range"]::-webkit-slider-thumb { pointer-events: auto; cursor: grab; }
.ap-konf--js .ap-konf__budget-range input[type="range"]::-moz-range-thumb { pointer-events: auto; cursor: grab; }

/* Effektwünsche: Farb-Chips und Hinweisfeld unter den Effekten */
.ap-konf__group { margin: 1.75rem 0 0; padding: 1.5rem 0 0; border: 0; border-top: 1px solid var(--color-border); min-width: 0; }
.ap-konf__group-title { float: left; width: 100%; margin: 0 0 0.35rem; padding: 0; font-size: 1rem; font-weight: 700; color: var(--color-white); }
.ap-konf__group-title + * { clear: both; }
.ap-konf__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.ap-konf__chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 44px;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-size: 0.9rem; font-weight: 600; color: var(--color-light-gray);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.ap-konf__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.ap-konf__chip-dot { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--chip); box-shadow: 0 0 0 2px rgba(255,255,255,0.12), 0 0 10px var(--chip); }
.ap-konf__chip:hover { border-color: var(--color-border-red); color: var(--color-white); }
.ap-konf__chip:has(input:checked) { border-color: var(--color-red); background: rgba(254,0,0,0.08); color: var(--color-white); box-shadow: inset 0 0 0 1px var(--color-red); }
.ap-konf__chip:has(input:checked)::after { content: '✓'; font-size: 0.8rem; font-weight: 700; color: var(--color-red); }
.ap-konf__chip:has(input:focus-visible) { outline: 2px solid var(--color-red); outline-offset: 3px; }
.ap-konf__group.ap-konf__field textarea { min-height: 96px; }
.ap-konf__budget-note {
  margin: 0.9rem 0 0;
  padding: 0.65rem 0.9rem;
  border-left: 2px solid var(--color-red);
  background: rgba(254,0,0,0.06);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-light-gray);
}

@media (max-width: 768px) {
  .ap-konf__step { padding: 1.5rem 1.25rem; }
  .ap-konf__map-canvas { height: 260px; }
  .ap-konf__grid { grid-template-columns: 1fr; }
  .ap-konf__progress-label { display: none; }
  .ap-konf__progress-item { justify-content: center; }
}
@media (max-width: 560px) {
  .ap-konf__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .ap-konf__tile { padding: 0.9rem 0.85rem; }
  .ap-konf__tile-text { display: none; }
  .ap-konf__tile--fx { padding: 0.45rem 0.45rem 0.75rem; }
  .ap-konf__map-btn { width: 100%; justify-content: center; }
  .ap-konf__nav .ap-btn-primary, .ap-konf__nav .ap-btn-secondary { flex: 1 1 auto; }
  .ap-konf__budget-value { font-size: 1.2rem; }
  /* Fünf Schritte passen auch auf 320 px breite Geräte */
  .ap-konf__progress { gap: 0.35rem; }
  .ap-konf__progress-item { min-width: 0; padding: 0.55rem 0.25rem; }
  .ap-konf__summary dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .ap-konf__summary dd { margin-bottom: 0.5rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.ap-footer {
  background: var(--color-black);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0 var(--space-md);
  position: relative;
}

.ap-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to bottom, rgba(254,0,0,0.04), transparent); pointer-events: none; }

.ap-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--color-border); margin-bottom: 2rem; }

.ap-footer__logo { display: block; margin-bottom: 1.25rem; }
.ap-footer__logo img { height: 70px; width: auto; }

.ap-footer__tagline { font-size: 0.875rem; color: var(--color-gray); line-height: 1.8; margin: 0 0 1.5rem; max-width: 280px; }

.ap-footer__contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--color-gray); margin-bottom: 0.5rem; }
.ap-footer__contact-item a { color: var(--color-light-gray); }
.ap-footer__contact-item a:hover { color: var(--color-red); }

.ap-footer__col-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--color-white); margin: 0 0 1.25rem; }

.ap-footer__nav { list-style: none; padding: 0; margin: 0; }
.ap-footer__nav li { margin-bottom: 0.625rem; }
.ap-footer__nav a { font-size: 0.875rem; color: var(--color-gray); display: inline-flex; align-items: center; gap: 0; transition: all var(--transition); position: relative; }
.ap-footer__nav a::before { content: ''; display: inline-block; width: 0; height: 1px; background: var(--color-red); transition: width var(--transition), margin var(--transition); vertical-align: middle; margin-right: 0; }
.ap-footer__nav a:hover { color: var(--color-white); }
.ap-footer__nav a:hover::before { width: 12px; margin-right: 6px; }

.ap-footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.ap-footer__copyright { font-size: 0.8rem; color: rgba(141,145,153,0.6); }
.ap-footer__legal { display: flex; gap: 1.5rem; }
.ap-footer__legal a { font-size: 0.8rem; color: rgba(141,145,153,0.6); }
.ap-footer__legal a:hover { color: var(--color-white); }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.ap-page-hero {
  background: linear-gradient(180deg, #0d0000 0%, var(--color-dark) 100%);
  padding: calc(var(--header-height) + var(--safe-top) + 4rem) var(--container-padding) 4rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.ap-page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(254,0,0,0.1) 0%, transparent 65%); pointer-events: none; }

.ap-page-hero__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: 1rem; text-shadow: 0 0 16px rgba(254,0,0,0.5); }
.ap-page-hero__label::before,
.ap-page-hero__label::after { content: ''; display: block; width: 20px; height: 1px; background: var(--color-red); opacity: 0.7; }

.ap-page-hero__title    { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: var(--color-white); margin: 0 0 1rem; letter-spacing: -0.025em; }
.ap-page-hero__subtitle { font-size: 1.05rem; color: var(--color-gray); max-width: 560px; margin: 0 auto; line-height: 1.85; }

/* ============================================================
   LANDINGPAGES ([ap_landingpage])
   Mobile First: Basis für Smartphones, Erweiterungen per min-width
   ============================================================ */

/* ── Seitenkopf mit Hintergrundbild ── */
.ap-page-hero--bild {
  display: flex; align-items: center; justify-content: center;
  min-height: 36rem;
  padding-bottom: 3.5rem;
  background: var(--color-dark);
}
.ap-page-hero--bild .ap-page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center;
}
/* Dunkler Verlauf über dem Bild: oben für den Header, mittig für den Text, unten als Übergang */
.ap-page-hero--bild::before {
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 70% at 50% 55%, rgba(0,0,0,0.45) 0%, transparent 75%),
    linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.5) 38%, rgba(0,0,0,0.6) 70%, var(--color-dark) 100%);
}
.ap-page-hero--bild > .ap-container { position: relative; z-index: 2; width: 100%; }
/* Roter Text wäre auf dem unruhigen Foto schwer lesbar: Text weiß, Rot bleibt in den Linien */
.ap-page-hero--bild .ap-page-hero__label { color: var(--color-white); text-shadow: 0 1px 10px rgba(0,0,0,0.85); }
.ap-page-hero--bild .ap-page-hero__title {
  max-width: 18em; margin-left: auto; margin-right: auto;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}
.ap-page-hero--bild .ap-page-hero__subtitle {
  max-width: 620px;
  color: var(--color-light-gray);
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
}

.ap-page-hero__actions { justify-content: center; margin-top: 2rem; }

@media (max-width: 480px) {
  .ap-page-hero__actions { max-width: 22rem; margin-left: auto; margin-right: auto; }
}

@media (min-width: 769px) {
  .ap-page-hero--bild {
    min-height: 82vh;
    min-height: 82svh;
    padding-bottom: 5rem;
  }
  .ap-page-hero__actions { margin-top: 2.5rem; }
}
@media (min-width: 1440px) {
  .ap-page-hero--bild { min-height: min(82svh, 56rem); }
}

/* ── Einleitungstext ── */
.ap-container.ap-lp-intro { max-width: calc(760px + 2 * var(--container-padding)); }
.ap-lp-intro p {
  font-size: 1rem; line-height: 1.85;
  color: var(--color-light-gray);
  margin: 0 0 1.25rem;
}
.ap-lp-intro p:first-child {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.7;
  color: var(--color-white);
}
.ap-lp-intro p:last-child { margin-bottom: 0; }

/* ── Eindrücke: Bildkarten (figure) im Referenz-Raster ── */
.ap-lp-bild { margin: 0; }
.ap-lp-bild .ap-ref-card__image { overflow: hidden; }
.ap-lp-bild__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ap-lp-bild .ap-ref-card__body { padding: 1.1rem 1.25rem 1.25rem; }

/* ── Weitere Anlässe: Link-Kacheln ── */
.ap-lp-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.75rem;
  max-width: 960px; margin: 0 auto;
}
.ap-lp-links__item {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  background: var(--color-dark-2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  color: var(--color-light-gray);
  font-size: 0.9rem; font-weight: 600; line-height: 1.35;
  text-align: center;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.ap-lp-links__item:hover,
.ap-lp-links__item:focus-visible {
  color: var(--color-white);
  border-color: var(--color-border-red);
  background: var(--color-red-subtle);
}
.ap-lp-links__item:hover { transform: translateY(-2px); }
.ap-lp-links__item:focus-visible { outline: 2px solid var(--color-red); outline-offset: 3px; }

@media (max-width: 560px) {
  .ap-lp-links__item { flex: 1 1 100%; }
}

/* ── Verlinkte Titel in Startseiten-Karten ── */
.ap-card-link { color: inherit; text-decoration: none; transition: color var(--transition); }
.ap-card-link:hover,
.ap-card-link:focus-visible { color: var(--color-red); }

/* ============================================================
   REFERENCES / GALLERY
   ============================================================ */
.ap-ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.ap-ref-card { background: rgba(17,17,17,0.9); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: all var(--transition-slow); }

.ap-ref-card:hover { transform: translateY(-5px); border-color: var(--color-border-red); box-shadow: var(--shadow-lift); }

.ap-ref-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); filter: saturate(0.8); }
.ap-ref-card:hover img { transform: scale(1.04); filter: saturate(1); }

.ap-ref-card__body     { padding: 1.5rem; }
.ap-ref-card__occasion { font-size: 0.65rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--color-red); margin-bottom: 0.5rem; }
.ap-ref-card__title    { font-size: 1rem; font-weight: 700; color: var(--color-white); margin: 0 0 0.5rem; }
.ap-ref-card__text     { font-size: 0.875rem; color: var(--color-gray); margin: 0; line-height: 1.65; }

/* ============================================================
   BILDERGALERIE
   ============================================================ */
.ap-gallery-section { padding: var(--space-xl) 0; background: var(--color-black); }
.ap-gallery-section + .ap-gallery-section { padding-top: 0; }

.ap-gallery-section__header { margin-bottom: 2.5rem; }
.ap-gallery-section__label  { display: block; font-size: 0.65rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--color-red); margin-bottom: 0.75rem; }
.ap-gallery-section__title  { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--color-white); margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.ap-gallery-section__count  { font-size: 0.875rem; color: var(--color-gray); }

.ap-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.ap-gallery-item {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-dark);
  border-radius: var(--radius-sm);
}

.ap-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), filter 0.4s ease;
  filter: saturate(0.75) brightness(0.9);
}

.ap-gallery-item:hover img {
  transform: scale(1.07);
  filter: saturate(1) brightness(1);
}

.ap-gallery-item__overlay {
  position: absolute; inset: 0;
  background: rgba(254,0,0,0);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}

.ap-gallery-item__overlay::after {
  content: '⊕';
  font-size: 2rem;
  color: var(--color-white);
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s ease;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.ap-gallery-item:hover .ap-gallery-item__overlay {
  border-color: var(--color-red);
  background: rgba(254,0,0,0.08);
}

.ap-gallery-item:hover .ap-gallery-item__overlay::after {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.ap-lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}

.ap-lightbox.is-open { opacity: 1; pointer-events: all; }

.ap-lightbox__img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 80px rgba(0,0,0,0.8);
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.ap-lightbox.is-open .ap-lightbox__img { transform: scale(1); }

.ap-lightbox__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(254,0,0,0.15); border: 1px solid rgba(254,0,0,0.4);
  color: var(--color-white); width: 3rem; height: 3rem;
  border-radius: 50%; font-size: 1.4rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.ap-lightbox__close:hover { background: rgba(254,0,0,0.4); }

.ap-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(22,22,22,0.8); border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-white); width: 3rem; height: 3rem;
  border-radius: 50%; font-size: 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.ap-lightbox__nav:hover { background: rgba(254,0,0,0.3); border-color: rgba(254,0,0,0.4); }
.ap-lightbox__nav--prev { left: 1.5rem; }
.ap-lightbox__nav--next { right: 1.5rem; }

.ap-lightbox__counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: 0.8rem; color: var(--color-gray); letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .ap-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .ap-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.35rem; }
  .ap-lightbox__nav { display: none; }
}

/* ============================================================
   FAQ
   ============================================================ */
.ap-faq { max-width: 760px; margin: 0 auto; }
.ap-faq-item { border-bottom: 1px solid var(--color-border); }

/* <details>/<summary>: funktioniert ohne JavaScript, Standard-Dreieck ausblenden */
.ap-faq-item__question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.35rem 0;
  font-size: 1rem; font-weight: 700; color: var(--color-white);
  cursor: pointer; gap: 1rem;
  list-style: none;
  transition: color var(--transition);
}
.ap-faq-item__question::-webkit-details-marker { display: none; }
.ap-faq-item__question::marker { content: ''; }
.ap-faq-item__question:hover { color: var(--color-light-gray); }
.ap-faq-item__question:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Die Frage ist ein h3 im summary: übernimmt Schrift und Größe der bisherigen Frage */
.ap-faq-item__title { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; padding: 0; }

.ap-faq-item__question::after {
  content: '+';
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-red); font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform var(--transition);
  border: 1px solid var(--color-border-red);
  border-radius: 50%;
}

.ap-faq-item[open] .ap-faq-item__question::after { transform: rotate(45deg); background: rgba(254,0,0,0.1); }

/* Sichtbarkeit steuert <details> selbst (geschlossen = Inhalt verborgen) */
.ap-faq-item__answer { font-size: 0.9rem; color: var(--color-gray); line-height: 1.85; padding-bottom: 1.5rem; }
.ap-faq-item__answer p { margin: 0 0 0.85rem; }
.ap-faq-item__answer p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ap-faq-item[open] .ap-faq-item__answer { animation: ap-faq-open 0.3s ease both; }
}
@keyframes ap-faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
@supports (animation-timeline: view()) {
  .ap-occasion-card, .ap-service-item, .ap-why-item, .ap-package-card,
  .ap-process-step, .ap-ref-card {
    animation: ap-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }
}

/* ============================================================
   SEPARATOR
   ============================================================ */
.ap-separator { height: 1px; background: linear-gradient(90deg, transparent, var(--color-border) 30%, var(--color-border) 70%, transparent); margin: 0; position: relative; }
.ap-separator::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--color-red), transparent); }

/* ============================================================
   RESPONSIVE — iPad / Tablet 820px–1024px
   ============================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
  :root { --container-padding: 1.5rem; --header-height: 100px; }

  /* Tablet: Header-Höhe reduzieren, Menü skalieren */
  .ap-nav__menu a { font-size: 0.78rem; padding: 0.4rem 0.55rem; }

  /* Tablet: Occasion-Grid auf 2 Spalten */
  .ap-occasions-grid { grid-template-columns: repeat(2, 1fr); }

  /* Tablet: Galerie auf 3 Spalten */
  .ap-gallery-grid { grid-template-columns: repeat(3, 1fr); }

  /* Tablet: Hero-Text etwas kleiner */
  .ap-hero__title { font-size: clamp(2rem, 5vw, 3.8rem); }
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .ap-why-grid, .ap-packages-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-process-steps { grid-template-columns: 1fr 1fr; }
  .ap-process-steps::before { display: none; }
  .ap-process-step::before { top: 1.25rem; left: 1.25rem; }
  .ap-process-step::after  { top: 1.25rem; left: 1.25rem; }
  .ap-footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ap-intro__grid { grid-template-columns: 1fr; gap: 3rem; }
  .ap-intro__text .ap-section-label { justify-content: center; }
  .ap-intro__text .ap-section-label::before { display: block; }
  .ap-intro__text .ap-section-title { text-align: center; }
  .ap-intro__text p { text-align: center; }
  .ap-ref-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
    --container-padding: 1.25rem;
    --header-height: 90px;
  }

  /* Hamburger bereits ab Standard aktiv – keine zusätzliche Regel nötig */

  /* Hero: symmetrisches Padding, Inhalt exakt mittig */
  .ap-hero {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    align-items: center;
    justify-content: center;
  }

  .ap-hero__content {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    align-items: center;
    text-align: center;
  }

  .ap-hero__title { text-align: center; }
  .ap-hero__subtitle { text-align: center; max-width: 100%; }
  .ap-hero__eyebrow { justify-content: center; }

  .ap-btn-group { justify-content: center; }
  .ap-hero__trust { justify-content: center; }

  .ap-why-grid, .ap-packages-grid { grid-template-columns: 1fr; }
  .ap-process-steps { grid-template-columns: 1fr; gap: 0.75rem; }
  .ap-process-step__title { margin-top: 2rem; }
  .ap-occasions-grid { grid-template-columns: 1fr; }
  .ap-footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .ap-footer__bottom { flex-direction: column; text-align: center; }
  .ap-ref-grid { grid-template-columns: 1fr; }
  .ap-cf7-grid { grid-template-columns: 1fr; }
  .ap-cf7-field--half { grid-column: 1; }
  .ap-field-full { grid-column: 1; }

  /* Safe-Area: Footer-Unterkante auf Geräten mit Home-Indikator */
  .ap-footer__bottom {
    padding-bottom: calc(1.5rem + var(--safe-bottom));
  }

  /* Sicherstellen dass alle Sektions-Inhalte mittig bleiben */
  .ap-container {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: max(var(--container-padding), var(--safe-left));
    padding-right: max(var(--container-padding), var(--safe-right));
  }
}

@media (max-width: 480px) {
  :root { --container-padding: 1rem; --header-height: 80px; }
  .ap-btn-group { flex-direction: column; align-items: stretch; }
  .ap-btn-primary, .ap-btn-secondary { justify-content: center; }
  .ap-hero__trust { flex-direction: column; align-items: center; }
  .ap-intro__trust { grid-template-columns: 1fr; }
  .ap-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.35rem; }
}

/* ============================================================
   UI/UX POLISH — Skill: ui-ux-pro-max
   Premium dark easing, glow, hairlines, focus states
   ============================================================ */

/* ── Premium easing tokens ── */
: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);
}

/* ── Text rendering ── */
h1, h2, h3, h4, h5, h6 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Heading letter-spacing refinements ── */
.ap-hero__title    { letter-spacing: -0.04em; }
.ap-section__title { letter-spacing: -0.025em; }
.ap-page-hero__title { letter-spacing: -0.03em; }

/* ── Cursor on all interactive cards ── */
.ap-occasion-card,
.ap-service-item,
.ap-package-card,
.ap-ref-card,
.ap-why-item,
.ap-process-step { cursor: default; }

/* ── 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);
}

/* ── Header: red hairline accent on scroll ── */
.ap-header.is-scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow: 0 1px 0 rgba(254, 0, 0, 0.18),
              0 12px 40px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(254, 0, 0, 0.2);
}

/* ── Nav links: smoother underline ── */
.ap-nav__menu a {
  transition: color var(--duration-micro) ease,
              background var(--duration-micro) ease;
}
.ap-nav__menu a::after {
  transition: transform var(--duration-base) var(--ease-out-expo);
}

/* ── Active nav: stronger indicator ── */
.ap-nav__menu li.current-menu-item a {
  color: var(--color-white) !important;
}
.ap-nav__menu li.current-menu-item a::after {
  transform: scaleX(1);
  background: var(--color-red);
}

/* ── Section label: refined typography ── */
.ap-section-label {
  font-size: 0.6rem;
  letter-spacing: 4px;
  font-weight: 800;
}

/* ── Occasion cards: spring easing + glow ── */
.ap-occasion-card {
  transition: transform var(--duration-macro) var(--ease-out-expo),
              box-shadow var(--duration-macro) var(--ease-out-expo),
              border-color var(--duration-base) ease;
  border: 1px solid rgba(255,255,255,0.05);
}
.ap-occasion-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6),
              0 0 0 1px rgba(254,0,0,0.2),
              0 0 40px rgba(254,0,0,0.06);
}

/* ── Service cards: hairline top edge ── */
.ap-service-item {
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform var(--duration-macro) var(--ease-out-expo),
              box-shadow var(--duration-macro) var(--ease-out-expo),
              border-color var(--duration-base) ease;
}
.ap-service-item:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 32px rgba(254,0,0,0.05);
}

/* ── Package cards: spring lift ── */
.ap-package-card {
  transition: transform var(--duration-macro) var(--ease-out-expo),
              box-shadow var(--duration-macro) var(--ease-out-expo),
              border-color var(--duration-base) ease;
}
.ap-package-card:hover {
  transform: translateY(-7px);
}
.ap-package-card--featured:hover {
  box-shadow: 0 0 0 1px rgba(254,0,0,0.4),
              0 20px 60px rgba(254,0,0,0.2),
              0 40px 80px rgba(0,0,0,0.6);
}

/* ── Why-items: subtle glow on hover ── */
.ap-why-item {
  transition: transform var(--duration-base) var(--ease-out-expo);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin: -0.75rem;
}
.ap-why-item:hover { transform: translateX(4px); }

/* ── Process steps: card uses own hover in main block ── */

/* ── Reference cards: saturate on hover ── */
.ap-ref-card {
  transition: transform var(--duration-macro) var(--ease-out-expo),
              box-shadow var(--duration-macro) var(--ease-out-expo),
              border-color var(--duration-base) ease;
}
.ap-ref-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(254,0,0,0.15);
}

/* ── Trust boxes: lift on hover ── */
.ap-trust-box {
  transition: transform var(--duration-macro) var(--ease-out-expo),
              box-shadow var(--duration-macro) var(--ease-out-expo);
}
.ap-trust-box:hover { transform: translateY(-4px); }

/* ── Separator: gradient refinement ── */
.ap-separator {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(254, 0, 0, 0.12) 20%,
    rgba(255,255,255,0.08) 50%,
    rgba(254, 0, 0, 0.12) 80%,
    transparent 100%);
}

/* ── Footer: subtle top glow ── */
.ap-footer {
  box-shadow: 0 -1px 0 rgba(255,255,255,0.05),
              0 -60px 120px rgba(0,0,0,0.3) inset;
}
.ap-footer__col-title {
  letter-spacing: 3px;
  font-size: 0.62rem;
}
.ap-footer__nav a {
  transition: color var(--duration-micro) ease,
              padding-left var(--duration-base) var(--ease-out-expo);
}
.ap-footer__nav a:hover { padding-left: 6px; }

/* ── Gallery items: smoother easing ── */
.ap-gallery-item img {
  transition: transform var(--duration-macro) var(--ease-out-expo),
              filter var(--duration-base) ease;
}
.ap-gallery-item:hover img { transform: scale(1.08); }

/* ── Lightbox: spring scale ── */
.ap-lightbox.is-open .ap-lightbox__img {
  animation: lb-enter var(--duration-macro) var(--ease-spring) forwards;
}
@keyframes lb-enter {
  from { transform: scale(0.88) translateY(12px); opacity: 0.5; }
  to   { transform: scale(1) translateY(0);       opacity: 1; }
}

/* ── Scroll reveal: use spring easing via JS targets ── */
.ap-occasion-card,
.ap-service-item,
.ap-why-item,
.ap-package-card,
.ap-process-step,
.ap-ref-card,
.ap-trust-box,
.ap-section-header {
  will-change: transform, opacity;
}

/* ── 3D canvas layers ── */
.ap-hero canvas,
.ap-process canvas,
.ap-contact-cta canvas {
  pointer-events: none !important;
  user-select: none !important;
}

/* Ensure hero content stays above canvas */
.ap-hero__content { position: relative; z-index: 2; }
/* BL-001: Scroll-Indikator muss absolute bleiben, sonst wird er zum Flex-Kind
   von .ap-hero und drückt .ap-hero__content aus der Mitte */
.ap-hero__scroll { position: absolute; z-index: 2; }

/* Ist der Hero höher als der Viewport, sitzt der Indikator direkt unter der
   Vertrauens-Leiste und braucht eigenen Platz. Nur wenn er im Markup existiert. */
.ap-hero:has(.ap-hero__scroll) .ap-hero__content {
  padding-bottom: calc(var(--space-xl) + 3rem);
}

/* Mobil ist der Hero immer höher als der Bildschirm, der Hinweis läge unter dem ersten Screen */
@media (max-width: 768px) {
  .ap-hero__scroll { display: none; }
  .ap-hero:has(.ap-hero__scroll) .ap-hero__content { padding-bottom: var(--space-xl); }
}

/* Ensure process + CTA content stays above canvas */
.ap-process > .ap-container,
.ap-contact-cta > .ap-container { position: relative; z-index: 1; }

/* ── prefers-reduced-motion: disable all animations ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ap-btn-primary:hover,
  .ap-btn-secondary:hover,
  .ap-occasion-card:hover,
  .ap-package-card:hover,
  .ap-ref-card:hover,
  .ap-lp-links__item:hover,
  .ap-gallery-item:hover img { transform: none !important; }
}

/* ============================================================
   RECHTSTEXTE (Impressum, Datenschutz)
   Texte kommen ohne Stilangaben aus dem Plugin-Editor ([ap_legal]),
   die Gestaltung steht nur hier.
   ============================================================ */
.ap-legal { color: var(--color-light-gray); font-size: 0.95rem; line-height: 1.85; overflow-wrap: anywhere; }
.ap-legal > :first-child { margin-top: 0; }
.ap-legal h2 { color: var(--color-white); font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin: 2.75rem 0 1rem; padding: 0; }
.ap-legal h3 { color: var(--color-light-gray); font-size: 1rem; font-weight: 700; line-height: 1.5; margin: 1.75rem 0 0.75rem; padding: 0; }
.ap-legal h2 + h3 { margin-top: 0; }
.ap-legal p { margin: 0 0 1.25rem; padding: 0; }
.ap-legal strong { color: var(--color-white); font-weight: 700; }
.ap-legal ul, .ap-legal ol { margin: 0 0 1.25rem 1.25rem; padding: 0; }
.ap-legal li { margin: 0 0 0.4rem; }
.ap-legal a { color: var(--color-white); text-decoration: underline; text-decoration-color: var(--color-red); text-underline-offset: 3px; }
.ap-legal a:hover { color: var(--color-red); }
.ap-legal a:focus-visible { outline: 2px solid var(--color-red); outline-offset: 2px; border-radius: 2px; }
