:root {
  --primary-color: #4e54c8;
  --secondary-color: #8f94fb;
  --background-color: #f8f9fa;
  --text-color: #333;
  --shadow: rgba(0,0,0,0.1);
  --code-bg: #222;
  --code-color: #fff;
  --footer-bg: #e2e2e2;
  --footer-color: #4e54c8;
}

/* Dark Mode */
.dark-mode {
  --background-color: #181a1b;
  --text-color: #fff;
  --shadow: rgba(0,0,0,0.4);
  --code-bg: #181a1b;
  --code-color: #fff;
  --footer-bg: #23272b;
  --footer-color: #fff;
}

body {
  font-family: Arial, sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 28px 10px 18px 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 2px 16px var(--shadow);
}
header h1 {
  font-size: 2.2em;
  letter-spacing: 1px;
  margin: 0;
}
#toggle-theme {
  font-size: 1.3em;
  background: #fff;
  color: #4e54c8;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#toggle-theme:hover {
  background: #8f94fb;
  color: #fff;
}
#search {
  padding: 8px 16px;
  border-radius: 18px;
  border: 1.5px solid #e0e0e0;
  font-size: 1em;
  width: 220px;
  box-shadow: 0 2px 8px var(--shadow);
  outline: none;
  transition: border 0.2s;
}
#search:focus {
  border-color: #8f94fb;
}

footer {
  text-align: center;
  padding: 14px;
  margin-top: auto;
  background: var(--footer-bg);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  font-size: 1.1em;
  color: var(--footer-color);
  position: sticky;
  bottom: 0;
  z-index: 10;
  box-shadow: 0 -2px 12px var(--shadow);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 8px;
  }
  .effect-preview {
    height: 90px;
    min-width: 60px;
    min-height: 60px;
  }
  .card {
    padding: 14px 4px 10px 4px;
    gap: 10px;
  }
  header {
    padding: 12px 4px 8px 4px;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 20;
  }
  footer {
    padding: 10px;
    font-size: 1em;
  }
  .effect-code-block {
    font-size: 1em;
    padding: 14px;
    max-width: 98vw;
  }
}

.card {
  background: linear-gradient(135deg, #fff 80%, #f0f4ff 100%);
  border-radius: 18px;
  box-shadow: 0 4px 16px var(--shadow);
  text-decoration: none;
  color: #222;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px 14px 10px;
  gap: 10px;
  border: 1.5px solid #e0e0e0;
}
.dark-mode .card {
  color: #222;
}
.card:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 8px 32px var(--shadow);
  border-color: #8f94fb;
}

