/* ============================================================
   Variables & Reset
   ============================================================ */
:root {
    --bg:           #0a0a0a;
    --surface:      #141414;
    --surface-2:    #1c1c1c;
    --border:       #282828;
    --gold:         #c9a46e;
    --gold-light:   #e2c79a;
    --text:         #e8e8e8;
    --text-muted:   #888;
    --text-faint:   #444;

    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans:  'Montserrat', system-ui, sans-serif;

    --radius: 2px;
    --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
}

.site-title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
}

.header-lockup {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-logo {
    height: 10rem;
    width: auto;
    flex-shrink: 0;
    opacity: 0.85;
}

.site-subtitle {
    margin-top: 0.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ============================================================
   Main
   ============================================================ */
.main-content {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ============================================================
   Albums Grid
   ============================================================ */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.album-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}

.album-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.album-card:hover .album-cover img {
    transform: scale(1.04);
}

.album-cover {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--surface-2);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-cover-placeholder {
    width: 100%;
    height: 100%;
    background: var(--surface-2);
}

.album-badge-360 {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--gold);
    padding: 0.25em 0.65em;
    border-radius: var(--radius);
    pointer-events: none;
    z-index: 1;
}

.album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    pointer-events: none;
}

.album-count {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.4);
    padding: 0.3em 0.7em;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
}

.album-info {
    padding: 1.25rem 1.5rem;
}

.album-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    color: var(--text);
}

.album-desc {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.album-date {
    margin-top: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ============================================================
   Panorama 360°
   ============================================================ */

/* Kompakter Header auf der Panorama-Seite */
.page-panorama .site-header {
    padding: 1.25rem 2rem;
}

.page-panorama .site-logo {
    height: 4rem;
}

.page-panorama .site-title {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
}

.panorama-main {
    padding: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.pano-section-label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pano-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gold);
    opacity: 0.25;
}

.album-pano-section {
    height: 65vh;
    min-height: 380px;
    margin-bottom: 2.5rem;
    display: flex;
}

.pano-viewer-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    font-family: var(--font-sans);
    color: var(--gold);
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--gold);
    padding: 0.25em 0.65em;
    border-radius: var(--radius);
    pointer-events: none;
    z-index: 2;
}

.panorama-wrap {
    flex: 1;
    position: relative;
    min-height: 500px;
    background: var(--surface-2);
}

.panorama-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.panorama-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 2.5rem 1.5rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    z-index: 10;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.panorama-thumb {
    flex-shrink: 0;
    width: 110px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition);
    background: var(--surface-2);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.panorama-thumb:hover,
.panorama-thumb.is-active {
    border-color: var(--gold);
}

.panorama-thumb img {
    width: 100%;
    height: 62px;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity var(--transition);
    display: block;
}

.panorama-thumb:hover img,
.panorama-thumb.is-active img {
    opacity: 1;
}

/* ============================================================
   Gaussian Splat 3D
   ============================================================ */

.album-badge-3d {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--gold);
    padding: 0.25em 0.65em;
    border-radius: var(--radius);
    pointer-events: none;
    z-index: 1;
}

.page-splat .site-header {
    padding: 1.25rem 2rem;
}

.page-splat .site-logo {
    height: 4rem;
}

.page-splat .site-title {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
}

.splat-main {
    padding: 0;
    max-width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.splat-wrap {
    flex: 1;
    position: relative;
    min-height: 500px;
    background: var(--surface-2);
}

.splat-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.splat-viewer-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    font-family: var(--font-sans);
    color: var(--gold);
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--gold);
    padding: 0.25em 0.65em;
    border-radius: var(--radius);
    pointer-events: none;
    z-index: 2;
}

.splat-thumb-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 62px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.25rem;
    text-align: center;
    line-height: 1.3;
}

/* ============================================================
   Photo Grid
   ============================================================ */

.photo-count-label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1.5rem;
}

.photos-grid {
    columns: 4;
    column-gap: 0.75rem;
}

.photo-item {
    display: block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    cursor: zoom-in;
    transition: border-color var(--transition);
    padding: 0;
}

.photo-item:hover {
    border-color: var(--gold);
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
    opacity: 0.92;
}

.photo-item:hover img {
    transform: scale(1.03);
    opacity: 1;
}

/* Video thumbnail in grid */
.photo-item--video {
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.video-thumb {
    width: 100%;
    height: 100%;
    min-height: 140px;
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: background var(--transition);
    position: relative;
    overflow: hidden;
}

.photo-item--video:hover .video-thumb {
    background: #1e1e1e;
}

.video-play-icon {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--gold);
    transition: transform var(--transition), color var(--transition);
    flex-shrink: 0;
}

.video-thumb--image .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.photo-item--video:hover .video-play-icon {
    transform: scale(1.1);
    color: var(--gold-light);
}

.video-thumb--image:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--gold-light);
}

.video-thumb--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
    opacity: 0.92;
}

.photo-item--video:hover .video-thumb--image img {
    transform: scale(1.03);
    opacity: 1;
}

.video-filename {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    padding: 0 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.97);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}

.lb-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 10rem);
    max-height: calc(100vh - 8rem);
}

