/* ============================================================
   AMZ Rankx – Stylesheet
   ============================================================
   Farbschema: Navy (#0f172a) + Orange (#ff8800) Akzente
   Fonts: Outfit (Display) + Source Sans 3 (Body)
   ============================================================ */

/* ──────────────────────────────────────────
   CSS CUSTOM PROPERTIES (Light Theme = Default)
   ────────────────────────────────────────── */
:root,
[data-theme="light"] {
    /* Primary Palette */
    --color-navy-950:    #020617;
    --color-navy-900:    #0f172a;
    --color-navy-800:    #1e293b;
    --color-navy-700:    #334155;
    --color-navy-600:    #475569;
    --color-navy-500:    #64748b;
    --color-navy-400:    #94a3b8;
    --color-navy-300:    #cbd5e1;
    --color-navy-200:    #e2e8f0;
    --color-navy-100:    #f1f5f9;
    --color-navy-50:     #f8fafc;

    /* Accent */
    --color-accent:      #ff9011;
    --color-accent-hover:#ff9922;
    --color-accent-light:#ffedd5;
    --color-accent-glow: rgba(255, 136, 0, 0.15);

    /* Success / Warning / Danger */
    --color-success:      #059669;
    --color-success-light:#10b981;
    --color-success-bg:   #ecfdf5;
    --color-warning:      #d97706;
    --color-warning-light:#f59e0b;
    --color-warning-bg:   #fff7ed;
    --color-danger:       #dc2626;
    --color-danger-light: #ef4444;
    --color-danger-bg:    #fef2f2;
    --color-info:         #2563eb;
    --color-info-light:   #3b82f6;
    --color-info-bg:      #eff6ff;

    --color-scrollbar-track: rgb(240, 240, 240);
    --color-scrollbar-thumb: rgb(200, 200, 200);

    /* Semantic */
    --bg-body:           #f8fafc;
    --bg-surface:        #ffffff;
    --bg-surface-hover:  #f1f5f9;
    --bg-surface-raised: #ffffff;
    --bg-hero:           linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --bg-card:           #ffffff;
    --bg-card-hover:     #f8fafc;
    --bg-input:          #ffffff;
    --bg-nav:            rgba(255, 255, 255, 0.92);
    --bg-footer:         #0f172a;
    --bg-dropdown:       #ffffff;
    --bg-badge-soon:     #f1f5f9;
    --bg-badge-active:   #ecfdf5;
    --bg-coming-soon:    rgba(148, 163, 184, 0.08);

    --text-primary:      #000000;
    --text-secondary:    #4a5769;
    --text-tertiary:     #6c788a;
    --text-inverse:      #f8fafc;
    --text-accent:       #ff8800;
    --text-badge-soon:   #64748b;
    --text-badge-active: #059669;

    --border-color:      #e2e8f0;
    --border-light:      #f1f5f9;
    --border-input:      #cbd5e1;
    --border-input-focus:#ff9011;

    --bg-button:         #f1f1f1;

    --shadow-sm:         0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md:         0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg:         0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px rgba(15, 23, 42, 0.03);
    --shadow-xl:         0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px rgba(15, 23, 42, 0.04);
    --shadow-nav:        0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-card-hover: 0 12px 24px -4px rgba(15, 23, 42, 0.12);
    --shadow-glow:       0 0 20px var(--color-accent-glow);

    --nav-height:        68px;

    /* Category Card Inactive Overlay */
    --inactive-opacity:  0.55;
}

/* ──────────────────────────────────────────
   DARK THEME
   ────────────────────────────────────────── */
