/*
Theme Name: DnC — Dark and Copper
Theme URI: https://kwiekochkunst.de
Author: BnK GmbH
Author URI: https://bnkgroup.de
Description: Custom minimal theme for K wie Kochkunst. Dark premium design with copper accents. Zero bloat — V2 pages bring their own CSS/JS.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: dnc
*/

/* ===== ROBOTO FONT (Google Fonts, preloaded) ===== */

/* ===== DnC DESIGN SYSTEM ===== */
:root {
  --kwk-black: #0a0a0a;
  --kwk-dark: #111111;
  --kwk-dark2: #161616;
  --kwk-dark3: #1a1a1a;
  --kwk-dark4: #222222;
  --kwk-dark5: #2a2a2a;
  --kwk-gold: #6B422C;
  --kwk-gold-light: #8D5A3B;
  --kwk-gold-soft: #A06B4A;
  --kwk-gold-glow: rgba(107, 66, 44, 0.15);
  --kwk-gold-border: rgba(107, 66, 44, 0.25);
  --kwk-text: rgba(255,255,255,0.92);
  --kwk-text-dim: rgba(255,255,255,0.55);
  --kwk-text-muted: rgba(255,255,255,0.35);
  --kwk-border: rgba(255,255,255,0.07);
  --kwk-glass: rgba(255,255,255,0.03);
  --kwk-glass2: rgba(255,255,255,0.06);
  --kwk-font: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --kwk-radius: 12px;
  --kwk-radius-lg: 20px;
  --kwk-header-h: 72px;
  --kwk-header-top: 16px;
  --kwk-section-padding: 80px;

  /* Typografie-System */
  --kwk-h1: clamp(32px, 5vw, 54px);
  --kwk-h2: clamp(24px, 3.5vw, 38px);
  --kwk-h3: clamp(20px, 2.5vw, 28px);
  --kwk-h4: clamp(18px, 2vw, 22px);
  --kwk-h5: 16px;
  --kwk-h6: 14px;
  --kwk-body: 15px;
  --kwk-body-sm: 14px;
  --kwk-caption: 13px;
  --kwk-small: 12px;
  --kwk-label: 11px;
  --kwk-micro: 10px;
}

/* ===== BASE RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  font-family: var(--kwk-font);
  background: var(--kwk-dark);
  color: var(--kwk-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== WP CLEANUP ===== */
/* Kill wpautop garbage in V2 pages */
.kwk-page p:empty { display: none; }

/* Scroll targets: account for floating header */
[id^="kwk-"] { scroll-margin-top: calc(var(--kwk-header-top) + var(--kwk-header-h) + 24px); }

/* ===== RESPONSIVE SPACING ===== */
@media (max-width: 768px) {
  :root {
    --kwk-section-padding: 56px;
    --kwk-h1: clamp(36px, 9vw, 54px);
    --kwk-h2: clamp(26px, 6vw, 38px);
    --kwk-h3: clamp(22px, 5vw, 28px);
  }
}
@media (max-width: 480px) {
  :root {
    --kwk-section-padding: 40px;
    --kwk-h1: clamp(38px, 10vw, 54px);
    --kwk-h2: clamp(24px, 7vw, 38px);
    --kwk-h3: clamp(22px, 6vw, 28px);
  }
}

/* ===== MOBILE HERO HEADLINE BOOST ===== */
@media (max-width: 768px) {
  body.dnc-theme .kwk-page h1,
  body.dnc-theme .kwk-hero h1,
  body.dnc-theme [class*="kwk-"] h1,
  body.dnc-theme h1[class*="kwk-"] {
    font-size: clamp(36px, 9vw, 54px) !important;
  }
  body.dnc-theme .kwk-page h2,
  body.dnc-theme [class*="kwk-"] h2,
  body.dnc-theme .kwk-section-title {
    font-size: clamp(26px, 6vw, 38px) !important;
  }
}
@media (max-width: 480px) {
  body.dnc-theme .kwk-page h1,
  body.dnc-theme .kwk-hero h1,
  body.dnc-theme [class*="kwk-"] h1,
  body.dnc-theme h1[class*="kwk-"] {
    font-size: clamp(38px, 10vw, 54px) !important;
  }
  body.dnc-theme .kwk-page h2,
  body.dnc-theme [class*="kwk-"] h2,
  body.dnc-theme .kwk-section-title {
    font-size: clamp(24px, 7vw, 38px) !important;
  }
}

/* ===== HERO CONSISTENCY (all pages) ===== */
body.dnc-theme .kwk-hero,
body.dnc-theme .kwk-hero-kt,
body.dnc-theme .kwk-hero-compact,
body.dnc-theme .kwk-bc-hero,
body.dnc-theme .kwk-ks-hero,
body.dnc-theme .kwk-gs-hero,
body.dnc-theme .kwk-ba-hero,
body.dnc-theme .kwk-gr-hero,
body.dnc-theme .kwk-pt-hero,
body.dnc-theme .kwk-tm-hero,
body.dnc-theme .kwk-kar-hero,
body.dnc-theme .kwk-jga-hero,
body.dnc-theme .kwk-fl-hero {
  min-height: 100vh !important;
  padding: 140px 24px 100px !important;
}
body.dnc-theme .kwk-hero::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.6) 35%, rgba(10,10,10,0.65) 70%, rgba(10,10,10,0.95) 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}
body.dnc-theme .kwk-hero::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  height: 180px !important;
  background: linear-gradient(transparent, var(--kwk-dark)) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}
