/* ─── BASIC RESETS & FONTS ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    --accent-blue: #4aa8ff;
    --accent-violet: #8b7bd8;
    font-family: 'Inter', sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ─── NAVBAR (PERFEKT AUFGETEILT) ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Teilt die Leiste in 3 exakte Bereiche */
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Linke Seite: Logo */
.nav-left {
    display: flex;
    justify-content: flex-start;
}

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

.logo-mark {
    position: relative;
    display: inline-block;
    height: 70px;
    width: 70px;
    overflow: hidden;
    vertical-align: middle;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-mark img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
}

.logo:hover .logo-mark {
    width: 100px;
}

/* Mittlere Seite: Menüpunkte (Kein Equipment mehr) */
.nav-center {
    display: flex;
    gap: 35px; /* Perfekter Abstand, nicht gequetscht */
}

.nav-center a {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b3b3b3;
    transition: color 0.3s, transform 0.3s;
}

.nav-center a:hover {
    color: var(--accent-violet);
    transform: translateY(-2px);
}

/* Rechte Seite: Social Media */
.nav-right {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.social-icon {
    font-size: 1.67rem;
    color: #b3b3b3;
    transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
    color: var(--accent-violet);
    transform: scale(1.1);
}

/* ─── HERO SECTION ─── */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.85)), url('images/hero-bg.jpg') no-repeat center center/cover;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* ─── BUTTONS & LAYOUT ─── */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffffff;
    color: #0d0d0d;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e6e6e6;
    transform: translateY(-2px);
}

.section {
    padding: 100px 20px;
}

.bg-dark {
    background-color: #141414;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ─── PROJEKTE GRID ─── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #141414;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s;
    display: block;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img-placeholder {
    height: 200px;
    background-color: #222;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #444;
    margin-bottom: 20px;
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-card p {
    color: #a7a7a7;
    font-size: 0.95rem;
}

/* ─── ÜBER MICH & EQUIPMENT ─── */
.about-text {
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: center;
    font-size: 1.1rem;
    color: #cccccc;
}

.equipment-container {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 50px;
}

.equipment-container h3 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.gear-item {
    background-color: #0d0d0d;
    padding: 25px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
}

.gear-item i {
    font-size: 2.5rem;
    color: #b3b3b3;
    margin-bottom: 15px;
}

.gear-item h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.gear-item p {
    color: #8c8c8c;
    font-size: 0.9rem;
}

/* ─── KONTAKT FORMULAR ─── */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #141414;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: 1px solid #ffffff;
}

/* ─── FOOTER ─── */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #666;
    font-size: 0.85rem;
}

/* ─── COLOR GRADING SLIDER ─── */
.grading-slider {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Verhältnis, funktioniert in jedem Browser */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: ew-resize;
    user-select: none;
}

.grading-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grading-clip {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}

.grading-clip img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grading-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 3px;
    background-color: #ffffff;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grading-handle::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20px;
    right: -20px;
}

.grading-handle i {
    background-color: #ffffff;
    color: #0d0d0d;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.grading-label {
    position: absolute;
    top: 15px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}

.grading-label-before {
    left: 15px;
}

.grading-label-after {
    right: 15px;
}

/* ─── PROJEKT-DETAILSEITE (run.html) ─── */
.project-detail-page {
    padding-top: 140px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 60px auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.grading-section {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 80px;
    padding-top: 60px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b3b3b3;
    font-size: 0.9rem;
    margin-bottom: 40px;
    transition: color 0.3s;
}

.back-btn:hover {
    color: #ffffff;
}

.project-header {
    text-align: center;
    margin-bottom: 40px;
}

.project-header h1 {
    font-size: 2.6rem;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.project-header .tagline {
    color: #cccccc;
    font-size: 1.1rem;
}

.project-large-banner {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 3rem;
    color: #444;
    margin-bottom: 60px;
}

.project-large-banner span {
    font-size: 1rem;
    letter-spacing: 1px;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.info-content p {
    color: #cccccc;
    margin-bottom: 15px;
}

.info-sidebar {
    background-color: #141414;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 30px;
    align-self: start;
}

.info-sidebar h3 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.info-sidebar ul {
    list-style: none;
}

.info-sidebar li {
    margin-bottom: 14px;
    color: #cccccc;
    font-size: 0.95rem;
}

.info-sidebar li strong {
    color: #fff;
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-blue, #4aa8ff);
    margin-bottom: 2px;
}

/* RESPONSIVE DESIGN (Für Handys) */
@media (max-width: 768px) {
    .navbar {
        grid-template-columns: 1fr;
        height: auto;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }
    .nav-left, .nav-center, .nav-right {
        justify-content: center;
    }
    .nav-center {
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .section {
        padding: 60px 20px;
    }
    .grading-section {
        margin-top: 40px;
        padding-top: 40px;
    }
    .project-info-grid {
        grid-template-columns: 1fr;
    }
    .project-large-banner {
        height: 250px;
    }
}