/*
Theme Name: Scherer Pyrotechnik
Author: Scherer Pyrotechnik
Description: Einseitiges, dunkles Theme für Feuerwerk & Pyrotechnik — Liquid-Glass-Header, Funken-Animation, Leistungen, Pakete, Galerie und Kontaktformular. Sämtliche Texte, Farben und Bilder werden im Customizer gepflegt (Design → Anpassen → „Inhalte & Design").
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scherer-pyrotechnik
Tags: one-column, custom-colors, dark
*/

/* ---------- Basis ---------- */

:root {
  --accent: #E9A13B;
  --accent-hot: #E4642B;
  --ink: #F3EDE4;
  --bg: #0F0C0A;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: #F2C069; }

::selection { background: var(--accent); color: #1A130C; }
::placeholder { color: rgba(243, 237, 228, 0.3); }

.sp-serif { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.sp-accent { color: var(--accent); }
.sp-mono { font-family: 'IBM Plex Mono', monospace; }

/* ---------- Keyframes ---------- */

@keyframes riseIn { from { transform: translateY(112%); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes headerIn { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes revealUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes flicker {
  0% { opacity: 1; transform: scale(1); }
  30% { opacity: 0.6; transform: scale(0.82); }
  55% { opacity: 1; transform: scale(1.1); }
  80% { opacity: 0.72; transform: scale(0.9); }
  100% { opacity: 0.95; transform: scale(1); }
}
@keyframes sparkTravel { from { top: 3vh; } to { top: calc(96vh - 14px); } }
@keyframes fuseBurn { from { transform: scaleY(0.03); } to { transform: scaleY(0.96); } }

/* Scroll-Reveal (fällt in älteren Browsern auf einmaliges Einblenden zurück) */
.sp-reveal {
  animation: revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-timeline: view();
  animation-range: entry 10% entry 40%;
}

/* ---------- Zündschnur ---------- */

.sp-fuse { position: fixed; top: 0; bottom: 0; left: clamp(18px, 2.6vw, 38px); width: 1px; z-index: 40; pointer-events: none; }
.sp-fuse-line { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(243, 237, 228, 0.13) 10%, rgba(243, 237, 228, 0.13) 90%, transparent); }
.sp-fuse-burn {
  position: absolute; inset: 0; transform-origin: top center;
  background: linear-gradient(180deg, transparent, var(--accent));
  opacity: 0.45;
  animation: fuseBurn linear both;
  animation-timeline: scroll();
  animation-range: 0% 100%;
}
.sp-fuse-spark {
  position: absolute; left: -6.5px; top: 3vh; width: 14px; height: 14px;
  animation: sparkTravel linear both;
  animation-timeline: scroll();
  animation-range: 0% 100%;
}
.sp-fuse-dot {
  position: absolute; inset: 4px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent), 0 0 28px 8px rgba(228, 100, 43, 0.4);
  animation: flicker 1.1s infinite;
}

/* ---------- Korn ---------- */

.sp-grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%27160%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.8%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27160%27 height=%27160%27 filter=%27url(%23n)%27/%3E%3C/svg%3E');
  background-size: 160px 160px;
}

/* ---------- Logo ---------- */

.sp-logo { height: 30px; width: auto; max-width: 130px; object-fit: contain; display: block; flex: none; }
.sp-foot-brand .sp-logo { height: 34px; }

.sp-logo-placeholder {
  width: 30px; height: 30px; border-radius: 50%; flex: none; box-sizing: border-box;
  border: 1px dashed rgba(243, 237, 228, 0.35);
  display: flex; align-items: center; justify-content: center;
  background: rgba(243, 237, 228, 0.03);
}
.sp-logo-placeholder span {
  font-family: 'IBM Plex Mono', monospace; font-size: 6.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(243, 237, 228, 0.45);
}
.sp-foot-brand .sp-logo-placeholder { width: 34px; height: 34px; }

/* ---------- Nach-oben-Button ---------- */

.sp-top-btn {
  position: fixed; right: clamp(18px, 3vw, 34px); bottom: clamp(18px, 3vw, 34px); z-index: 95;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #1A130C; text-decoration: none;
  font-size: 19px; font-weight: 600; line-height: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.25s;
}
.sp-top-btn.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sp-top-btn:hover {
  color: #1A130C; transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(233, 161, 59, 0.45);
  box-shadow: 0 10px 34px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* ---------- Header (Liquid-Glass-Pille) ---------- */

.sp-header {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: clamp(26px, 4vw, 64px);
  padding: 10px 10px 10px 26px; border-radius: 999px;
  background: rgba(26, 20, 15, 0.5);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(243, 237, 228, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 14px 44px rgba(0, 0, 0, 0.5);
  max-width: calc(100vw - 28px); box-sizing: border-box;
  animation: headerIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
.admin-bar .sp-header { top: 50px; }

.sp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.sp-brand:hover { color: var(--ink); }
.sp-brand-name { font-weight: 600; font-size: 15px; white-space: nowrap; }

.sp-dot {
  width: 9px; height: 9px; background: var(--accent);
  transform: rotate(45deg); box-shadow: 0 0 12px var(--accent);
  display: block; flex: none;
}

.sp-nav { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 24px); }
.sp-nav a { font-size: 14px; color: rgba(243, 237, 228, 0.7); text-decoration: none; transition: color 0.25s; white-space: nowrap; }
.sp-nav a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */

.sp-btn, a.sp-btn {
  display: inline-block; font-family: 'Instrument Sans', sans-serif;
  font-size: 16px; font-weight: 600; color: #1A130C; background: var(--accent);
  border: none; border-radius: 999px; padding: 16px 30px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.3s, box-shadow 0.3s;
}
.sp-btn:hover, a.sp-btn:hover {
  color: #1A130C; transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(233, 161, 59, 0.35);
  box-shadow: 0 10px 34px color-mix(in srgb, var(--accent) 35%, transparent);
}

.sp-btn-small, a.sp-btn-small { font-size: 14px; padding: 9px 18px; }
.sp-btn-small:hover, a.sp-btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(233, 161, 59, 0.35);
  box-shadow: 0 6px 26px color-mix(in srgb, var(--accent) 35%, transparent);
}

.sp-btn-ghost, a.sp-btn-ghost {
  background: transparent; color: rgba(243, 237, 228, 0.85); font-weight: 500;
  border: 1px solid rgba(243, 237, 228, 0.22); padding: 15px 30px;
  transition: border-color 0.3s, color 0.3s;
}
.sp-btn-ghost:hover, a.sp-btn-ghost:hover {
  border-color: var(--accent); color: var(--accent);
  transform: none; box-shadow: none;
}

/* ---------- Hero ---------- */

.sp-hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow-x: clip;
}
.sp-hero-glow {
  position: absolute; left: 50%; bottom: -44vh; transform: translateX(-50%);
  width: 130vw; height: 90vh; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(228, 100, 43, 0.12), transparent 62%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent-hot) 12%, transparent), transparent 62%);
}
.sp-hero-canvas { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% + 22vh); pointer-events: none; }

