/*
Theme Name:  Gelhardt Portfolio
Theme URI:   https://michael-gelhardt.de
Description: Maßgeschneidertes Sportfotografie-Portfolio für Michael Gelhardt
Author:      Michael Gelhardt
Version:     1.0
*/

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

:root {
    --black:      #0f0f0f;
    --white:      #ffffff;
    --gray-light: #f7f7f5;
    --gray-mid:   #999;
    --gray-dark:  #444;
    --accent:     #b8964a;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--black);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav#main-nav {
    position: fixed;
    top: 0; width: 100%;
    z-index: 200;
    padding: 28px 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding .4s ease, background .4s ease, box-shadow .4s ease;
}
nav#main-nav.scrolled {
    background: rgba(255,255,255,.97);
    padding: 16px 64px;
    box-shadow: 0 1px 0 rgba(0,0,0,.07);
}
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: .02em;
    transition: color .4s;
}
nav#main-nav.scrolled .nav-logo { color: var(--black); }

.nav-links { display: flex; gap: 44px; list-style: none; }
.nav-links a {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.88);
    text-decoration: none;
    transition: color .3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width .3s;
}
.nav-links a:hover::after { width: 100%; }
nav#main-nav.scrolled .nav-links a { color: var(--gray-dark); }
.nav-links a:hover { color: var(--accent); }
nav#main-nav.scrolled .nav-links a:hover { color: var(--accent); }

/* ── HERO ── */
#hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}
#hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,.28) 0%,
        rgba(0,0,0,.15) 40%,
        rgba(0,0,0,.55) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 24px;
}
.hero-eyebrow {
    display: inline-block;
    font-size: .68rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    font-weight: 400;
    color: rgba(255,255,255,.75);
    margin-bottom: 22px;
    padding-bottom: 16px;
    position: relative;
}
.hero-eyebrow::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 32px; height: 1px;
    background: var(--accent);
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 1.0;
    margin-bottom: 28px;
    letter-spacing: -.02em;
}
.hero-sub {
    font-size: clamp(.8rem, 1.4vw, 1rem);
    font-weight: 300;
    letter-spacing: .12em;
    color: rgba(255,255,255,.8);
    margin-bottom: 52px;
    text-transform: uppercase;
}
.hero-cta {
    display: inline-block;
    padding: 15px 44px;
    border: 1px solid rgba(255,255,255,.75);
    color: var(--white);
    text-decoration: none;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all .35s;
}
.hero-cta:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.scroll-hint {
    position: absolute;
    bottom: 42px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: rgba(255,255,255,.55);
    cursor: pointer;
}
.scroll-hint span { font-size: .6rem; letter-spacing: .25em; text-transform: uppercase; }
.scroll-line {
    width: 1px; height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,.6), rgba(255,255,255,0));
    animation: scrollAnim 2.2s ease-in-out infinite;
}
@keyframes scrollAnim {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ── SECTIONS ── */
section { padding: 110px 64px; }
.container { max-width: 1400px; margin: 0 auto; }

.section-label {
    font-size: .68rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 14px;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}
.section-rule {
    width: 36px; height: 1px;
    background: var(--accent);
    margin-top: 22px;
}

/* ── PORTFOLIO ── */
#portfolio { background: var(--white); padding-bottom: 60px; }
.portfolio-header { text-align: center; margin-bottom: 80px; }
.portfolio-header .section-rule { margin: 22px auto 0; }

.sport-block { margin-bottom: 90px; }
.sport-title-row {
    display: flex; align-items: center; gap: 28px;
    margin-bottom: 28px;
}
.sport-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem; font-weight: 700;
    white-space: nowrap;
}
.sport-rule { flex: 1; height: 1px; background: #e8e8e8; }
.sport-meta {
    font-size: .7rem; letter-spacing: .12em;
    color: var(--gray-mid); text-transform: uppercase; white-space: nowrap;
}

/* Photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.photo-grid.wide-first .photo-item:first-child { grid-column: span 2; }
.photo-grid.wide-last  .photo-item:last-child  { grid-column: span 2; }

.photo-item {
    position: relative; overflow: hidden;
    cursor: pointer; background: #ebebeb;
}
.photo-item img {
    width: 100%; height: 100%;
    min-height: 220px;
    object-fit: cover; display: block;
    transition: transform .7s cubic-bezier(.25,.46,.45,.94);
}
.photo-item:hover img { transform: scale(1.06); }

.photo-hover {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0);
    transition: background .4s;
    display: flex; align-items: flex-end;
    padding: 20px 22px;
}
.photo-item:hover .photo-hover { background: rgba(0,0,0,.28); }
.photo-tag {
    font-size: .68rem; letter-spacing: .14em;
    text-transform: uppercase; color: rgba(255,255,255,.9);
    opacity: 0; transform: translateY(8px);
    transition: all .4s;
}
.photo-item:hover .photo-tag { opacity: 1; transform: translateY(0); }

/* No-photos placeholder */
.no-photos {
    grid-column: 1 / -1;
    padding: 60px 40px;
    text-align: center;
    background: var(--gray-light);
    color: var(--gray-mid);
}
.no-photos p { font-size: .85rem; letter-spacing: .05em; }
.no-photos strong { display: block; font-size: 1rem; color: var(--gray-dark); margin-bottom: 8px; font-weight: 500; }

/* ── ABOUT ── */
#about { background: var(--gray-light); }
.about-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 90px; align-items: center;
    max-width: 1200px; margin: 0 auto;
}
.about-img-wrap { position: relative; }
.about-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.about-frame {
    position: absolute; bottom: -22px; right: -22px;
    width: 55%; height: 55%;
    border: 2px solid var(--accent);
    pointer-events: none;
}
.about-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 2.8vw, 2.8rem);
    font-weight: 700; line-height: 1.2;
    margin-top: 18px; margin-bottom: 28px;
}
.about-body {
    color: var(--gray-dark);
    font-size: .98rem; line-height: 1.9;
    font-weight: 300; margin-bottom: 18px;
}
.about-stats {
    display: flex; gap: 44px;
    margin-top: 44px; padding-top: 40px;
    border-top: 1px solid #ddd;
}
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem; font-weight: 700;
    line-height: 1; color: var(--black);
}
.stat-lbl {
    font-size: .67rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--gray-mid);
    margin-top: 6px;
}