[data-theme="dark"] {
    --bg-body:           #0c1222;
    --bg-surface:        #151d2e;
    --bg-surface-hover:  #20273a;
    --bg-surface-raised: #1e293b;
    --bg-hero:           linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
    --bg-card:           #151d2e;
    --bg-card-hover:     #1a2540;
    --bg-input:          #1e293b;
    --bg-nav:            rgba(12, 18, 34, 0.95);
    --bg-footer:         #020617;
    --bg-dropdown:       #1e293b;
    --bg-badge-soon:     #1e293b;
    --bg-badge-active:   rgba(16, 185, 129, 0.12);
    --bg-coming-soon:    rgba(148, 163, 184, 0.04);

    --color-scrollbar-track: rgb(10, 15, 20) !important;
    --color-scrollbar-thumb: rgb(25, 35, 50) !important;

    --text-primary:      #ffffff;
    --text-secondary:    #c4cbd3;
    --text-tertiary:     #94a3b8;
    --text-inverse:      #0f172a;
    --text-accent:       #ff9011;
    --text-badge-soon:   #94a3b8;
    --text-badge-active: #34d399;

    --border-color:      #1e293b;
    --border-light:      #1e293b;
    --border-input:      #334155;
    --border-input-focus:#ff9011;

    --bg-button:         #2a3546; 

    --shadow-sm:         0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md:         0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg:         0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl:         0 20px 25px rgba(0, 0, 0, 0.4);
    --shadow-nav:        0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.5);
    --shadow-glow:       0 0 30px rgba(255, 136, 0, 0.12);

    --inactive-opacity:  0.4;

    /* Success / Warning / Danger (Dark) */
    --color-success:      #34d399;
    --color-success-light:#6ee7b7;
    --color-success-bg:   rgba(16, 185, 129, 0.12);
    --color-warning:      #fbbf24;
    --color-warning-light:#fcd34d;
    --color-warning-bg:   rgba(245, 158, 11, 0.12);
    --color-danger:       #f87171;
    --color-danger-light: #fca5a5;
    --color-danger-bg:    rgba(239, 68, 68, 0.12);
    --color-info:         #60a5fa;
    --color-info-light:   #93c5fd;
    --color-info-bg:      rgba(59, 130, 246, 0.12);
}

/* ──────────────────────────────────────────
   RESET & BASE
   ────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--color-scrollbar-thumb) var(--color-scrollbar-track) !important;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

/* ──────────────────────────────────────────
   UTILITIES
   ────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ──────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--color-accent);
    color: #000 !important;
}
.btn-primary:hover {
    background: var(--color-accent);
    color: #0f172a !important;
    filter: brightness(107%);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}
.btn-ghost:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary) !important;
    border-color: var(--color-navy-400);
}

.btn-outline-accent {
    background: transparent;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
}
.btn-outline-accent:hover {
    background: var(--color-accent);
    color: #0f172a;
}

.btn-sm {
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 8px;
}

.btn-lg {
    font-size: 18px;
    padding: 20px 32px;
    border-radius: 12px;
}

/* ──────────────────────────────────────────
   BADGES
   ────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1;
    white-space: nowrap;
}

.badge-soon {
    background: var(--bg-badge-soon);
    color: var(--text-badge-soon);
}

.badge-active {
    background: var(--bg-badge-active);
    color: var(--text-badge-active);
}

.badge-sm {
    font-size: 9px;
    padding: 3px 7px;
}

/* ──────────────────────────────────────────
   NAVBAR
   ────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-nav);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    border-radius: 9px;
    color: #0f172a;
}
.nav-logo-icon svg {
    width: 20px;
    height: 20px;
}

.nav-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.nav-logo-text:hover {
    color: var(--color-accent);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}
[data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
}
.nav-link.active {
    color: var(--color-accent);
    background: var(--color-accent-glow);
}

.nav-link-icon {
    width: 16px;
    height: 16px;
}

.nav-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 100;
}

.nav-dropdown-right {
    left: auto;
    right: 0;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

.nav-dropdown.is-open .nav-chevron {
    transform: rotate(180deg);
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s ease;
}
.nav-dropdown-item:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}
.nav-dropdown-item.is-inactive {
    opacity: 0.5;
}
.nav-dropdown-item .badge {
    margin-left: auto;
}

.nav-dropdown-icon {
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
}
.nav-action-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--color-navy-400);
    color: var(--text-primary);
}
.nav-action-btn svg {
    width: 18px;
    height: 18px;
}

.lang-flag {
    font-size: 16px;
    line-height: 1;
}

.lang-code {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Theme Toggle Icons */
.theme-icon-dark  { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark  { display: block; }

/* Mobile Toggle */
.nav-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
}
.nav-mobile-toggle svg {
    width: 20px;
    height: 20px;
}
.mobile-icon-close { display: none; }
.nav-mobile-toggle.is-open .mobile-icon-open  { display: none; }
.nav-mobile-toggle.is-open .mobile-icon-close  { display: block; }

/* Mobile Menu */
.nav-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 12px 24px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}
.nav-mobile-menu.is-open {
    display: flex;
}

.nav-mobile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
}
.nav-mobile-link.is-inactive {
    opacity: 0.5;
}