.sp-hero-inner {
  position: relative; width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(48px, 7vw, 120px); box-sizing: border-box;
}

.sp-kicker { margin: 0 0 18px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.sp-kicker-hero { margin: 0 0 30px; letter-spacing: 0.2em; color: rgba(243, 237, 228, 0.5); animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }

.sp-h1 { margin: 0; font-size: clamp(60px, 9.5vw, 150px); line-height: 0.98; letter-spacing: -0.025em; font-weight: 500; }
.sp-h1-mask { display: block; overflow: hidden; padding-bottom: 0.04em; }
.sp-h1-mask2 { padding-bottom: 0.08em; }
.sp-h1-line { display: block; animation: riseIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
.sp-h1-mask2 .sp-h1-line { animation-delay: 0.42s; }

.sp-hero-text {
  max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65;
  color: rgba(243, 237, 228, 0.68); margin: 36px 0 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both;
}

.sp-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 44px; animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.78s both; }

/* ---------- Sektionen ---------- */

.sp-section {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: clamp(90px, 13vh, 160px) clamp(48px, 7vw, 120px) 40px;
  box-sizing: border-box; scroll-margin-top: 90px;
}

.sp-h2 { margin: 0; font-size: clamp(38px, 4.6vw, 68px); line-height: 1.05; font-weight: 500; letter-spacing: -0.015em; }
.sp-maxw-20 { max-width: 20ch; }
.sp-maxw-18 { max-width: 18ch; }

.sp-section-intro { margin: 24px 0 0; max-width: 620px; font-size: 16.5px; line-height: 1.7; color: rgba(243, 237, 228, 0.62); }
.sp-section-head--gap { margin-bottom: 70px; }

/* ---------- Leistungen ---------- */

.sp-leistung {
  display: grid; grid-template-columns: clamp(56px, 8vw, 110px) 1fr;
  gap: clamp(20px, 3.5vw, 52px); padding: 46px 0;
  border-top: 1px solid rgba(243, 237, 228, 0.1);
}
.sp-leistung:last-of-type { border-bottom: 1px solid rgba(243, 237, 228, 0.1); }
.sp-leistung-num { font-size: clamp(26px, 2.8vw, 38px); color: rgba(243, 237, 228, 0.32); line-height: 1; }
.sp-leistung h3 { margin: 0 0 12px; font-size: clamp(22px, 2vw, 27px); font-weight: 600; }
.sp-leistung-text { margin: 0; max-width: 620px; font-size: 16.5px; line-height: 1.7; color: rgba(243, 237, 228, 0.62); }
.sp-leistung-tags { margin: 18px 0 0; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243, 237, 228, 0.42); }

