/* Lokal gehostete Schriften (DSGVO-konform, keine Übertragung an Dritte) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/cormorant-garamond-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/cormorant-garamond-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/cormorant-garamond-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/cormorant-garamond-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/cormorant-garamond-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/cormorant-garamond-600-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/cormorant-garamond-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/cormorant-garamond-700-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/inter-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/inter-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/inter-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/inter-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/caveat-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/caveat-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/caveat-700-normal.woff2') format('woff2');
}

:root {
  --bg: #faf8f4;
  --fg: #2a2520;
  --muted: #6b6358;
  --accent: #8a5a3b;
  --line: #e6e0d6;
  --max: 1100px;
  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.8rem; letter-spacing: 0.05em; }
.brand-sub { font-size: 0.78rem; color: var(--muted); margin-top: 4px; letter-spacing: 0.1em; text-transform: uppercase; }

nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
nav a { color: var(--fg); font-size: 0.95rem; }
nav a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; cursor: pointer; font-size: 1.5rem; }

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  nav ul {
    display: none;
    position: absolute;
    right: 1rem;
    top: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0;
    min-width: 160px;
  }
  nav ul li {
    width: 100%;
  }
  nav ul li a {
    display: block;
    padding: 0.6rem 1.5rem;
    width: 100%;
  }
  nav ul li a:hover {
    background: rgba(40, 30, 20, 0.04);
    text-decoration: none;
  }
  #nav-toggle:checked ~ ul { display: flex; }
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}
.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 0.3rem;
  font-style: italic;
}
.hero .tagline {
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Prose */
.prose {
  max-width: 640px;
  margin: 0 auto 2rem;
}
.prose p { margin: 0 0 1em; }
.intro { padding: 1rem 0 2rem; }
.page > h1 { margin-bottom: 1.5rem; }
.more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Galerie */
.gallery-preview h2 { text-align: center; margin: 2rem 0 1.5rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin: 1rem 0;
}
.card {
  display: block;
  color: var(--fg);
  background: white;
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(40, 30, 20, 0.08);
  text-decoration: none;
}
.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, #ece7dd, #ece7dd 12px, #e3dccf 12px, #e3dccf 24px);
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.05em;
}
.placeholder span { padding: 0.4rem 1rem; background: rgba(250, 248, 244, 0.85); border-radius: 2px; }
.placeholder.large { aspect-ratio: 3 / 2; min-height: 280px; }
.card.no-image { opacity: 0.92; }
.card-meta { padding: 0.9rem 1rem 1rem; }
.card-title { font-family: var(--serif); font-size: 1.2rem; }
.card-sub { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }
.card-price { font-size: 0.9rem; color: var(--accent); margin-top: 0.4rem; }

/* Werk-Detail */
.work-detail { max-width: 900px; margin: 0 auto; }
.work-detail .back { display: inline-block; margin-bottom: 1rem; color: var(--muted); }
.work-images { display: flex; flex-direction: column; gap: 1.5rem; margin: 1.5rem 0 2rem; }
.work-images img { border: 1px solid var(--line); }
.work-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.work-meta dt { color: var(--muted); font-size: 0.9rem; }
.work-meta dd { margin: 0; }
.inquire { margin-top: 2rem; }
.inquire a {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: 2px;
}
.inquire a:hover { background: #6e4426; text-decoration: none; }

/* Ausstellungen */
.exhibitions { list-style: none; padding: 0; }
.exhibitions li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.ex-date { color: var(--muted); font-size: 0.9rem; }
.ex-loc { color: var(--muted); margin-bottom: 0.5rem; }
.ex-flyer { margin: 1rem auto 1.5rem; max-width: 640px; display: flex; justify-content: center; }
.ex-flyer img { border: 1px solid var(--line); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06); border-radius: 4px; cursor: zoom-in; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ex-flyer img:hover { transform: scale(1.015); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09); }
@media (max-width: 600px) {
  .exhibitions li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* Lightbox-Overlay für Flyer */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox-overlay img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.lightbox-overlay.active img {
  transform: scale(1);
}

/* Kontakt */
.contact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  max-width: 500px;
}
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Skizzenbuch */
.sketch {
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.sketch:last-child {
  border-bottom: none;
}
.sketch h2 {
  font-family: var(--serif);
  margin-bottom: 0.5rem;
}
.sketch-description {
  max-width: 640px;
  margin-bottom: 1.5rem;
  margin-left: 0;
  margin-right: auto;
}

.sketch-panel-wrapper {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}

.sketch-panel {
  position: relative;
  transform-origin: top left;
  background: var(--bg);
}

.sketch-panel .panel-obj {
  position: absolute;
  transform-origin: center center;
}

.sketch-panel .panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.sketch-panel .panel-text {
  font-family: 'Caveat', cursive;
  white-space: pre-wrap;
  line-height: 1.3;
}
