:root {
    /* Base Colors */
    --bg-color: #050505;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted-90: rgba(255, 255, 255, 0.9);
    --text-muted-80: rgba(255, 255, 255, 0.8);
    --text-muted-70: rgba(255, 255, 255, 0.7);
    --text-muted-60: rgba(255, 255, 255, 0.6);
    --text-muted-b: #fffb;

    /* Accents */
    --accent-blue: #3b82f6;
    --accent-emerald: #10b981;

    /* Surfaces & Borders */
    --card-bg: rgba(24, 24, 27, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --separator-bg: rgba(255, 255, 255, 0.08);
    --control-bg: rgba(0, 0, 0, 0.4);
    --control-bg-hover: rgba(0, 0, 0, 0.8);

    /* Shadows */
    --shadow-color-hover: rgba(0, 0, 0, 0.5);
    --shadow-color-text: rgba(0, 0, 0, 0.8);

    /* Metrics */
    --blur-radius: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    line-height: 1.6;
}

.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(var(--blur-radius));
    -webkit-backdrop-filter: blur(var(--blur-radius));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: scale(1.005) translateY(-4px);
    box-shadow: 0 20px 40px var(--shadow-color-hover);
}

.card-1x1 {
    grid-column: span 1;
    grid-row: span 1;
    height: 150px;
}

.card-1x2 {
    grid-column: span 1;
    grid-row: span 2;
    height: calc(300px + 1.5rem);
}

.card-2x1 {
    grid-column: span 2;
    grid-row: span 1;
    height: 150px;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.bento-card:hover .card-bg {
    opacity: 0.7;
}

.content-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    justify-content: flex-end;
}

.scrollable {
    overflow-y: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.scrollable::-webkit-scrollbar {
    display: none;
}

.hobby-label {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    font-weight: 200;
    margin-top: auto;
    text-shadow: 0 2px 4px var(--shadow-color-text);
    color: var(--text-muted-b);
}

.focus-label {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    font-weight: 300;
    margin-top: auto;
    text-shadow: 0 2px 4px var(--shadow-color-text);
    color: var(--text-primary);
}

/* Typografie & Stile */
h1 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0em;
    margin-bottom: 0;
}

h3 {
    font-weight: 300;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

/* Farben für Überschriften */
.accent-blue h3 {
    color: var(--accent-blue);
}

.accent-emerald h3 {
    color: var(--accent-emerald);
}

#results h3 {
    color: var(--text-secondary);
}

.grid-separator {
    grid-column: 1 / -1;
    height: 1px;
    background: var(--separator-bg);
    margin: 0.5rem 0;
    /* Reduced distance as requested */
}

/* Listen Formatierung */
p,
li {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-muted-90);
}

ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

li {
    position: relative;
    padding-left: 1.5rem;
    display: flex;
    align-items: flex-start;
}

li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-secondary);
}

.accent-blue li::before {
    background-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.accent-emerald li::before {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
}

/* Publikationen bzw. Ergebnisse (Meilensteine) anpassen */
.pub-list {
    gap: 0.2rem;
}

.pub-list li {
    font-size: 1rem;
    color: var(--text-muted-60);
    transition: color 0.3s ease;
}

.pub-list li:hover {
    color: var(--text-primary);
}

.pub-list strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Meilensteine Slider-Ansicht */
.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex: 1;
}

.pub-list.horizontal-slider {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    height: 100%;
    padding: 0;
}

.pub-list.horizontal-slider::-webkit-scrollbar {
    display: none;
}

.milestone-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    /* Ensuring strict 100% width display */
    text-align: left;
}

.milestone-slide::before {
    display: none;
    /* remove bullet points */
}

/* Arrows */
.slider-controls {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    z-index: 100;
}

.slider-arrow {
    background: var(--control-bg);
    border: none;
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    user-select: none;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.bento-card:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: var(--control-bg-hover);
    transform: scale(1.1);
}

.pub-label {
    display: block;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pub-desc {
    display: block;
    font-size: 0.85rem;
    line-height: 1.1;
    color: var(--text-muted-80);
    font-weight: 300;
}

.content-inner.scrollable {
    flex: 1;
    overflow: hidden;
    /* vertical scroll disabled */
    scrollbar-width: none;
}

.content-inner.scrollable h3 {
    margin-bottom: 0.5rem;
}

/* Motto */
.motto {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-muted-80);
}

@media (min-width: 768px) {
    .motto {
        font-size: 1.1rem;
    }
}

/* Akzentrahmen entfernt, jetzt via Bullets */
.accent-blue {
    padding-left: 0;
}

.accent-emerald {
    padding-left: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bento-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
        align-items: flex-start;
        /* Better for scrolling long grids */
    }

    .bento-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-1x1,
    .card-1x2,
    .card-2x1 {
        grid-column: span 1;
    }

    .card-1x2 {
        height: 300px;
        /* Simplified for mobile */
    }

    .grid-separator {
        margin: 0.5rem 0;
    }
}

.build-info {
    position: fixed;
    bottom: 0.5rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0.9;
    pointer-events: none;
    z-index: 1000;
}

.hero-title-secondary {
    font-size: 0.7em;
    color: var(--text-muted-b);
    font-weight: 400;
}