/* ---------- Pakete ---------- */

.sp-paket-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 60px); margin-top: 70px;
}
.sp-paket { border-top: 1px solid rgba(243, 237, 228, 0.16); padding-top: 26px; display: flex; flex-direction: column; }
.sp-paket.is-highlight { border-top: 2px solid var(--accent); padding-top: 25px; }

.sp-paket-label { margin: 0 0 22px; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243, 237, 228, 0.45); }
.is-highlight .sp-paket-label { color: var(--accent); }

.sp-paket-digit { font-size: clamp(64px, 6.5vw, 104px); line-height: 0.9; color: rgba(243, 237, 228, 0.9); }
.is-highlight .sp-paket-digit { color: var(--accent); }

.sp-paket h3 { margin: 26px 0 0; font-size: 20px; font-weight: 600; }
.sp-paket-price { margin: 16px 0 2px; font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.sp-paket-pricenote { margin: 0; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243, 237, 228, 0.4); }

.sp-paket-features { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; }
.sp-paket-features li {
  display: flex; gap: 12px; padding: 11px 0;
  border-top: 1px solid rgba(243, 237, 228, 0.08);
  font-size: 15.5px; line-height: 1.5; color: rgba(243, 237, 228, 0.72);
}
.sp-paket-features li span { color: var(--accent); flex: none; }

.sp-paket-cta { margin-top: 26px; font-size: 14.5px; font-weight: 600; color: var(--accent); text-decoration: none; transition: opacity 0.25s; }
.sp-paket-cta:hover { opacity: 0.7; color: var(--accent); }

/* ---------- Galerie ---------- */

.sp-gal-note { margin: 24px 0 0; font-size: 12px; letter-spacing: 0.08em; color: rgba(243, 237, 228, 0.42); }

.sp-gal-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(58px, 8.5vw, 112px); gap: 16px; margin-top: 60px;
}
.sp-gal-item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sp-gal-1 { grid-column: span 7; grid-row: span 3; }
.sp-gal-2 { grid-column: span 5; grid-row: span 3; }
.sp-gal-3, .sp-gal-4, .sp-gal-5 { grid-column: span 4; grid-row: span 2; }

