

:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --card-border: #262626;
    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    
    /* Logo Colors */
    --logo-cyan: #00d2ff;
    --logo-purple: #b400ff;
    --logo-gradient: linear-gradient(90deg, var(--logo-cyan), var(--logo-purple));

    --accent: var(--logo-cyan);
    --hover-bg: #1f1f1f;
    --chip-bg: #1a1a1a;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --highlight: var(--logo-purple);
}

* {
    box-sizing: border-box;
    min-width: 0;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 100px;
}

::selection {
    background: var(--text-primary);
    color: var(--bg-color);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

h2 {
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin: 0 0 1.25rem 0;
    color: var(--text-secondary);
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kicker {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--highlight);
    font-weight: 600;
}

.italic {
    font-style: italic;
}

/* Layout */
.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
header {
    border-bottom: 1px solid var(--card-border);
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.brand:hover {
    color: var(--text-primary);
}

.navlinks {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navlinks a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.navlinks a:hover {
    color: var(--text-primary);
}

/* Hero */
.hero {
    padding: 6rem 0 4rem 0;
    text-align: center;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

/* Grids & Cards */
section {
    padding: 4rem 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Custom About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.about-left {
    display: flex;
    flex-direction: column;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--logo-purple);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(180, 0, 255, 0.2);
}

.img-card {
    padding: 0;
    overflow: hidden;
}

.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-link {
    display: block;
}

.card-link:hover .card {
    border-color: var(--text-secondary);
}

/* Chips & Tags */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--chip-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    transition: all 0.2s ease;
}

a.chip:hover {
    background-color: var(--hover-bg);
    border-color: #404040;
    color: var(--text-primary);
}

.chip-primary {
    background: var(--logo-gradient);
    color: var(--text-primary);
    border: none;
    font-weight: 600;
}

a.chip-primary:hover {
    filter: brightness(1.2);
    color: #ffffff;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 4rem 0 2rem 0;
    }
    h1 {
        font-size: 2rem;
    }
    .cards {
        grid-template-columns: 1fr;
    }
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 1rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    z-index: 200;
    top: calc(100% + 0.5rem);
    right: 0;
    padding: 0.5rem 0;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-primary) !important;
    padding: 0.75rem 1.25rem !important;
    text-decoration: none;
    display: block;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--hover-bg);
    color: var(--accent) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Documentation Components (Lernplattform, API) */
.doc-section {
    padding: 4rem 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.code-block {
    background-color: rgba(10, 10, 10, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    overflow-x: auto;
    color: var(--text-primary);
    line-height: 1.5;
}

.gallery-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.image-caption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    line-height: 1.6;
}

.img-large {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    display: block;
}

.zoomable {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.zoomable:hover {
    transform: scale(1.02);
}

.tags {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid var(--text-primary);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    font-weight: 600;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

.card:hover h3 { color: var(--logo-cyan); transition: color 0.2s ease; }
.card-link:hover .card { border-color: var(--logo-cyan); box-shadow: 0 10px 30px -10px rgba(0, 210, 255, 0.2); }

.profile-float {
    float: right;
    margin: 0 0 1.5rem 2.5rem;
    width: 250px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--card-border);
}

@media (max-width: 700px) {
    .profile-float {
        float: none;
        display: block;
        margin: 0 auto 2rem auto;
        width: 100%;
        max-width: 300px;
    }
}