.nav-mobile-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* ──────────────────────────────────────────
   MAIN CONTENT
   ────────────────────────────────────────── */
.main-content {
    flex: 1;
    padding-top: var(--nav-height);
    min-height: 100vh;
}

/* ──────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #071542 0%, #0e1015 50%, #0b1428 100%);
    padding: 100px 0 108px;
    min-height: 75vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Aurora blobs – Bewegung via JS */
.hero-aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.hero-aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}
.hero-aurora-blob:nth-child(1) {
    width: 500px; height: 500px;
    background: rgba(20, 65, 200, .16);
}
.hero-aurora-blob:nth-child(2) {
    width: 420px; height: 420px;
    background: rgba(10, 35, 150, .18);
}
.hero-aurora-blob:nth-child(3) {
    width: 380px; height: 380px;
    background: rgba(35, 80, 190, .13);
}

/* Grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Floating Badges */
.hero-badges {
    position: absolute;
    inset: 0;
    max-width: 1600px;
    max-height: 720px;
    margin: auto;
    pointer-events: none;
    z-index: 2;
}
.hero-badge-float {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 22px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    opacity: 0;
}
/* Verteilter: oben links, unten links, oben rechts, unten rechts – weiter innen */
.hero-badge-float:nth-child(1) {
    top: 15%; left: 12%;
    animation: badge-in .6s cubic-bezier(.22,1,.36,1) 1.0s forwards, float-a 6s ease-in-out 1.6s infinite alternate;
}
.hero-badge-float:nth-child(2) {
    bottom: 18%; left: 10%;
    animation: badge-in .6s cubic-bezier(.22,1,.36,1) 2.0s forwards, float-b 7s ease-in-out 2.6s infinite alternate;
}
.hero-badge-float:nth-child(3) {
    top: 15%; right: 12%;
    animation: badge-in .6s cubic-bezier(.22,1,.36,1) 3.0s forwards, float-c 8s ease-in-out 3.6s infinite alternate;
}
.hero-badge-float:nth-child(4) {
    bottom: 18%; right: 10%;
    animation: badge-in .6s cubic-bezier(.22,1,.36,1) 4.0s forwards, float-a 9s ease-in-out 4.6s infinite alternate;
}
@keyframes badge-in {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes float-a {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-18px); }
}
@keyframes float-b {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(16px); }
}
@keyframes float-c {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-14px); }
}
.badge-icon-wrap {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.badge-icon-wrap svg { width: 25px; height: 25px; }
.badge-icon-amber  { background: rgba(255,136,0,.2);  color: #ff9011; }
.badge-icon-blue   { background: rgba(59,130,246,.2);  color: #3b82f6; }
.badge-icon-indigo { background: rgba(99,102,241,.2);  color: #6366f1; }
.badge-icon-sky    { background: rgba(14,165,233,.2);  color: #0ea5e9; }
.badge-icon-green  { background: rgba(34,197,94,.2);   color: #16a34a; }
.badge-label { line-height: 1.3; }
.badge-label small {
    display: block;
    font-size: 11.5px;
    font-weight: 400;
    opacity: .6;
    margin-top: 2px;
}

/* hide badges on narrow screens */
@media (max-width: 1100px) {
    .hero-badges { display: none; }
}

/* Hero Logo */
.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 0;
}
.hero-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--color-accent);
    border-radius: 20px;
    color: #0f172a;
    box-shadow: 0 0 40px rgba(255, 136, 0, 0.4);
}
.hero-logo-icon svg {
    width: 38px;
    height: 38px;
}
.hero-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 76px;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #f8fafc;
    line-height: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(255, 136, 0, 0.1);
    border: 1px solid rgba(255, 136, 0, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero h1 .accent {
    color: var(--color-accent);
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 400;
    color: #94a3b8;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero .btn-ghost {
    color: #cbd5e1;
    border-color: #334155;
}
.hero .btn-ghost:hover {
    color: #f8fafc;
    border-color: #64748b;
    background: rgba(255, 255, 255, 0.05);
}

/* ──────────────────────────────────────────
   CATEGORY GRID
   ────────────────────────────────────────── */
.categories-section {
    padding: 80px 0;
    background: var(--bg-body);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    color: var(--text-primary);
}

.category-card:hover::before {
    transform: scaleX(1);
}

/* Inactive Card */
.category-card.is-inactive {
    opacity: var(--inactive-opacity);
    background: var(--bg-coming-soon);
}
.category-card.is-inactive:hover {
    opacity: 0.75;
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.category-card.is-inactive:hover::before {
    background: var(--color-navy-400);
    transform: scaleX(1);
}

.category-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 136, 0, 0.12);
    border-radius: 14px;
    margin-bottom: 18px;
    color: var(--color-accent);
}
.category-card-icon svg {
    width: 24px;
    height: 24px;
}

.is-inactive .category-card-icon {
    background: var(--bg-surface-hover);
    color: var(--text-tertiary);
}

.category-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.category-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    align-self: flex-end;
}

.category-card-stats {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.category-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 15px;
    border-radius: 8px;
    background: var(--bg-surface-hover);
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.category-card-arrow svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.category-card:hover .category-card-arrow {
    background: var(--color-accent);
    color: #0f172a;
    transform: translateX(2px);
}

/* ──────────────────────────────────────────
   FEATURES SECTION
   ────────────────────────────────────────── */
.features-section {
    padding: 80px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    display: flex;
    gap: 18px;
    padding: 28px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}
.feature-card:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--color-accent-glow);
    border-radius: 12px;
    color: var(--color-accent);
}
.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ──────────────────────────────────────────
   WORKFLOW SECTION
   ────────────────────────────────────────── */
.workflow-section {
    padding: 80px 0;
    background: var(--bg-surface);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

/* Connecting line */
.workflow-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(16.67% + 24px);
    right: calc(16.67% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-navy-400), var(--color-accent));
    opacity: 0.3;
}

