:root {
  --bg: #faf7f2;
  --bg-alt: #f1ebe2;
  --ink: #1f1c1a;
  --muted: #6e655d;
  --line: #ddd3c6;
  --accent: #b5452f;
  --accent-ink: #fff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .6em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
em { color: var(--accent); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--muted); margin-bottom: 1.4em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }

.btn {
  display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  padding: .8em 1.5em; border-radius: var(--radius); text-decoration: none; font: inherit; font-size: .95rem;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--ink); border-bottom: 1px solid var(--accent); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2em; }
.hero-art { margin: 0; }
.hero-art img { box-shadow: 0 30px 60px -30px rgba(40, 25, 10, .45); }
.hero-art figcaption { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.section-sub { color: var(--muted); max-width: 32em; margin: 0; }

/* Gallery */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  font: inherit; font-size: .88rem; background: none; border: 1px solid var(--line); color: var(--muted);
  padding: .45em 1em; border-radius: 99px; cursor: pointer; transition: all .2s;
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.gallery { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 24px; }
.gallery li { break-inside: avoid; margin-bottom: 24px; }
.gallery li.is-hidden { display: none; }
.work { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.work img { transition: transform .5s ease, filter .5s; }
.work:hover img { transform: scale(.985); filter: brightness(1.04); }
.work-info { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: .9rem; }
.work-info span { color: var(--muted); }
.work-info strong { font-weight: 500; }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait {
  aspect-ratio: 4 / 5; background: linear-gradient(160deg, #d9c9b6, #b89f86);
  display: grid; place-items: center; color: rgba(255,255,255,.8); font-family: var(--serif); font-size: 1.4rem;
}
.facts { margin: 2em 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }

/* Angebot */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 32px 28px; transition: background .3s; }
.card:hover { background: #fff; }
.card-num { font-family: var(--serif); color: var(--accent); font-size: 1.1rem; display: block; margin-bottom: 1.5em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: .8rem; color: var(--muted); display: block; }
.steps strong { display: block; font-weight: 500; }
.steps span { color: var(--muted); font-size: .92rem; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--serif); font-size: 1.3rem; color: var(--accent); }
.timeline strong { display: block; font-weight: 500; }
.timeline span { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact { background: var(--ink); color: var(--bg); }
.contact .lead, .contact-list span, .form-note { color: #b5aca3; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact-list { list-style: none; padding: 0; margin: 2em 0 0; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; padding: 12px 0; border-bottom: 1px solid #3a3531; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: .88rem; color: #b5aca3; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--bg); background: transparent; border: 0; border-bottom: 1px solid #5a534d;
  padding: 8px 0; border-radius: 0; transition: border-color .2s;
}
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; background: var(--bg); color: var(--ink); border-color: var(--bg); margin-top: 8px; }
.form .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.form-note { font-size: .8rem; margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #8f867e; border-top: 1px solid #3a3531; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; padding: 24px; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--bg); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgba(20, 17, 15, .96); color: var(--bg);
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 16px; padding: 24px 0; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; }
.lightbox figcaption { text-align: center; display: grid; gap: 2px; }
.lightbox figcaption span { color: #b5aca3; font-size: .9rem; }
.lb-ask { margin-top: 8px; color: var(--bg); font-size: .9rem; }
.lb-close, .lb-nav { background: none; border: 0; color: var(--bg); cursor: pointer; font-size: 2.4rem; line-height: 1; padding: 12px; opacity: .7; }
.lb-close:hover, .lb-nav:hover { opacity: 1; }
.lb-close { position: absolute; top: 12px; right: 16px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Legal pages */
.legal { padding: 64px 0 96px; max-width: 760px; }
.legal h1 { font-size: 2.6rem; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }

/* Responsive */
@media (max-width: 960px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 0; font-size: 1.1rem; width: 100%; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .portrait { max-width: 320px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
}
@media (max-width: 540px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .contact-list li, .facts div { grid-template-columns: 1fr; }
}
.legal-nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.legal-nav a:hover { color: var(--ink); }

/* Status-Badge und Beschreibung (aus dem Backend) */
.work { position: relative; }
.badge {
  position: absolute; top: 10px; left: 10px; font-size: .75rem; letter-spacing: .04em;
  background: var(--bg); color: var(--ink); padding: .25em .7em; border-radius: 99px;
}
.badge-verkauft { background: var(--ink); color: var(--bg); }
.lightbox .lb-status { color: var(--bg); border: 1px solid #5a534d; border-radius: 99px; padding: .1em .8em; justify-self: center; font-size: .8rem; margin-top: 4px; }
.lightbox .lb-desc { max-width: 38em; color: #d8d0c7; font-size: .95rem; margin: 8px auto 0; white-space: pre-line; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-empty { background: linear-gradient(160deg, #d9c9b6, #b89f86); }

/* Sprachumschalter */
.header-right { display: flex; align-items: center; gap: 1.6rem; }
.lang-switch { display: flex; gap: 2px; font-size: .8rem; letter-spacing: .06em; }
.lang-switch a, .lang-switch span { padding: .3em .5em; border-radius: 4px; text-decoration: none; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--ink); background: var(--bg-alt); }
.lang-switch span { color: var(--ink); font-weight: 600; }
.legal-note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
.lang-choice { text-align: center; padding-top: 20vh; }
.lang-choice a { font-size: 1.2rem; }
@media (max-width: 800px) {
  .header-right { gap: .5rem; }
}

/* Hauptüberschrift: Name (klein) + Titel (groß) in einem h1 */
.hero h1 .eyebrow { display: block; font-family: var(--sans); font-weight: 400; line-height: 1.5; }
.hero h1 .hero-title { display: block; }
