/* ============================================
   Splexus Custom — Child-Theme von Quark 2
   Alle Custom-Styles, die Quark 2 ueberschreiben
   ============================================ */

/* --- Demo-Seite Styles --- */
.ct-demo-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.ct-section {
  background: var(--q2-bg-card, #fff);
  border: 1px solid var(--q2-border, rgba(0,0,0,0.08));
  border-radius: 14px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ct-section:hover {
  box-shadow: 0 8px 30px rgba(132,40,223,0.12);
}

.ct-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .ct-section {
  background: #16121f;
  border-color: rgba(255,255,255,0.08);
}

/* Info-Box */
.ct-info-box {
  background: rgba(132,40,223,0.06);
  border-left: 4px solid #8428DF;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  line-height: 1.8;
}

[data-theme="dark"] .ct-info-box {
  background: rgba(132,40,223,0.12);
}

/* Grid-Layout */
.ct-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.ct-card {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

[data-theme="dark"] .ct-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}

.ct-label {
  font-size: 0.78rem;
  color: #666;
  font-family: monospace;
}

[data-theme="dark"] .ct-label { color: #999; }

.ct-value {
  font-size: 1.05rem;
  font-weight: 600;
  word-break: break-word;
}

/* CSS Showcase */
.ct-css-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.ct-gradient-box {
  background: linear-gradient(135deg, #8428DF, #38BDF8, #2DD4BF);
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.ct-glass-box {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--q2-text, #333);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.ct-neon-text {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: #0a0a0a;
  font-size: 1.3rem;
  font-weight: 800;
  color: #8428DF;
  text-shadow: 0 0 5px #8428DF, 0 0 15px #8428DF, 0 0 30px #8428DF;
  animation: ct-flicker 3s infinite alternate;
}

@keyframes ct-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.ct-card-3d {
  background: linear-gradient(145deg, #1e1b4b, #312e81);
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  transform: perspective(600px) rotateY(15deg);
  transition: transform 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.ct-card-3d:hover {
  transform: perspective(600px) rotateY(0deg) scale(1.05);
}

/* JS Demo */
.ct-js-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.ct-btn {
  background: #8428DF;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ct-btn:hover {
  background: #7422c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(132,40,223,0.3);
}

.ct-btn:active {
  transform: translateY(0);
}

.ct-btn-secondary {
  background: transparent;
  color: #8428DF;
  border: 2px solid #8428DF;
}

.ct-btn-secondary:hover {
  background: rgba(132,40,223,0.1);
}

.ct-toggle-box {
  width: 100%;
  background: rgba(132,40,223,0.08);
  border: 2px dashed #8428DF;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  overflow: hidden;
}

.ct-toggle-box.ct-hidden {
  opacity: 0;
  max-height: 0;
  padding: 0;
  border: 2px dashed transparent;
}

.ct-clock {
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  font-family: monospace;
  color: #8428DF;
  font-weight: 700;
}

.ct-clock span {
  font-size: 1.5rem;
}

/* Tags */
.ct-tag {
  display: inline-block;
  background: rgba(132,40,223,0.15);
  color: #8428DF;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.82rem;
  margin: 0.1rem;
}

/* Page-List */
.ct-page-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.ct-page-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .ct-page-list li {
  border-color: rgba(255,255,255,0.05);
}

.ct-page-list a {
  color: #8428DF;
  text-decoration: none;
  font-weight: 600;
}

.ct-page-list a:hover {
  text-decoration: underline;
}

/* Table */
.ct-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.ct-table th {
  background: rgba(132,40,223,0.1);
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid #8428DF;
}

.ct-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] .ct-table td {
  border-color: rgba(255,255,255,0.06);
}

.ct-table tr:hover td {
  background: rgba(132,40,223,0.04);
}

.ct-table code {
  font-size: 0.82rem;
  color: #8428DF;
}

/* --- Global: eigener Accent fuer Links --- */
a {
  transition: color 0.2s ease;
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .ct-section {
    padding: 1rem 1.2rem;
    border-radius: 10px;
  }
  .ct-css-showcase {
    grid-template-columns: 1fr;
  }
  .ct-card-3d {
    transform: none;
  }
}