/* ============================
   Niemeier-Kleidat Architekt
   Custom Styles
   ============================ */

:root {
    --brand:        #6BA32A;
    --brand-dark:   #4E7A1E;
    --brand-light:  #EFF6E4;
    --charcoal:     #4A4A4A;
    --charcoal-dark: #222222;
}

* {
    scroll-behavior: smooth;
}

body {
    background-image:
        linear-gradient(rgba(107, 163, 42, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 163, 42, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    background-color: #ffffff;
}

/* ---- Navigation ---- */
nav {
    backdrop-filter: blur(12px);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-dark); }

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* ---- Large-screen background pattern (architectural grid) ---- */
.section-pattern {
    background-image:
        linear-gradient(rgba(107, 163, 42, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 163, 42, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ---- Hover lift ---- */
a[class*="bg-brand"]:hover,
a[class*="bg-charcoal"]:hover {
    transform: translateY(-2px);
}

/* ============================================================
   PROJECT GALLERY
   ============================================================ */

.project-gallery {
    display: flex;
    flex-direction: column;
}

/* Main image area */
.gallery-main-wrap {
    position: relative;
    min-height: 280px;
    flex: 1;
    background: #e5e7eb;
    overflow: hidden;
}

@media (min-width: 768px) {
    .gallery-main-wrap {
        min-height: 380px;
    }
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
}

/* Label badge */
.gallery-label {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
}

.label-vorher  { background-color: var(--charcoal); }
.label-nachher { background-color: var(--brand); }

/* Thumbnail strip */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #f9fafb;
}

.gallery-thumb {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    height: 60px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    padding: 0;
    background: none;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.35);
}

.gallery-thumb:hover {
    transform: scale(1.03);
    border-color: var(--brand-dark);
}

.gallery-thumb.active {
    border-color: var(--brand);
}

/* ============================================================
   TIMELINE / WERDEGANG
   ============================================================ */

.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand), var(--brand-light));
}

.timeline-entry {
    position: relative;
    display: flex;
    gap: 20px;
    padding-bottom: 32px;
}

.timeline-entry--last {
    padding-bottom: 0;
}

/* Dot on the line */
.timeline-entry::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--brand);
    flex-shrink: 0;
}

.timeline-entry--last::before {
    background: var(--brand);
    width: 14px;
    height: 14px;
    left: -26px;
    top: 5px;
}

/* Year badge */
.timeline-year {
    flex-shrink: 0;
    width: 52px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark);
    padding-top: 2px;
    letter-spacing: 0.02em;
}

.timeline-year--current {
    color: var(--brand);
}

/* Content */
.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeline-content strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--charcoal-dark);
    line-height: 1.4;
}

.timeline-content span {
    font-size: 13px;
    color: var(--charcoal);
    line-height: 1.5;
}
