/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
    --ink:        #1a1614;
    --ink-soft:   #4a4542;
    --paper:      #ffffff;
    --cream:      #f5f5e9;
    --cream-dark: #e5e5f9;
    --rule:       #ccc6bb;
    --accent:     #555555;
    --max-w:      1100px;
    --pad:        clamp(24px, 5vw, 60px);

    --f-display: 'adobe-caslon-pro', Georgia, 'Times New Roman', serif;
    --f-body:    'akzidenz-grotesk-next-pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --display-scale: 0.96;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ─── NAV ────────────────────────────────────────────────── */
#nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
}
#nav .wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 104px;
}
#nav .logo img {
    height: 70px;
    width: auto;
}
#nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
#nav-links a {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    transition: color 0.2s;
}
#nav-links a:hover,
#nav-links a.active { color: var(--ink); }
#nav-burger {
    display: none;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
}
#nav-burger span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.28s ease, opacity 0.2s ease;
}
#nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
#nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────────────────── */
#home {
    border-bottom: 1px solid var(--rule);
    padding: 104px 0 96px;
}
#home .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
.hero-id {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 64px;
    padding-top: 26px;
    border-top: 1px solid var(--rule);
}
.hero-id img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    flex: none;
}
.hero-id .who {
    font-family: var(--f-display);
    font-size: 24px;
    line-height: 1.3;
}
.hero-id .what {
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 4px;
    line-height: 1.6;
}
.hero-id .hero-cta-row {
    margin-top: 0;
    margin-left: auto;
}
.hero-text {}
.hero-label {
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-label::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}
.hero-title {
    font-family: var(--f-display);
    font-size: calc(clamp(48px, 6.6vw, 84px) * var(--display-scale));
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.01em;
    max-width: 17ch;
    text-wrap: balance;
    margin-bottom: 32px;
}
.hero-title em {
    font-style: italic;
    font-weight: 300;
}
.hero-sub {
    font-size: 18px;
    font-weight: 300;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 46ch;
    text-wrap: pretty;
    margin-bottom: 0;
}
.hero-person {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    text-transform: uppercase;
}
.hero-logo-wrap {
    width: 260px;
    height: 260px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-logo-wrap img {
    width: 75%;
}
.hero-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--f-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.btn-fill {
    background: var(--ink);
    color: var(--paper);
}
.btn-fill:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ─── SECTION HEADERS ────────────────────────────────────── */
.section-kicker {
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--f-display);
    font-size: calc(clamp(32px, 4.5vw, 52px) * var(--display-scale));
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}
.section-title em {
    font-style: italic;
    font-weight: 300;
}
.section-intro {
    font-size: 18px;
    font-weight: 300;
    color: var(--ink-soft);
    line-height: 1.75;
    max-width: 58ch;
}

/* ─── DIGITAL SECTION ────────────────────────────────────── */
#digital {
    padding: 88px 0;
    border-bottom: 1px solid var(--rule);
}
#digital .section-header {
    margin-bottom: 56px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 48px;
}
.service-card {
    background: var(--paper);
    padding: 36px 32px;
}
.service-card .num {
    font-family: var(--f-display);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}
.service-card h3 {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
}
.service-card p {
    font-size: 18px;
    font-weight: 300;
    color: var(--ink-soft);
    line-height: 1.65;
}

/* ─── ANALOG SECTION ─────────────────────────────────────── */
#analog {
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    padding: 88px 0;
}
#analog .section-header {
    margin-bottom: 56px;
}
#analog .services-grid {
    background: var(--cream-dark);
    border-color: var(--cream-dark);
}
#analog .service-card {
    background: var(--paper);
}
.analog-footer {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--cream-dark);
    display: flex;
    align-items: center;
    gap: 48px;
}
.analog-footer img {
    width: 120px;
    height: 120px;
    opacity: 0.85;
}
.analog-footer-text {}
.analog-footer-text h4 {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
}
.analog-footer-text p {
    font-size: 18px;
    font-weight: 300;
    color: var(--ink-soft);
    max-width: 46ch;
}
.analog-footer-text a {
    display: inline-block;
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    color: var(--ink-soft);
    transition: color 0.2s;
}
.analog-footer-text a:hover { color: var(--ink); }

