/* ============================================
   Walter Koprowitz GmbH — Portfolio Editorial
   ============================================ */

:root {
    --primary: #3d3328;
    --accent: #c9a84c;
    --dark: #1a1a1a;
    --light: #faf8f5;
    --text: #2c2a27;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', Times, serif;
    --sidebar-w: 70px;
    --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    color: var(--light);
    background: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font: inherit; border: none; cursor: pointer; background: none; }
input, textarea, select { font: inherit; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .02em;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
p { max-width: 68ch; }

/* ── Vertical Sidebar Nav (Desktop) ── */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--dark);
    border-right: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    padding: 1.5rem 0;
}
.nav-logo {
    display: block;
    margin-bottom: 2rem;
    transition: opacity var(--transition);
}
.nav-logo:hover { opacity: .7; }
.nav-logo img { width: 36px; height: 36px; }
.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: rgba(255,255,255,.45);
    transition: color var(--transition);
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* ── Hamburger (Mobile) ── */
.hamburger {
    display: none;
    position: fixed;
    top: 1.2rem;
    right: 1.4rem;
    z-index: 1100;
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--light);
    transition: var(--transition);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ── Mobile Nav Overlay ── */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--light);
    transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--accent); }

/* ── Content Area ── */
.content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 5vw 4rem;
    position: relative;
    overflow: hidden;
}
.hero-title {
    font-size: clamp(3.2rem, 9vw, 7rem);
    color: var(--light);
    line-height: .95;
    margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--accent); }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: rgba(255,255,255,.55);
    max-width: 540px;
    font-weight: 300;
    margin-bottom: 2.5rem;
}
.hero-cta {
    display: inline-block;
    padding: .95rem 2.4rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .82rem;
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
}
.hero-cta:hover { background: var(--accent); color: var(--dark); }

/* ── Marquee Banner ── */
.marquee {
    overflow: hidden;
    background: var(--accent);
    padding: .9rem 0;
    white-space: nowrap;
}
.marquee-inner {
    display: inline-flex;
    animation: marquee-scroll 28s linear infinite;
}
.marquee-inner span {
    display: inline-block;
    padding: 0 3rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--dark);
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Sections ── */
.section {
    padding: clamp(4rem, 8vw, 8rem) 5vw;
}
.section--dark { background: var(--dark); color: var(--light); }
.section--light { background: var(--light); color: var(--text); }
.section--primary { background: var(--primary); color: var(--light); }
.section-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.section-title { margin-bottom: 2rem; }

