/* ch!li cooperation — Werkzeuge-Seite: Fähigkeiten-Kacheln + interaktive Mini-Tools.
   Mobile-first, nutzt die gleichen Design-Tokens wie style.css/shop.css. */

.tool-cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .tool-cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .tool-cap-grid { grid-template-columns: repeat(3, 1fr); }
}
.tool-cap-card {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tool-cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool-cap-icon { font-size: 34px; display: block; margin-bottom: 14px; }
.tool-cap-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.tool-cap-card p { font-size: 14px; color: var(--text-2); line-height: 1.5; min-height: 42px; }
.tool-cap-link { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--accent); }

.tool-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.tool-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-head);
}
.tool-head h2 { font-size: 24px; margin-bottom: 4px; }
.tool-head p { color: var(--text-2); font-size: 14.5px; line-height: 1.5; }

.tool-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.tool-form input[type="text"],
.tool-form input[type="number"],
.tool-form select {
  flex: 1 1 220px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 15px;
}
.tool-form--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
}
@media (min-width: 640px) {
  .tool-form--grid { grid-template-columns: repeat(2, 1fr); }
}
.tool-form--grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.tool-form--grid label.tool-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.tool-form--grid input[type="checkbox"] { width: 18px; height: 18px; }
/* Die .tool-form-Regel für Inputs/Selects setzt flex-basis:220px – im Spalten-Flex
   des Labels (flex-direction:column) würde das die Höhe sprengen statt die Breite. */
.tool-form--grid label input,
.tool-form--grid label select {
  flex: none;
  width: 100%;
}

.tool-result { margin-top: 20px; }
.tool-result:empty { margin-top: 0; }

.tool-score {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--bg-soft);
  margin-bottom: 14px;
}
.tool-score-num { font-family: var(--font-head); font-size: 34px; font-weight: 800; }
.tool-score.good .tool-score-num { color: #28c150; }
.tool-score.mid .tool-score-num { color: #f5a623; }
.tool-score.bad .tool-score-num { color: #ff5e5e; }
.tool-score-label { font-size: 13.5px; color: var(--text-2); }

/* ---- Bewertungsformular (/bewertungen/) ---- */
.review-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.review-stars { display: flex; gap: 6px; }
.review-stars .rs {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 30px; line-height: 1; color: var(--border);
  transition: color 0.15s, transform 0.15s;
}
.review-stars .rs:hover { transform: scale(1.12); }
.review-stars .rs.on { color: #f5a623; }
.review-form input[type="text"],
.review-form input[type="email"],
.review-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); font: inherit; font-size: 14.5px;
}
.review-form textarea { resize: vertical; }

/* ---- Bewertungen-Liste (/bewertungen/) ---- */
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft); padding: 22px 26px;
}
.review-card-stars { color: #f5a623; font-size: 15px; margin-bottom: 8px; letter-spacing: 1px; }
.review-card-text { font-size: 15px; line-height: 1.6; color: var(--text); margin-bottom: 10px; }
.review-card-who { font-size: 13px; color: var(--text-2); }

/* ---- Domain-Check (Werkzeuge) ---- */
.tool-domain-inquiry {
  margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: var(--bg-soft);
  display: flex; flex-direction: column; gap: 12px;
}
.tool-domain-inquiry input[type="text"],
.tool-domain-inquiry input[type="email"],
.tool-domain-inquiry textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); font: inherit; font-size: 14px;
}
.tool-domain-note { font-size: 12px; color: var(--text-2); margin-top: 6px; }