body.dnc-theme .kwk-hero-content {
  position: relative !important;
  z-index: 3 !important;
}
body.dnc-theme .kwk-hero h1 {
  font-size: clamp(32px, 5vw, 54px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -1px !important;
  margin-bottom: 24px !important;
}
body.dnc-theme .kwk-hero-sub {
  font-size: 16px !important;
  color: rgba(255,255,255,0.85) !important;
  max-width: 720px !important;
  margin: 0 auto 44px !important;
  line-height: 1.8 !important;
}
@media (max-width: 768px) {
  body.dnc-theme .kwk-hero,
  body.dnc-theme .kwk-hero-kt,
  body.dnc-theme .kwk-hero-compact,
  body.dnc-theme .kwk-bc-hero,
  body.dnc-theme .kwk-ks-hero,
  body.dnc-theme .kwk-gs-hero,
  body.dnc-theme .kwk-ba-hero,
  body.dnc-theme .kwk-gr-hero,
  body.dnc-theme .kwk-pt-hero,
  body.dnc-theme .kwk-tm-hero,
  body.dnc-theme .kwk-kar-hero,
  body.dnc-theme .kwk-jga-hero,
  body.dnc-theme .kwk-fl-hero {
    min-height: 85vh !important;
    padding: 160px 20px 80px !important;
  }
  body.dnc-theme .kwk-hero-badge {
    font-size: 10px !important;
    padding: 6px 18px !important;
    letter-spacing: 2px !important;
    margin-bottom: 24px !important;
  }
  body.dnc-theme .kwk-hero-sub {
    font-size: 15px !important;
    max-width: 380px !important;
    margin-bottom: 32px !important;
  }
}
@media (max-width: 480px) {
  body.dnc-theme .kwk-hero,
  body.dnc-theme .kwk-hero-kt,
  body.dnc-theme .kwk-hero-compact,
  body.dnc-theme .kwk-bc-hero,
  body.dnc-theme .kwk-ks-hero,
  body.dnc-theme .kwk-gs-hero,
  body.dnc-theme .kwk-ba-hero,
  body.dnc-theme .kwk-gr-hero,
  body.dnc-theme .kwk-pt-hero,
  body.dnc-theme .kwk-tm-hero,
  body.dnc-theme .kwk-kar-hero,
  body.dnc-theme .kwk-jga-hero,
  body.dnc-theme .kwk-fl-hero {
    min-height: 85vh !important;
    padding: 140px 20px 60px !important;
  }
  body.dnc-theme .kwk-hero-badge {
    font-size: 10px !important;
    padding: 5px 16px !important;
    letter-spacing: 1.5px !important;
  }
  body.dnc-theme .kwk-hero-sub {
    font-size: 14px !important;
    max-width: 340px !important;
  }
}

/* ===== LEGAL / STATIC PAGES (AGB, Impressum, Datenschutz) ===== */
.dnc-static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--kwk-header-top) + var(--kwk-header-h) + 48px) 24px var(--kwk-section-padding);
  color: var(--kwk-text);
  line-height: 1.7;
}
.dnc-static-page h1 { font-size: 28px; font-weight: 700; margin-bottom: 24px; color: #fff; }
.dnc-static-page h2 { font-size: 22px; font-weight: 600; margin: 32px 0 12px; color: #fff; }
.dnc-static-page h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; color: #fff; }
.dnc-static-page p { margin-bottom: 16px; color: var(--kwk-text-dim); }
.dnc-static-page a { color: var(--kwk-gold-light); text-decoration: underline; }
.dnc-static-page a:hover { color: #fff; }
.dnc-static-page ul, .dnc-static-page ol { padding-left: 24px; margin-bottom: 16px; color: var(--kwk-text-dim); }
.dnc-static-page li { margin-bottom: 4px; }
.dnc-static-page hr { border: none; border-top: 1px solid var(--kwk-border); margin: 32px 0; }
.dnc-static-page table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.dnc-static-page th, .dnc-static-page td { padding: 10px 12px; border: 1px solid var(--kwk-border); text-align: left; font-size: 14px; }
.dnc-static-page th { background: var(--kwk-dark2); color: #fff; font-weight: 600; }

/* ===== 404 PAGE ===== */
.dnc-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 24px;
}
.dnc-404-code { font-size: 120px; font-weight: 700; color: var(--kwk-gold); line-height: 1; margin-bottom: 16px; opacity: 0.3; }
.dnc-404-title { font-size: 28px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.dnc-404-text { font-size: 16px; color: var(--kwk-text-dim); margin-bottom: 32px; max-width: 400px; }
.dnc-404-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: var(--kwk-gold); color: #fff;
  font-size: 14px; font-weight: 500; text-decoration: none;
  border-radius: 10px; transition: background 0.25s ease, transform 0.2s ease;
}
.dnc-404-btn:hover { background: var(--kwk-gold-light); transform: translateY(-1px); }

/* ===== SEARCH PAGE ===== */
.dnc-search {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--kwk-header-top) + var(--kwk-header-h) + 48px) 24px var(--kwk-section-padding);
}
.dnc-search h1 { font-size: 24px; font-weight: 600; color: #fff; margin-bottom: 24px; }
.dnc-search-result { padding: 20px 0; border-bottom: 1px solid var(--kwk-border); }
.dnc-search-result a { font-size: 18px; font-weight: 500; color: #fff; text-decoration: none; }
.dnc-search-result a:hover { color: var(--kwk-gold-light); }
.dnc-search-result p { font-size: 14px; color: var(--kwk-text-dim); margin-top: 6px; }

/* ===== LEGAL PAGES HEADER OFFSET ===== */
body.dnc-theme .kwk-legal {
  padding-top: calc(var(--kwk-header-top) + var(--kwk-header-h) + 48px) !important;
}

/* ===== WP ADMIN BAR OFFSET (logged-in admins only) ===== */
.admin-bar .kwk-header-wrap { top: calc(var(--kwk-header-top) + 32px); }
.admin-bar .kwk-mega { top: calc(var(--kwk-header-top) + var(--kwk-header-h) + 40px); }
.admin-bar .kwk-page-overlay { top: 32px; }
.admin-bar .kwk-mobile-menu { top: calc(var(--kwk-header-top) + var(--kwk-header-h) + 40px); }
.admin-bar .kwk-bottom-bar { bottom: 0; }
@media (max-width: 782px) {
  .admin-bar .kwk-header-wrap { top: calc(var(--kwk-header-top) + 46px); }
  .admin-bar .kwk-mega { top: calc(var(--kwk-header-top) + var(--kwk-header-h) + 54px); }
  .admin-bar .kwk-page-overlay { top: 46px; }
  .admin-bar .kwk-mobile-menu { top: calc(var(--kwk-header-top) + var(--kwk-header-h) + 54px); }
}

/* ===== FOOTER ===== */
.kwk-footer { background: var(--kwk-black); position: relative; overflow: hidden; border-top: 1px solid var(--kwk-border); margin-top: 0; }
body:not(.dnc-v2) .kwk-footer { margin-top: 80px; }
.kwk-footer-cta { max-width: 1100px; margin: 0 auto; padding: 112px 24px 56px; border-bottom: 1px solid var(--kwk-border); }
.kwk-footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.kwk-footer-cta-text h3 { font-size: 22px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.kwk-footer-cta-text p { font-size: 14px; color: var(--kwk-text-dim); }
.kwk-footer-cta-actions { display: flex; gap: 12px; flex-shrink: 0; }
.kwk-footer-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.3s ease; white-space: nowrap; font-family: var(--kwk-font); border: none; cursor: pointer; position: relative; overflow: hidden; }
.kwk-footer-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.kwk-footer-btn-primary { background: linear-gradient(135deg, #6B422C, #8D5A3B); color: #fff; }
.kwk-footer-btn-primary:hover { background: linear-gradient(135deg, #8D5A3B, #8D5A3B); transform: translateY(-1px); }
.kwk-footer-btn-primary::after { content: ''; position: absolute; top: 0; left: -80%; width: 80%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); animation: kwkFooterShimmer 3.5s ease-in-out infinite; pointer-events: none; }
@keyframes kwkFooterShimmer { 0%, 100% { left: -80%; } 50% { left: 100%; } }
.kwk-footer-btn-outline { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); }
.kwk-footer-btn-outline:hover { border-color: rgba(255,255,255,0.35); color: #fff; background: rgba(255,255,255,0.04); }
.kwk-footer-main { max-width: 1100px; margin: 0 auto; padding: 56px 24px 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.kwk-footer-brand-logo { width: 80px; height: 80px; margin-bottom: 22px; display: block; }
.kwk-footer-brand-desc { font-size: 14px; line-height: 1.7; color: var(--kwk-text-dim); margin-bottom: 24px; max-width: 280px; }
.kwk-footer-social { display: flex; gap: 8px; }
.kwk-footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.5); text-decoration: none; transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease; }
.kwk-footer-social a:hover { background: var(--kwk-gold-glow); color: var(--kwk-gold-light); transform: translateY(-2px); }
.kwk-footer-social svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.kwk-footer-col-label { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; background: linear-gradient(135deg, #6B422C 0%, #8D5A3B 50%, #6B422C 100%); background-size: 200% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: kwkFooterGradientShift 4s ease-in-out infinite; margin-bottom: 20px; }
@keyframes kwkFooterGradientShift { 0%, 100% { background-position: 200% 0; } 50% { background-position: 0 0; } }
.kwk-footer-links { display: flex; flex-direction: column; gap: 4px; }
.kwk-footer-link { display: flex; align-items: center; gap: 6px; padding: 7px 0; font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s ease; }
.kwk-footer-link:hover { color: #fff; }
.kwk-footer-link svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.kwk-footer-link:hover svg { transform: rotate(90deg); }
.kwk-footer-link--disabled { opacity: 0.35; pointer-events: none; cursor: default; }
.kwk-footer-btn--disabled { opacity: 0.35; pointer-events: none; cursor: default; }
.kwk-footer-contact { max-width: 1100px; margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kwk-footer-contact-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; text-decoration: none; color: var(--kwk-text); transition: background 0.25s ease, border-color 0.25s ease; }
.kwk-footer-contact-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.kwk-footer-contact-icon { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; background: var(--kwk-gold-glow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kwk-footer-contact-icon svg { width: 20px; height: 20px; stroke: var(--kwk-gold-light); stroke-width: 1.8; fill: none; }
.kwk-footer-contact-body { display: flex; flex-direction: column; gap: 2px; }
.kwk-footer-contact-label { font-size: 11px; color: var(--kwk-text-muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 500; }
.kwk-footer-contact-value { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.85); }
.kwk-footer-contact-ki { opacity: 0.4; pointer-events: none; cursor: default; }
.kwk-footer-ki-input { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 8px 12px; font-size: 13px; font-family: var(--kwk-font); color: var(--kwk-text-muted); width: 100%; cursor: default; }
.kwk-footer-reviews-section { max-width: 1100px; margin: 0 auto; padding: 0 24px 48px; }
.kwk-footer-reviews-summary { display: flex; align-items: center; justify-content: center; gap: 16px; text-decoration: none; color: inherit; transition: opacity 0.25s ease; }
.kwk-footer-reviews-summary:hover { opacity: 0.85; }
.kwk-footer-reviews-stars { display: flex; gap: 3px; }
.kwk-footer-reviews-stars svg { width: 18px; height: 18px; fill: url(#kwkFooterStarGrad); stroke: none; }
.kwk-footer-reviews-text { font-size: 14px; color: var(--kwk-text-dim); }
.kwk-footer-reviews-text strong { color: #fff; font-weight: 600; }
.kwk-footer-reviews-badge { display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; font-size: 12px; color: var(--kwk-text-dim); text-decoration: none; transition: border-color 0.25s ease, background 0.25s ease; }
.kwk-footer-reviews-badge:hover { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); }
.kwk-footer-reviews-badge svg { width: 16px; height: 16px; }
.kwk-footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--kwk-border); padding: 20px 24px; }
.kwk-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kwk-footer-copy { font-size: 12px; color: var(--kwk-text-muted); }
.kwk-footer-copy a { color: var(--kwk-text-muted); text-decoration: none; transition: color 0.2s ease; }
.kwk-footer-copy a:hover { color: rgba(255,255,255,0.7); }
.kwk-footer-legal { display: flex; gap: 24px; }
.kwk-footer-legal a { font-size: 12px; color: var(--kwk-text-muted); text-decoration: none; transition: color 0.2s ease; }
.kwk-footer-legal a:hover { color: rgba(255,255,255,0.7); }
.kwk-footer-col-legal { display: none; }
.kwk-footer-brand-reviews, .kwk-footer-brand-contact { display: none; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.kwk-footer-brand-contact .kwk-footer-contact-item { min-height: 80px; }
.kwk-footer-brand-contact .kwk-footer-contact-item:nth-child(3) { grid-column: 1 / -1; }
.kwk-footer-contact-ki { opacity: 0.4; pointer-events: none; }
.kwk-footer-reviews-stars--mob svg { fill: url(#kwkFooterStarGradMob); stroke: none; }

/* Footer Responsive — Tablet */
@media (max-width: 900px) {
  .kwk-footer-cta-inner { flex-direction: column; text-align: center; }
  .kwk-footer-cta-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
  .kwk-footer-main { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .kwk-footer-brand { grid-column: 1 / -1; text-align: center; }
  .kwk-footer-brand-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .kwk-footer-brand-logo { margin-left: auto; margin-right: auto; }
  .kwk-footer-social { justify-content: center; }
  .kwk-footer-contact { grid-template-columns: 1fr; }
}

/* Footer Responsive — Mobile */
@media (max-width: 768px) {
  .kwk-footer-cta { padding: 80px 28px 40px; }
  .kwk-footer-cta-text h3 { font-size: 19px; }
  .kwk-footer-cta-text p { font-size: 13px; }
  .kwk-footer-cta-actions { flex-direction: column; }
  .kwk-footer-cta-actions .kwk-footer-btn { width: 100%; justify-content: center; }
  .kwk-footer-main { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding: 40px 28px 36px; row-gap: 40px; }
  .kwk-footer-brand { grid-column: 1 / -1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
  .kwk-footer-brand-logo { order: 1; width: 125px; height: 125px; }
  .kwk-footer-social { order: 2; margin-bottom: 0; }
  .kwk-footer-brand-reviews { order: 3; }
  .kwk-footer-brand-desc { order: 4; font-size: 13px; margin-bottom: 0; }
  .kwk-footer-brand-contact { order: 5; margin-bottom: 16px; }
  .kwk-footer-brand-reviews { display: block; width: 100%; }
  .kwk-footer-brand-reviews .kwk-footer-reviews-summary--mob { flex-direction: row; gap: 12px; justify-content: center; align-items: center; text-align: center; flex-wrap: nowrap; }
  .kwk-footer-brand-contact { display: grid; text-align: left; }
  .kwk-footer-reviews-section { display: none; }
  .kwk-footer-contact { display: none; }
  .kwk-footer-col-label { text-align: left; padding-left: 14px; font-size: 12px; margin-bottom: 10px; }
  .kwk-footer-links { align-items: flex-start; padding-left: 14px; gap: 0; }
  .kwk-footer-link { padding: 5px 0; }
  .kwk-footer-col-legal { display: block; }
  .kwk-footer-bottom { padding: 20px 28px; }
  .kwk-footer-bottom-inner { justify-content: center; }
  .kwk-footer-legal { display: none; }
  .kwk-footer-copy { font-size: 11px; text-align: center; }
}

/* ===== HEADER V2 ===== */
/* ===== PAGE OVERLAY (dark blur when menu is open — desktop only) ===== */
.kwk-page-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}
.kwk-page-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (max-width: 900px) {
  .kwk-page-overlay {
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
  }
}

/* ===== HEADER PILL (floating, centered) ===== */
.kwk-header-wrap {
  position: fixed;
  top: var(--kwk-header-top);
  left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}
.kwk-header {
  pointer-events: auto;
  width: 1100px;
  max-width: calc(100vw - 32px);
  height: var(--kwk-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(48px) saturate(1.8);
  backdrop-filter: blur(48px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.kwk-header.scrolled {
  background: rgba(10, 10, 10, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
}
/* Extend header hitbox downward to bridge gap to mega menu */
.kwk-header::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0; right: 0;
  height: 16px;
  pointer-events: none;
}
.kwk-header.menu-open::after {
  pointer-events: auto;
}
/* On hover or open: solid dark background */
.kwk-header:hover,
.kwk-header.menu-open {
  background: rgba(10, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(48px) saturate(1.8);
  backdrop-filter: blur(48px) saturate(1.8);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ===== LOGO ===== */
.kwk-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1002;
  flex-shrink: 0;
  padding: 4px;
}
.kwk-header-logo img,
.kwk-header-logo-svg {
  height: 58px;
  width: auto;
  display: block;
  margin: 4px 0 -6px; /* let the K swoosh hang below center */
}

/* ===== DESKTOP NAV ===== */
.kwk-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.kwk-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.kwk-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.kwk-nav-link:hover,
.kwk-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.kwk-nav-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.kwk-nav-link.active svg {
  transform: rotate(180deg);
}
/* Header Bot Button (right-aligned, mirrors logo) */
.kwk-header-bot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
  z-index: 1002;
}
.kwk-header-bot:hover,
.kwk-header-bot.active {
  background: var(--kwk-gold-glow);
  color: var(--kwk-gold-light);
}
/* Desktop search slide-in */
.kwk-header-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.4s ease;
  flex-shrink: 0;
  margin-left: 0;
}
.kwk-header-search-wrap.active {
  max-width: 320px;
  opacity: 1;
  margin-left: 8px;
}
.kwk-header-search-input {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: var(--kwk-font);
  outline: none;
  transition: border-color 0.2s ease;
}
.kwk-header-search-input:focus {
  border-color: rgba(141,90,59,0.5);
}
.kwk-header-search-input::placeholder {
  color: rgba(255,255,255,0.3);
}
.kwk-header-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color 0.2s;
}
.kwk-header-search-close:hover {
  color: #fff;
}
.kwk-header-bot svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ===== HEADER CTA ===== */
.kwk-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1002;
  flex-shrink: 0;
}
.kwk-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--kwk-gold);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}
.kwk-header-cta:hover {
  background: var(--kwk-gold-light);
  transform: translateY(-1px);
}
.kwk-header-cta svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.kwk-header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.kwk-header-phone:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.kwk-header-phone svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ===== MEGA MENU PANEL (Desktop) ===== */
.kwk-mega {
  position: fixed;
  top: calc(var(--kwk-header-top) + var(--kwk-header-h) + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 999;
  width: 1100px;
  max-width: calc(100vw - 32px);
  background: rgba(14, 14, 14, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s;
  overflow: hidden;
}
/* Invisible bridge to connect header pill to mega menu (prevents mouseleave in gap) */
.kwk-mega::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0; right: 0;
  height: 20px;
}
.kwk-mega.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.kwk-mega-inner {
  width: 100%;
  padding: 36px 40px 40px;
  display: none;
}
.kwk-mega-inner.active {
  display: grid;
  animation: kwkMegaFadeIn 0.3s ease forwards;
}
@keyframes kwkMegaFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Panel grid layouts */
.kwk-mega-offene { grid-template-columns: 1fr 1fr 320px; gap: 40px; }
.kwk-mega-geschlossene { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.kwk-mega-leistungen { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.kwk-mega-wirueberuns { grid-template-columns: 1fr 1fr 320px; gap: 40px; }
.kwk-mega-kontakt { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }

/* Spacer to align columns without label to columns with label */
.kwk-mega-col-aligned { padding-top: 27px; }

/* Mega Menu shared styles */
.kwk-mega-group-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6B422C 0%, #9a6a4a 40%, #a07050 50%, #9a6a4a 60%, #6B422C 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: kwkLabelShimmer 6s ease-in-out infinite;
  margin-bottom: 16px;
  padding-left: 12px;
}
@keyframes kwkLabelShimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: 0 0; }
}

/* Highlighted / important mega links */
.kwk-mega-link--highlight {
  background: linear-gradient(135deg, var(--kwk-gold-glow), rgba(141, 90, 59, 0.05));
  border: 1px solid var(--kwk-gold-border);
}
.kwk-mega-link--highlight:hover {
  background: linear-gradient(135deg, rgba(141, 90, 59, 0.25), rgba(141, 90, 59, 0.1));
  border-color: var(--kwk-gold-light);
}
.kwk-mega-link--highlight .kwk-mega-link-icon {
  background: var(--kwk-gold);
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.kwk-mega-link--highlight .kwk-mega-link-icon svg {
  stroke: #fff;
  width: 26px;
  height: 26px;
}

/* AI Bot placeholder */
.kwk-mega-bot {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  opacity: 0.5;
}
.kwk-mega-bot-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--kwk-gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kwk-mega-bot-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--kwk-gold-light);
  stroke-width: 1.5;
  fill: none;
}
.kwk-mega-bot-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.kwk-mega-bot-desc {
  font-size: 11px;
  color: var(--kwk-text-muted);
  line-height: 1.5;
}
.kwk-mega-bot-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  font-family: var(--kwk-font);
  pointer-events: none;
}
/* Top highlight cards row (3 columns) */
.kwk-mega-top-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
/* Course grid (3 columns, compact text links) */
.kwk-mega-kurs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 24px; }
.kwk-mega-kurs-grid a { display: block; padding: 8px 12px; color: rgba(255,255,255,0.75); font-size: 13px; text-decoration: none; border-radius: 8px; transition: all 0.2s; }
.kwk-mega-kurs-grid a:hover { background: rgba(255,255,255,0.06); color: #fff; }

.kwk-mega-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kwk-mega-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s ease, color 0.2s ease;
}
.kwk-mega-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
/* Disabled / coming soon links */
.kwk-mega-link--disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}
.kwk-mega-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.kwk-mega-link:hover .kwk-mega-link-icon {
  background: var(--kwk-gold-glow);
}
.kwk-mega-link-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--kwk-gold-light);
  stroke-width: 1.8;
  fill: none;
}
.kwk-mega-link-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.kwk-mega-link-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.kwk-mega-link-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
}
/* "Coming soon" tag for disabled links */
.kwk-mega-link-soon {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--kwk-gold-light);
  opacity: 0.7;
}

/* Shop highlight link (special card-style link) */
.kwk-mega-link--shop {
  background: linear-gradient(135deg, var(--kwk-gold-glow), rgba(141, 90, 59, 0.05));
  border: 1px solid var(--kwk-gold-border);
  margin-top: 12px;
}
.kwk-mega-link--shop:hover {
  background: linear-gradient(135deg, rgba(141, 90, 59, 0.25), rgba(141, 90, 59, 0.1));
  border-color: var(--kwk-gold-light);
}
.kwk-mega-link--shop .kwk-mega-link-icon {
  background: var(--kwk-gold);
}
.kwk-mega-link--shop .kwk-mega-link-icon svg {
  stroke: #fff;
}
.kwk-mega-link--shop .kwk-mega-link-title {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kwk-mega-link--shop .kwk-mega-link-title::after {
  content: '↗';
  font-size: 11px;
  color: var(--kwk-gold-light);
}

/* Featured card in mega menu */
.kwk-mega-featured {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease;
  text-decoration: none;
}
.kwk-mega-featured:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.kwk-mega-featured-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.kwk-mega-featured-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kwk-mega-featured-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--kwk-gold-light);
}
.kwk-mega-featured-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.kwk-mega-featured-cta {
  font-size: 12px;
  color: var(--kwk-gold-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  transition: gap 0.2s ease;
}
.kwk-mega-featured:hover .kwk-mega-featured-cta {
  gap: 8px;
}
.kwk-mega-featured-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Shortcode Wrapper (WP integration) */
.kwk-mega-shortcode-wrap {
  min-width: 0;
}
.kwk-mega-shortcode {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
  min-height: 260px;
  font-size: 0;
}
/* Preview placeholder — only visible when shortcode isn't rendered (standalone preview) */
.kwk-mega-shortcode-preview {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 230px;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
}

/* Kurs Carousel in mega menu (legacy, keep for mobile) */
.kwk-mega-carousel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
}
.kwk-mega-carousel-track {
  overflow-x: auto;
  display: flex;
  gap: 10px;
  padding: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.kwk-mega-carousel-track::-webkit-scrollbar { display: none; }
.kwk-mega-carousel-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.kwk-mega-carousel-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.kwk-mega-carousel-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.kwk-mega-carousel-card-body {
  padding: 10px 12px;
}
.kwk-mega-carousel-card-title {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2px;
}
.kwk-mega-carousel-card-meta {
  font-size: 11px;
  color: var(--kwk-text-muted);
}

/* Image Slider (used in "Das sind wir" panel) */
.kwk-mega-image-slider {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.kwk-mega-image-slider-track {
  display: flex;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.kwk-mega-image-slider-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.kwk-mega-image-slider-track img.active {
  opacity: 1;
}
.kwk-mega-image-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.kwk-mega-image-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.kwk-mega-image-slider-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Kontakt panel: Map + info card */
.kwk-mega-kontakt-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
}
.kwk-mega-kontakt-map {
  width: 100%;
  height: 180px;
  border: none;
  filter: grayscale(1) contrast(0.85) brightness(0.95);
  pointer-events: none; /* prevent iframe from stealing mouse events */
}
.kwk-mega-kontakt-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kwk-mega-kontakt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.kwk-mega-kontakt-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--kwk-gold-light);
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
}
.kwk-mega-kontakt-row a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.kwk-mega-kontakt-row a:hover { color: #fff; }
.kwk-mega-kontakt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--kwk-gold);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 4px;
}
.kwk-mega-kontakt-btn:hover { background: var(--kwk-gold-light); }
.kwk-mega-kontakt-btn svg {
  width: 15px; height: 15px;
  stroke: currentColor; stroke-width: 2; fill: none;
}

/* ===== MOBILE PILL SLIDER (replaces hamburger) ===== */
.kwk-mobile-switcher {
  display: none; /* shown on mobile */
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 1002;
  margin: 0 8px;
}
/* Fade edges — only when menu is open and pills are visible */
.kwk-mobile-switcher::before,
.kwk-mobile-switcher::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.kwk-mobile-switcher.menu-active::before,
.kwk-mobile-switcher.menu-active::after {
  opacity: 1;
}
.kwk-mobile-switcher::before {
  left: 0;
  background: none;
}
.kwk-mobile-switcher::after {
  right: 0;
  background: none;
}
.kwk-mobile-switcher-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 calc(50% - 60px);
}
.kwk-mobile-switcher-track::-webkit-scrollbar { display: none; }
.kwk-mobile-switcher-pill {
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.2);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.3s, background 0.3s, border-color 0.3s, opacity 0.3s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.kwk-mobile-switcher-pill.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
/* Copper light sweep on active pill */
.kwk-mobile-switcher-pill.active::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(141,90,59,0.2), transparent);
  animation: kwkPillSweep 0.6s ease-out forwards;
}
@keyframes kwkPillSweep {
  to { left: 200%; }
}
.kwk-mobile-switcher-pill:active {
  background: rgba(255,255,255,0.1);
}
/* "Menü" + burger/X — always visible, centered */
.kwk-mobile-switcher-menu {
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
}
/* Slot machine icon container */
.kwk-menu-slot {
  width: 26px;
  height: 22px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
/* Food icons that slot in (continuous loop) */
.kwk-menu-slot-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.kwk-menu-slot-icon svg {
  width: 18px;
  height: 18px;
  stroke: url(#slotGrad);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Slot animation states */
.kwk-menu-slot-icon.slot-in {
  transform: translateY(0);
  opacity: 1;
}
.kwk-menu-slot-icon.slot-out {
  transform: translateY(-100%);
  opacity: 0;
}
/* Open state: fork+knife (slot-0) stays visible but crossed (rotated) */
.kwk-mobile-switcher.menu-active .kwk-menu-slot-icon {
  display: none;
}
.kwk-mobile-switcher.menu-active .kwk-menu-slot-icon[data-slot="0"] {
  display: flex;
  transform: translateY(0) rotate(45deg) !important;
  opacity: 1;
  overflow: visible;
}
.kwk-mobile-switcher.menu-active .kwk-menu-slot-icon[data-slot="0"] svg {
  overflow: visible;
}
.kwk-mobile-switcher.menu-active .kwk-menu-slot {
  overflow: visible;
}
/* Hide category pills from header — they live in the menu card now */
.kwk-mobile-switcher-pill[data-mpanel] {
  display: none !important;
}

/* Disable hover effect on mobile header */
@media (max-width: 900px) {
  .kwk-header:hover {
    background: rgba(10, 10, 10, 0.82);
    -webkit-backdrop-filter: blur(48px) saturate(1.8);
    backdrop-filter: blur(48px) saturate(1.8);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .kwk-header.scrolled:hover {
    background: rgba(10, 10, 10, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .kwk-header.menu-open,
  .kwk-header.menu-open:hover {
    background: rgba(10, 10, 10, 0.82);
    -webkit-backdrop-filter: blur(48px) saturate(1.8);
    backdrop-filter: blur(48px) saturate(1.8);
    border-color: rgba(255, 255, 255, 0.1);
  }
}
/* Mobile bot button */
/* Mobile bot + search — single expanding pill */
.kwk-mobile-bot-wrap {
  display: none; /* shown on mobile */
  align-items: center;
  flex-shrink: 0;
  z-index: 1002;
  position: relative;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 38px;
  overflow: hidden;
}
.kwk-mobile-bot-wrap.search-open {
  width: 180px;
}
.kwk-mobile-bot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s;
}
.kwk-mobile-bot-wrap.search-open .kwk-mobile-bot {
  color: rgba(255,255,255,0.6);
}
.kwk-mobile-bot svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
/* Search input inside the same pill */
.kwk-mobile-search {
  flex: 1;
  min-width: 0;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}
.kwk-mobile-bot-wrap.search-open .kwk-mobile-search {
  opacity: 1;
}
.kwk-mobile-search-field {
  margin: 4px 4px 4px 0;
  flex: 1;
  min-width: 0;
}
.kwk-mobile-search-input {
  width: 100%;
  height: 30px;
  padding: 0 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-family: var(--kwk-font);
  outline: none;
  cursor: pointer;
}
.kwk-mobile-search-input::placeholder {
  color: rgba(255,255,255,0.3);
}
.kwk-mobile-search-input.coming-soon {
  color: var(--kwk-gold-light);
  font-weight: 600;
  letter-spacing: 0.3px;
}
/* Coming soon toast */
.kwk-mobile-search-toast {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 8px 16px;
  background: #0d0d0d;
  border: 1px solid var(--kwk-gold-border);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--kwk-gold-light);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.kwk-mobile-search-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE MENU ===== */
.kwk-mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--kwk-header-top) + var(--kwk-header-h) + 8px);
  left: 16px; right: 16px;
  max-height: calc(100dvh - var(--kwk-header-top) - var(--kwk-header-h) - 80px);
  z-index: 999;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              visibility 0.35s ease;
}
.kwk-mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* --- Mobile Menu Header Row --- */
.kwk-mobile-menu-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0d0d0d;
  padding: 24px 24px 0;
  text-align: center;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px 20px 0 0;
}
.kwk-mobile-menu-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6B422C 0%, #9a6a4a 40%, #a07050 50%, #9a6a4a 60%, #6B422C 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: kwkLabelShimmer 6s ease-in-out infinite;
}
/* Pill nav inside menu card */
.kwk-mobile-menu-pills {
  padding: 12px 0 0;
  margin: 0 16px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.kwk-mobile-menu-pills::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48px;
  background: linear-gradient(to left, #0d0d0d 10%, transparent);
  pointer-events: none;
  z-index: 1;
}
.kwk-mobile-menu-pills-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 4px 14px;
}
.kwk-mobile-menu-pills-track::-webkit-scrollbar { display: none; }
.kwk-mobile-menu-pill {
  flex: 0 0 auto;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.kwk-mobile-menu-pill.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
.kwk-mobile-menu-pill:active {
  background: rgba(255,255,255,0.06);
}
/* Hide old slider items (kept for JS compatibility) */
.kwk-mobile-slider { display: none !important; }

/* --- Mobile Panels --- */
.kwk-mobile-panel {
  display: none;
  padding: 20px 16px 80px;
  animation: kwkMobilePanelIn 0.35s ease forwards;
}
.kwk-mobile-panel.active { display: block; }
@keyframes kwkMobilePanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Stagger-fade for links inside panel */
.kwk-mobile-panel.active .kwk-mobile-link,
.kwk-mobile-panel.active .kwk-mobile-group-label,
.kwk-mobile-panel.active .kwk-mobile-divider,
.kwk-mobile-panel.active .kwk-mobile-featured,
.kwk-mobile-panel.active .kwk-mobile-map-wrap {
  animation: kwkStaggerIn 0.4s ease both;
}
.kwk-mobile-panel.active > :nth-child(1) { animation-delay: 0s; }
.kwk-mobile-panel.active > :nth-child(2) { animation-delay: 0.03s; }
.kwk-mobile-panel.active > :nth-child(3) { animation-delay: 0.06s; }
.kwk-mobile-panel.active > :nth-child(4) { animation-delay: 0.09s; }
.kwk-mobile-panel.active > :nth-child(5) { animation-delay: 0.12s; }
.kwk-mobile-panel.active > :nth-child(6) { animation-delay: 0.15s; }
.kwk-mobile-panel.active > :nth-child(7) { animation-delay: 0.18s; }
.kwk-mobile-panel.active > :nth-child(8) { animation-delay: 0.21s; }
.kwk-mobile-panel.active > :nth-child(9) { animation-delay: 0.24s; }
.kwk-mobile-panel.active > :nth-child(10) { animation-delay: 0.27s; }
.kwk-mobile-panel.active > :nth-child(n+11) { animation-delay: 0.3s; }
@keyframes kwkStaggerIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Title morph on switch */
.kwk-mobile-menu-title.morphing {
  animation: kwkTitleMorph 0.35s ease;
}
@keyframes kwkTitleMorph {
  0% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  40% { opacity: 0; transform: translateY(-6px) scale(0.95); filter: blur(4px); }
  60% { opacity: 0; transform: translateY(6px) scale(0.95); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.kwk-mobile-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--kwk-gold-light);
  margin-bottom: 12px;
  padding: 0;
}
.kwk-mobile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 6px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  transition: background 0.2s ease;
  min-height: 48px;
}
.kwk-mobile-link:active { background: rgba(255, 255, 255, 0.06); }
.kwk-mobile-link--disabled {
  opacity: 0.3;
  pointer-events: none;
}
.kwk-mobile-link--highlight {
  background: linear-gradient(135deg, var(--kwk-gold-glow), rgba(141, 90, 59, 0.08));
  border: 1px solid var(--kwk-gold-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.kwk-mobile-link--highlight .kwk-mobile-link-icon {
  background: var(--kwk-gold);
}
.kwk-mobile-link--highlight .kwk-mobile-link-icon svg {
  stroke: #fff;
}
.kwk-mobile-link--shop {
  background: linear-gradient(135deg, var(--kwk-gold-glow), rgba(141, 90, 59, 0.05));
  border: 1px solid var(--kwk-gold-border);
  margin-top: 8px;
}
.kwk-mobile-link--shop .kwk-mobile-link-icon { background: var(--kwk-gold); }
.kwk-mobile-link--shop .kwk-mobile-link-icon svg { stroke: #fff; }
.kwk-mobile-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kwk-mobile-link-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--kwk-gold-light);
  stroke-width: 1.8;
  fill: none;
}
.kwk-mobile-link-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kwk-mobile-link-title {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.kwk-mobile-link-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}
.kwk-mobile-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 16px 0;
}
/* Mobile featured card */
.kwk-mobile-featured {
  margin-top: 20px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  display: block;
}
.kwk-mobile-featured img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.kwk-mobile-featured-body {
  padding: 14px 16px;
}
.kwk-mobile-featured-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--kwk-gold-light);
}
.kwk-mobile-featured-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-top: 4px;
}
/* Mobile map */
.kwk-mobile-map-wrap {
  margin-top: 20px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.kwk-mobile-map-wrap iframe {
  width: 100%;
  height: 200px;
  border: none;
  filter: grayscale(1) contrast(0.85) brightness(0.95);
}

/* ===== MOBILE BOTTOM BAR ===== */
.kwk-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1001;
  height: 64px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 16px;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}
