


/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 
==========================================================================
  NEUES APPLE-LIKE MONOCHROME DESIGN - v2 (mit Feedback-Anpassungen)
==========================================================================
*/

:root {
    /* HINTERGRUND-BILD ALS VARIABLE - JETZT IN GRAU/WEISS */
    --glow-background-image: 
        radial-gradient(circle at 50% 40%, rgba(220, 220, 225, 0.1), transparent 50%),
        radial-gradient(circle at 20% 15%, rgba(220, 220, 225, 0.1), transparent 35%),
        radial-gradient(ellipse at 85% 80%, rgba(220, 220, 225, 0.1), transparent 40%);

    /* Dark Mode (Standard) - MONOCHROM */
    --primary-accent: #f5f5f7; /* Hauptakzentfarbe (helles Grau/Weiß) */
    --primary-accent-hover: #e0e0e0; /* Dunkleres Weiß für Hover */
    --background-dark: #121212; /* Tieferes Schwarz für mehr Kontrast */
    --background-card: rgba(29, 29, 31, 0.6); /* #1d1d1f mit Transparenz */
    --background-card-hover: rgba(45, 45, 48, 0.8);
    --border-color: #3a3a3c; /* Angepasstes Grau */
    --border-color-light: #5a5a5f;
    --text-primary: #f5f5f7; /* Apple's fast weiß */
    --text-secondary: #a1a1a6;
    --text-tertiary: #86868b;
    --text-light-gray: #cccccc;
    
    /* Vereinheitlichter Frosted Look (Dark) */
    --frosted-bg: rgba(29, 29, 31, 0.7);
    --frosted-border: rgba(255, 255, 255, 0.1);
    --frosted-hover-bg: rgba(45, 45, 48, 0.8);
    --frosted-hover-border: rgba(255, 255, 255, 0.2);

    /* Badges & Mobile Menu... */
    --badge-easy-bg: rgba(52, 199, 89, 0.15);
    --badge-easy-color: #34c759;
    --badge-easy-border: rgba(52, 199, 89, 0.3);
    --badge-medium-bg: rgba(255, 159, 10, 0.15);
    --badge-medium-color: #ff9f0a;
    --badge-medium-border: rgba(255, 159, 10, 0.3);
    --badge-advanced-bg: rgba(255, 69, 58, 0.15);
    --badge-advanced-color: #ff453a;
    --badge-advanced-border: rgba(255, 69, 58, 0.3);
    /* BEIBEHALTEN: Freemium Badge bleibt blau */
    --badge-freemium-bg: rgba(0, 122, 255, 0.15);
    --badge-freemium-color: #007AFF;
    --badge-freemium-border: rgba(0, 122, 255, 0.3);
    --badge-paid-bg: rgba(175, 82, 222, 0.15);
    --badge-paid-color: #af52de;
    --badge-paid-border: rgba(175, 82, 222, 0.3);
    --mobile-menu-bg: #38383D;
    --mobile-menu-border: rgba(255, 255, 255, 0.1);
    --mobile-menu-link-border: rgba(255, 255, 255, 0.15);
    --mobile-menu-link-hover-bg: rgba(255, 255, 255, 0.1);
}

