﻿/*
 * PageFrame — warm editorial one-page template
 * (c) unparzd.com — https://unparzd.com
 * Licensed under the PageFrame License Agreement (see LICENSE_EN.txt / LICENSE_DE.txt).
 * You may remove or modify this notice for your own projects per the license terms.
 *
 * Colors: js/pageframe-config.js → branding.colors (also sets CSS variables below)
 * Content: index.html — search for section comments
 * Animations: js/pageframe-config.js → animations { scrollReveal, headerShrink, workHover }
 */

:root {
    --paper: #f6f2ea;
    --ink: #1c1b19;
    --accent: #3d6b59;
    --accent-warm: #b86a4b;
    --hero: #242320;
    --muted: #6f6962;
    --line: rgba(28, 27, 25, 0.12);
    --header-h: 88px;
    --sticky-top: var(--header-h);
    --container: min(1120px, calc(100% - 40px));
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--sticky-top);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.pf-container {
    width: var(--container);
    margin: 0 auto;
}

/* Header — fixed bar; logo 34px; nav from 768px; Contact pill always visible */
.pf-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: rgba(246, 242, 234, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.pf-header.is-compact {
    --header-h: 68px;
    border-color: var(--line);
    box-shadow: 0 8px 30px rgba(28, 27, 25, 0.06);
}

.pf-header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 20px;
}

.pf-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}

.pf-logo-frame {
    display: inline-flex;
    line-height: 0;
    overflow: hidden;
    border-radius: 10px;
    flex-shrink: 0;
    contain: layout paint;
}

.pf-logo-frame--header {
    width: 34px;
    height: 34px;
}

.pf-logo-frame--footer {
    width: 52px;
    height: 52px;
}

.pf-logo-svg {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.pf-logo-svg.is-enter {
    opacity: 1;
}

.pf-logo-field {
    transform-origin: 32px 32px;
    transition: transform 0.4s var(--ease-out);
}

.pf-logo-dot {
    transform-origin: 32px 42px;
    transition: transform 0.4s var(--ease-out), opacity 0.35s ease;
}

.pf-logo-svg.is-hover .pf-logo-field {
    transform: scale(0.94);
}

.pf-logo-svg.is-hover .pf-logo-dot {
    transform: translateY(-4px);
}

.pf-logo-peak {
    vector-effect: non-scaling-stroke;
}

.pf-header-nav {
    display: none;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.pf-header-nav a {
    position: relative;
    text-decoration: none;
    font-size: 0.88rem;
    color: var(--muted);
    padding: 4px 0;
    transition: color 0.25s ease;
}

.pf-header-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
}

.pf-header-nav a:hover,
.pf-header-nav a.is-active {
    color: var(--ink);
}

.pf-header-nav a:hover::after,
.pf-header-nav a.is-active::after {
    width: 100%;
    left: 0;
}

.pf-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    transition: transform 0.25s var(--ease-out), background 0.25s ease;
}

.pf-nav-cta:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .pf-header-nav { display: flex; }
}

/* Hero — dark full-height band; type sizes use clamp() for small screens */
.pf-hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--sticky-top) + 48px) 0 80px;
    background: var(--hero);
    color: #f3efe8;
    overflow: hidden;
}

.pf-hero-grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

.pf-hero-kicker {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a8c4b8;
}

.pf-hero-headline {
    margin: 0 0 20px;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.05;
    font-weight: 600;
    max-width: 11ch;
}

.pf-hero-sub {
    margin: 0 0 32px;
    max-width: 42ch;
    color: rgba(243, 239, 232, 0.72);
    font-size: 1.05rem;
}

.pf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.25s var(--ease-out), background 0.25s ease, color 0.25s ease;
}

.pf-btn:hover { transform: translateY(-2px); }

.pf-btn--primary {
    background: var(--accent-warm);
    color: #fff;
}

.pf-btn--ghost {
    border: 1px solid rgba(255,255,255,0.25);
    color: #f3efe8;
}

