/* ==========================================================================
   BeeLogic – Veredelung: Bewegung & Licht (respektiert prefers-reduced-motion)
   Wird nach beelogic.css geladen.
   ========================================================================== */
.scroll-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 80; transform-origin: 0 50%; transform: scaleX(0); background: var(--honey); box-shadow: 0 0 12px rgba(227,162,26,.6); pointer-events: none; }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle, rgba(255,215,106,.30) 0%, rgba(255,215,106,.10) 35%, transparent 65%); mix-blend-mode: multiply; will-change: transform; }
.cursor-glow.on { opacity: 1; }
body > main, body > footer, body > header { position: relative; z-index: 2; }
.site-header { position: sticky; z-index: 70; }

/* Goldener Glanz auf Schlüsselwörtern */
.gold-text, .page-title span {
  background-image: linear-gradient(100deg, #A8700A 0%, #E8AE24 30%, #F0B83A 48%, #E8AE24 62%, #A8700A 100%);
  background-size: 220% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer { 0%, 12% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }

/* Hero: schwebende Biene, atmendes Licht, driftende Waben */
.hero::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='194' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%23E3A21A' stroke-opacity='.25' stroke-width='.8'%3E%3Cpath d='M28 2l26 15v30L28 62 2 47V17z'/%3E%3Cpath d='M28 62v30M2 47L-24 62M54 47l26 15'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 112px 194px; animation: drift 80s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
}
@keyframes drift { to { background-position: 224px 388px; } }
.hero-art { animation: floaty 7s ease-in-out infinite; will-change: transform; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-14px) rotate(.6deg); } }
.hero-art::after { animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
.hero-art img { transition: transform .2s ease-out; }
.hero h1 .gold-text { display: inline-block; }
.hero .kicker, .hero h1, .hero .lead, .hero .row, .hero .hero-badges { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { animation-delay: .08s; } .hero .lead { animation-delay: .2s; } .hero .row { animation-delay: .32s; } .hero .hero-badges { animation-delay: .44s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Überschriften: Goldlinie zeichnet sich ein */
.section-head h2 { position: relative; padding-bottom: .35em; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 72px; border-radius: 3px; background: var(--honey); transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s .25s cubic-bezier(.2,.7,.2,1); }
.section-head.is-visible h2::after, .section-head:not(.reveal) h2::after { transform: scaleX(1); }

/* Buttons: Lichtreflex beim Hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); transition: left .7s ease; z-index: -1; }
.btn-primary:hover::after { left: 130%; }

/* Karten: 3D-Neigung + Lichtfleck (JS setzt --mx/--my/--rx/--ry) */
.card.hover, .product-card, [data-tilt] { transform-style: preserve-3d; position: relative; }
.card.hover.is-tilting, .product-card.is-tilting, [data-tilt].is-tilting { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); transition: transform .06s linear, box-shadow .25s; box-shadow: var(--shadow-lg); }
.card.hover::before, .product-card::before, [data-tilt]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 1; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,215,106,.26), transparent 60%); }
.card.hover.is-tilting::before, .product-card.is-tilting::before, [data-tilt].is-tilting::before { opacity: 1; }

/* Redaktionelle Nummernliste (statt Icon-Karten) */
.editorial { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.editorial > article { padding: 28px 24px 12px 0; border-bottom: 1px solid var(--line-2); position: relative; }
.editorial > article + article { padding-left: 24px; border-left: 1px solid var(--line-2); }
.editorial .num { display: block; font: 800 clamp(2.6rem, 5vw, 4.2rem)/1 var(--font-display); letter-spacing: -.04em; background: linear-gradient(180deg, #E8AE24, rgba(168,112,10,.25)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.editorial h3 { margin-bottom: .35em; }
.editorial p { color: var(--muted); max-width: 26ch; }
.editorial > article::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--honey); transition: width .6s ease; }
.editorial > article:hover::after { width: 100%; }
.section.dark .editorial, .section.dark .editorial > article { border-color: var(--night-line); }
.section.dark .editorial p { color: #BFB290; }
@media (max-width: 900px) { .editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); } .editorial > article:nth-child(odd) { border-left: 0; padding-left: 0; } }
@media (max-width: 520px) { .editorial { grid-template-columns: 1fr; } .editorial > article + article { border-left: 0; padding-left: 0; } }

