/* Ikonenschmiede Component Library
   Depends on: tokens.css
   Niko-Auswahl 2026-04-30 — Metallic-System + scharfe Kanten
*/

/* =========================================================
   Top Navigation
   ========================================================= */

.ik-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: #FFFFFF;
  border-bottom: 0;          /* Top-Nav ohne Border-Bottom */
}

.ik-nav__brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ik-font-heading);  /* Cabinet Grotesk */
  font-weight: 700;                      /* Niko-Update 2026-04-30 R1: 700 (deutlich dicker als Nav-Links) */
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ik-black);
  text-decoration: none;
}
.ik-nav__brand img { height: 20px; width: auto; display: block; }   /* R1: 20px Harlekin */

.ik-nav__links { display: flex; align-items: center; gap: 28px; }

.ik-nav__link {
  font-family: var(--ik-font-body);     /* Switzer (Niko 2026-05-01, war: Instrument Sans) */
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ik-black);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: opacity var(--ik-duration-instant) var(--ik-ease-default);
}
.ik-nav__link:hover { opacity: 0.6; }
.ik-nav__link--active { border-bottom-color: var(--ik-black); }

/* Dark variant */
.ik-nav--dark { background: var(--ik-black); }
.ik-nav--dark .ik-nav__brand,
.ik-nav--dark .ik-nav__link { color: #FFFFFF; }
.ik-nav--dark .ik-nav__link--active { border-bottom-color: #FFFFFF; }


/* =========================================================
   Buttons
   ========================================================= */

.ik-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ik-font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  padding: 10px 22px;
  border-radius: var(--ik-radius-default);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition:
    background var(--ik-duration-fast) var(--ik-ease-default),
    color var(--ik-duration-fast) var(--ik-ease-default),
    border-color var(--ik-duration-fast) var(--ik-ease-default);
}

/* Filled — Liquid Shine (Niko-Final 2026-04-30 Button 20 + Hover H4)
   Background-Verlauf wandert von selbst (4s). Beim Hover erscheint außen ein Halo (Outer Glow Bloom). */
.ik-btn--filled {
  background: var(--ik-red-metal-flow);
  background-size: 200% 200%;
  color: #FFFFFF;
  border: 0;
  padding: 11px 23px;
  animation: ik-liquid-flow 4s ease-in-out infinite;
  transition: box-shadow 350ms ease;
  box-shadow: 0 0 0 0 rgba(181, 69, 58, 0);
}
.ik-btn--filled:hover {
  box-shadow:
    0 0 16px rgba(216, 91, 79, 0.38),
    0 0 36px rgba(181, 69, 58, 0.15);
}
@keyframes ik-liquid-flow {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ik-btn--filled { animation: none; background-position: 50% 50%; }
}

/* Filled auf Dark — Outer Halo + Inner Brighten Hover (Niko-Final Button 15 + Hover D2)
   Auf Dark-Surface (besonders Plum-Aubergine #2B0A1E am Akademie-CTA-Schluss).
   Statischer Halo aus, beim Hover wird der Button heller. Kein Liquid-Flow auf Dark. */
.ik-on-dark .ik-btn--filled,
.ik-btn--filled.on-dark {
  background: var(--ik-red-metal);   /* statisch */
  background-size: auto;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 10px 22px;
  animation: none;                    /* kein Liquid-Flow auf Dark */
  box-shadow:
    0 0 18px rgba(181, 69, 58, 0.32),
    0 0 44px rgba(181, 69, 58, 0.12);
  transition: filter 250ms ease;
}
.ik-on-dark .ik-btn--filled:hover,
.ik-btn--filled.on-dark:hover {
  filter: brightness(1.22) saturate(1.1);
  box-shadow:
    0 0 18px rgba(181, 69, 58, 0.32),
    0 0 44px rgba(181, 69, 58, 0.12);
}

/* Outline — Flat default, Metal-Text-Clip on hover */
.ik-btn--outline {
  background: transparent;
  color: var(--ik-red);
  border-color: var(--ik-red);
}
.ik-btn--outline:hover {
  color: transparent;
  background: var(--ik-red-metal);
  -webkit-background-clip: text;
  background-clip: text;
  border-color: var(--ik-red-darkest);
}

/* Ghost-Dark — for dark sections */
.ik-btn--ghost-dark {
  background: transparent;
  color: #FFFFFF;
  border: var(--ik-border-ghost);   /* 1.5px rgba(255,255,255,0.35) */
}
.ik-btn--ghost-dark:hover { border-color: rgba(255,255,255,0.6); }


/* =========================================================
   Tag / Release-Tag — Metallic
   ========================================================= */

.ik-tag {
  display: inline-flex; align-items: center;
  background: var(--ik-red-metal);
  color: #FFFFFF;
  font-family: var(--ik-font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: var(--ik-radius-default);
  text-transform: none;
  line-height: 1;
}
.ik-tag--muted {
  background: var(--ik-gray);
  color: var(--ik-text-secondary);
}


/* =========================================================
   Number Circles
   ========================================================= */

.ik-numcircle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--ik-radius-circle);   /* 50% — Form, kein Stil */
  background: var(--ik-black);
  color: #FFFFFF;
  font-family: var(--ik-font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
}
.ik-numcircle--accent { background: var(--ik-red-metal); }


/* =========================================================
   Stat-Card
   ========================================================= */

.ik-stat {
  background: var(--ik-gray);
  border: var(--ik-border-hairline);
  border-radius: var(--ik-radius-default);
  padding: 20px;
}
.ik-stat__num {
  font-family: var(--ik-font-heading);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ik-black);
}
.ik-stat__num--accent {
  color: transparent;
  background: var(--ik-red-metal);
  -webkit-background-clip: text;
  background-clip: text;
}
.ik-stat__desc {
  font-family: var(--ik-font-body);
  font-size: 13px;
  color: var(--ik-text-secondary);
  line-height: 1.5;
  margin-top: 10px;
}


