    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');
    
    :root {
      --bg-color: #fafafa;
      --text-color: #1d1d1f;
      --header-bg: rgba(255, 255, 255, 0.75);
      --footer-bg: #f5f5f7;
      --card-border: rgba(255, 255, 255, 0.4);
      --card-shadow: rgba(0, 0, 0, 0.1);
      --logo-gradient: linear-gradient(135deg, #1d1d1f 0%, #86868b 100%);
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --bg-color: #000000;
        --text-color: #f5f5f7;
        --header-bg: rgba(29, 29, 31, 0.75);
        --footer-bg: #1d1d1f;
        --card-border: rgba(255, 255, 255, 0.15);
        --card-shadow: rgba(0, 0, 0, 0.5);
        --logo-gradient: linear-gradient(135deg, #ffffff 0%, #86868b 100%);
      }
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html, body { width: 100%; overflow-x: hidden; background: var(--bg-color); transition: background 0.3s ease; }
    body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text-color); line-height: 1.4; }
    
    header { position: fixed; top: 0; left: 0; right: 0; background: var(--header-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--card-border); z-index: 1000; padding: 12px 0; }
    nav { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: center; }
    .logo { font-size: 1.8rem; font-weight: 600; background: var(--logo-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-decoration: none; }
    
    .hero { height: 100vh; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 20px; position: relative; background-image: url('stein.jpg'); background-size: cover; background-position: center; overflow: hidden; }
    .hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(2px); z-index: 1; }
    .hero-content { position: relative; z-index: 2; width: 100%; max-width: 900px; }
    .hero h1 { font-size: clamp(3rem, 10vw, 8rem); font-weight: 300; letter-spacing: -0.05em; color: #fff; background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.7) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 10px 30px rgba(0,0,0,0.2); opacity: 0; animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; line-height: 1.1; }
    
    @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
    
    .tools-section { padding: 80px 24px; max-width: 1200px; margin: 0 auto; width: 100%; }
    
    .featured-photo-link, .section-title, .tool-card { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
    .visible { opacity: 1 !important; transform: translateY(0) !important; }

    .featured-photo-link { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto 80px; padding: 20px 48px; width: fit-content; border-radius: 50px; background: linear-gradient(135deg, rgba(255, 59, 48, 0.1), rgba(0, 122, 255, 0.1), rgba(52, 199, 89, 0.1)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--card-border); text-decoration: none; color: var(--text-color); box-shadow: 0 10px 40px -10px var(--card-shadow); }
    .featured-photo-link:hover { transform: scale(1.03) translateY(-2px) !important; background: linear-gradient(135deg, rgba(255, 59, 48, 0.15), rgba(0, 122, 255, 0.15), rgba(52, 199, 89, 0.15)); border-color: rgba(134, 134, 139, 0.3); }
    .featured-photo-link svg { width: 32px; height: 32px; fill: url(#photo-grad); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
    .featured-photo-link span { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; }
    
    .section-title { font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 500; text-align: center; margin-bottom: 3rem; color: #86868b; letter-spacing: 0.05em; text-transform: uppercase; }
    
    .tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; width: 100%; }
    
    .tool-card { position: relative; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--text-color); border: 1px solid var(--card-border); box-shadow: 0 10px 40px -10px var(--card-shadow); transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
    
    /* Grid colors... */
    .tool-card:nth-child(13n+1) { background: linear-gradient(135deg, rgba(142, 158, 171, 0.35), rgba(114, 137, 218, 0.45), rgba(102, 126, 234, 0.35)); }
    .tool-card:nth-child(13n+2) { background: linear-gradient(135deg, rgba(217, 128, 250, 0.35), rgba(255, 107, 129, 0.45), rgba(255, 142, 142, 0.35)); }
    .tool-card:nth-child(13n+3) { background: linear-gradient(135deg, rgba(79, 172, 254, 0.35), rgba(0, 242, 254, 0.45), rgba(99, 218, 255, 0.35)); }
    .tool-card:nth-child(13n+4) { background: linear-gradient(135deg, rgba(67, 233, 123, 0.35), rgba(56, 249, 215, 0.45), rgba(88, 234, 186, 0.35)); }
    .tool-card:nth-child(13n+5) { background: linear-gradient(135deg, rgba(250, 112, 154, 0.35), rgba(254, 225, 64, 0.45), rgba(255, 183, 77, 0.35)); }
    .tool-card:nth-child(13n+6) { background: linear-gradient(135deg, rgba(165, 142, 251, 0.35), rgba(138, 126, 235, 0.45), rgba(179, 156, 255, 0.35)); }
    .tool-card:nth-child(13n+7) { background: linear-gradient(135deg, rgba(255, 154, 158, 0.35), rgba(250, 208, 196, 0.45), rgba(255, 207, 210, 0.35)); }
    .tool-card:nth-child(13n+8) { background: linear-gradient(135deg, rgba(74, 144, 226, 0.35), rgba(142, 158, 171, 0.45), rgba(108, 166, 235, 0.35)); }
    .tool-card:nth-child(13n+9) { background: linear-gradient(135deg, rgba(255, 175, 123, 0.35), rgba(255, 195, 160, 0.45), rgba(255, 215, 186, 0.35)); }
    .tool-card:nth-child(13n+10) { background: linear-gradient(135deg, rgba(108, 92, 231, 0.35), rgba(118, 75, 162, 0.45), rgba(134, 96, 197, 0.35)); }
    .tool-card:nth-child(13n+11) { background: linear-gradient(135deg, rgba(52, 211, 153, 0.35), rgba(34, 211, 238, 0.45), rgba(59, 226, 199, 0.35)); }
    .tool-card:nth-child(13n+12) { background: linear-gradient(135deg, rgba(251, 146, 60, 0.35), rgba(251, 113, 133, 0.45), rgba(252, 165, 165, 0.35)); }
    .tool-card:nth-child(13n) { background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(168, 85, 247, 0.45), rgba(192, 132, 252, 0.35)); }

    .tool-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px) saturate(130%); -webkit-backdrop-filter: blur(20px) saturate(130%); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; text-align: center; }
    
    @media (prefers-color-scheme: dark) {
      .tool-overlay { background: rgba(255, 255, 255, 0.03); }
    }
    
    .tool-icon { width: 50px; height: 50px; margin-bottom: 0.8rem; opacity: 0.7; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15)); transition: all 0.3s ease; }
    .tool-card h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; opacity: 0.95; }
    .tool-card:hover { transform: translateY(-6px) scale(1.02) !important; box-shadow: 0 20px 60px -15px var(--card-shadow); border-color: rgba(134, 134, 139, 0.25); }
    .tool-card:hover .tool-overlay { background: rgba(255, 255, 255, 0.08); }
    @media (prefers-color-scheme: dark) { .tool-card:hover .tool-overlay { background: rgba(255, 255, 255, 0.05); } }
    .tool-card:hover .tool-icon { opacity: 1; transform: scale(1.1); }
    
    footer { padding: 60px 20px; text-align: center; background: var(--footer-bg); color: #86868b; border-top: 1px solid var(--card-border); font-size: 0.8rem; }
    footer a { color: inherit; text-decoration: none; margin-left: 8px; transition: color 0.2s ease; }
    footer a:hover { color: var(--text-color); text-decoration: underline; }
    
    @media (max-width: 768px) { .hero h1 { font-size: 3.5rem; } .tools-grid { grid-template-columns: 1fr; } .featured-photo-link { padding: 16px 32px; } }

/* 1. Basis-Logik: Animation nur bei Hover */
.tool-card:hover .tool-icon {
  /* Hier werden die Standardwerte für alle Animationen definiert */
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

    /* --- START DER NEUEN ANIMATIONEN --- */

    /* Basis für alle Icons: Animation nur bei Hover */
    .tool-card:hover .tool-icon {
      animation-duration: 1.5s;
      animation-iteration-count: infinite;
      animation-timing-function: ease-in-out;
    }

    /* ARBEITSZEITENTIMER: Drehende Uhr */
    .tool-card[href*="worktimer"]:hover .tool-icon {
      animation-name: spinClock;
    }
    @keyframes spinClock {
      from { transform: rotate(0deg) scale(1.1); }
      to { transform: rotate(360deg) scale(1.1); }
    }

/* --- PDF CONVERTER ANIMATION --- */

/* 1. Selektiert die Linien und das kleine Eck-Element im Icon */
.tool-card[href*="pdf-converter"] .tool-icon line,
.tool-card[href*="pdf-converter"] .tool-icon polyline:last-of-type {
  transition: all 0.3s ease;
  transform-origin: left;
}

/* 2. Startet die "Schreib"-Animation beim Hover */
.tool-card[href*="pdf-converter"]:hover .tool-icon line,
.tool-card[href*="pdf-converter"]:hover .tool-icon polyline:last-of-type {
  animation: writeLines 0.6s ease forwards;
}

/* 3. Lässt das gesamte Icon während des Hovers sanft auf und ab wippen */
.tool-card[href*="pdf-converter"]:hover .tool-icon {
  animation: softBounce 0.8s ease-in-out infinite alternate;
}

/* Definition der Bewegungsabläufe */
@keyframes writeLines {
  0% { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}

@keyframes softBounce {
  from { transform: translateY(0) scale(1.1); }
  to { transform: translateY(-5px) scale(1.1); }
}

/* --- PDF EDITOR ANIMATION --- */

/* 1. Den Stift-Pfad (das zweite Path-Element) identifizieren */
.tool-card[href*="pdf-editor"] .tool-icon path:last-of-type {
  transition: all 0.3s ease;
  transform-origin: bottom left;
}

/* 2. Beim Hover: Schreibbewegung starten */
.tool-card[href*="pdf-editor"]:hover .tool-icon path:last-of-type {
  animation: writePen 1.2s ease-in-out infinite;
}

/* 3. Das gesamte Icon leicht neigen für mehr Dynamik */
.tool-card[href*="pdf-editor"]:hover .tool-icon {
  animation: tiltIcon 0.8s ease-in-out infinite alternate;
}

/* Animation: Der Stift bewegt sich hin und her (wie beim Unterschreiben) */
@keyframes writePen {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(3px, -3px) rotate(5deg); }
  50% { transform: translate(-2px, 2px) rotate(-5deg); }
  75% { transform: translate(4px, -2px) rotate(3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Animation: Das Icon neigt sich leicht */
@keyframes tiltIcon {
  from { transform: rotate(-2deg) scale(1.1); }
  to { transform: rotate(2deg) scale(1.1); }
}

/* --- WASSERZEICHEN GENERATOR (DROP TO COPYRIGHT) --- */

/* Wrapper für die absolute Positionierung der beiden Icons */
.tool-icon-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 0.8rem;
}

/* Beide Icons übereinander legen */
.tool-icon-wrapper .tool-icon {
  position: absolute;
  top: 0;
  left: 0;
  margin-bottom: 0; /* Margin wird jetzt vom Wrapper übernommen */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Start-Zustand: Copyright ist unsichtbar und klein */
.icon-copyright {
  opacity: 0;
  transform: scale(0) rotate(-180deg);
}

/* Hover-Zustand: Tropfen verschwindet */
.tool-card:hover .icon-drop {
  opacity: 0;
  transform: scale(0) rotate(180deg);
}

/* Hover-Zustand: Copyright erscheint */
.tool-card:hover .icon-copyright {
  opacity: 1;
  transform: scale(1.1) rotate(0deg);
}

/* Zusätzliches Pulsieren des Copyrights nach dem Erscheinen */
.tool-card:hover .icon-copyright {
  animation: pulseRotate 2s infinite ease-in-out 0.5s;
}

@keyframes pulseRotate {
  0% { transform: scale(1.1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1.1); }
}

/* --- FOTO CONVERTER (IMAGE TO REFRESH/CONVERT) --- */

/* Wir nutzen den gleichen .tool-icon-wrapper wie beim Wasserzeichen */

.icon-convert {
  opacity: 0;
  transform: scale(0.5) rotate(180deg);
}

/* Hover: Bild verschwindet und wird kleiner */
.tool-card[href*="fotoconverter"]:hover .icon-photo {
  opacity: 0;
  transform: scale(0.3) rotate(-90deg);
}

/* Hover: Konvertierungs-Icon erscheint und dreht sich rein */
.tool-card[href*="fotoconverter"]:hover .icon-convert {
  opacity: 1;
  transform: scale(1.1) rotate(0deg);
  animation: continuousSpin 3s linear infinite 0.5s;
}

/* Endlos-Drehung für das Konvertierungs-Symbol */
@keyframes continuousSpin {
  from { transform: scale(1.1) rotate(0deg); }
  to { transform: scale(1.1) rotate(360deg); }
}

/* --- QR-CODE GENERATOR: AUFBAU NUR BEI HOVER --- */

/* Normalzustand: Alles ist sichtbar */
.tool-card[href*="qrconverter"] .tool-icon rect,
.tool-card[href*="qrconverter"] .tool-icon line {
  opacity: 0.7; /* Standard-Sichtbarkeit deiner Icons */
  transform: scale(1);
  transition: all 0.3s ease;
}

/* HOVER-ZUSTAND: Die Animation startet */
.tool-card[href*="qrconverter"]:hover .tool-icon rect,
.tool-card[href*="qrconverter"]:hover .tool-icon line {
  animation: qrPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0; /* Startpunkt für die Animation */
}

/* Zeitliche Verzögerung für die einzelnen Quadrate */
.tool-card[href*="qrconverter"]:hover .tool-icon rect:nth-child(1) { animation-delay: 0.1s; }
.tool-card[href*="qrconverter"]:hover .tool-icon rect:nth-child(2) { animation-delay: 0.2s; }
.tool-card[href*="qrconverter"]:hover .tool-icon rect:nth-child(3) { animation-delay: 0.3s; }
.tool-card[href*="qrconverter"]:hover .tool-icon rect:nth-child(4) { animation-delay: 0.4s; }

/* Die Linien (Datenpunkte) kommen als Block zuletzt */
.tool-card[href*="qrconverter"]:hover .tool-icon line {
  animation-delay: 0.5s;
}

/* Die Definition des "Aufploppens" */
@keyframes qrPop {
  0% { 
    opacity: 0; 
    transform: scale(0); 
  }
  100% { 
    opacity: 1; 
    transform: scale(1.1); /* Bleibt leicht vergrößert beim Hover */
  }
}

/* --- BARCODE GENERATOR: AUFBAU + SCANNER --- */
.barcode-container {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card[href*="barcode"] .tool-icon line {
  stroke-dasharray: 20;
  stroke-dashoffset: 0;
  transition: all 0.3s ease;
}

.tool-card[href*="barcode"]:hover .tool-icon line {
  animation: barcodeGrow 0.5s ease forwards;
}

.tool-card[href*="barcode"]:hover .tool-icon line:nth-child(1) { animation-delay: 0.0s; }
.tool-card[href*="barcode"]:hover .tool-icon line:nth-child(2) { animation-delay: 0.1s; }
.tool-card[href*="barcode"]:hover .tool-icon line:nth-child(3) { animation-delay: 0.2s; }
.tool-card[href*="barcode"]:hover .tool-icon line:nth-child(4) { animation-delay: 0.3s; }
.tool-card[href*="barcode"]:hover .tool-icon line:nth-child(5) { animation-delay: 0.4s; }

.scan-line {
  position: absolute;
  top: 10%;
  left: -5px;
  width: calc(100% + 10px);
  height: 2px;
  background: #ff3b30;
  box-shadow: 0 0 8px #ff3b30;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.tool-card[href*="barcode"]:hover .scan-line {
  animation: scanMove 1.5s ease-in-out infinite 0.6s;
}

@keyframes barcodeGrow {
  0% { stroke-dashoffset: 20; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes scanMove {
  0% { top: 10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

/* --- SCHOCKEN: ABSOLUTER ANTI-GLITCH FIX --- */

.dice-shake-container {
  position: relative;
  width: 60px;
  height: 40px;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-single-dice {
  position: absolute;
  width: 14px !important;
  height: 14px !important;
  /* Radikale Unsichtbarkeit im Ruhezustand */
  visibility: hidden; 
  opacity: 0;
  pointer-events: none;
  top: 10px;
  left: 23px;
  z-index: 5;
}

.icon-cup {
  position: relative;
  z-index: 10;
}

/* Animation Trigger */
.tool-card[href*="schocken"]:hover .icon-cup {
  animation: smoothPourFinal 2s forwards ease-in-out;
}

.tool-card[href*="schocken"]:hover .icon-single-dice {
  /* Schaltet die Sichtbarkeit für die Dauer der Animation ein */
  visibility: visible;
}

.tool-card[href*="schocken"]:hover .d1 { animation: diceOutL 2s forwards ease-out; }
.tool-card[href*="schocken"]:hover .d2 { animation: diceOutM 2s forwards ease-out 0.1s; }
.tool-card[href*="schocken"]:hover .d3 { animation: diceOutR 2s forwards ease-out 0.2s; }

@keyframes smoothPourFinal {
  0% { transform: rotate(0); opacity: 1; }
  10%, 30%, 50% { transform: rotate(-15deg) translateX(-2px); }
  20%, 40%, 60% { transform: rotate(15deg) translateX(2px); }
  75% { transform: translate(-10px, -15px) rotate(100deg); opacity: 1; }
  95%, 100% { transform: translate(-40px, -60px) rotate(160deg); opacity: 0; }
}

@keyframes diceOutL {
  0%, 74% { opacity: 0; transform: translate(0, 0) rotate(0); }
  /* Erst hier werden sie sichtbar */
  75% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 1; transform: translate(-25px, 10px) rotate(-360deg); }
}

@keyframes diceOutM {
  0%, 79% { opacity: 0; transform: translate(0, 0) rotate(0); }
  80% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 1; transform: translate(0px, 10px) rotate(450deg); }
}

@keyframes diceOutR {
  0%, 84% { opacity: 0; transform: translate(0, 0) rotate(0); }
  85% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 1; transform: translate(25px, 10px) rotate(720deg); }
}

/* --- 3D WÜRFEL ANIMATION --- */

.scene {
  width: 40px;
  height: 40px;
  perspective: 400px;
  margin-bottom: 1.5rem;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(20deg); /* Statische Ansicht */
  transition: transform 0.5s ease;
}

/* Die Flächen des Würfels */
.cube-face {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Positionierung der Flächen im 3D-Raum */
.face-1 { transform: rotateY(0deg) translateZ(20px); }
.face-2 { transform: rotateY(90deg) translateZ(20px); }
.face-3 { transform: rotateY(180deg) translateZ(20px); }
.face-4 { transform: rotateY(-90deg) translateZ(20px); }
.face-5 { transform: rotateX(90deg) translateZ(20px); }
.face-6 { transform: rotateX(-90deg) translateZ(20px); }

/* Augen-Dummies (Punkte auf den Flächen) */
.cube-face::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: -10px -10px 0, 10px 10px 0, -10px 10px 0, 10px -10px 0; /* Beispiel für 5er-Auge */
}

/* HOVER: Der Würfel wirbelt */
.tool-card:hover .cube {
  animation: diceSpin3D 2s linear infinite;
}

@keyframes diceSpin3D {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(360deg) rotateY(720deg) rotateZ(360deg); }
}

@media (prefers-color-scheme: dark) {
  .cube-face { background: rgba(255, 255, 255, 0.05); }
}

/* --- INTERNET SPEEDTEST: SAUBERE ANIMATION --- */

/* 1. Grundzustand der Nadel */
.icon-speedtest .needle {
  /* Der Drehpunkt liegt exakt auf dem Mittelpunkt des Kreises (cx=12, cy=14) */
  transform-origin: 12px 14px;
  /* Startposition: Nadel zeigt nach links unten (Nullstellung) */
  transform: rotate(-110deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Hover-Effekt auf der Karte */
.tool-card:hover .icon-speedtest .needle {
  /* Startet die Mess-Animation */
  animation: speedtestSweep 2.5s ease-in-out infinite;
}

/* 3. Sicherstellen, dass der Achsen-Punkt fix bleibt */
.icon-speedtest circle {
  transform: none !important;
}

/* 4. Die Animations-Schritte */
@keyframes speedtestSweep {
  0% { 
    transform: rotate(-110deg); 
  }
  35% { 
    /* Voller Ausschlag nach rechts oben */
    transform: rotate(70deg); 
  }
  /* Nervöses Zittern am oberen Ende (simuliert Datentransfer) */
  45% { transform: rotate(55deg); }
  55% { transform: rotate(68deg); }
  65% { transform: rotate(58deg); }
  80% { transform: rotate(65deg); }
  100% { 
    /* Sanftes Zurückfallen auf die Nullposition */
    transform: rotate(-110deg); 
  }
}



/* --- KIXX GAME-CONTROLLER ANIMATION --- */

/* 1. Die Knöpfe (Kreise) rechts abwechselnd leuchten lassen */
.tool-card[href*="game"] .tool-icon circle {
  transition: all 0.2s ease;
  transform-origin: center;
}

.tool-card[href*="game"]:hover .tool-icon circle:nth-of-type(1) {
  animation: buttonPress 0.4s infinite alternate;
}

.tool-card[href*="game"]:hover .tool-icon circle:nth-of-type(2) {
  animation: buttonPress 0.4s infinite alternate 0.2s; /* Verzögert für Wechsel-Effekt */
}

/* 2. Das Steuerkreuz (Linien) links leicht bewegen */
.tool-card[href*="game"]:hover .tool-icon line {
  animation: dpadMove 0.5s infinite ease-in-out;
}

/* 3. Das gesamte Gehäuse (Rechteck) leicht vibrieren lassen */
.tool-card[href*="game"]:hover .tool-icon rect {
  animation: controllerVibe 0.2s infinite linear;
}

/* --- KEYFRAMES --- */

/* Knöpfe leuchten auf und werden etwas größer */
@keyframes buttonPress {
  from { 
    fill: transparent; 
    stroke-width: 1.5;
    transform: scale(1);
  }
  to { 
    fill: currentColor; 
    stroke-width: 2;
    transform: scale(1.3);
    filter: drop-shadow(0 0 5px currentColor);
  }
}

/* Steuerkreuz-Zucken */
@keyframes dpadMove {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(1px, 0); }
  75% { transform: translate(0, -1px); }
}

/* Ganz leichtes Force-Feedback Vibrieren */
@keyframes controllerVibe {
  0% { transform: translate(0, 0) rotate(0deg) scale(1.1); }
  25% { transform: translate(0.5px, 0.5px) rotate(0.5deg) scale(1.1); }
  50% { transform: translate(-0.5px, -0.5px) rotate(-0.5deg) scale(1.1); }
  75% { transform: translate(0.5px, -0.5px) rotate(0.5deg) scale(1.1); }
  100% { transform: translate(-0.5px, 0.5px) rotate(-0.5deg) scale(1.1); }
}

/* --- SCHNECKE & APFEL: KRIECH-ANIMATION --- */

.snail-container {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.icon-snail {
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
}

/* Die gesamte Schnecke bewegt sich langsam vorwärts */
.tool-card[href*="schnecke"]:hover .icon-snail {
  animation: snailCrawl 4s linear infinite;
}

/* Der Körper dehnt und staucht sich beim Kriechen */
.tool-card[href*="schnecke"]:hover .snail-body {
  animation: snailStretch 1s ease-in-out infinite;
  transform-origin: left bottom;
}

/* Das Haus wippt leicht mit der Bewegung mit */
.tool-card[href*="schnecke"]:hover .snail-shell,
.tool-card[href*="schnecke"]:hover .snail-shell-spiral {
  animation: shellWobble 1s ease-in-out infinite;
  transform-origin: center bottom;
}

/* Fühler wackeln neugierig */
.tool-card[href*="schnecke"]:hover .snail-antennas {
  animation: antennaTwitch 0.5s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

/* --- KEYFRAMES --- */

/* Vorwärtsbewegung der gesamten Gruppe */
@keyframes snailCrawl {
  0% { transform: translateX(-15px); }
  100% { transform: translateX(15px); }
}

/* Das typische Zusammenziehen und Strecken */
@keyframes snailStretch {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.15) scaleY(0.9); }
}

/* Haus-Wippen */
@keyframes shellWobble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-1px) rotate(2deg); }
}

/* Fühler-Zucken */
@keyframes antennaTwitch {
  from { transform: scaleY(1); }
  to { transform: scaleY(1.2) rotate(5deg); }
}

/* --- GESCHWINDIGKEIT MESSEN--- */

/* 1. Die Nadel-Rotation */
.icon-measure .needle {
  transform-origin: 14px 11px; /* Exakt auf dem Drehpunkt cx=14 cy=11 */
  transform: rotate(-110deg);  /* Nullstellung */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover .icon-measure .needle {
  animation: speedo-measure 2.5s ease-in-out infinite;
}

/* 2. Die drei Speed-Lines (Striche links) */
.icon-measure .speed-line {
  transition: all 0.3s ease;
  opacity: 0.6;
}

.tool-card:hover .icon-measure .speed-line {
  animation: speedLineFlash 0.5s infinite alternate;
}

/* 3. Sicherstellen, dass der Punkt stabil bleibt */
.icon-measure circle {
  transform: none !important;
}

/* --- KEYFRAMES --- */

@keyframes speedo-measure {
  0% { transform: rotate(-110deg); }
  30% { transform: rotate(70deg); }  /* Voller Ausschlag */
  45% { transform: rotate(50deg); }
  55% { transform: rotate(65deg); }
  70% { transform: rotate(55deg); }
  100% { transform: rotate(-110deg); }
}

@keyframes speedLineFlash {
  from { opacity: 0.4; transform: translateX(0); }
  to { opacity: 1; transform: translateX(-2px); }
}

/* --- LAUTSTÄRKE MESSEN: EQUALIZER FIX --- */

.equalizer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin-bottom: 0.8rem;
}

/* Alle Balken bekommen einen Ankerpunkt unten */
.icon-volume .bar {
  transform-origin: bottom;
  transition: all 0.3s ease;
  fill: currentColor;
  opacity: 0.7;
}

/* Hover-Zustand: Balken fangen an zu tanzen */
.tool-card:hover .icon-volume .bar {
  animation: eqBounce 0.6s ease-in-out infinite alternate;
  opacity: 1;
}

/* Individuelle Verzögerungen für den "Wellen"-Effekt */
.tool-card:hover .bar-1 { animation-delay: 0.0s; animation-duration: 0.4s; }
.tool-card:hover .bar-2 { animation-delay: 0.1s; animation-duration: 0.7s; }
.tool-card:hover .bar-3 { animation-delay: 0.2s; animation-duration: 0.5s; }
.tool-card:hover .bar-4 { animation-delay: 0.3s; animation-duration: 0.8s; }
.tool-card:hover .bar-5 { animation-delay: 0.4s; animation-duration: 0.4s; }

/* Die Animation: Balken werden vertikal gestreckt */
@keyframes eqBounce {
  0% { 
    transform: scaleY(0.4); 
  }
  100% { 
    transform: scaleY(1.4); 
  }
}

/* --- AMPEL--- */

/* Wenn die Karte gehovert wird, starten die drei Kreise zeitversetzt */
.ampel-card:hover .light-top {
  animation: glowCycle 1.5s infinite;
}

.ampel-card:hover .light-mid {
  animation: glowCycle 1.5s infinite 0.5s;
}

.ampel-card:hover .light-bottom {
  animation: glowCycle 1.5s infinite 1s;
}

@keyframes glowCycle {
  0%, 33% { 
    opacity: 1; 
    stroke-width: 4; /* Optisches Aufleuchten durch dickere Linie */
  }
  34%, 100% { 
    opacity: 0.2; 
    stroke-width: 2; 
  }
}