/* Atelier Lichtform – Tarn-Website. Eigenständig, ohne Abhängigkeit zur internen Oberfläche. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --ink: #1c1b19;
  --ink-soft: #4a4844;
  --muted: #86827a;
  --line: #e4e0d8;
  --paper: #f6f3ec;
  --paper-2: #efeae1;
  --card: #ffffff;
  --accent: #8a5a44;
  --max: 1160px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; font-weight: 600; color: var(--accent); margin: 0 0 0.8rem; }
.lead { font-size: 1.22rem; line-height: 1.5; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.mt { margin-top: 1.2rem; } .mt-xl { margin-top: 2.6rem; }
.skip { position: absolute; left: -999px; top: 0; background: #111; color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(246,243,236,0.9); backdrop-filter: saturate(1.3) blur(8px); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { color: var(--accent); }
.logo-text { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; letter-spacing: 0.01em; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.98rem; padding: 4px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { color: var(--ink); border-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 1.1rem; }
.hero .lead { max-width: 30ch; }
.hero-actions { margin-top: 1.8rem; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-fig { margin: 0; }
.hero-fig img { border-radius: 4px; box-shadow: 0 18px 50px -24px rgba(28,27,25,0.5); }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 2px; text-decoration: none; font-size: 0.96rem; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: .15s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Bands */
.band { padding: 64px 0; }
.band-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; gap: 20px; }
.section-head h2 { font-size: 1.7rem; margin: 0; }
.more { text-decoration: none; color: var(--accent); font-size: 0.95rem; white-space: nowrap; }
.page-head { padding: 64px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0.2rem 0 0.6rem; }

/* Grids / work cards */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-work { margin: 0; }
.card-work > a, .card-work > .lightbox-open { display: block; border: 0; padding: 0; background: none; width: 100%; cursor: pointer; }
.card-work img { border-radius: 3px; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; background: #fff; }
.card-work a:hover img, .lightbox-open:hover img { transform: translateY(-4px); box-shadow: 0 16px 40px -22px rgba(28,27,25,0.55); }
.card-work figcaption { display: flex; flex-direction: column; margin-top: 12px; gap: 2px; }
.w-title { font-family: var(--serif); font-size: 1.08rem; }
.w-meta { color: var(--muted); font-size: 0.85rem; }
.w-note { color: var(--ink-soft); font-size: 0.9rem; margin-top: 6px; }
.gallery .w-note { min-height: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split-fig { margin: 0; }
.split-fig img { border-radius: 4px; border: 1px solid var(--line); }
.split-text h2 { font-size: 1.8rem; margin: 0 0 0.8rem; }
.split-text p { color: var(--ink-soft); }

/* Timeline / vita */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.tl-when { color: var(--muted); font-size: 0.95rem; }
.tl-title { font-family: var(--serif); font-size: 1.12rem; display: block; }
.tl-meta { color: var(--muted); font-size: 0.9rem; }
.vita { list-style: none; margin: 0; padding: 0; }
.vita li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.vita li span { color: var(--muted); }

/* Prose (Impressum / Datenschutz) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }
.prose a { color: var(--accent); }
.hinweis { background: #fff6e9; border: 1px solid #e9d4a8; border-radius: 4px; padding: 14px 18px; font-size: 0.92rem; color: #6b5324; margin-bottom: 1.6rem; }

/* Kontakt */
.kontakt-dl { display: grid; grid-template-columns: 150px 1fr; gap: 12px 20px; margin: 1.4rem 0; }
.kontakt-dl dt { color: var(--muted); font-size: 0.9rem; }
.kontakt-dl dd { margin: 0; color: var(--ink-soft); }
.kontakt-dl a { color: var(--accent); }

/* Footer */
.site-foot { background: #211f1c; color: #c9c4ba; padding: 48px 0; margin-top: 20px; }
.foot-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: start; }
.foot-brand { font-family: var(--serif); font-size: 1.15rem; color: #f3efe6; }
.foot-note { font-size: 0.88rem; color: #9b968c; margin: 8px 0 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.foot-nav a { color: #c9c4ba; text-decoration: none; font-size: 0.9rem; }
.foot-nav a:hover { color: #fff; }
.foot-end { text-align: right; }
.foot-copy { font-size: 0.85rem; color: #8f8a80; display: inline-flex; align-items: center; gap: 8px; }
/* Verstecktes Atelier-Zeichen = Auslöser für den internen Zugang (dreifacher Klick) */
.foot-mark { display: inline-flex; color: #3a372f; line-height: 0; -webkit-user-select: none; user-select: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(22,21,19,0.92); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox-fig { margin: 0; max-width: 860px; text-align: center; }
.lightbox-fig img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 3px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); }
.lightbox-fig figcaption { color: #d8d3c8; margin-top: 16px; font-size: 0.95rem; }
.lightbox-close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* Responsive */
@media (max-width: 880px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-fig { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-inner { grid-template-columns: 1fr; text-align: left; }
  .foot-nav { justify-content: flex-start; }
  .foot-end { text-align: left; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 24px 16px; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .timeline li, .vita li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .kontakt-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .kontakt-dl dt { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
