/* Der Koerting - Homepage-Features
   Extrahiert aus dem Theme-Customizer (custom-css-v5.css, Z. 982-1210).
   Nutzt die global vom Theme definierten --tk-*-Variablen. */

/* Hero Quote Rotator */
.tk-hero-quote {
  text-align: center;
  margin: 1.5rem auto 0.5rem;
  max-width: 540px;
  padding: 0 1rem;
}
.tk-hero-quote a {
  text-decoration: none !important;
  display: block;
}
.tk-hero-quote a:hover .tk-hero-quote-text {
  color: var(--tk-accent-hover);
}
.tk-hero-quote-text {
  display: block;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--tk-accent);
  transition: color 0.2s ease;
}
.tk-hero-quote-source {
  display: block;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--tk-text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}
.tk-hero-quote a:hover .tk-hero-quote-source {
  color: var(--tk-accent);
}

/* Dark Mode */
body.dark-mode .tk-hero-quote-text { color: #14B8A6; }
body.dark-mode .tk-hero-quote a:hover .tk-hero-quote-text { color: #5EEAD4; }
body.dark-mode .tk-hero-quote-source { color: #64748B; }
body.dark-mode .tk-hero-quote a:hover .tk-hero-quote-source { color: #14B8A6; }

@media (prefers-color-scheme: dark) {
  .tk-hero-quote-text { color: #14B8A6; }
  .tk-hero-quote a:hover .tk-hero-quote-text { color: #5EEAD4; }
  .tk-hero-quote-source { color: #64748B; }
  .tk-hero-quote a:hover .tk-hero-quote-source { color: #14B8A6; }
}

/* Teaser-Zitate (noch nicht live) */
.tk-hero-quote-teaser {
  opacity: 0.45;
  cursor: default;
}
.tk-hero-quote-teaser .tk-hero-quote-source {
  font-style: italic;
}

/* Progress Separator (Quote Rotator) */
.tk-hero-quote-separator {
  width: 48px;
  height: 2px;
  margin: 1rem auto 1rem;
  border-radius: 1px;
  overflow: hidden;
  background: rgba(13, 148, 136, 0.15);
}
.tk-hero-quote-separator-fill {
  height: 100%;
  width: 0%;
  border-radius: 1px;
  background: var(--tk-accent);
}
body.dark-mode .tk-hero-quote-separator { background: rgba(20, 184, 166, 0.15); }
body.dark-mode .tk-hero-quote-separator-fill { background: #14B8A6; }
@media (prefers-color-scheme: dark) {
  .tk-hero-quote-separator { background: rgba(20, 184, 166, 0.15); }
  .tk-hero-quote-separator-fill { background: #14B8A6; }
}

/* Mood Filter */
.tk-mood-wrapper {
  text-align: center;
  margin: 1rem auto 0;
  max-width: 720px;
  padding: 0 1.5rem;
}
.tk-mood-question {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--tk-text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
  opacity: 0.6;
}
.tk-mood-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-items: center;
  margin: 0 auto;
  max-width: 500px;
}
.tk-mood-btn {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  padding: 0.4rem 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.tk-mood-btn:hover,
.tk-mood-btn:focus,
.tk-mood-btn:active {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
.tk-mood-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  transition: all 0.25s ease;
  transform: translateX(-50%);
}
.tk-mood-btn.active::after { width: 100%; }
.tk-mood-btn.mood-laut { grid-column: 1; grid-row: 1; justify-self: end; }
.tk-mood-btn.mood-leise { grid-column: 3; grid-row: 1; justify-self: start; }
.tk-mood-btn.mood-nerdig { grid-column: 1; grid-row: 2; justify-self: end; }
.tk-mood-btn.mood-alle { grid-column: 3; grid-row: 2; justify-self: start; }

/* Waveform SVG */
.tk-mood-wave {
  grid-column: 2; grid-row: 1 / 3;
  width: 64px; height: 64px;
  transition: width 0.4s ease, height 0.4s ease;
}
.tk-mood-wave.wave-idle { width: 80px; height: 72px; }
.tk-mood-wave svg { width: 100%; height: 100%; overflow: visible; }
.tk-mood-wave path {
  fill: none; stroke-width: 1.2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke: var(--tk-border);
}
.tk-mood-wave path:nth-child(2),
.tk-mood-wave path:nth-child(3),
.tk-mood-wave path:nth-child(4) { display: none; }
.tk-mood-wave.wave-idle path {
  display: block !important;
  stroke-width: 0.8;
  stroke: var(--tk-accent); opacity: 0.4;
}
.tk-mood-wave.wave-laut path { stroke: var(--tk-accent); }
.tk-mood-wave.wave-leise path { stroke: var(--tk-text-muted); }
.tk-mood-wave.wave-nerdig path { stroke: #EAB308; }
.tk-mood-wave.wave-alle path { stroke: var(--tk-text); }

/* LAUT */
.tk-mood-btn.mood-laut {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tk-text-muted);
}
.tk-mood-btn.mood-laut:hover,
.tk-mood-btn.mood-laut.active { color: var(--tk-accent); }
.tk-mood-btn.mood-laut.active::after { background: var(--tk-accent); }

/* LEISE */
.tk-mood-btn.mood-leise {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400; font-style: italic; font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--tk-border);
}
.tk-mood-btn.mood-leise:hover,
.tk-mood-btn.mood-leise.active { color: var(--tk-text-muted); }
.tk-mood-btn.mood-leise.active::after { background: var(--tk-text-muted); }

/* NERDIG */
.tk-mood-btn.mood-nerdig {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-weight: 500; font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--tk-text-muted);
}
.tk-mood-btn.mood-nerdig:hover,
.tk-mood-btn.mood-nerdig.active { color: #EAB308; }
.tk-mood-btn.mood-nerdig.active::after { background: #EAB308; }

/* ALLE */
.tk-mood-btn.mood-alle {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400; font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--tk-text-muted);
}
.tk-mood-btn.mood-alle:hover,
.tk-mood-btn.mood-alle.active { color: var(--tk-text); }
.tk-mood-btn.mood-alle.active::after { background: var(--tk-text); }

/* Counter */
.tk-mood-count {
  text-align: center;
  font-size: 0.78rem;
  margin-top: 1rem;
  color: var(--tk-text-muted);
}

/* Dark Mode overrides */
body.dark-mode .tk-mood-wave.wave-nerdig path { stroke: #FACC15; }
body.dark-mode .tk-mood-btn.mood-nerdig:hover,
body.dark-mode .tk-mood-btn.mood-nerdig.active { color: #FACC15; }
body.dark-mode .tk-mood-btn.mood-nerdig.active::after { background: #FACC15; }

@media (prefers-color-scheme: dark) {
  .tk-mood-wave.wave-nerdig path { stroke: #FACC15; }
  .tk-mood-btn.mood-nerdig:hover,
  .tk-mood-btn.mood-nerdig.active { color: #FACC15; }
  .tk-mood-btn.mood-nerdig.active::after { background: #FACC15; }
}