/* =========================================================
   Eyebrow / Small-All-Caps
   ========================================================= */

.ik-eyebrow,
.ik-meta {
  font-family: var(--ik-font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ik-text-secondary);
  line-height: 1.4;
}
.ik-eyebrow--accent { color: var(--ik-red); }
.ik-eyebrow--on-dark { color: rgba(255,255,255,0.7); }


/* =========================================================
   Hairlines
   ========================================================= */

.ik-rule {
  height: 0;
  border: 0;
  border-top: var(--ik-border-hairline);
  margin: 0;
}
.ik-on-dark .ik-rule { border-top-color: rgba(255,255,255,0.15); }


/* =========================================================
   Headings — Audience-specific
   ========================================================= */

.ik-akademie h1, .ik-h1--akademie {
  font-family: var(--ik-font-heading);
  font-weight: var(--ik-akademie-h1-weight);  /* 600 */
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--ik-black);
  -webkit-text-stroke: 0.6px var(--ik-black);
  margin: 0;
}
.ik-akademie h2, .ik-h2--akademie {
  font-family: var(--ik-font-heading);
  font-weight: var(--ik-akademie-h2-weight);  /* 500 */
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ik-black);
  margin: 0;
}

.ik-kartei h1, .ik-h1--kartei {
  font-family: var(--ik-font-heading);
  font-weight: var(--ik-kartei-h1-weight);    /* 200 — Thin, nur ≥28px */
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ik-black);
  margin: 0;
}
.ik-kartei h2, .ik-h2--kartei {
  font-family: var(--ik-font-heading);
  font-weight: var(--ik-kartei-h2-weight);    /* 400 */
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ik-black);
  margin: 0;
}


/* Inner-Pulse Modifier wurde entfernt (Niko-Final 2026-04-30).
   Stattdessen: Liquid Shine als Default für Filled Button (siehe oben). */


/* =========================================================
   Preise-Sweep — Top-Nav Signature Element
   Usage:
     <a href="#" class="ik-preise">
       <span class="ik-preise__diamond"></span>
       <span class="ik-preise__text">Preise sehen</span>
     </a>
   ========================================================= */

.ik-preise {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ik-font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.ik-preise__text {
  color: transparent;
  background-image:
    radial-gradient(circle 60px at var(--x, 0%) 50%, #C95545 0%, #9A3231 50%, #7A1420 80%),
    linear-gradient(90deg, #7A1420, #7A1420);
  background-size: 220% 100%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: ik-preise-sweep 3.2s ease-in-out infinite;
}
@keyframes ik-preise-sweep {
  0%   { background-position: -20% 50%, 0 0; }
  50%  { background-position: 120% 50%, 0 0; }
  100% { background-position: -20% 50%, 0 0; }
}
.ik-preise__diamond {
  display: inline-block;
  width: 6px; height: 6px;
  background: #9A3231;
  transform: rotate(45deg);
  animation: ik-preise-diamond 3.8s ease-in-out infinite;
}
@keyframes ik-preise-diamond {
  0%, 100% { background: #7A1420; }
  50%      { background: #C95545; }
}
@media (prefers-reduced-motion: reduce) {
  .ik-preise__text { animation: none; background: none; color: var(--ik-red); -webkit-background-clip: initial; background-clip: initial; }
  .ik-preise__diamond { animation: none; background: var(--ik-red); }
}

/* ─────────────────────────────────────────────────────────────────────
   Welle 1 Bridge-Override: Hero scharfe Kanten (Brand-Guide v6 §Hero)
   Behoben in Welle 2 wenn front-page.php neu mit v6-Markup gebaut wird.
   ───────────────────────────────────────────────────────────────────── */
.hero, .hero__canvas, .hero img, .frontpage__hero,
section[class*="hero"] img,
section[class*="hero"] [class*="canvas"] {
    border-radius: 0 !important;
}

/* ─────────────────────────────────────────────────────────────────────
   Welle 1 R2 — Specificity-Override gegen alte ik-components.css
   ik-components.css definiert dieselben Selektoren mit alten Werten und
   wird NACH brand/components.css geladen (Cascade-Konflikt). Diese Rules
   gewinnen via !important bis alte ik-components.css in Welle 2 entfernt.
   ───────────────────────────────────────────────────────────────────── */
.ik-site-header .ik-nav__brand,
header .ik-nav__brand {
    font-family: 'Cabinet Grotesk', 'Inter', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}
.ik-site-header .ik-nav__brand span,
header .ik-nav__brand span {
    font-family: 'Cabinet Grotesk', 'Inter', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}
.ik-site-header .ik-nav__link,
header .ik-nav__link,
.ik-site-header .ik-preise,
header .ik-preise,
.ik-site-header .ik-preise__text {
    font-family: 'Switzer', 'Inter', system-ui, sans-serif !important;
    font-weight: 500 !important;
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

/* ═══════════════════════════════════════════════════════════════════
   WELLE-4 HOTFIX 3 — Defensive Mobile/Mid-Range-Override
   2026-05-04 — Schutz gegen Site-Editor-Custom-CSS-Drift (wp_posts 223)
   Memory: feedback_drei-breakpoints-pflicht-vor-checkpoint
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    html body,
    body[class] {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }
    body h1 {
        font-size: clamp(32px, 8vw, 48px) !important;
    }
    body input[type="email"],
    body input[type="text"],
    body input[type="tel"],
    body input[type="search"],
    body select,
    body textarea {
        font-size: 18px !important;
    }
}

@media (min-width: 600px) and (max-width: 1023px) {
    body .ik-magazin__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