@media (min-width: 900px) {
    .pf-hero-grid {
        grid-template-columns: 1fr;
        min-height: calc(100vh - var(--header-h) - 120px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pf-logo-svg {
        opacity: 1;
        transition: none;
    }
}

/* About — two-column grid from 860px; quote card styling on .pf-quote-card */
.pf-section {
    padding: 96px 0;
}

.pf-section--about {
    background: var(--paper);
}

.pf-about-grid {
    display: grid;
    gap: 40px;
}

.pf-about-lead {
    display: grid;
    gap: 16px;
}

.pf-section-label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.pf-about-lead h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.12;
    max-width: 14ch;
}

.pf-about-lead p {
    margin: 0;
    color: var(--muted);
    max-width: 52ch;
}

.pf-quote-card {
    padding: 32px 28px;
    background: #fff;
    border-left: 4px solid var(--accent-warm);
    box-shadow: 0 20px 50px rgba(28, 27, 25, 0.06);
}

.pf-quote-card blockquote {
    margin: 0 0 16px;
    font-size: 1.35rem;
    line-height: 1.45;
}

.pf-quote-card cite {
    font-style: normal;
    font-size: 0.85rem;
    color: var(--muted);
}

@media (min-width: 860px) {
    .pf-about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .pf-quote-card { margin-top: 48px; }
}

/* Work — horizontal scroll strip; card width min(78vw, 340px); thumb gradients below */
.pf-section--work {
    background: #fff;
    padding-bottom: 72px;
}

.pf-section-head {
    margin-bottom: 32px;
}

.pf-section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.pf-work-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 0 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.pf-work-card {
    flex: 0 0 min(78vw, 340px);
    scroll-snap-align: start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.pf-work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(28, 27, 25, 0.08);
}

.pf-no-work-hover .pf-work-card:hover {
    transform: none;
    box-shadow: none;
}

.pf-work-thumb {
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #d8ccc0 0%, #3d6b59 100%);
}

.pf-work-card:nth-child(2) .pf-work-thumb {
    background: linear-gradient(145deg, #e8dfd4 0%, #b86a4b 100%);
}

.pf-work-card:nth-child(3) .pf-work-thumb {
    background: linear-gradient(145deg, #ece7df 0%, #5c7da8 100%);
}

.pf-work-body {
    padding: 22px 22px 26px;
}

.pf-work-body h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.pf-work-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.pf-work-tag {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Process — green background band; vertical timeline on .pf-timeline */
.pf-section--process {
    background: var(--accent);
    color: #eef5f1;
}

.pf-section--process .pf-section-label { color: rgba(255,255,255,0.65); }

.pf-timeline {
    position: relative;
    display: grid;
    gap: 36px;
    margin-top: 40px;
    padding-left: 28px;
}

.pf-timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255,255,255,0.25);
}

.pf-timeline-item {
    position: relative;
    padding-left: 24px;
}

.pf-timeline-item::before {
    content: "";
    position: absolute;
    left: -25px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-warm);
    box-shadow: 0 0 0 4px rgba(184, 106, 75, 0.25);
}

.pf-timeline-item h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.pf-timeline-item p {
    margin: 0;
    color: rgba(238, 245, 241, 0.82);
    max-width: 48ch;
}

/* FAQ — native accordion; edit <details> in index.html */
.pf-section--faq {
    background: var(--paper);
}

.pf-accordion {
    margin-top: 36px;
    border-top: 1px solid var(--line);
}

.pf-accordion details {
    border-bottom: 1px solid var(--line);
    padding: 0;
}

.pf-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 0;
    font-weight: 600;
    font-size: 1.02rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.pf-accordion summary::-webkit-details-marker { display: none; }

.pf-accordion summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--accent);
    transition: transform 0.3s var(--ease-out);
}

.pf-accordion details[open] summary::after {
    transform: rotate(45deg);
}

.pf-accordion p {
    margin: 0 0 22px;
    color: var(--muted);
    max-width: 62ch;
}

/* Contact — large headline + email panel; email set in pageframe-config.js */
.pf-section--contact {
    background: #fff;
}

.pf-contact-grid {
    display: grid;
    gap: 40px;
    align-items: end;
}

.pf-contact-grid h2 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
    max-width: 10ch;
}

.pf-contact-panel {
    padding: 28px;
    background: var(--paper);
    border-radius: 24px;
}

.pf-contact-email {
    display: inline-block;
    margin-bottom: 20px;
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease;
    overflow-wrap: anywhere;
}

.pf-contact-email:hover {
    border-color: var(--accent);
}

.pf-contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pf-contact-chips li {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--muted);
}

@media (min-width: 860px) {
    .pf-contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer — centered logo (52px), legal links → legal/*.html (always visible, no reveal) */
.pf-footer .pf-reveal,
.pf-footer .pf-reveal-left {
    opacity: 1;
    transform: none;
    transition: none;
}

.pf-footer {
    padding: 56px 0 64px;
    background: var(--ink);
    color: rgba(246, 242, 234, 0.75);
    text-align: center;
}

.pf-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pf-footer-logo {
    display: inline-flex;
    text-decoration: none;
    line-height: 0;
}

.pf-footer p {
    margin: 0;
    font-size: 0.92rem;
}

.pf-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
}

.pf-footer-nav a {
    color: rgba(246, 242, 234, 0.55);
    text-decoration: none;
    font-size: 0.82rem;
}