.kwk-bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.kwk-bottom-bar-item:active,
.kwk-bottom-bar-item.active { color: #fff; }
.kwk-bottom-bar-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}
.kwk-bottom-bar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--kwk-gold);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.kwk-bottom-bar-cta:active { background: var(--kwk-gold-light); }
.kwk-bottom-bar-cta svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 2; fill: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .kwk-header-nav,
  .kwk-mega,
  .kwk-header-phone,
  .kwk-header-cta,
  .kwk-header-bot,
  .kwk-header-search-wrap { display: none !important; }
  .kwk-mobile-switcher { display: flex; }
  .kwk-mobile-bot-wrap { display: flex; }
  .kwk-mobile-menu { display: block; }
  .kwk-bottom-bar { display: none !important; }
  .kwk-header { padding: 0 12px; }
}
@media (min-width: 901px) {
  .kwk-mobile-menu,
  .kwk-mobile-switcher,
  .kwk-mobile-bot-wrap,
  .kwk-bottom-bar { display: none !important; }
}

/* Blur effect for coming-soon items */
.kwk-mega-kurs-grid a.kwk-mega-link--blur { filter: blur(3px); opacity: 0.4; pointer-events: auto; position: relative; }
.kwk-mega-kurs-grid a.kwk-mega-link--blur:hover { filter: blur(0); opacity: 0.7; }
.kwk-mega-kurs-grid a.kwk-mega-link--blur::after { content: 'Inhalt folgt'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.5px; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.kwk-mega-kurs-grid a.kwk-mega-link--blur:hover::after { opacity: 1; }

.kwk-mega-link.kwk-mega-link--blur { filter: blur(3px); opacity: 0.4; pointer-events: auto; }
.kwk-mega-link.kwk-mega-link--blur:hover { filter: blur(0); opacity: 0.7; }

.kwk-mobile-link.kwk-mobile-link--blur { filter: blur(3px); opacity: 0.4; }
.kwk-mobile-link.kwk-mobile-link--blur:hover { filter: blur(0); opacity: 0.7; }

/* Mobile pills: left-aligned scroll */
.kwk-mobile-menu-pills-track { justify-content: flex-start !important; padding-left: 20px; }
.kwk-mobile-menu-pill { font-size: 14.3px !important; padding: 10px 20px !important; }

/* Pill arrow hint — outside pill, controlled by JS */
.kwk-mobile-menu-pill.active::after { display: none; }
.kwk-pill-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--kwk-gold-light, #8D5A3B);
  z-index: 2;
  pointer-events: none;
  animation: kwkPillBounce 1.5s ease-in-out infinite;
}
.kwk-pill-arrow.right { right: 4px; }
.kwk-pill-arrow.left { left: 4px; }
@keyframes kwkPillBounce { 0%, 100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-50%) translateX(4px); } }
.kwk-pill-arrow.left { animation-name: kwkPillBounceLeft; }
@keyframes kwkPillBounceLeft { 0%, 100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-50%) translateX(-4px); } }