/* ── Full-Width Image Tiles (CSS gradients) ── */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0;
}
.tile {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    overflow: hidden;
    transition: transform var(--transition);
}
.tile:nth-child(1) { background: linear-gradient(135deg, #3d3328 0%, #1a1a1a 100%); }
.tile:nth-child(2) { background: linear-gradient(135deg, #2a2520 0%, #c9a84c33 100%); }
.tile:nth-child(3) { background: linear-gradient(135deg, #1a1a1a 0%, #3d3328 100%); }
.tile:nth-child(4) { background: linear-gradient(135deg, #c9a84c22 0%, #1a1a1a 100%); }
.tile:nth-child(5) { background: linear-gradient(135deg, #3d3328 0%, #2a2520 100%); }
.tile:nth-child(6) { background: linear-gradient(135deg, #1a1a1a 0%, #c9a84c22 100%); }
.tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 60%);
}
.tile:hover { transform: scale(1.02); }
.tile-content { position: relative; z-index: 1; }
.tile-content h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.tile-content p { font-size: .9rem; color: rgba(255,255,255,.7); }

/* ── Agency Statement ── */
.statement {
    padding: clamp(5rem, 10vw, 10rem) 5vw;
    background: var(--dark);
}
.statement-text {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.5vw, 3rem);
    line-height: 1.3;
    color: var(--light);
    max-width: 900px;
    font-weight: 400;
}
.statement-text em {
    font-style: normal;
    color: var(--accent);
}

/* ── Service List (hover slide-in) ── */
.service-list { list-style: none; }
.service-item {
    border-top: 1px solid rgba(255,255,255,.1);
    position: relative;
    overflow: hidden;
}
.service-item:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.service-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 0;
    transition: padding-left var(--transition), color var(--transition);
}
.service-link:hover { padding-left: 2rem; }
.service-link h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    text-transform: uppercase;
    transition: color var(--transition);
}
.service-link:hover h3 { color: var(--accent); }
.service-arrow {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity var(--transition), transform var(--transition);
    color: var(--accent);
}
.service-link:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}
.service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(201,168,76,.04);
    transform: translateX(-100%);
    transition: transform var(--transition);
}
.service-item:hover::before { transform: translateX(0); }

/* ── Split Contact ── */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 60vh; }
.split-left {
    background: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vw, 6rem) 5vw;
}
.split-right {
    background: var(--light);
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vw, 6rem) 5vw;
}

/* ── Forms ── */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .5rem;
    font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .85rem 1rem;
    background: rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.12);
    color: var(--text);
    font-size: .95rem;
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group textarea { resize: vertical; }
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: 1.5rem;
    font-size: .85rem;
}
.form-consent input[type="checkbox"] {
    width: auto;
    margin-top: .25rem;
    accent-color: var(--accent);
}
.form-consent a { color: var(--accent); text-decoration: underline; }
.btn-submit {
    display: inline-block;
    padding: .95rem 2.8rem;
    background: var(--accent);
    color: var(--dark);
    border: none;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.btn-submit:hover { background: #b8953e; transform: translateY(-2px); }

/* Dark form variant */
.form-dark .form-group input,
.form-dark .form-group textarea,
.form-dark .form-group select {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: var(--light);
}
.form-dark .form-group input:focus,
.form-dark .form-group textarea:focus,
.form-dark .form-group select:focus {
    border-color: var(--accent);
}

/* ── Cards ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    padding: 2.5rem 2rem;
    transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.card h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.card p { color: rgba(255,255,255,.6); font-size: .92rem; line-height: 1.7; }

/* Light card */
.card--light {
    background: #fff;
    border-color: rgba(0,0,0,.08);
}
.card--light p { color: rgba(0,0,0,.55); }
.card--light:hover { border-color: var(--accent); }

/* ── Number Stat ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat-label {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: .5rem;
    opacity: .6;
}

/* ── FAQ Accordion ── */
.faq-item { border-bottom: 1px solid rgba(255,255,255,.1); }
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform var(--transition);
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p {
    padding-bottom: 1.5rem;
    color: rgba(255,255,255,.6);
    font-size: .95rem;
    line-height: 1.7;
}

/* Light FAQ variant */
.section--light .faq-item { border-color: rgba(0,0,0,.1); }
.section--light .faq-question { color: var(--text); }
.section--light .faq-answer p { color: rgba(0,0,0,.55); }

/* ── Blog / Aktuelles ── */
.article-card {
    display: block;
    border: 1px solid rgba(255,255,255,.07);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}
.article-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.article-thumb {
    height: 220px;
    background: linear-gradient(135deg, var(--primary), var(--dark));
}
.article-card:nth-child(even) .article-thumb {
    background: linear-gradient(135deg, var(--dark), var(--primary));
}
.article-body { padding: 2rem; }
.article-date {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    margin-bottom: .7rem;
}
.article-body h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.article-body p { font-size: .9rem; color: rgba(255,255,255,.55); }

/* Article Detail */
.article-detail { max-width: 780px; }
.article-detail h1 { margin-bottom: 1rem; }
.article-detail .article-meta {
    font-size: .82rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.article-detail h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.article-detail p {
    color: rgba(255,255,255,.7);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.article-detail ul {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: disc;
}
.article-detail ul li {
    color: rgba(255,255,255,.7);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: .4rem;
}

/* ── Page Header ── */
.page-header {
    padding: clamp(6rem, 12vw, 10rem) 5vw clamp(3rem, 6vw, 5rem);
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-header h1 { margin-bottom: .8rem; }
.page-header p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.5);
    max-width: 600px;
}

/* ── Referenz Grid ── */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
}
.ref-item {
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    position: relative;
    border: 1px solid rgba(255,255,255,.04);
}
.ref-item:nth-child(1) { background: linear-gradient(160deg, #3d332860, #1a1a1a); }
.ref-item:nth-child(2) { background: linear-gradient(160deg, #c9a84c10, #1a1a1a); }
.ref-item:nth-child(3) { background: linear-gradient(160deg, #1a1a1a, #3d332840); }
.ref-item:nth-child(4) { background: linear-gradient(160deg, #2a252080, #1a1a1a); }
.ref-item:nth-child(5) { background: linear-gradient(160deg, #c9a84c08, #3d332830); }
.ref-item:nth-child(6) { background: linear-gradient(160deg, #1a1a1a, #c9a84c10); }
.ref-item h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.ref-item p { font-size: .85rem; color: rgba(255,255,255,.5); }

/* ── Karriere ── */
.job-card {
    border: 1px solid rgba(255,255,255,.1);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color var(--transition), background var(--transition);
    margin-bottom: 1rem;
}
.job-card:hover {
    border-color: var(--accent);
    background: rgba(255,255,255,.02);
}
.job-title { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }
.job-meta { font-size: .82rem; color: rgba(255,255,255,.45); margin-top: .3rem; }
.job-tag {
    padding: .4rem 1rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    white-space: nowrap;
}

/* ── Footer ── */
.footer {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 4rem 5vw 2rem;
    margin-left: var(--sidebar-w);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer h4 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--accent);
    margin-bottom: 1.2rem;
}
.footer a {
    display: block;
    font-size: .88rem;
    color: rgba(255,255,255,.45);
    margin-bottom: .6rem;
    transition: color var(--transition);
}
.footer a:hover { color: var(--light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .78rem;
    color: rgba(255,255,255,.3);
}
.footer-bottom a { display: inline; margin: 0; }

/* ── Cookie Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-w);
    right: 0;
    background: var(--primary);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform var(--transition);
    flex-wrap: wrap;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: .85rem; color: rgba(255,255,255,.8); flex: 1; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-btn {
    padding: .6rem 1.8rem;
    background: var(--accent);
    color: var(--dark);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}
.cookie-btn:hover { background: #b8953e; }

/* ── Legal Text ── */
.legal-content { max-width: 780px; }
.legal-content h1 { margin-bottom: 2rem; }
.legal-content h2 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
    color: var(--accent);
}
.legal-content h3 { font-size: 1.1rem; margin: 1.5rem 0 .7rem; }
.legal-content p {
    color: rgba(255,255,255,.7);
    margin-bottom: 1rem;
    line-height: 1.8;
}
.legal-content ul {
    margin: .5rem 0 1.5rem 1.5rem;
    list-style: disc;
}
.legal-content ul li {
    color: rgba(255,255,255,.7);
    line-height: 1.8;
    margin-bottom: .3rem;
}
.legal-content address {
    font-style: normal;
    line-height: 1.8;
    color: rgba(255,255,255,.7);
}

/* ── Success Message ── */
.success-msg {
    background: rgba(201,168,76,.12);
    border: 1px solid var(--accent);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    color: var(--accent);
    font-weight: 600;
}

/* ── Breadcrumb ── */
.breadcrumb {
    font-size: .78rem;
    color: rgba(255,255,255,.35);
    margin-bottom: 1rem;
}
.breadcrumb a { text-decoration: underline; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 .4rem; }

/* ── Utilities ── */
.text-accent { color: var(--accent); }
.text-light { color: var(--light); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .sidebar-nav { display: none; }
    .hamburger { display: flex; }
    .content { margin-left: 0; }
    .footer { margin-left: 0; }
    .cookie-banner { left: 0; }
    .split { grid-template-columns: 1fr; }
    .hero { padding: 5rem 1.5rem 3rem; }
    .section { padding: clamp(3rem, 6vw, 5rem) 1.5rem; }
    .page-header { padding: 5rem 1.5rem 2.5rem; }
    .footer { padding: 3rem 1.5rem 1.5rem; }
    .tile { min-height: 260px; }
    .ref-grid { grid-template-columns: 1fr; }
    .job-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 600px) {
    .tile-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: clamp(2.4rem, 10vw, 3.5rem); }
    .footer-bottom { flex-direction: column; text-align: center; }
}


/* === AI-generated hero background (added by image pipeline) === */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.45)), url('../img/hero-1.jpg');
    background-size: cover;
    background-position: center;
}
.page-hero,
.karriere .hero,
.referenzen .hero {
    background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.45)), url('../img/hero-2.jpg');
    background-size: cover;
    background-position: center;
}

/* === Section background images === */

/* === Logo sizing fix === */
.logo-link img, .header-logo img, .nav-logo img, .logo img,
img[src*="logo"] {
    height: 40px !important;
    width: auto !important;
    min-width: 100px;
    max-width: 300px;
    display: block;
}