/* Laufband */
.marquee { overflow: hidden; background: var(--ink); color: var(--gold-light); border-block: 1px solid var(--night-line); padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; font: 700 1.05rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.marquee .track span::after { content: "⬡"; margin-left: 48px; color: var(--gold); }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Dunkle Sektionen: langsam kreisende Lichter */
.section.dark { overflow: hidden; }
.section.dark::before, .section.dark::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; filter: blur(70px); opacity: .35; background: radial-gradient(circle, rgba(227,162,26,.55), transparent 70%); animation: orbit 22s ease-in-out infinite alternate; }
.section.dark::before { left: -140px; top: -120px; }
.section.dark::after { right: -160px; bottom: -160px; animation-delay: -9s; }
.section.dark > .container { position: relative; z-index: 1; }
@keyframes orbit { from { transform: translate(0, 0) scale(1); } to { transform: translate(120px, 80px) scale(1.25); } }

/* Hex-Icons: Puls beim Hover */
.card:hover .hex-icon { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08) rotate(3deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .gold-text, .page-title span { background-position: 0 0; }
  .cursor-glow, .scroll-progress { display: none; }
}
@media (hover: none) { .cursor-glow { display: none; } }
body.is-admin .cursor-glow, body.is-admin .scroll-progress { display: none; }

.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid.cols-3 { grid-template-columns: 1fr; } }

/* ===== Banner-Bausteine: Wabenrahmen, Waben-Kacheln, CTA ===== */
.hex-frame { position: relative; width: min(100%, 420px); aspect-ratio: 1 / 1.1; margin-inline: auto; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--honey); padding: 0; filter: drop-shadow(0 18px 30px rgba(120, 80, 0, .25)); }
.hex-frame::before { content: ""; position: absolute; inset: 5px; clip-path: inherit; background: var(--cream); z-index: 0; }
.hex-frame img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; object-position: 50% 30%; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); z-index: 1; transform: scale(1.12); }
.section.dark .hex-frame { filter: drop-shadow(0 0 36px rgba(227, 162, 26, .35)); }