body.light-mode {
    /* MONOCHROME FARBEN FÜR LIGHT MODE */
    --primary-accent: #1d1d1f; /* Hauptakzentfarbe (Schwarz) */
    --primary-accent-hover: #000000; /* Reines Schwarz für Hover */
    --background-dark: #f5f5f7; /* Apple's helles Grau als Hintergrund */
    --background-card: rgba(255, 255, 255, 0.8);
    --background-card-hover: rgba(255, 255, 255, 0.8);
    --border-color: #d1d1d6; /* Helleres Grau für Ränder */
    --border-color-light: #c7c7cc;
    --text-primary: #1d1d1f; /* Apple's fast schwarz */
    --text-secondary: #6e6e73; /* Dunkleres Grau für Sekundärtext */
    --text-tertiary: #8a8a8e;
    --text-light-gray: #333333;
    
    /* HELLER GUIDE-BUTTON */
    --guide-button-color: #5a5a5f;
    --guide-button-border: #d1d1d6;
    --guide-button-hover-bg: rgba(0, 0, 0, 0.05);
    
    /* FROSTED LOOK (LIGHT) */
    --frosted-bg: rgba(255, 255, 255, 0.75); 
    --popup-frosted-bg: rgba(248, 248, 250, 0.7); 
    --frosted-border: rgba(0, 0, 0, 0.08);
    --frosted-hover-bg: rgba(255, 255, 255, 0.95);
    --frosted-hover-border: rgba(0, 0, 0, 0.12);

    /* BADGE-FARBEN (LIGHT) */
    --quality-badge-color: #1d1d1f; /* Angepasst: Weicheres Grau statt Schwarz */
    --feature-badge-bg: #eef0f2; /* Angepasst: Leicht grauer Hintergrund */
    --feature-badge-border: #d1d1d6;
    --feature-badge-color: #6e6e73;
    --category-count-bg: transparent;
    --category-count-border: #d1d1d6;
    --category-count-color: #6e6e73;

    /* STERN-FARBE (LIGHT) */
    --star-empty-color: #d1d1d6;

    /* Restliche Variablen bleiben gleich */
    --badge-easy-color: #28a745;
    --badge-medium-color: #fd7e14;
    --badge-advanced-color: #dc3545;
    --badge-freemium-color: #007bff;
    --badge-paid-color: #9d29db; 
    --mobile-menu-bg: #ffffff;
    --mobile-menu-border: rgba(0, 0, 0, 0.1);
    --mobile-menu-link-border: rgba(0, 0, 0, 0.08);
    --mobile-menu-link-hover-bg: rgba(0, 0, 0, 0.05);
}

/*
==========================================================================
  ENDE DER ANPASSUNGEN
==========================================================================
*/

body.light-mode .mobile-menu-btn svg {
    color: #b0b0b0;
}

body.light-mode .category-dropdown-item {
    border-color: var(--border-color);
}

body.light-mode .category-dropdown-item:hover {
    border-color: var(--primary-accent); /* Hebt den Rand bei Hover hervor (jetzt schwarz) */
}

.popup-body .section-header .section-icon {
    background: transparent;
    border: none;
    font-size: 1.5rem;
}

.popup-body p,
.popup-body li,
.popup-body .step-text,
.popup-body .tip-text,
.popup-body .guide-intro p,
.popup-body .guide-benefits p,
.popup-body .pros-cons-list li {
    color: var(--text-light-gray);
    transition: color 0.3s ease;
}


/* --- NEU: TOOL-TITEL LINK-STYLES --- */
.tool-title-link {
    text-decoration: none;
    color: inherit;
}

.tool-title-link:hover .tool-title {
    color: var(--primary-accent-hover);
}

body.light-mode .tool-title-link:hover .tool-title {
    color: var(--primary-accent-hover);
}
/* --- ENDE NEUER STYLES --- */





.highlight-animated {
    background: linear-gradient(
        120deg, 
        #7a7a7e,   /* Dunkleres Grau für mehr Kontrast */
        #ffffff,   /* Reines Weiß für maximale Helligkeit */
        #a1a1a6,   /* Mittleres Grau als Übergang */
        #ffffff,   /* Reines Weiß */
        #7a7a7e    /* Wiederholt das dunkle Grau */
    );
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquid-flow 4s ease-in-out infinite;
}




body.light-mode .highlight-animated {
    background: linear-gradient(
        120deg, 
        #9a9a9e,   /* Helleres Grau für mehr Kontrast */
       #000000,   /* Reines Schwarz für maximale Tiefe */
       #6e6e73,   /* Mittleres Grau als Übergang */
       #000000,   /* Reines Schwarz */
       #9a9a9e    /* Wiederholt das hellere Grau */
   );
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquid-flow 4s ease-in-out infinite;
}