.effect-preview {
  height: 80px;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

/* Beispiel-Effekt 1: Rotierende Box */
.effect-rotate {
  background: var(--primary-color);
  width: 60px;
  height: 60px;
  animation: rotation 3s infinite linear;
}

@keyframes rotation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Beispiel-Effekt 2: Animierter Gradient */
.effect-gradient {
  background: linear-gradient(270deg, #ff9a9e, #fad0c4, #a1c4fd, #c2e9fb, #8f94fb, #4e54c8, #ff9a9e);
  background-size: 1400% 1400%;
  width: 140px;
  height: 80px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
  animation: gradientMove 6s ease-in-out infinite;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  text-shadow: 0 2px 8px #333;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Beispiel-Effekt 3: Interaktiver Schatten */
.effect-shadow {
  background: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s ease;
}

.effect-shadow:hover {
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

/* Responsive Design: Mobile-Optimierung */
@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }
  .effect-preview {
    height: 100px;
  }
  header, footer {
    padding: 12px;
    font-size: 1em;
  }
  .card {
    border-radius: 8px;
  }
}

.effect-glow {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 20px 5px #8f94fb, 0 0 40px 10px #4e54c8;
  transition: box-shadow 0.3s;
}
.effect-glow:hover {
  box-shadow: 0 0 40px 15px #4e54c8, 0 0 80px 20px #8f94fb;
}

.effect-blur {
  width: 60px;
  height: 60px;
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=facearea&w=80&h=80') center/cover;
  filter: blur(2px);
  border-radius: 50%;
  transition: filter 0.3s;
}
.effect-blur:hover {
  filter: blur(0);
}

.effect-3d {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  border-radius: 10px;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}
.effect-3d:hover {
  transform: rotateY(180deg);
}

.effect-text-gradient {
  font-size: 1.2em;
  font-weight: bold;
  background: linear-gradient(90deg, #ff9a9e, #fad0c4, #a1c4fd, #c2e9fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.effect-pulse {
  width: 50px;
  height: 50px;
  background: #ff9a9e;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.effect-border-anim {
  width: 60px;
  height: 60px;
  border: 3px solid #4e54c8;
  border-radius: 16px;
  position: relative;
  animation: border-anim 2s linear infinite;
}
@keyframes border-anim {
  0% { border-color: #4e54c8; }
  50% { border-color: #8f94fb; }
  100% { border-color: #4e54c8; }
}

.effect-button {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(90deg, #4e54c8, #8f94fb);
  color: #fff;
  border-radius: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.3s, transform 0.2s;
}
.effect-button:hover {
  background: linear-gradient(90deg, #8f94fb, #4e54c8);
  transform: scale(1.08);
}

.effect-image img {
  width: 120px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s;
}
.effect-image img:hover {
  transform: scale(1.15) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.effect-wave {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #a1c4fd 60%, #c2e9fb 100%);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}
.effect-wave::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 20px;
  width: 120px;
  height: 30px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: waveMove 2s infinite linear;
}
@keyframes waveMove {
  0% { left: -30px; }
  100% { left: 30px; }
}

.effect-fire {
  width: 40px;
  height: 60px;
  background: linear-gradient(180deg, #ff9800 60%, #ff5722 100%);
  border-radius: 50% 50% 20% 20%/60% 60% 40% 40%;
  position: relative;
  animation: fireFlicker 0.5s infinite alternate;
}
@keyframes fireFlicker {
  0% { filter: brightness(1.1); }
  100% { filter: brightness(1.4) blur(1px); }
}

.effect-glass {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.effect-ripple {
  width: 60px;
  height: 60px;
  background: #4e54c8;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}
.effect-ripple::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 1.2s infinite;
}
@keyframes ripple {
  0% { width: 0; height: 0; opacity: 1; }
  100% { width: 120px; height: 120px; opacity: 0; }
}

.effect-bounce {
  width: 50px;
  height: 50px;
  background: #8f94fb;
  border-radius: 50%;
  animation: bounce 1s infinite alternate;
}
@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-30px); }
}

.effect-neon {
  font-size: 1.2em;
  color: #fff;
  text-shadow: 0 0 8px #4e54c8, 0 0 16px #8f94fb, 0 0 32px #4e54c8;
  background: #222;
  padding: 8px 16px;
  border-radius: 8px;
}

.effect-skew {
  width: 60px;
  height: 60px;
  background: #fad0c4;
  transform: skew(-20deg, -10deg);
  transition: transform 0.3s;
}
.effect-skew:hover {
  transform: skew(20deg, 10deg) scale(1.1);
}

.effect-fade {
  width: 60px;
  height: 60px;
  background: #a1c4fd;
  opacity: 0.2;
  animation: fadeIn 2s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.effect-border-radius {
  width: 60px;
  height: 60px;
  background: #c2e9fb;
  border-radius: 10%;
  animation: morph 2s infinite alternate;
}
@keyframes morph {
  0% { border-radius: 10%; }
  100% { border-radius: 50%; }
}

.effect-loading {
  width: 40px;
  height: 40px;
  border: 4px solid #8f94fb;
  border-top: 4px solid #4e54c8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

.effect-pop {
  width: 60px;
  height: 60px;
  background: #ff9a9e;
  border-radius: 50%;
  animation: pop 1.2s infinite;
}
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.effect-clip {
  width: 60px;
  height: 60px;
  background: #4e54c8;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  transition: clip-path 0.5s;
}
.effect-clip:hover {
  clip-path: circle(50% at 50% 50%);
}

/* Zurück-Button */
.back-to-gallery {
  display: block;
  margin: 0 auto 24px auto;
  padding: 12px 32px;
  background: linear-gradient(90deg, #4e54c8, #8f94fb);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 0 2px 12px var(--shadow);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  outline: none;
}
.back-to-gallery:hover,
.back-to-gallery:focus {
  background: linear-gradient(90deg, #8f94fb, #4e54c8);
  transform: scale(1.05);
  outline: 2px solid #fff;
}

/* Entfernt Inline-Styles aus Effektseiten */
.effect-main-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 60vh;
  justify-content: center;
}
.effect-preview-box {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.effect-preview-text {
  font-weight: bold;
  font-size: 1.1em;
  text-shadow: 0 2px 8px #bbb;
}
.effect-preview-text--primary {
  color: #4e54c8;
  font-size: 1.2em;
}
.effect-preview-text--white {
  color: #fff;
}
.effect-preview-text--shadow {
  color: #23272b;
}
.back-arrow {
  font-size: 1.3em;
  vertical-align: middle;
}

.effect-preview-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* Codeblock */
.effect-code-block {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px auto 0 auto;
  background: var(--code-bg);
  color: var(--code-color);
  padding: 24px;
  border-radius: 14px;
  max-width: 95vw;
  font-size: 1.08em;
  font-family: 'Fira Mono', 'Consolas', monospace;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  overflow-x: auto;
  word-break: break-word;
}

/* Fokus-Stile für Barrierefreiheit */
button:focus,
input:focus,
a:focus {
  outline: 2.5px solid #8f94fb;
  outline-offset: 2px;
}

/* Suchfeld-Verbesserung */
#search {
  padding: 10px 20px;
  border-radius: 20px;
  border: 2px solid #e0e0e0;
  font-size: 1.1em;
  width: 260px;
  box-shadow: 0 2px 8px var(--shadow);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  background: #fff url('data:image/svg+xml;utf8,<svg fill="gray" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99c.41.41 1.09.41 1.5 0s.41-1.09 0-1.5l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat 98% center;
  background-size: 22px;
}
#search:focus {
  border-color: #8f94fb;
  box-shadow: 0 0 0 2px #8f94fb33;
}

/* Darkmode für Inputs, Buttons, Codeblock, Footer */
.dark-mode #search {
  background: #23272b url('data:image/svg+xml;utf8,<svg fill="white" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99c.41.41 1.09.41 1.5 0s.41-1.09 0-1.5l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat 98% center;
  color: #f2f2f2;
  border-color: #444;
}
.dark-mode .back-to-gallery {
  background: linear-gradient(90deg, #23272b, #4e54c8);
  color: #fff;
}
.dark-mode .back-to-gallery:hover,
.dark-mode .back-to-gallery:focus {
  background: linear-gradient(90deg, #4e54c8, #23272b);
  outline: 2px solid #fff;
}
.dark-mode .effect-code-block {
  background: var(--code-bg);
  color: var(--code-color);
}
.dark-mode footer {
  background: var(--footer-bg);
  color: var(--footer-color);
}

/* Effekt: Wackel-Animation */
.effect-shake {
  display: inline-block;
  background: #8f94fb;
  color: #fff;
  border-radius: 12px;
  padding: 18px 36px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.effect-shake:hover,
.effect-shake:focus {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  background: #4e54c8;
}
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
  100% { transform: translateX(0); }
}

/* Vorschau für Wackel-Animation */
.effect-shake-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #8f94fb;
  color: #fff;
  border-radius: 10px;
  width: 60px;
  height: 36px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.effect-shake-preview:hover,
.effect-shake-preview:focus {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  background: #4e54c8;
}

/* Effekt: Farbwechselnder Rahmen */
.effect-colorful-border {
  width: 70px;
  height: 70px;
  border: 4px solid;
  border-radius: 16px;
  border-image: linear-gradient(135deg, #ff9a9e, #fad0c4, #a1c4fd, #c2e9fb, #8f94fb, #4e54c8) 1;
  animation: borderColorAnim 2.5s linear infinite;
  background: #fff;
  box-shadow: 0 2px 12px rgba(143,148,251,0.09);
}
@keyframes borderColorAnim {
  0% {
    border-image-source: linear-gradient(135deg, #ff9a9e, #fad0c4, #a1c4fd, #c2e9fb, #8f94fb, #4e54c8);
  }
  100% {
    border-image-source: linear-gradient(495deg, #4e54c8, #8f94fb, #c2e9fb, #a1c4fd, #fad0c4, #ff9a9e);
  }
}

/* Vorschau für Farbwechselnder Rahmen */
.effect-colorful-border-preview {
  width: 48px;
  height: 48px;
  border: 3px solid;
  border-radius: 12px;
  border-image: linear-gradient(135deg, #ff9a9e, #fad0c4, #a1c4fd, #c2e9fb, #8f94fb, #4e54c8) 1;
  animation: borderColorAnim 2.5s linear infinite;
  background: #fff;
  box-shadow: 0 2px 8px rgba(143,148,251,0.09);
}

/* Effekt: Schwebende Karte */
.effect-floating-card {
  background: #fff;
  color: #23272b;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 28px 44px;
  font-size: 1.2em;
  font-weight: bold;
  transition: transform 0.25s cubic-bezier(.21,1.02,.73,1.01), box-shadow 0.25s;
  will-change: transform, box-shadow;
}
.effect-floating-card:hover,
.effect-floating-card:focus {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 12px 32px rgba(78,84,200,0.18), 0 2px 8px rgba(143,148,251,0.12);
}

/* Vorschau für Schwebende Karte */
.effect-floating-card-preview {
  background: #fff;
  color: #23272b;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1em;
  transition: transform 0.25s cubic-bezier(.21,1.02,.73,1.01), box-shadow 0.25s;
}
.effect-floating-card-preview:hover,
.effect-floating-card-preview:focus {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 12px 32px rgba(78,84,200,0.18), 0 2px 8px rgba(143,148,251,0.12);
}

/* Effekt: Glitch-Text */
.effect-glitch-text {
  position: relative;
  color: #fff;
  font-size: 2.2em;
  font-weight: bold;
  letter-spacing: 2px;
  background: #23272b;
  padding: 16px 32px;
  border-radius: 10px;
  overflow: hidden;
}
.effect-glitch-text::before,
.effect-glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  opacity: 0.7;
}
.effect-glitch-text::before {
  color: #ff00c8;
  z-index: 2;
  animation: glitchTop 0.3s infinite linear alternate-reverse;
}
.effect-glitch-text::after {
  color: #00fff9;
  z-index: 1;
  animation: glitchBottom 0.4s infinite linear alternate-reverse;
}
@keyframes glitchTop {
  0% { transform: translate(0,0); }
  20% { transform: translate(-2px,-2px); }
  40% { transform: translate(-4px,2px); }
  60% { transform: translate(2px,-1px); }
  80% { transform: translate(-1px,2px); }
  100% { transform: translate(0,0); }
}
@keyframes glitchBottom {
  0% { transform: translate(0,0); }
  20% { transform: translate(2px,2px); }
  40% { transform: translate(4px,-2px); }
  60% { transform: translate(-2px,1px); }
  80% { transform: translate(1px,-2px); }
  100% { transform: translate(0,0); }
}

/* Schimmernder Button */
.effect-shimmer-button {
  position: relative;
  background: linear-gradient(90deg, #4e54c8, #8f94fb);
  color: #fff;
  padding: 16px 36px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  cursor: pointer;
  overflow: hidden;
}
.effect-shimmer-button::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.2) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s;
  pointer-events: none;
}
.effect-shimmer-button:hover::before,
.effect-shimmer-button:focus::before {
  left: 120%;
  transition: left 0.5s;
}

/* Progress-Bar mit Verlauf */
.effect-progress-bar {
  width: 200px;
  height: 16px;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
  margin: 16px auto;
}
.effect-progress-bar .progress {
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, #4e54c8, #ff9a9e, #fad0c4);
  animation: progressMove 2s infinite alternate;
}
@keyframes progressMove {
  0% { width: 20%; }
  100% { width: 90%; }
}

/* Tooltip mit Fade-In */
.effect-tooltip {
  position: relative;
  background: #4e54c8;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
}
/* Vorschau für Tooltip */
.effect-tooltip-btn {
  background: #fff;
  color: #4e54c8;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--shadow);
  margin: 0 auto;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.effect-tooltip-btn:hover,
.effect-tooltip-btn:focus {
  background: #8f94fb;
  color: #fff;
}

/* Vorschau für Progress Bar */
.effect-progress-bar {
  width: 80px;
  height: 12px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 auto;
}
.effect-progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #4e54c8, #ff9a9e, #fad0c4);
  animation: progressMove 2s infinite alternate;
}
.effect-tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  background: #23272b;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 6px 12px;
  position: absolute;
  z-index: 1;
  bottom: 125%; left: 50%; transform: translateX(-50%);
  transition: opacity 0.3s;
  pointer-events: none;
}
.effect-tooltip:hover .tooltip-text,
.effect-tooltip:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Vorschau für Glitch-Text */
.effect-glitch-text-preview {
  position: relative;
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  background: #23272b;
  border-radius: 8px;
  padding: 10px 0;
  width: 60px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.effect-glitch-text-preview::before,
.effect-glitch-text-preview::after {
  content: "GLITCH";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  opacity: 0.7;
  pointer-events: none;
}
.effect-glitch-text-preview::before {
  color: #ff00c8;
  z-index: 2;
  animation: glitchTop 1s infinite linear alternate-reverse;
}
.effect-glitch-text-preview::after {
  color: #00fff9;
  z-index: 1;
  animation: glitchBottom 1.2s infinite linear alternate-reverse;
}

/* Regenbogen-Text */
.effect-rainbow-text {
  font-size: 2em;
  font-weight: bold;
  background: linear-gradient(270deg, #ff0080, #7928ca, #2af598, #fad0c4, #ff0080);
  background-size: 1000% 1000%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: rainbowMove 4s linear infinite;
}
@keyframes rainbowMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Bouncing Loader Dots */
.effect-bounce-dots {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 24px;
}
.effect-bounce-dots span {
  display: block;
  width: 12px;
  height: 12px;
  background: #4e54c8;
  border-radius: 50%;
  animation: bounceDot 0.8s infinite alternate;
}
.effect-bounce-dots span:nth-child(2) { animation-delay: 0.2s; }
.effect-bounce-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounceDot {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* Herzschlag-Animation */
.effect-heart {
  width: 40px;
  height: 36px;
  background: red;
  position: relative;
  transform: rotate(-45deg);
  animation: heartbeat 1s infinite;
  margin: 0 auto;
}
.effect-heart::before,
.effect-heart::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 36px;
  background: red;
  border-radius: 50%;
}
.effect-heart::before {
  top: -20px;
  left: 0;
}
.effect-heart::after {
  left: 20px;
  top: 0;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1) rotate(-45deg);}
  20% { transform: scale(1.2) rotate(-45deg);}
  40% { transform: scale(0.95) rotate(-45deg);}
  60% { transform: scale(1.1) rotate(-45deg);}
  80% { transform: scale(0.98) rotate(-45deg);}
}

/* Effekt 1 Demo */
.effect1-demo {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.1em;
  font-weight: bold;
  box-shadow: 0 2px 12px rgba(78,84,200,0.09);
  text-shadow: 0 2px 8px #333;
  margin: 0 auto;
  transition: box-shadow 0.2s;
}
.effect1-demo:hover {
  box-shadow: 0 8px 32px rgba(78,84,200,0.16);
}

/* Flip-Card Effekt */
.effect-flip-card {
  perspective: 800px;
  width: 120px;
  height: 80px;
  margin: 0 auto;
}
.effect-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(.4,2,.6,1);
  transform-style: preserve-3d;
}
.effect-flip-card:hover .effect-flip-card-inner,
.effect-flip-card:focus-within .effect-flip-card-inner {
  transform: rotateY(180deg);
}
.effect-flip-card-front,
.effect-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.effect-flip-card-front {
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  color: #fff;
}
.effect-flip-card-back {
  background: #fff;
  color: #4e54c8;
  transform: rotateY(180deg);
  border: 2px solid #4e54c8;
}