.tool-check-list { display: flex; flex-direction: column; gap: 10px; }
.tool-check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.tool-check-item .ic { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.tool-check-item.pass .ic { color: #28c150; }
.tool-check-item.fail .ic { color: #ff5e5e; }
.tool-check-item .label { font-weight: 600; font-size: 14px; }
.tool-check-item .value { font-size: 12.5px; color: var(--text-2); }
.tool-check-item .hint { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }

.tool-error { color: #ff5e5e; font-size: 14px; padding: 12px 16px; background: rgba(255, 94, 94, 0.1); border-radius: 12px; }

.tool-price-card {
  padding: 20px;
  border-radius: 18px;
  background: var(--accent-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-price-card .amount { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--accent); }
.tool-price-card .note { font-size: 12.5px; color: var(--text-2); flex-basis: 100%; }

.tool-fineprint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

.tool-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tool-keyword-list span {
  padding: 9px 16px;
  border-radius: 99px;
  background: var(--bg-soft);
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------------- Tool 5: Marketing-Automation (Timeline-Demo) ---------------- */

.tool-automation-timeline {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tool-auto-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tool-auto-step.show { opacity: 1; transform: translateY(0); }
.tool-auto-step .ic { font-size: 20px; flex-shrink: 0; }
.tool-auto-step .label { font-weight: 700; font-size: 14.5px; }
.tool-auto-step .when { font-size: 12.5px; color: var(--text-2); }

/* ---------------- Tool 6: Animationen & Interaktion (echte Mini-Demos) ---------------- */

.tool-anim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .tool-anim-grid { grid-template-columns: repeat(3, 1fr); }
}
.tool-anim-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tool-anim-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.tool-anim-lordicon { width: 56px; height: 56px; }

.tool-flip-card { perspective: 600px; }
.tool-flip-inner {
  position: relative;
  width: 100%;
  height: 24px;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.tool-flip-card.flipped .tool-flip-inner { transform: rotateX(180deg); }
.tool-flip-front, .tool-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-flip-back { transform: rotateX(180deg); }

.tool-counter-num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
}

/* Ripple */
.tool-ripple-card { position: relative; overflow: hidden; }
.tool-ripple {
  position: absolute;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent-soft);
  transform: scale(0);
  animation: tool-ripple-anim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes tool-ripple-anim {
  to { transform: scale(14); opacity: 0; }
}

/* Fortschrittsbalken */
.tool-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 99px;
  background: var(--bg-soft);
  overflow: hidden;
  margin-bottom: 4px;
}
.tool-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Toggle-Switch */
.tool-switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.tool-switch input { opacity: 0; width: 0; height: 0; }
.tool-switch-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 99px;
  transition: background 0.25s ease;
}
.tool-switch-slider::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.25s ease;
}
.tool-switch input:checked + .tool-switch-slider { background: var(--accent); }
.tool-switch input:checked + .tool-switch-slider::before { transform: translateX(20px); }

/* Accordion */
.tool-accordion summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.tool-accordion summary::-webkit-details-marker { display: none; }
.tool-accordion p { margin: 10px 0 0; font-size: 13px; color: var(--text-2); }

/* Tilt-Karte */
.tool-tilt-card { transition: transform 0.15s ease-out; }
.tool-tilt-card span { font-size: 30px; }

/* Pulse */
.tool-pulse-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.tool-pulse-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: tool-pulse-anim 1.6s ease-out infinite;
}
@keyframes tool-pulse-anim {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Sterne-Bewertung */
.tool-star-rating { font-size: 26px; letter-spacing: 2px; color: var(--border); cursor: pointer; }
.tool-star-rating .ts { transition: color 0.15s ease; }
.tool-star-rating .ts.on { color: #f5a623; }

/* Schreibmaschine */
.tool-typewriter { min-height: 20px; font-weight: 600; font-size: 13.5px; }

/* Shimmer */
.tool-shimmer-box {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: #28c150;
  overflow: hidden;
  position: relative;
}
.tool-shimmer-box.loading {
  background: linear-gradient(100deg, var(--bg-soft) 30%, var(--border) 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: tool-shimmer-anim 1.1s ease-in-out infinite;
}
@keyframes tool-shimmer-anim {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Konfetti */
.tool-confetti-btn { position: relative; overflow: visible; }
.tool-confetti-piece {
  position: absolute;
  top: 30%;
  font-size: 18px;
  animation: tool-confetti-anim 0.9s ease-out forwards;
  pointer-events: none;
}
@keyframes tool-confetti-anim {
  to { transform: translate(var(--dx), -70px) rotate(var(--rot)); opacity: 0; }
}

/* ---------------- Tool 8: Farbkombinationen zum Logo ---------------- */

#toolColorForm { align-items: center; }
#toolColorPicker {
  flex: 0 0 auto;
  width: 52px;
  height: 48px;
  padding: 4px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-elev);
  cursor: pointer;
}
#toolColorHex { flex: 1 1 160px; font-family: var(--font-head); font-weight: 600; }

.tool-color-group-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  margin: 18px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tool-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.tool-color-swatch { text-align: center; }
.tcs-box {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 8px;
}
.tcs-hex { font-family: var(--font-head); font-weight: 700; font-size: 13px; }
.tcs-label { font-size: 11.5px; color: var(--text-2); max-width: 90px; margin: 2px auto 0; }