/* ── CONTACT ── */
#contact { background: var(--white); }
.contact-wrap { max-width: 680px; margin: 0 auto; }
.contact-intro {
    text-align: center;
    font-size: 1.02rem; font-weight: 300;
    color: var(--gray-dark); line-height: 1.85;
    margin-bottom: 56px;
}
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
    font-size: .67rem; letter-spacing: .18em;
    text-transform: uppercase; font-weight: 500; color: #555;
}
.field input, .field textarea, .field select {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 11px 0;
    font-family: 'Inter', sans-serif;
    font-size: .95rem; font-weight: 300;
    color: var(--black); background: transparent;
    outline: none; transition: border-color .3s;
    appearance: none; width: 100%; border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--black); }
.field textarea { resize: vertical; min-height: 120px; }
.send-btn {
    align-self: center;
    padding: 16px 64px;
    background: var(--black); color: var(--white);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: .72rem; font-weight: 500;
    letter-spacing: .18em; text-transform: uppercase;
    cursor: pointer; transition: background .3s;
    margin-top: 10px;
}
.send-btn:hover { background: var(--accent); }

/* ── FOOTER ── */
footer {
    background: var(--black);
    color: rgba(255,255,255,.45);
    padding: 48px 64px;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem; color: var(--white);
    font-weight: 700; letter-spacing: .01em;
}
.footer-copy { font-size: .72rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
    color: rgba(255,255,255,.4); text-decoration: none;
    font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    transition: color .3s;
}
.footer-legal a:hover { color: var(--white); }

/* ── LIGHTBOX ── */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.94);
    z-index: 500;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-img { max-width: 90vw; max-height: 88vh; object-fit: contain; display: block; }
.lb-close {
    position: absolute; top: 28px; right: 36px;
    color: rgba(255,255,255,.7); font-size: 2.2rem;
    cursor: pointer; font-weight: 300; line-height: 1;
    transition: color .2s;
}
.lb-close:hover { color: var(--white); }

/* ── FADE-IN ── */
.fade-up {
    opacity: 0; transform: translateY(28px);
    transition: opacity .75s ease, transform .75s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 900px) {
    nav#main-nav, nav#main-nav.scrolled { padding: 18px 24px; }
    .nav-links { display: none; }
    section { padding: 72px 24px; }
    .photo-grid { grid-template-columns: 1fr 1fr; }
    .photo-grid.wide-first .photo-item:first-child,
    .photo-grid.wide-last  .photo-item:last-child  { grid-column: span 1; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-frame { display: none; }
    .field-row { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 18px; text-align: center; }
}