/* ─── PORTFOLIO ──────────────────────────────────────────── */
#portfolio {
    padding: 88px 0;
    border-bottom: 1px solid var(--rule);
}
#portfolio .section-header {
    margin-bottom: 48px;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
}
.pf-item { margin: 0; }
.pf-frame {
    position: relative;
    aspect-ratio: 3/2;
    border: 1px solid var(--rule);
    background: var(--paper);
    overflow: hidden;
    display: block;
    width: 100%;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
}
.pf-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}
button.pf-frame { cursor: zoom-in; }
button.pf-frame:hover img { transform: scale(1.04); }
button.pf-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pf-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pf-frame.shots img { object-position: 50% 0; }
.pf-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(26,22,20,0.72);
    padding: 5px 9px;
}
.pf-frame.shots[data-images]:not([data-images*="|"]) .pf-count { display: none; }
.pf-frame.empty {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(0,0,0,0.03) 12px, rgba(0,0,0,0.03) 13px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pf-frame.empty::after {
    content: 'Bild folgt';
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0.55;
}
.pf-cap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 12px;
}
.pf-cap .ph-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.pf-cap .ph-title {
    font-family: var(--f-display);
    font-size: 20px;
    color: var(--ink);
}
a.pf-link {
    align-self: start;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
    transition: border-color 0.2s, color 0.2s;
}
a.pf-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.pf-group + .pf-group { margin-top: 56px; }
.pf-group-title {
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.pf-group-title::after {
    content: 'Websites';
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: none;
    color: var(--ink-soft);
}
.pf-group-analog .pf-group-title::after { content: 'Letterpress · Handsatz'; }
.pf-group-analog .pf-frame.shots img { object-position: 50% 50%; }
.portfolio-note {
    margin-top: 32px;
    font-size: 13px;
    font-weight: 300;
    color: var(--rule);
    font-style: italic;
    text-align: center;
}

/* ─── KONTAKT ────────────────────────────────────────────── */
#kontakt {
    padding: 88px 0;
    border-bottom: 1px solid var(--rule);
}
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 56px;
}
.kontakt-block h4 {
    font-family: var(--f-body);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.kontakt-block address {
    font-style: normal;
    font-size: 18px;
    font-weight: 300;
    line-height: 2;
    color: var(--ink-soft);
}
.kontakt-block address a:hover { color: var(--ink); }
.social-links {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.social-link {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}
.social-link::before {
    content: '→';
    font-style: normal;
}
.social-link:hover { color: var(--ink); }
.kontakt-form-note {
    font-size: 18px;
    font-weight: 300;
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 28px;
}
.mail-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--f-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: background 0.2s;
}
.mail-btn:hover { background: var(--ink-soft); }
.mail-btn .arrow { font-size: 18px; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
    background: var(--ink);
    color: var(--paper);
    padding: 36px 0;
}
footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
footer .f-copy {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.04em;
}
footer .f-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
footer .f-links a {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
}
footer .f-links a:hover { color: rgba(255,255,255,0.9); }

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,22,20,0.75);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--paper);
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 48px;
    position: relative;
}
.modal-box h2 {
    font-family: var(--f-display);
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 28px;
}
.modal-box p, .modal-box address {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-soft);
    font-style: normal;
    margin-bottom: 16px;
}
.modal-box h3 {
    font-family: var(--f-display);
    font-size: 20px;
    font-weight: 500;
    margin: 28px 0 10px;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ink-soft);
    line-height: 1;
}
.modal-close:hover { color: var(--ink); }

/* ─── LIGHTBOX ───────────────────────────────────────────── */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(20,17,15,0.94);
    align-items: center;
    justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img {
    max-width: calc(100vw - 140px);
    max-height: calc(100vh - 140px);
    object-fit: contain;
}
#lb-caption {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.lb-btn {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    font-family: var(--f-body);
    line-height: 1;
    padding: 12px 16px;
    transition: color 0.2s;
}
.lb-btn:hover { color: #fff; }
#lb-close { top: 14px; right: 18px; font-size: 26px; }
#lb-prev, #lb-next { top: 50%; transform: translateY(-50%); font-size: 34px; }
#lb-prev { left: 8px; }
#lb-next { right: 8px; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 700px) {
    #home .wrap { grid-template-columns: 1fr; }
    .hero-id { flex-wrap: wrap; }
    .hero-id .hero-cta-row { margin-left: 0; width: 100%; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid, .pf-grid-2 { grid-template-columns: 1fr 1fr; }
    .kontakt-grid { grid-template-columns: 1fr; }
    .analog-footer { flex-direction: column; }
    #nav .wrap { height: 76px; }
    #nav .logo img { height: 48px; }
    #nav-burger { display: flex; }
    #nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        gap: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--rule);
        padding: 0 var(--pad);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.32s ease;
    }
    #nav-links.open { max-height: 60vh; }
    #nav-links li + li { border-top: 1px solid var(--rule); }
    #nav-links a {
        display: block;
        padding: 19px 0;
        font-size: 13px;
        letter-spacing: 0.16em;
    }
}
@media (max-width: 480px) {
    .portfolio-grid, .pf-grid-2 { grid-template-columns: 1fr; }
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