.workflow-step {
    text-align: center;
    position: relative;
}

.workflow-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--color-accent);
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(255, 136, 0, 0.2);
}

.workflow-step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.workflow-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ──────────────────────────────────────────
   CATEGORY DETAIL PAGE
   ────────────────────────────────────────── */
.page-header {
    padding: 40px 0 32px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--text-tertiary);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb-separator {
    font-size: 12px;
}

.page-header-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.page-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--color-accent-glow);
    border-radius: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
}
.page-header-icon svg {
    width: 28px;
    height: 28px;
}

.page-header-text h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.page-header-text p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ──────────────────────────────────────────
   TOOL PAGE HEADER
   Kompakter Header für Tool-Seiten (Icon + Titel + Subtitle)
   ────────────────────────────────────────── */
.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.tool-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-header h1 svg {
    color: var(--color-accent);
}

.tool-header-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 2px 0 0;
}

/* Tool Cards Grid */
.tools-section {
    padding: 40px 0 80px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

.tool-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.tool-card.is-inactive {
    opacity: var(--inactive-opacity);
    cursor: default;
}
.tool-card.is-inactive:hover {
    opacity: 0.65;
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.tool-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--color-accent-glow);
    border-radius: 12px;
    color: var(--color-accent);
}
.tool-card-icon svg {
    width: 20px;
    height: 20px;
}

.is-inactive .tool-card-icon {
    background: var(--bg-surface-hover);
    color: var(--text-tertiary);
}

.tool-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-card-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tool-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    border: 1px solid var(--border-color);
    background: var(--bg-button);
    align-self: flex-end;
    border-radius: 8px;
    padding: 6px 12px;
    transition: all 0.2s ease;
}
.tool-card:hover .tool-card-action {
    background: var(--color-accent);
    color: #0f172a;
}
.tool-card-action svg {
    width: 14px;
    height: 14px;
}

.is-inactive .tool-card-action {
    color: var(--text-tertiary);
}

