/* =========================================================
   duzia.at — shared stylesheet
   ========================================================= */

/* ---------- Self-hosted Montserrat (DSGVO-konform, kein Google-Request) ---------- */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #d4d4d4; }
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    color: #767676;
    line-height: 1.7;
    background: #d4d4d4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Detail/project pages keep their content area on white */
body.detail-page,
html:has(body.detail-page) { background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: #ff7700; text-decoration: none; }
a:hover { color: #cc5e00; }
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    color: #343434;
    margin: 0 0 0.5em;
    letter-spacing: 0.5px;
}

/* ---------- Brand colors ---------- */
:root {
    --orange: #ff7700;
    --orange-dark: #cc5e00;
    --purple: #47354e;
    --dark: #292929;
    --light: #f5f5f5;
}

/* ---------- Header ---------- */
.site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: var(--orange);
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 40px;
}
.site-header .inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header .logo img { max-height: 50px; width: auto; }
.site-header nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 32px;
}
.site-header nav a {
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.2px;
    transition: color .25s ease;
}
.site-header nav a:hover { color: rgba(255, 255, 255, 0.75); }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 10px;
}

/* ---------- Hero (home page) ---------- */
.hero {
    min-height: 100vh;
    background-image: url('images/Zinne_Comici_low-1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    padding-top: 22vh;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.7) 40%, rgba(255,255,255,0) 70%);
}
.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}
.hero h1 {
    color: var(--orange);
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 1.8px;
    margin: 0;
}
.hero h1 .accent { display: block; margin-top: 8px; }

/* ---------- Section base ---------- */
.section { padding: 80px 0; }
.section .container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; margin: 0; }

/* ---------- Project grid (home) ---------- */
.projects { background: #d4d4d4 !important; padding: 0; }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #d4d4d4;
}
@media (max-width: 1100px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .projects-grid { grid-template-columns: 1fr; } }

.card {
    position: relative;
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background-color: #1a1a1a;
}
.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease, filter .35s ease;
}
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    transition: background .35s ease;
    z-index: 1;
}
.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}
.card-cats {
    align-self: flex-end;
    background: #343434;
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
}
.card-meta { margin-bottom: 6px; }
.card-date {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 8px;
}
.card-title {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 1.2px;
    margin: 0;
    text-transform: capitalize;
}
.card-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    color: #050708;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    opacity: 0;
    transition: opacity .35s ease, transform .35s ease;
    z-index: 3;
    pointer-events: none;
}
.card-arrow::before { content: '→'; font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-weight: 400; }
.card:hover .card-overlay { background: rgba(41, 41, 41, 0.85); }
.card:hover .card-bg { transform: scale(1.05); }
.card:hover .card-arrow { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }

/* ---------- Project detail page ---------- */
.page-banner {
    background: linear-gradient(135deg, #4c4a4a 0%, #6a6868 100%);
    color: #fff;
    padding: 160px 20px 60px;
    text-align: center;
}
.page-banner h1 {
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    letter-spacing: 4px;
    margin: 0 0 12px;
    text-transform: uppercase;
}
.page-banner .cats {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.page-banner .cats span { color: var(--orange); }

.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}
.page-content p { font-size: 16px; line-height: 1.85; color: #444; margin: 0 0 18px; }
.page-content h2 {
    color: #222;
    border-bottom: 3px solid var(--orange);
    padding-bottom: 8px;
    display: inline-block;
    font-size: 22px;
    margin: 40px 0 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.page-content h3 {
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 14px;
    margin: 30px 0 12px;
}
.page-content blockquote {
    border-left: 4px solid var(--orange);
    margin: 30px 0;
    padding: 16px 28px;
    background: #f9f9f9;
    font-style: italic;
    color: #444;
    font-size: 1.1em;
}
.page-content ul { padding-left: 22px; line-height: 1.9; }
.page-content ul li { margin-bottom: 4px; }
.page-content a { color: var(--orange); }

/* ---------- Stat boxes (project page) ---------- */
.stat-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 50px;
    margin: 40px 0;
}
.stat-box { text-align: center; min-width: 100px; }
.stat-box .stat-num {
    font-size: 3em;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}
.stat-box .stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 8px;
    color: #555;
}

/* ---------- Floated image next to text ---------- */
.float-right {
    float: right;
    max-width: 300px;
    margin: 4px 0 16px 24px;
    cursor: zoom-in;
}
.float-right img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) {
    .float-right { float: none; max-width: 100%; margin: 16px 0; }
}

/* ---------- Centered GIF/image block ---------- */
.gif-block { margin: 15px 0 30px; text-align: center; }
.gif-block img { max-width: 100%; height: auto; margin: 0 auto; display: inline-block; }

/* ---------- Nested lists in "Meine Arbeiten" ---------- */
.page-content ul ul {
    margin-top: 4px;
    margin-bottom: 8px;
    padding-left: 22px;
    list-style: circle;
}
.page-content ul ul li { font-size: 0.95em; }