.hex-tile { position: relative; width: 100%; aspect-ratio: 1 / 1.1; display: grid; place-items: center; text-align: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--honey); color: #E9DFC6; transition: transform .3s ease, filter .3s; }
.hex-tile::before { content: ""; position: absolute; inset: 3px; clip-path: inherit; background: var(--night-2); z-index: 0; transition: background .3s; }
.hex-tile > div { position: relative; z-index: 1; padding: 0 14%; display: grid; gap: 6px; justify-items: center; }
.hex-tile .ti { color: var(--gold-light); } .hex-tile .ti svg { width: 38px; height: 38px; stroke-width: 1.5; }
.hex-tile strong { font: 700 1.05rem/1.15 var(--font-display); color: #fff; letter-spacing: -.01em; }
.hex-tile small { font-size: .78rem; line-height: 1.35; color: #BFB290; }
.hex-tile.light::before { background: #fff; }
.hex-tile.light { color: var(--ink-2); }
.hex-tile.light .ti { color: var(--gold-deep); } .hex-tile.light strong { color: var(--ink); } .hex-tile.light small { color: var(--muted); }
.hex-tile:hover { transform: translateY(-6px) scale(1.03); filter: drop-shadow(0 14px 22px rgba(227, 162, 26, .35)); }
.hex-tile:hover::before { background: #14100A; } .hex-tile.light:hover::before { background: var(--gold-soft); }

/* Was macht BeeLogic */
.what { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 190px)); gap: 14px; padding-bottom: 60px; justify-content: start; }
.hex-grid > :nth-child(even) { transform: translateY(54%); }
.hex-grid > :nth-child(even):hover { transform: translateY(54%) translateY(-6px) scale(1.03); }
@media (max-width: 860px) { .what { grid-template-columns: 1fr; } .hex-grid { justify-content: center; } }

/* Dein Vorteil */
.advantage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: center; }
.adv-side { display: grid; gap: 14px; justify-items: center; }
.adv-side .hex-tile { max-width: 210px; }
.adv-side.left > :nth-child(2) { transform: translateX(26%); } .adv-side.right > :nth-child(2) { transform: translateX(-26%); }
.adv-side.left > :nth-child(1) { transform: translateX(-10%); } .adv-side.right > :nth-child(1) { transform: translateX(10%); }
@media (max-width: 900px) {
  .advantage { grid-template-columns: 1fr 1fr; }
  .advantage .hex-frame { grid-column: 1 / -1; grid-row: 1; width: min(80%, 340px); }
  .adv-side > * { transform: none !important; }
}

/* Beispiele aus der Praxis */
.hex-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hex-row figure { margin: 0; display: grid; gap: 14px; justify-items: center; text-align: center; }
.hex-row .hex-tile { max-width: 200px; }
.hex-row figcaption { font-size: .92rem; color: var(--muted); max-width: 24ch; }
@media (max-width: 900px) { .hex-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* CTA */
.cta-banner { margin-top: clamp(48px, 6vw, 80px); position: relative; overflow: hidden; display: grid; grid-template-columns: 280px 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: var(--night); color: #E9DFC6; border: 1px solid var(--night-line); box-shadow: var(--shadow-lg); }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 50%, rgba(227, 162, 26, .35), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%23FFD76A' stroke-opacity='.08' stroke-width='1'%3E%3Cpath d='M28 2l26 15v30L28 62 2 47V17z'/%3E%3C/g%3E%3C/svg%3E"); background-size: auto, 56px 97px; }
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-banner p { color: #BFB290; max-width: 40ch; }
.cta-banner .section-kicker { color: var(--gold-light); }
.cta-art .hex-frame { width: 100%; }
@media (max-width: 760px) { .cta-banner { grid-template-columns: 1fr; text-align: center; } .cta-art { max-width: 220px; margin-inline: auto; } .cta-banner p { margin-inline: auto; } .cta-banner .section-kicker { justify-content: center; } }
.hex-frame img { object-fit: contain; object-position: 50% 55%; transform: scale(1.08); background: var(--cream); }
.section.dark .hex-frame::before, .section.dark .hex-frame img { background: #FFF6DC; }
.section-head.center h2::after { left: 50%; margin-left: -36px; }

/* Goldtext: Unterlängen (g, y, p) nicht abschneiden */
.gold-text, .page-title span { padding-bottom: .14em; margin-bottom: -.14em; }
.hero h1 { line-height: 1.04; }
.hero h1 .gold-text { display: inline-block; line-height: 1.12; padding-bottom: .16em; margin-bottom: -.16em; }

/* Inline-Status in Admin-Listen */
.status-select { width: auto; min-width: 128px; margin: 0; padding: 7px 28px 7px 10px; font-size: .88rem; border-radius: 10px; }
.status-input { width: 100%; min-width: 96px; margin: 0 0 4px; padding: 6px 9px; font-size: .84rem; border-radius: 8px; }
.admin-table .inline-form { display: contents; }

/* ===== Inhaltsseiten (SEO-Landingpages) ===== */
.seo-hero { padding-block: clamp(40px, 6vw, 80px) 12px; background: radial-gradient(900px 380px at 85% 0%, rgba(255, 215, 106, .45), transparent 60%), var(--cream); }
.seo-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 18em; }
.seo-hero .lead { font-size: 1.15rem; max-width: 40em; color: var(--ink-2); }
.crumbs-nav { font: 600 .85rem var(--font-display); color: var(--muted); margin-bottom: 18px; }
.crumbs-nav a { color: var(--muted); text-decoration: none; } .crumbs-nav a:hover { color: var(--ink); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.prose a { font-weight: 600; }
.seo-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; padding-block: 32px 72px; }
.seo-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
@media (max-width: 960px) { .seo-grid { grid-template-columns: 1fr; } .seo-aside { position: static; } }
.proj-list { display: grid; gap: 22px; margin-top: 1.2em; }
.proj { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.proj img { width: 100%; border-radius: 14px; background: #0B0905; display: block; }
.proj h3 { margin: 0 0 .3em; }
.proj p { margin: 0; }
@media (max-width: 640px) { .proj { grid-template-columns: 1fr; } }

/* Kopfzeile: längere Menü-Namen sauber auf einer Zeile */
.nav a, .nav summary { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 921px) { .brand small { display: none; } .nav a, .nav summary { padding: 9px 11px; } }