.sp-gal-media { position: relative; flex: 1; min-height: 0; }
.sp-gal-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 4px; display: block;
}
.sp-gal-placeholder {
  position: absolute; inset: 0; border: 1px dashed rgba(243, 237, 228, 0.22);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  background: rgba(243, 237, 228, 0.02);
}
.sp-gal-placeholder span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243, 237, 228, 0.38); }
.sp-gal-item figcaption { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243, 237, 228, 0.42); }

@media (max-width: 760px) {
  .sp-gal-1, .sp-gal-2 { grid-column: span 12; grid-row: span 3; }
  .sp-gal-3, .sp-gal-4, .sp-gal-5 { grid-column: span 12; grid-row: span 2; }
}

/* ---------- Kontakt ---------- */

.sp-kontakt-wrap { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 90px); margin-top: 64px; }

.sp-kontakt-info { flex: 1 1 300px; min-width: 280px; display: flex; flex-direction: column; gap: 30px; }
.sp-kontakt-lead { margin: 0; font-size: 16.5px; line-height: 1.7; color: rgba(243, 237, 228, 0.62); }

.sp-kontakt-links { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid rgba(243, 237, 228, 0.1); padding-top: 26px; }
.sp-kontakt-links > div { display: flex; flex-direction: column; gap: 5px; }
.sp-kontakt-links .sp-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(243, 237, 228, 0.4); }
.sp-kontakt-links a { font-size: 16px; color: var(--accent); text-decoration: none; transition: opacity 0.25s; }
.sp-kontakt-links a:hover { opacity: 0.7; color: var(--accent); }

.sp-kontakt-note { margin: 0; font-size: 12px; line-height: 1.7; letter-spacing: 0.04em; color: rgba(243, 237, 228, 0.4); }

/* Formular */

.sp-form {
  flex: 2 1 480px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px 44px; align-content: start;
}
.sp-form label { display: flex; flex-direction: column; gap: 10px; }
.sp-form label > .sp-mono { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(243, 237, 228, 0.45); }

.sp-form input, .sp-form select, .sp-form textarea {
  background: transparent; border: none; border-bottom: 1px solid rgba(243, 237, 228, 0.2);
  padding: 10px 2px; font-family: 'Instrument Sans', sans-serif; font-size: 16px;
  color: var(--ink); outline: none; transition: border-color 0.3s; border-radius: 0;
  width: 100%; box-sizing: border-box;
}
.sp-form input:focus, .sp-form select:focus, .sp-form textarea:focus { border-bottom-color: var(--accent); }
.sp-form textarea { line-height: 1.6; resize: vertical; min-height: 90px; }
.sp-form input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); cursor: pointer; }

.sp-select { position: relative; display: block; }
.sp-select select { appearance: none; -webkit-appearance: none; padding-right: 24px; cursor: pointer; }
.sp-select::after {
  content: '▾'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  pointer-events: none; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: rgba(243, 237, 228, 0.45);
}

.sp-form-full { grid-column: 1 / -1; }
.sp-form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 4px; }
.sp-form-success { margin: 0; font-size: 15px; color: var(--accent); }

.sp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Richtpreis-Rechner ---------- */

.sp-calc { display: flex; flex-direction: column; border-top: 1px solid rgba(243, 237, 228, 0.12); padding-top: 26px; }
.sp-calc-head { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.sp-calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 44px; margin-top: 18px; }
.sp-calc-col { display: flex; flex-direction: column; }
.sp-calc-subhead { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(243, 237, 228, 0.45); padding-bottom: 10px; }
.sp-calc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; border-top: 1px solid rgba(243, 237, 228, 0.08); }
.sp-form .sp-calc-row input { width: 16px; height: 16px; flex: none; accent-color: var(--accent); cursor: pointer; padding: 0; border: none; }
.sp-calc-name { font-size: 15px; line-height: 1.4; color: rgba(243, 237, 228, 0.85); flex: 1; }
.sp-calc-tag { font-size: 12px; color: rgba(243, 237, 228, 0.45); flex: none; }
.sp-calc-musik-incl { color: var(--accent); }
.sp-calc-tag[hidden] { display: none; }
.sp-calc-result { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(243, 237, 228, 0.12); margin-top: 18px; padding-top: 16px; }
.sp-calc-result .sp-calc-subhead { padding: 0; }
.sp-calc-total { font-size: 34px; color: var(--accent); }
.sp-calc-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.7; letter-spacing: 0.04em; color: rgba(243, 237, 228, 0.4); }