@keyframes liquid-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: var(--glow-background-image);
    background-color: var(--background-dark);
    transition: background-color 0.3s ease; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.evaluation-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(128, 128, 128, 0.08); /* Subtiler grauer Hintergrund */
    border-left: 3px solid var(--border-color-light); /* Grauer Rand */
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.rating-reason {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.5rem;
    line-height: 1.4;
    min-height: 34px;
    transition: color 0.3s ease;
}

.rating-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

html {
    scroll-behavior: smooth;
}

.guide-button.highlighted {
    border-color: var(--primary-accent);
    color: var(--text-primary);
    box-shadow: 0 0 15px 5px rgba(245, 245, 247, 0.4); /* Weißer Schein */
    animation: pulse-glow-white 1.5s infinite alternate;
}

@keyframes pulse-glow-white {
    from {
        box-shadow: 0 0 8px 2px rgba(245, 245, 247, 0.3);
    }
    to {
        box-shadow: 0 0 18px 5px rgba(245, 245, 247, 0.5);
    }
}

.category-icon.pulsing {
    position: relative;
    animation: nudge-right 1.5s ease-in-out;
}

@keyframes nudge-right {
    0% { transform: translateX(0); }
    30% { transform: translateX(8px); }
    50% { transform: translateX(-2px); }
    70% { transform: translateX(0); }
    100% { transform: translateX(0); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.jobs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-tag {
    background: var(--primary-accent);
    color: #1d1d1f; /* Korrigiert: Dunkler Text auf hellem Tag */
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

body.light-mode .job-tag {
    color: #f5f5f7; /* Korrigiert: Heller Text auf dunklem Tag */
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn svg {
    width: 1.75rem;
    height: 1.75rem;
    color: #525252;
    transition: color 0.2s ease;
}

.mobile-menu-btn:hover svg {
    color: var(--text-primary);
}

.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn.is-open .icon-close { display: block; }
.mobile-menu-btn.is-open .icon-hamburger { display: none; }

.mobile-nav-panel {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    margin: 0.5rem 1rem 0;
    z-index: 1000;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    background: var(--mobile-menu-bg);
    border: 1px solid var(--mobile-menu-border);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.mobile-nav-panel a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.3s ease, border-color 0.3s ease;
    background: transparent;
    border-bottom: 1px solid var(--mobile-menu-link-border);
}

.mobile-nav-panel a:last-child { border-bottom: none; }

.mobile-nav-panel a:hover {
    background-color: var(--mobile-menu-link-hover-bg);
}

@media (max-width: 768px) {
    #desktopNav { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-nav-panel.is-open { display: block; }
}

.highlight-underline {
    position: relative;
    display: inline-block;
}

.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: -5px;
    right: -5px;
    height: 12px;
    background-image: url('underline-swoosh.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    animation: draw-underline 1s ease-out 0.5s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes draw-underline { to { transform: scaleX(1); } }

.header {
    background: var(--frosted-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    background-image: var(--glow-background-image);
    background-attachment: fixed;
    background-size: 105% auto;
}

.header.hidden { transform: translateY(-100%); }

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo-icon {
    width: 6.5rem;
    height: 6.5rem;
    transform: translateY(1px);
    color: var(--text-primary);
    transition: color 0.3s ease;
}



body.light-mode .logo-icon {
    color: var(--primary-accent); /* Geändert zu schwarz */
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav a:hover { color: var(--text-primary); }

.hero {
    background: transparent;
    padding: 4rem 0 2rem;
}

.hero-content {
    text-align: center;
    max-width: 4xl;
    margin: 0 auto;
}

.promo-banner-subtle {
    text-align: center;
    margin-bottom: 2.2rem;
    margin-top: -1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 10;
}

.promo-banner-subtle.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

.promo-banner-subtle a {
    background: var(--frosted-bg);
    backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    border: 1px solid var(--frosted-border);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.6rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.promo-banner-subtle a:hover {
    background: var(--frosted-hover-bg);
    border-color: var(--frosted-hover-border);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(220, 220, 225, 0.1); /* Weißer Schein */
}

.promo-icon {
    width: 0.8rem;
    height: 0.8rem;
    color: var(--text-secondary); /* Geändert zu grau */
    transition: color 0.3s ease;
}

.promo-arrow {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.promo-banner-subtle a:hover .promo-arrow { transform: translateX(3px); }


/* --- NEU: STATISCHER GLOW-EFFEKT FÜR HERO-TITEL --- */
.highlight-static-glow {
    position: relative;
    display: inline-block;
    background: linear-gradient(
      90deg,
      #00c6ff 10%,
      #a077ff 35%,
      #f554ff 60%,
      #ff7b4b 85%,
      #ffde59 100%
    );
    background-size: 100% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-static-glow::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(
      90deg,
      #00c6ff 10%, #a077ff 35%, #f554ff 60%, #ff7b4b 85%, #ffde59 100%
    );
    background-size: 100% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(18px);
    opacity: 0.8;
}

body.light-mode .highlight-static-glow::after {
    filter: blur(15px);
    opacity: 0.7;
}
/* --- ENDE NEUER STYLES --- */


.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 35rem;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.3s ease;
}




.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.highlight-static {
    color: var(--text-primary); /* Statisches Weiß/Grau */
}

.highlight-selected {
    background-color: rgba(128, 128, 128, 0.2); /* Transparentes Grau */
    color: var(--text-primary); /* Heller Text für Kontrast */
    padding: 2px 4px;
    border-radius: 3px;
}

#typewriter-text {
    background: linear-gradient(45deg, #a1a1a6, #f5f5f7, #cccccc, #a1a1a6); /* Grauer Verlauf */
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    font-weight: 700;
}

#typewriter-text::after {
    content: '|';
    color: var(--text-secondary); /* Grauer Cursor */
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.search-container {
    position: relative;
    max-width: 32rem;
    margin: 2.2rem auto 0;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.125rem;
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    background: var(--frosted-bg);
    border: 1px solid var(--frosted-border);
    backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    background-image: var(--glow-background-image);
    background-attachment: fixed;
    background-size: 105% auto;
}

.search-input:hover,
.search-input:focus {
    outline: none;
    border-color: var(--border-color-light); /* Grauer Rand bei Fokus */
    box-shadow: 0 0 0 3px rgba(220, 220, 225, 0.2); /* Weißer Schein bei Fokus */
    background: var(--frosted-hover-bg);
    background-image: var(--glow-background-image);
    background-attachment: fixed;
    background-size: 105% auto;
    backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
}

.search-input::placeholder { color: var(--text-tertiary); }

.hero-tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    font-style: italic;
    transition: color 0.3s ease;
}

.quality-badge {
    font-weight: 500;
    padding: 0.01em 0.2em;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.3s ease;
    
    /* Basis-Stile für Dark Mode (werden im Light Mode überschrieben) */
    color: var(--text-primary);
    background-color: rgba(128, 128, 128, 0.15);
    border: 1px solid rgba(128, 128, 128, 0.3);
    box-shadow: 0 0 12px rgba(220, 220, 225, 0.2);
}

body.light-mode .quality-badge {
    color: var(--quality-badge-color); /* Behält die korrekte Textfarbe bei */
    background-color: rgba(0, 0, 0, 0.05); /* NEU: Sehr transparenter dunkler Hintergrund */
    border: 1px solid rgba(0, 0, 0, 0.08); /* NEU: Passender transparenter Rand */
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08); /* NEU: Subtiler dunkler Schein */
}

.quality-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 18px rgba(220, 220, 225, 0.3); /* Stärkerer weißer Schein */
}

.btn-primary:hover .btn-icon { transform: translateX(2px); }
.btn-icon { transition: transform 0.25s ease-in-out; }

.stars-container {
    display: flex;
    align-items: center;
    gap: 2px;
}

.tool-rating .star-icon {
    width: 1rem;
    height: 1rem;
    color: #ff9f0a;
}

.tool-rating .star-icon.empty {
    color: var(--star-empty-color, #525252);
}

.star-icon-half-container {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    color: #ff9f0a;
}

.star-icon-half-container svg path[stroke] {
    stroke: var(--star-empty-color, #525252);
}

.categories {
    background: transparent;
    padding: 1.5rem 0;
}

.category-dropdown-container {
    display: flex;
    justify-content: center;
}

.category-dropdown { position: relative; }

.category-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: var(--primary-accent);
    color: #1d1d1f; /* Korrigiert: Dunkler Text auf hellem Button */
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 200px;
    justify-content: space-between;
}

body.light-mode .category-dropdown-btn {
    color: #f5f5f7; /* Korrigiert: Heller Text auf dunklem Button */
}

.category-dropdown-btn:hover { background: var(--primary-accent-hover); }

.category-icon-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.dropdown-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.category-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.category-dropdown-menu {
    background: var(--frosted-bg);
    backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    border: 1px solid var(--frosted-border);
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-image: var(--glow-background-image);
    background-attachment: fixed;
    background-size: 105% auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    width: 340px;
    max-height: 320px; 
    overflow-y: auto;
}

.category-dropdown.open .category-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.category-dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    text-align: center;
    color: var(--text-primary);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    width: 100px;
    height: 100px;
    padding: 0.5rem;
}

.category-dropdown-item:last-child { border-bottom: none; }

.category-dropdown-item:hover {
    background-color: var(--background-card-hover);
    border-color: var(--frosted-hover-border);
    transform: translateY(-2px);
}

.category-dropdown-item.active {
    background: var(--primary-accent);
    color: #1d1d1f; /* Korrigiert: Dunkler Text für Kontrast */
    border-color: var(--primary-accent);
}

body.light-mode .category-dropdown-item.active {
    color: #f5f5f7; /* Korrigiert: Heller Text für Kontrast */
}

.category-dropdown-item .category-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: currentColor;
}

.category-dropdown-item .category-name {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.category-count {
    background: transparent;
    color: var(--text-tertiary);
    border: none;
    padding: 0;
    font-size: 0.8rem;
    margin-left: 0;
    margin-top: -0.25rem;
    transition: color 0.2s ease;
}

.category-dropdown-item:hover .category-name {
    color: var(--text-primary);
}

.category-dropdown-item.active .category-name,
.category-dropdown-item.active .category-count {
    color: inherit; /* Erbt die korrigierte Farbe von .active */
}

.category-dropdown-item .category-count {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: -2px;
    transition: color 0.2s ease;
}

.tools-section {
    padding: 2rem 0;
    background: transparent;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    border: 1px solid var(--frosted-border);
    background: var(--frosted-bg);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    transition: all 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
    background-image: var(--glow-background-image);
    background-attachment: fixed;
    background-size: 105% auto;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tool-title-section { flex: 1; }

.tool-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tool-category-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: currentColor;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.tool-description {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tool-rating:hover { transform: scale(1.05); }

.star-icon {
    width: 1rem;
    height: 1rem;
    color: #ff9f0a;
    fill: currentColor;
}

.rating-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.tool-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.badge-easy { background: var(--badge-easy-bg); color: var(--badge-easy-color); border-color: var(--badge-easy-border); }
.badge-medium { background: var(--badge-medium-bg); color: var(--badge-medium-color); border-color: var(--badge-medium-border); }
.badge-advanced { background: var(--badge-advanced-bg); color: var(--badge-advanced-color); border-color: var(--badge-advanced-border); }
.badge-free { background: var(--badge-easy-bg); color: var(--badge-easy-color); border-color: var(--badge-easy-border); }
.badge-freemium { background: var(--badge-freemium-bg); color: var(--badge-freemium-color); border-color: var(--badge-freemium-border); }
.badge-paid { background: var(--badge-paid-bg); color: var(--badge-paid-color); border-color: var(--badge-paid-border); }

.tool-features { margin-bottom: 1rem; }

.features-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.feature-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    background: rgba(82, 82, 82, 0.4);
    color: var(--text-secondary);
    border: 1px solid rgba(82, 82, 82, 0.6);
}

body.light-mode .feature-badge {
    background: var(--feature-badge-bg);
    color: var(--feature-badge-color);
    border: 1px solid var(--feature-badge-border);
}

.tool-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-accent);
    color: #1d1d1f; /* Korrigiert: Dunkler Text auf hellem Button */
    flex: 1;
}

body.light-mode .btn-primary {
    color: #f5f5f7; /* Korrigiert: Heller Text auf dunklem Button */
}

.btn-primary:hover {
    background: var(--primary-accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--guide-button-color, var(--text-secondary));
    border: 1px solid var(--guide-button-border, var(--text-secondary));
    font-weight: 400;
}

.btn-secondary:hover {
    background: var(--guide-button-hover-bg, rgba(115, 115, 115, 0.1));
    color: var(--text-primary);
}

.btn-icon {
    width: 1rem;
    height: 1rem;
}

.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results p {
    color: var(--text-tertiary);
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.popup-content {
    background: var(--popup-frosted-bg, var(--frosted-bg));
    border: 1px solid var(--frosted-border);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    background-image: var(--glow-background-image);
    background-attachment: fixed;
    background-size: 105% auto;
}

@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
    .popup-content {
        background: var(--frosted-bg);
        backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
        -webkit-backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    }
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.popup-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popup-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f; /* Korrigiert: Dunkler Text für Kontrast */
    transition: background-color 0.3s ease;
}

body.light-mode .popup-icon {
    color: #f5f5f7; /* Korrigiert: Heller Text für Kontrast */
}

.popup-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.popup-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
}

.popup-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 8px;
}

.popup-close:hover {
    color: var(--text-primary);
    background: rgba(115, 115, 115, 0.1);
}

.popup-body {
    padding: 2rem;
}

.section-block {
    margin-bottom: 3rem;
}

.section-block:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-icon {
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 128, 128, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

.section-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
}

.rating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.rating-item {
    background: var(--background-card);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.rating-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.rating-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.audience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.audience-tag {
    background: rgba(128, 128, 128, 0.15);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid rgba(128, 128, 128, 0.3);
    font-weight: 500;
    transition: color 0.3s ease;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.pros-cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-cons-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.pros-cons-list li:last-child {
    border-bottom: none;
}

.guide-intro p,
.guide-benefits p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    background: var(--primary-accent);
    color: #1d1d1f; /* Korrigiert: Dunkler Text für Kontrast */
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: background-color 0.3s ease;
}

body.light-mode .step-number {
    color: #f5f5f7; /* Korrigiert: Heller Text für Kontrast */
}

.step-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.tip-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-check {
    color: #34c759;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.tip-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* Footer */
.footer {
    background: var(--frosted-bg);
    border-top: 1px solid var(--frosted-border);
    backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) brightness(1.2) saturate(1.5);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    background-image: var(--glow-background-image);
    background-attachment: fixed;
    background-size: 105% auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: -1rem;
}

.footer-logo span {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav { display: none; }
    .hero { padding: 3rem 0 1.5rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-description { font-size: 1.125rem; max-width: 100%; }
    .tools-grid { grid-template-columns: 1fr; }
    .tool-actions { flex-direction: column; }
    .category-dropdown-btn { min-width: 100%; }
    .categories { padding: 1rem 0; }
    .tools-section { padding: 1.5rem 0; }
    .pros-cons-grid { grid-template-columns: 1fr; gap: 1rem; }
    .popup-content { margin: 1rem; max-height: 90vh; }
    .popup-header { padding: 1.5rem 1.5rem 1rem; }
    .popup-body { padding: 1.5rem; }
    .section-block { padding: 1.25rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 0.75rem; }
    .hero-title { font-size: 2.8rem; }
    .tool-card { padding: 1.25rem; }
    .header-content { height: 3.5rem; }
    .logo h1 { font-size: 1.25rem; }
    .step-item { flex-direction: column; gap: 0.75rem; }
    .step-number { width: 1.5rem; height: 1.5rem; font-size: 0.75rem; align-self: flex-start; }
    .rating-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Header Hide on Scroll */
@media (max-width: 768px) {
    .header.scrolled { transform: translateY(-100%); }
}

/* Tool of the Week Styles */
.tool-card.is-featured {
    position: relative;
    overflow: visible;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(255, 199, 0, 0.5);
    transition: all 0.3s ease;
}

.tool-card.is-featured:hover {
    box-shadow: 0 0 18px rgba(255, 199, 0, 0.6);
}

.featured-crown-container {
    position: absolute;
    top: -40px;
    left: -20px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    z-index: 5;
}

.featured-crown-container .crown-icon {
    width: 40px;
    height: 40px;
    color: #ffc700;
    transform: rotate(-20deg);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
}

.featured-crown-container .crown-text {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    transform: translateY(2px);
    transition: color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--frosted-bg);
    border: 1px solid var(--frosted-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-image: var(--glow-background-image);
    background-attachment: fixed;
    background-size: 105% auto;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.theme-toggle-btn.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.theme-toggle-btn:hover {
    background: var(--frosted-hover-bg);
    border-color: var(--frosted-hover-border);
    transform: scale(1.1);
}

.theme-toggle-btn svg {
    color: var(--text-secondary);
    width: 100%;
    height: 100%;
    transition: color 0.3s ease;
}

.theme-toggle-btn .icon-moon {
    display: none;
}

body.light-mode .theme-toggle-btn .icon-sun {
    display: none;
}

body.light-mode .theme-toggle-btn .icon-moon {
    display: block;
}

/* "See AI Rating" Button */
.btn-show-rating {
    background: transparent;
    border: 1px solid var(--border-color-light); 
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 1rem; 
}

.btn-show-rating:hover {
    background: var(--background-card-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#guidePopup .popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

#guidePopup .popup-title-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.popup-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



/* =============================================== */
/* Styles für den Clear-Button in Suchleisten      */
/* =============================================== */
.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 2; /* Stellt sicher, dass er über dem Input-Feld liegt */
}

.clear-search-btn:hover {
    color: var(--text-primary);
}

/* Wichtig: Platz im Input-Feld für das "x" schaffen */
.search-container .search-input {
    padding-right: 2.5rem;
}

/* 1. Macht die gesamte Kachel zum Bezugspunkt für die absolute Positionierung. */
.tool-card {
    position: relative;
}

/* 2. Erstellt ein unsichtbares Pseudo-Element für den Hauptlink,
      das sich über die gesamte Kachel erstreckt. */
.card-main-link::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1; /* Wichtig: Legt die Klickfläche hinter die anderen Buttons. */
    /* Optional: Fügt einen dezenten visuellen Effekt hinzu, wenn man über die Kachel fährt */
    border-radius: 16px; /* Passt zum Radius der Kachel */
    transition: background-color 0.2s ease;
}

/* Optional: Visuelles Feedback beim Überfahren der Kachel
.tool-card:hover .card-main-link::after {
    background-color: rgba(255, 255, 255, 0.01);
}

body.light-mode .tool-card:hover .card-main-link::after {
    background-color: rgba(0, 0, 0, 0.01);
}  */


/* 3. Stellt sicher, dass die echten Buttons und der Bewertungs-Link
      über der ausgedehnten Klickfläche liegen und somit klickbar bleiben. */
.tool-actions,
.tool-rating {
    position: relative; /* Notwendig, damit z-index funktioniert */
    z-index: 2;      /* Legt diese Elemente über die Klickfläche */
}