/* ──────────────────────────────────────────
   LOGIN / REGISTER PAGES
   ────────────────────────────────────────── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height) - 80px);
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.auth-coming-soon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--color-accent-glow);
    border: 1px solid rgba(255, 136, 0, 0.15);
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-accent);
}
.auth-coming-soon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1.5px solid var(--border-input);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
}
.form-input:focus {
    border-color: var(--border-input-focus);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-submit {
    width: 100%;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}
.auth-footer a {
    font-weight: 600;
}

/* ──────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────── */
.site-footer {
    background: var(--bg-footer);
    color: #94a3b8;
    padding: 60px 0 32px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e293b;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f8fafc;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a, .footer-links {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover, .footer-links:hover {
    color: var(--color-accent);
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 13px;
    color: #475569;
}

.footer-version {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #334155;
}

/* ──────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-actions .btn {
        display: none;
    }
    .nav-mobile-toggle {
        display: flex;
    }
    .nav-container {
        gap: 12px;
    }

    .hero {
        padding: 48px 0 56px;
        min-height: 50vh;
    }
    .hero-logo-text {
        font-size: 48px;
    }
    .hero-logo-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
    .hero-logo-icon svg {
        width: 28px;
        height: 28px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .hero-desc {
        font-size: 15px;
    }

    .section {
        padding: 48px 0;
    }
    .section-header h2 {
        font-size: 26px;
    }
    .categories-section,
    .features-section,
    .workflow-section {
        padding: 48px 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .workflow-steps::before {
        display: none;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .page-header-content {
        flex-direction: column;
    }

    .auth-card {
        padding: 28px 24px;
    }
}

/* ──────────────────────────────────────────
   ANIMATIONS
   ────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }
/* ============================================================
   AMZ Rankx – Auth Overlay Styles
   ============================================================
   Ergänzung zu style.css für Login- und Registrierungs-Overlays.
   Diese Regeln werden AN DAS ENDE der bestehenden style.css angefügt.
   ============================================================ */

/* ──────────────────────────────────────────
   AUTH OVERLAY (Fullscreen-Backdrop)
   ────────────────────────────────────────── */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.auth-overlay-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg-hero);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 36px;
}

.auth-overlay-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 136, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 136, 0, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.auth-overlay-logo {
    position: relative;
    z-index: 1;
}
.auth-overlay-logo .nav-logo {
    color: #f8fafc;
    text-decoration: none;
    font-size: 20px;
}
.auth-overlay-logo .nav-logo-icon {
    color: var(--color-accent);
}

/* ──────────────────────────────────────────
   AUTH CARD (erweitert bestehende .auth-card)
   ────────────────────────────────────────── */
.auth-overlay .auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.auth-card-wide {
    max-width: 520px !important;
}

.auth-card-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

/* ──────────────────────────────────────────
   AUTH ALERTS
   ────────────────────────────────────────── */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.auth-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.auth-alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--color-danger, #dc2626);
}
[data-theme="dark"] .auth-alert-error {
    background: var(--color-danger-bg, rgba(239, 68, 68, 0.12));
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--color-danger, #f87171);
}
.auth-alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--color-success, #059669);
}
[data-theme="dark"] .auth-alert-success {
    background: var(--color-success-bg, rgba(16, 185, 129, 0.12));
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--color-success, #34d399);
}

/* ──────────────────────────────────────────
   GOOGLE BUTTON
   ────────────────────────────────────────── */
.auth-social {
    margin-bottom: 8px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1.5px solid var(--border-input);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-google:hover {
    background: var(--bg-surface-hover);
    border-color: var(--color-navy-400);
    box-shadow: var(--shadow-sm);
}
.btn-google svg {
    flex-shrink: 0;
}

/* ──────────────────────────────────────────
   DIVIDER "oder"
   ────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}
.auth-divider span {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ──────────────────────────────────────────
   FORM ENHANCEMENTS
   ────────────────────────────────────────── */
.form-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    pointer-events: none;
    z-index: 1;
}

.form-input-has-icon {
    padding-left: 42px;
}

.form-input-toggle {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.form-input-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}
.form-input-toggle svg {
    width: 18px;
    height: 18px;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.form-label-row .form-label {
    margin-bottom: 0;
}
.form-label-link {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
}
.form-label-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.auth-step-content .form-hint{
    flex-direction: column;
}

.form-hint svg {
    flex-shrink: 0;
    color: var(--text-tertiary);
}

/* Checkbox */
.form-group-inline {
    margin-bottom: 20px;
}
.form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    user-select: none;
}
.form-checkbox input[type="checkbox"] {
    display: none;
}
.form-checkbox-mark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-input);
    border-radius: 5px;
    background: var(--bg-input);
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.form-checkbox input:checked + .form-checkbox-mark {
    background: var(--color-accent);
    border-color: var(--color-accent);
}
.form-checkbox input:checked + .form-checkbox-mark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #0f172a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.form-checkbox a {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 600;
}

/* Select */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Form Rows (nebeneinander) */
.form-row {
    display: flex;
    gap: 12px;
}
.form-group-half {
    flex: 1;
}
.form-group-third {
    flex: 0 0 35%;
}
.form-group-two-thirds {
    flex: 1;
}

/* Actions Row */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.form-actions .btn {
    flex: 1;
}