/* ---------- Image gallery ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 24px 0;
}
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) {
    .gallery.cols-3, .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .gallery, .gallery.cols-2, .gallery.cols-3, .gallery.cols-4 { grid-template-columns: 1fr; }
}
.gallery a {
    display: block;
    overflow: hidden;
    background: #e0e0e0;
    aspect-ratio: 4 / 3;
}
.gallery a img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.gallery a:hover img { transform: scale(1.03); }

/* ---------- Embedded video (click-to-load, no auto YouTube request) ---------- */
.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 24px 0;
    background: #000;
    overflow: hidden;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Placeholder shown until user clicks (no external request fires) */
.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    /* Fallback gradient; overridden by per-instance bg-image when thumbnail exists */
    background-color: #1f1f1f;
    background-image: linear-gradient(135deg, #1f1f1f 0%, #2e2e2e 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    cursor: pointer;
    border: 0;
    width: 100%;
    height: 100%;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: filter .25s ease;
}
.video-placeholder:hover { filter: brightness(1.15); }
/* Light dim layer over thumbnail so text/play-icon stays readable
   (kept subtle so the YouTube thumbnail still comes through clearly) */
.video-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}
.video-placeholder > * { position: relative; z-index: 1; }
.video-placeholder:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.video-placeholder .play-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease;
    color: #fff;
    font-size: 32px;
}
.video-placeholder .play-icon::before {
    content: '';
    display: block;
    width: 0; height: 0;
    border-left: 22px solid #fff;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}
.video-placeholder:hover .play-icon { transform: scale(1.08); }
.video-placeholder .label { font-weight: 500; opacity: 0.85; }
.video-placeholder .hint { font-size: 11px; opacity: 0.55; max-width: 320px; text-align: center; line-height: 1.5; text-transform: none; letter-spacing: 0.5px; padding: 0 20px; }

/* ---------- Back link ---------- */
.back-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--orange);
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.back-link::before { content: '← '; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--purple);
    color: #fff;
    padding: 60px 0 0;
}
/* Same breakpoints/columns as .projects-grid above so columns line up
   visually with the cards. With 3 content items the rightmost slot is
   intentionally empty on desktop (4-col) and tablet large (3-col fills exactly). */
.site-footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
@media (max-width: 1100px) { .site-footer .container { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .site-footer .container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h5 {
    color: var(--orange);
    font-size: 16px;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 10px;
}
.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--orange);
}
.site-footer p { color: #fff; font-size: 14px; margin: 0 0 14px; line-height: 1.7; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: rgba(255,255,255,0.7); }
/* Address block with pin icon */
.address-block {
    margin: 0;
}
.address-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #fff;
    margin: 0 0 6px;
}
.address-label .pin-icon {
    color: #fff;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.address-lines {
    margin: 0 0 14px;
    line-height: 1.7;
}

/* ---------- Instagram (static grid, manually curated) ---------- */
.insta-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-width: 240px;
    margin-bottom: 14px;
}
.insta-feed a {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #2e1f33;
}
.insta-feed a img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}
.insta-feed a:hover img { transform: scale(1.06); opacity: 0.85; }

.insta-follow {
    display: inline-block;
    margin-top: 4px;
    color: var(--orange) !important;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}
.insta-follow::after { content: ' →'; }
.copyright {
    background: var(--orange);
    text-align: center;
    color: #fff;
    padding: 18px 20px;
    font-size: 13px;
    letter-spacing: 1px;
    margin-top: 60px;
}
.copyright a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin: 0 4px;
}
.copyright a:hover { color: rgba(255,255,255,0.75); }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    padding: 40px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
    max-width: min(92vw, 1600px);
    max-height: 85vh;
    width: auto; height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    user-select: none;
    -webkit-user-drag: none;
}
.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 0;
    width: 56px; height: 56px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
    z-index: 2;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.lightbox-close { top: 24px; right: 24px; font-size: 32px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.lightbox.single .lightbox-prev,
.lightbox.single .lightbox-next,
.lightbox.single .lightbox-counter { display: none; }
@media (max-width: 600px) {
    .lightbox { padding: 12px; }
    .lightbox-btn { width: 44px; height: 44px; font-size: 22px; }
    .lightbox-close { top: 12px; right: 12px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}
body.lightbox-open { overflow: hidden; }
.gallery a { cursor: zoom-in; }

/* ---------- Mobile nav ---------- */
@media (max-width: 800px) {
    .site-header { padding: 0 20px; }
    .menu-toggle { display: block; }
    .site-header nav {
        position: absolute;
        top: 80px; left: 0; right: 0;
        background: var(--orange);
        display: none;
    }
    .site-header nav.open { display: block; }
    .site-header nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    .site-header nav li a {
        display: block;
        padding: 14px 20px;
        border-top: 1px solid rgba(255,255,255,0.15);
    }
}
