/* style.css - Ultra Modern Design mit Orange */

:root {
    /* Light Theme - Frische, lebendige Farben */
    --bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-solid: #f0f4ff;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-glass: rgba(255, 255, 255, 0.7);
    --text: #1a202c;
    --text-light: #2d3748;
    --muted: #2d3748;
    
    /* Vibrant Accent Colors - Orange Theme */
    --primary: linear-gradient(135deg, #2d3561 0%, #1a1f3a 100%);
    --accent: linear-gradient(135deg, #ff9a56 0%, #ff6a00 100%);
    --accent-2: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-3: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --accent-4: linear-gradient(135deg, #ffa751 0%, #ffe259 100%);
    
    /* Solid Colors for borders/backgrounds */
    --primary-solid: #2d3561;
    --accent-solid: #ff6a00;
    --accent-2-solid: #00f2fe;
    --accent-3-solid: #38f9d7;
    --accent-4-solid: #ffa751;
    
    --card-border: rgba(102, 126, 234, 0.2);
    --shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    --shadow-hover: 0 30px 80px rgba(255, 106, 0, 0.4);
    --focus: #667eea;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --backdrop-blur: blur(20px);
}

html[data-theme="dark"] {
    /* Dark Theme - Neon & Cyberpunk */
    --bg: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --bg-solid: #0f0c29;
    --surface: rgba(30, 30, 50, 0.9);
    --surface-glass: rgba(30, 30, 50, 0.7);
    --text: #e2e8f0;
    --text-light: #cbd5e0;
    --muted: #e2e8f0;
    
    /* Neon Accents - Orange Theme */
    --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent: linear-gradient(135deg, #ff9a56 0%, #ff6a00 100%);
    --accent-2: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-3: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --accent-4: linear-gradient(135deg, #ffa751 0%, #ffe259 100%);
    
    --primary-solid: #667eea;
    --accent-solid: #ff8c42;
    --accent-2-solid: #00f2fe;
    --accent-3-solid: #38f9d7;
    --accent-4-solid: #ffa751;
    
    --card-border: rgba(102, 126, 234, 0.3);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 30px 80px rgba(255, 140, 66, 0.5);
    --focus: #00f2fe;
    
    --glass-bg: rgba(30, 30, 50, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --backdrop-blur: blur(20px);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-attachment: fixed;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    width: min(1600px, 95vw);
    margin: 0 auto;
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent-solid);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    z-index: 9999;
    font-weight: 600;
}

.skip-link:focus {
    left: 1rem;
}

.site-header {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
}

.brand {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 20px var(--primary-solid));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.site-title {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 800;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.site-subtitle {
    margin: 0.25rem 0 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

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

.site-nav {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 95px;
    z-index: 90;
}

.nav-inner {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    overflow-x: auto;
    flex-wrap: wrap;
}

.nav-inner a {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-inner a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-inner a:hover::before,
.nav-inner a.active::before {
    left: 0;
}

.nav-inner a:hover,
.nav-inner a.active {
    color: #fff;
    border-color: var(--accent-solid);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.4);
}

.nav-inner a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

main.container {
    padding: 2rem 1rem 3rem 1rem;
}

.category {
    margin: 2.5rem 0 2rem;
}

.category h2 {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: 0 0 1.25rem;
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 0.75rem;
}

.category h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

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

.card {
    background: var(--surface-glass);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-solid) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 0.08;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-solid);
}

.card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.card .link-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    position: relative;
    z-index: 1;
}

.card .link-list li {
    margin: 0.4rem 0;
}

.card .link-list a {
    color: var(--accent-solid);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    word-break: break-all;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.card .link-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.card .link-list a:hover::after {
    width: 100%;
}

.card .link-list a:hover {
    color: var(--accent-4-solid);
    transform: translateX(5px);
}

.card .description {
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.card .description-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.card .description-full {
    display: none;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.card.expanded .description-preview {
    display: none;
}

.card.expanded .description-full {
    display: block;
}

.card .description ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.card .description li,
.card .description-preview li,
.card .description-full li {
    margin: 0.4rem 0;
    position: relative;
}

.card .description li::marker,
.card .description-preview li::marker,
.card .description-full li::marker {
    color: var(--accent-solid);
}

.card .description strong,
.card .description-preview strong,
.card .description-full strong {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.card .expand-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
    width: 160px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card .expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid transparent;
    background: var(--surface);
    cursor: pointer;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.4);
}

.btn.ghost {
    background: transparent;
    border-color: var(--card-border);
}

.btn.ghost:hover {
    border-color: var(--accent-solid);
}

.theme-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.site-footer {
    margin-top: 4rem;
    padding: 2rem 1rem 3rem;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

.footer-inner {
    text-align: center;
}

.footer-inner a {
    color: var(--accent-solid);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-inner a:hover {
    color: var(--accent-4-solid);
}

.footer-inner p {
    margin: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 8px;
}

.nav-inner::-webkit-scrollbar {
    height: 8px;
}

.nav-inner::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 10px;
}

.nav-inner::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.nav-inner::-webkit-scrollbar-thumb:hover {
    background: var(--accent-4);
}

.hidden {
    display: none !important;
}

@media (max-width: 1400px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.35rem;
    }
    
    .site-subtitle {
        font-size: 0.85rem;
    }
    
    .category h2 {
        font-size: 1.75rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .nav-inner {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card:hover h3 {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}