/* ---------- Footer ---------- */

.sp-footer { border-top: 1px solid rgba(243, 237, 228, 0.1); margin-top: clamp(80px, 12vh, 140px); }

.sp-foot-grid {
  max-width: 1280px; margin: 0 auto; padding: 60px clamp(48px, 7vw, 120px) 0;
  box-sizing: border-box; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 44px;
}
.sp-foot-col { display: flex; flex-direction: column; gap: 10px; }
.sp-foot-brand { display: flex; align-items: center; gap: 10px; }
.sp-foot-brand .sp-brand-name { font-size: 16px; }
.sp-foot-tagline { margin: 4px 0 0; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243, 237, 228, 0.4); line-height: 1.8; }
.sp-foot-heading { margin: 0 0 6px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(243, 237, 228, 0.4); }
.sp-foot-text { margin: 0; font-size: 14.5px; line-height: 1.8; color: rgba(243, 237, 228, 0.62); }
.sp-foot-col a { font-size: 14.5px; color: rgba(243, 237, 228, 0.62); text-decoration: none; transition: color 0.25s; }
.sp-foot-col a:hover { color: var(--accent); }

.sp-foot-bar {
  max-width: 1280px; margin: 44px auto 0; padding: 22px clamp(48px, 7vw, 120px);
  box-sizing: border-box; border-top: 1px solid rgba(243, 237, 228, 0.07);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(243, 237, 228, 0.35);
}
.sp-foot-bar a { color: rgba(243, 237, 228, 0.35); text-decoration: none; transition: color 0.25s; }
.sp-foot-bar a:hover { color: var(--accent); }

/* ---------- Mobiles Menü ---------- */

.sp-burger {
  display: none; width: 44px; height: 44px; flex: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: none; cursor: pointer; padding: 0; border-radius: 50%;
}
.sp-burger span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
body.sp-menu-open .sp-burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.sp-menu-open .sp-burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.sp-mobile-menu {
  position: fixed; top: 78px; left: 14px; right: 14px; z-index: 99;
  border-radius: 28px;
  background: rgba(26, 20, 15, 0.72);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(243, 237, 228, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 12px; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
body.sp-menu-open .sp-mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.admin-bar .sp-mobile-menu { top: 110px; }

.sp-mobile-menu a {
  padding: 15px 18px; font-size: 17px; color: rgba(243, 237, 228, 0.85);
  text-decoration: none; border-radius: 16px;
  transition: background 0.2s, color 0.2s;
}
.sp-mobile-menu a:hover { background: rgba(243, 237, 228, 0.06); color: var(--ink); }

.sp-mobile-menu .sp-mobile-cta {
  margin-top: 8px; text-align: center; font-weight: 600; font-size: 16px;
  color: #1A130C; background: var(--accent); border-radius: 999px;
}
.sp-mobile-menu .sp-mobile-cta:hover { color: #1A130C; background: var(--accent); }

@media (min-width: 921px) {
  .sp-mobile-menu { display: none; }
}

/* ---------- Blog-Fallback (index.php) ---------- */

.sp-article { padding: 40px 0; border-top: 1px solid rgba(243, 237, 228, 0.1); }
.sp-article h2 a { color: var(--ink); text-decoration: none; }
.sp-article h2 a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .sp-header { gap: 14px; padding: 6px 6px 6px 18px; top: 12px; }
  .admin-bar .sp-header { top: 58px; }
  .sp-header .sp-nav, .sp-header .sp-btn-small { display: none; }
  .sp-burger { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