/* ──────────────────────────────────────────
   PASSWORD STRENGTH METER
   ────────────────────────────────────────── */
.pw-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.pw-strength.visible {
    opacity: 1;
    height: 22px;
}
.pw-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}
.pw-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
}
.pw-strength-text {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: 100px;
    padding: 0.1rem 0.25rem;
    text-align: center;
    border-radius: 4px;
    color: var(--bg-card);
}

/* Stärke-Level-Farben: nur background, Schrift immer var(--bg-card) */
.pw-weak   { background: #ef4444; }
.pw-fair   { background: #f97316; }
.pw-good   { background: #eab308; }
.pw-strong { background: #22c55e; }

/* ──────────────────────────────────────────
   REGISTRATION STEPS (Progress Indicator)
   ────────────────────────────────────────── */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 8px;
}

.auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.auth-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    background: var(--bg-surface-hover);
    color: var(--text-tertiary);
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
}

.auth-step.active .auth-step-dot {
    background: var(--color-accent);
    color: #0f172a;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-glow);
}

.auth-step.completed .auth-step-dot {
    background: var(--color-success);
    color: #fff;
    border-color: var(--color-success);
    box-shadow: none;
}

.auth-step-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.auth-step.active .auth-step-label,
.auth-step.completed .auth-step-label {
    color: var(--text-primary);
}

.auth-step-line {
    flex: 1;
    height: 3px;
    min-width: 40px;
    max-width: 80px;
    background: var(--border-color);
    border-radius: 3px;
    margin: 0 8px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}
.auth-step-line-fill {
    height: 100%;
    width: 0;
    background: var(--color-success);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ──────────────────────────────────────────
   SELLER PREVIEW CARD
   ────────────────────────────────────────── */
.seller-preview {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.seller-preview-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.seller-preview-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.seller-preview-info {
    flex: 1;
    min-width: 0;
}

.seller-preview-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-preview-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.seller-preview-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    color: var(--text-primary);
}

.seller-preview-check {
    flex-shrink: 0;
}

.seller-preview-business {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ──────────────────────────────────────────
   DONE SCREEN
   ────────────────────────────────────────── */
.auth-done {
    text-align: center;
    padding: 20px 0;
}
.auth-done-icon {
    margin-bottom: 20px;
}
.auth-done h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

/* ──────────────────────────────────────────
   LOADING SPINNER
   ────────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(15, 23, 42, 0.2);
    border-top-color: #0f172a;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}
.btn-primary .spinner {
    border-color: rgba(15, 23, 42, 0.2);
    border-top-color: #0f172a;
}
.btn-ghost .spinner {
    border-color: var(--border-color);
    border-top-color: var(--text-primary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

/* ──────────────────────────────────────────
   AUTH FOOTER (Ergänzung)
   ────────────────────────────────────────── */
.auth-overlay .auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
}
.auth-overlay .auth-footer a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}
.auth-overlay .auth-footer a:hover {
    text-decoration: underline;
}

/* ──────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────── */
@media (max-width: 768px) {
    .auth-overlay {
        padding: 16px;
        align-items: flex-start;
        padding-top: 70px;
    }

    .auth-overlay .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .auth-overlay-logo {
        display: none;
    }

    .auth-steps {
        margin-bottom: 24px;
    }

    .auth-step-label {
        font-size: 10px;
    }

    .auth-step-dot {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .auth-step-line {
        min-width: 24px;
        margin: 0 4px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-group-third,
    .form-group-two-thirds {
        flex: unset;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .seller-preview-header {
        flex-wrap: wrap;
    }
}

@media (max-width: 400px) {
    .auth-overlay .auth-card {
        padding: 24px 16px;
    }

    .auth-card-header h1 {
        font-size: 22px;
    }

    .btn-google {
        font-size: 14px;
        padding: 11px 16px;
    }
}

/* ══════════════════════════════════════════════════════════════
   DARK THEME – GLOBAL SEMANTIC COLOR OVERRIDES
   Fixes hardcoded light-only colors in tool-scoped classes.
   Covers: danger, success, warning backgrounds + text.
   ══════════════════════════════════════════════════════════════ */

/* ── Danger ─────────────────────────────────────────────────── */
[data-theme="dark"] .ac-alert-error,
[data-theme="dark"] .kwl-status-error,
[data-theme="dark"] .ksv-status-error,
[data-theme="dark"] .kwp-status-error,
[data-theme="dark"] .vg-asin-status.error {
    background: var(--color-danger-bg) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: var(--color-danger) !important;
}

/* Danger hover-states (button hover) */
[data-theme="dark"] .kwl-btn-danger-sm:hover,
[data-theme="dark"] .kwl-list-btn.kwl-list-btn-del:hover,
[data-theme="dark"] .ksv-btn-danger:hover:not(:disabled) {
    background: var(--color-danger-bg) !important;
    color: var(--color-danger) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

/* Inline danger text (e.g. delete-dialog warning, knowledge-base) */
[data-theme="dark"] .ac-inline-warn,
[data-theme="dark"] .danger-cancel-info {
    color: var(--color-danger) !important;
}

/* ── Success ────────────────────────────────────────────────── */
[data-theme="dark"] .ac-alert-success,
[data-theme="dark"] .kwl-status-success,
[data-theme="dark"] .ksv-status-success,
[data-theme="dark"] .ksv-btn-success,
[data-theme="dark"] .kwp-status-success {
    background: var(--color-success-bg) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
    color: var(--color-success) !important;
}

[data-theme="dark"] .ksv-btn-success:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.18) !important;
    color: var(--color-success-light) !important;
}

/* knowledge-base success states */
[data-theme="dark"] [style*="color: #16a34a"],
[data-theme="dark"] [style*="color:#16a34a"],
[data-theme="dark"] [style*="color: #059669"],
[data-theme="dark"] [style*="color:#059669"] {
    color: var(--color-success) !important;
}

/* ── Warning ────────────────────────────────────────────────── */
[data-theme="dark"] .kb-toast.is-warning {
    background: var(--color-warning-light) !important;
    color: #0f172a !important; /* dark text on amber still readable */
}

/* ── Info / Blue status ─────────────────────────────────────── */
[data-theme="dark"] [style*="color: #2563eb"],
[data-theme="dark"] [style*="color:#2563eb"],
[data-theme="dark"] [style*="color: #1d4ed8"],
[data-theme="dark"] [style*="color:#1d4ed8"] {
    color: var(--color-info) !important;
}

/* ── Generic near-white status backgrounds ──────────────────── */
/* Catches any remaining #fef2f2 / #ecfdf5 / #fff7ed inline backgrounds */
[data-theme="dark"] [style*="background: #fef2f2"],
[data-theme="dark"] [style*="background:#fef2f2"],
[data-theme="dark"] [style*="background-color: #fef2f2"],
[data-theme="dark"] [style*="background-color:#fef2f2"] {
    background: var(--color-danger-bg) !important;
}
[data-theme="dark"] [style*="background: #ecfdf5"],
[data-theme="dark"] [style*="background:#ecfdf5"],
[data-theme="dark"] [style*="background-color: #ecfdf5"],
[data-theme="dark"] [style*="background-color:#ecfdf5"] {
    background: var(--color-success-bg) !important;
}
[data-theme="dark"] [style*="background: #fff7ed"],
[data-theme="dark"] [style*="background:#fff7ed"],
[data-theme="dark"] [style*="background-color: #fff7ed"],
[data-theme="dark"] [style*="background-color:#fff7ed"] {
    background: var(--color-warning-bg) !important;
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL CREDIT UI
   Wird von allen Tools genutzt, die Credits verbrauchen.
   ══════════════════════════════════════════════════════════════ */

/* ── Credit-Kosten-Kasten ────────────────────────────────────── */
.credit-cost-box {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
}
[data-theme="dark"] .credit-cost-box {
    background: var(--bg-surface-raised);
    border-color: #2d3f5a;
}

.credit-cost-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}
.credit-cost-inner strong {
    color: var(--color-accent);
    font-weight: 700;
}

/* ── Guthaben-Zeile ──────────────────────────────────────────── */
.credit-balance-line {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
}
[data-theme="dark"] .credit-balance-line {
    border-top-color: #2d3f5a;
}
.credit-balance-line strong {
    color: var(--text-secondary);
    font-weight: 600;
}
.credit-balance-line.low strong {
    color: var(--color-danger);
}

/* ── "Credits kaufen" Button ─────────────────────────────────── */
.btn-buy-credits {
    display: inline-block;
    white-space: nowrap;
    background: #b91c1c;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity .15s;
}
.btn-buy-credits:hover {
    opacity: .85;
}
[data-theme="dark"] .btn-buy-credits {
    background: #dc2626;
}