.lb-img {
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    object-fit: contain;
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 0.25s ease;
    box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

.lb-img.is-loaded {
    opacity: 1;
}

.lb-video {
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 0.25s ease;
    box-shadow: 0 0 80px rgba(0,0,0,0.8);
    background: #000;
    display: none;
}

.lb-video.is-loaded {
    opacity: 1;
}

.lb-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.lb-loader::after {
    content: '';
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.lb-close {
    position: fixed;
    top: 1.5rem;
    right: 1.75rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--transition);
    z-index: 10;
}

.lb-close:hover { color: var(--gold); }

.lb-close svg {
    width: 1.4rem;
    height: 1.4rem;
}

.lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--transition);
    z-index: 10;
}

.lb-nav:hover { color: var(--gold); }

.lb-nav svg {
    width: 1.5rem;
    height: 1.5rem;
}

.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

.lb-footer {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.lb-caption {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.lb-counter {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--text-faint);
    white-space: nowrap;
}

/* ============================================================
   Empty state
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.empty-state code {
    font-family: monospace;
    color: var(--gold);
    background: var(--surface-2);
    padding: 0.1em 0.4em;
    border-radius: 2px;
}

.text-muted { color: var(--text-muted); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ============================================================
   Site Navigation
   ============================================================ */
.site-nav {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
    padding-bottom: 0.15em;
    border-bottom: 1px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.nav-link--gallery {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ============================================================
   Contact Form
   ============================================================ */
.contact-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    padding: 0.75rem 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-faint);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 164, 110, 0.12);
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #c0392b;
}

.field-error {
    font-size: 0.75rem;
    color: #e74c3c;
    letter-spacing: 0.03em;
}

.btn-submit {
    align-self: flex-start;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    color: var(--gold);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    padding: 0.85rem 2.5rem;
    text-transform: uppercase;
    transition: background var(--transition), color var(--transition);
}

.btn-submit:hover {
    background: var(--gold);
    color: var(--bg);
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.alert svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.alert-success {
    border-color: rgba(39, 174, 96, 0.4);
    background: rgba(39, 174, 96, 0.07);
    color: #6fcf97;
}

.alert-error {
    border-color: rgba(235, 87, 87, 0.4);
    background: rgba(235, 87, 87, 0.07);
    color: #eb5757;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .photos-grid { columns: 3; }
}

@media (max-width: 768px) {
    .site-header { padding: 2rem 1rem 1.5rem; }

    .site-logo { height: 10rem; }

    .back-link {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .header-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-content { padding: 2rem 1rem; }

    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }

    .photos-grid {
        columns: 2;
        column-gap: 0.5rem;
    }

    .photo-item { margin-bottom: 0.5rem; }

    .lb-stage {
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 6rem);
    }

    .lb-img { max-height: calc(100vh - 6rem); }

    .lb-nav { width: 2.75rem; height: 2.75rem; }
    .lb-prev { left: 0.25rem; }
    .lb-next { right: 0.25rem; }
}

@media (max-width: 480px) {
    .photos-grid { columns: 1; }
    .albums-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Panorama – Responsive
   ============================================================ */
@media (max-width: 768px) {
    .page-panorama .site-header {
        padding: 0.6rem 1rem;
    }

    .page-panorama .site-logo {
        height: 2.5rem;
    }

    .page-panorama .site-title {
        font-size: 1.2rem;
    }

    .page-panorama .site-subtitle,
    .page-panorama .site-nav {
        display: none;
    }

    .page-panorama .back-link {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        margin-bottom: 0;
    }

    .album-pano-section {
        height: 50vh;
        min-height: 280px;
    }

    .panorama-wrap {
        min-height: 300px;
    }

    .panorama-strip {
        justify-content: flex-start;
        gap: 0.4rem;
        padding: 2rem 0.75rem 0.6rem;
    }

    .panorama-thumb {
        width: 80px;
    }

    .panorama-thumb img {
        height: 46px;
    }

    .panorama-thumb-label {
        font-size: 0.5rem;
        padding: 0.25em 0.3em;
    }
}

/* Landscape Mobile: Strip noch kompakter */
@media (max-height: 500px) and (orientation: landscape) {
    .page-panorama .site-header {
        padding: 0.4rem 1rem;
    }

    .page-panorama .site-logo {
        height: 1.8rem;
    }

    .panorama-strip {
        padding: 1.5rem 0.75rem 0.4rem;
    }

    .panorama-thumb {
        width: 64px;
    }

    .panorama-thumb img {
        height: 36px;
    }
}

/* ── Splat – Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .page-splat .site-header {
        padding: 0.6rem 1rem;
    }

    .page-splat .site-logo {
        height: 2.5rem;
    }

    .page-splat .site-title {
        font-size: 1.2rem;
    }

    .page-splat .site-subtitle,
    .page-splat .site-nav {
        display: none;
    }

    .splat-wrap {
        min-height: 300px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .page-splat .site-header {
        padding: 0.4rem 1rem;
    }

    .page-splat .site-logo {
        height: 1.8rem;
    }
}

/* ── About Page ─────────────────────────────────────── */
.about-main { padding: 3rem 1.5rem; }
.about-content { max-width: 800px; margin: 0 auto; }
.about-lead { font-family: var(--font-serif); font-size: 1.25rem; color: var(--gold); font-style: italic; margin-bottom: 1.25rem; }
.about-intro { color: var(--text-muted); margin-bottom: 2rem; }
.about-content h2 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-top: 4rem; margin-bottom: 1.5rem; }
.about-services { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .about-services { grid-template-columns: 1fr 1fr; } }
.about-service h3 { font-family: var(--font-serif); font-size: 1.05rem; color: var(--gold); margin-bottom: 0.4rem; }
.about-service p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.about-section p { color: var(--text-muted); line-height: 1.8; }