.pf-footer-nav a:hover { color: #fff; }

/* Scroll reveal — class .pf-reveal on elements; toggle via config scrollReveal */
.pf-reveal,
.pf-reveal-left {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}

.pf-reveal-left {
    transform: translateX(-24px);
}

.pf-reveal.is-visible,
.pf-reveal-left.is-visible {
    opacity: 1;
    transform: none;
}

.pf-reveal.is-reveal-skip,
.pf-reveal-left.is-reveal-skip {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .pf-reveal, .pf-reveal-left {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Optional: ?embed=1 — hero-only preview for homepage iframe (14rem panel) */
html.pf-embed,
html.pf-embed body {
    overflow: hidden;
    margin: 0;
    height: 100%;
    background: var(--hero);
}

html.pf-embed .pf-section,
html.pf-embed .pf-footer {
    display: none;
}

html.pf-embed .pf-header {
    position: relative;
    inset: auto;
    top: auto;
    --header-h: 40px;
    background: rgba(246, 242, 234, 0.96);
    box-shadow: none;
}

html.pf-embed .pf-header-inner {
    min-height: 40px;
    gap: 8px;
}

html.pf-embed .pf-header-nav,
html.pf-embed .pf-nav-cta {
    display: none;
}

html.pf-embed .pf-logo {
    font-size: 0.72rem;
    color: var(--ink);
}

html.pf-embed .pf-logo-frame--header {
    width: 26px;
    height: 26px;
}

html.pf-embed .pf-logo-svg {
    opacity: 1;
    transition: none;
}

html.pf-embed .pf-logo-peak {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
}

html.pf-embed .pf-logo-dot {
    opacity: 1 !important;
}

html.pf-embed .pf-container {
    width: calc(100% - 24px);
}

html.pf-embed .pf-hero {
    min-height: 0;
    height: auto;
    padding: 0.5rem 0 0.75rem;
    overflow: hidden;
}

html.pf-embed .pf-hero-grid {
    gap: 0.35rem;
    min-height: 0;
}

html.pf-embed .pf-hero-kicker {
    margin-bottom: 0.35rem;
    font-size: 0.58rem;
}

html.pf-embed .pf-hero-headline {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
    line-height: 1.08;
    max-width: none;
}

html.pf-embed .pf-hero-sub {
    display: none;
}

html.pf-embed .pf-hero-actions {
    gap: 6px;
}

html.pf-embed .pf-hero-actions .pf-btn--ghost {
    display: none;
}

html.pf-embed .pf-btn {
    padding: 6px 12px;
    font-size: 0.65rem;
}

#about, #work, #process, #faq, #contact {
    scroll-margin-top: var(--header-h);
}

/* Small screens — tighter spacing, readable type, touch-friendly targets */
@media (max-width: 767px) {
    :root {
        --container: min(1120px, calc(100% - 32px));
    }

    .pf-section {
        padding: 64px 0;
    }

    html:not(.pf-embed) .pf-hero {
        padding: calc(var(--header-h) + 32px) 0 56px;
        min-height: auto;
    }

    html:not(.pf-embed) .pf-hero-headline {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    html:not(.pf-embed) .pf-logo {
        font-size: 0.85rem;
        min-width: 0;
    }

    html:not(.pf-embed) .pf-logo .js-pf-site-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 42vw;
    }

    .pf-nav-cta {
        padding: 10px 14px;
        font-size: 0.78rem;
    }

    .pf-quote-card {
        padding: 24px 20px;
    }

    .pf-quote-card blockquote {
        font-size: 1.15rem;
    }

    .pf-contact-panel {
        padding: 22px 20px;
    }

    .pf-work-card {
        flex: 0 0 min(85vw, 320px);
    }

    .pf-footer {
        padding: 48px 0 56px;
    }
}

/* Legal subpages — shared layout for legal/imprint.html etc. */
.pf-legal-page {
    background: var(--paper);
}

.pf-legal-header {
    border-bottom: 1px solid var(--line);
    background: rgba(246, 242, 234, 0.96);
}

.pf-legal-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pf-legal-back {
    text-decoration: none;
    font-size: 0.88rem;
    color: var(--muted);
    transition: color 0.2s ease;
}

.pf-legal-back:hover {
    color: var(--accent);
}

.pf-legal-main {
    padding: 48px 0 80px;
}

.pf-legal-inner h1 {
    margin: 12px 0 16px;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.pf-legal-note {
    margin: 0 0 28px;
    padding: 14px 16px;
    background: #fff;
    border-left: 3px solid var(--accent-warm);
    color: var(--muted);
    font-size: 0.92rem;
}

.pf-legal-content h2 {
    margin: 28px 0 10px;
    font-size: 1.05rem;
}

.pf-legal-content p {
    margin: 0 0 12px;
    color: var(--muted);
    max-width: 62ch;
}

.pf-legal-content a {
    color: var(--accent);
}
