:root{
  --bg:#fbf7ef;
  --paper:#ffffff;
  --ink:#1b1b1b;
  --muted:#5b5b5b;
  --gold:#b8923a;
  --line:#efe4c8;
  --shadow: 0 12px 30px rgba(0,0,0,.08);
  --radius: 18px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: "Playfair Display", Georgia, serif;
  color:var(--ink);
  background: var(--bg);
}
a{color:inherit;text-decoration:none}
a:hover{color:var(--gold)}
.container{max-width:1100px;margin:0 auto;padding:28px 18px 60px}
header{text-align:center;padding:22px 0 8px}
.brand{display:flex;flex-direction:column;align-items:center;gap:10px}
.brand img{height:64px;width:auto;display:block} /* no transitions */
h1{font-size:44px;margin:0}
.sub{font-size:18px;color:var(--muted);margin-top:6px}
.nav{margin:18px auto 8px;display:flex;gap:18px;justify-content:center;flex-wrap:wrap;font-size:18px}
.nav a{padding:6px 10px;border-bottom:2px solid transparent}
.nav a.active{border-bottom-color:var(--gold)}
.section-title{margin:34px 0 12px;font-size:28px;border-bottom:1px solid var(--line);padding-bottom:8px}
.grid{display:grid;grid-template-columns: repeat(12, 1fr);gap:18px}
.card{grid-column: span 6;background:var(--paper);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid #f2ead5}
.thumb{aspect-ratio: 16/10;width:100%;background:#f6f0e4;display:flex;align-items:center;justify-content:center}
.thumb img{width:100%;height:100%;object-fit:contain;display:block;background:var(--bg)}
.meta{padding:14px 16px 16px}
.meta .t{font-size:22px;margin:0 0 4px}
.meta .l{color:var(--muted);font-size:14px;line-height:1.5}
.meta .d{color:#6b5a2c;font-size:14px;line-height:1.55;margin-top:10px}
.page{background:var(--paper);border:1px solid #f2ead5;box-shadow:var(--shadow);border-radius:var(--radius);padding:22px}
.page h2{margin-top:0;font-size:28px}
.page p{color:var(--muted);font-size:18px;line-height:1.65}
footer{margin-top:46px;padding-top:22px;border-top:1px solid var(--line);color:var(--muted);text-align:center;font-size:14px}
@media (max-width: 860px){h1{font-size:36px}.card{grid-column: span 12}}

/* Featured (Hauptwerke) */
.card.featured{grid-column: span 12;}
.card.featured .t{font-size:26px;}
.card.featured .thumb{aspect-ratio: 16/9;}


/* Index hero logo */
.index-hero{display:flex;justify-content:center;align-items:center;padding:26px 0 8px;}
.index-hero-logo{height:605px;width:auto;max-width:85vw;display:block;}


/* Triptych (Lichtader I–III) */
.card.triptych{grid-column: span 4;}
@media (max-width: 860px){.card.triptych{grid-column: span 12;}}

/* Initial index offset so no works visible on first load */
.index-initial-offset{margin-top:240vh;}

/* Statement layout (About) */
.statement{max-width:760px;margin:0 auto;padding:6px 0 10px;text-align:center;}
.statement p{margin:18px 0;}
.statement .lead{font-size:30px;line-height:1.25;margin-top:8px;}
.statement .centered{font-size:18px;color:var(--ink);margin:10px 0;}
.statement .body{font-size:18px;line-height:1.65;color:var(--ink);}
.statement .emphasis{font-size:18px;line-height:1.65;color:var(--ink);margin-top:26px;}
.statement .closing{font-size:18px;color:var(--ink);margin-top:22px;}
.statement .signature{font-size:18px;color:var(--ink);margin-top:10px;}


/* Hide captions/meta under thumbnails on the works overview (index) */
.page-index /* Clickable work cards */
.card{cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease}
.card:hover{transform:translateY(-2px);border-color:#d7c08a}
.card:focus-visible{outline:2px solid #d7c08a;outline-offset:4px}
.thumb{position:relative}
.thumb::after{
  content:"↗";
  position:absolute;
  right:10px;
  bottom:10px;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,.85);
  border:1px solid #f2ead5;
  font-size:16px;
}
.meta .c{margin-top:10px;font-size:13px;color:#8a7440}


/* Keep cards compact on index: hide description only */
.meta .d{display:none!important}


/* Artist Statement Styling */
.artist-statement {
  margin: 80px auto;
  padding: 60px 20px;
  max-width: 900px;
}

.statement-inner {
  background: #fffdf7;
  border: 1px solid #f2ead5;
  border-radius: 18px;
  padding: 40px 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
}

.statement-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #d4af37;
  border-radius: 2px;
}

.artist-statement h2 {
  text-align: center;
  margin-bottom: 20px;
}

.artist-statement .lead {
  font-size: 20px;
  text-align: center;
  margin-bottom: 25px;
  color: #6b5a2c;
}

.artist-statement p {
  line-height: 1.7;
  margin-bottom: 18px;
}

.artist-statement .cta {
  margin-top: 25px;
  font-style: italic;
  text-align: center;
}

.artist-statement .signature {
  margin-top: 30px;
  text-align: center;
  font-weight: 600;
}


/* Series label on cards */
.meta .s{letter-spacing:.08em;text-transform:uppercase;font-size:12px;color:var(--muted);margin-bottom:6px}


/* Unbeirrt layout: 2x2 grid (I & II top, III & IV below) */
.section[data-section="Unbeirrt"] .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 700px) {
  .section[data-section="Unbeirrt"] .grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* Unbeirrt exact positions:
   Row 1: I – Tragend (left), II – Getragen (right)
   Row 2: III – Blick (under Tragend), IV – Versunken (right of Blick) */
.section[data-section="Unbeirrt"] .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 700px) {
  .section[data-section="Unbeirrt"] .grid {
    grid-template-columns: 1fr 1fr;
  }
  .section[data-section="Unbeirrt"] .grid .card:nth-child(1) { grid-column: 1; grid-row: 1; }
  .section[data-section="Unbeirrt"] .grid .card:nth-child(2) { grid-column: 2; grid-row: 1; }
  .section[data-section="Unbeirrt"] .grid .card:nth-child(3) { grid-column: 1; grid-row: 2; }
  .section[data-section="Unbeirrt"] .grid .card:nth-child(4) { grid-column: 2; grid-row: 2; }
}


/* Larger Featured Works */
.featured-card-large .thumb {
  aspect-ratio: 3/2;
}

@media (min-width: 900px) {
  .featured-card-large .thumb {
    aspect-ratio: 2/1;
  }
  .featured-card-large .meta .t {
    font-size: 28px;
  }
}


/* Einzelwerke Layout: Beisammen groß oben, zwei darunter */
.grid.grid-einzelwerke{
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
}
@media (min-width: 800px){
  .grid.grid-einzelwerke{ grid-template-columns: 1fr 1fr; }
  .grid.grid-einzelwerke .card:nth-child(1){ grid-column: 1 / -1; }
}
.grid.grid-einzelwerke .card:nth-child(1) .thumb{
  aspect-ratio: 2 / 1;
}


/* Einzelwerke layout: Beisammen full, Was bleibt + Kintsugi side by side */
.grid-einzelwerke{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 800px){
  .grid-einzelwerke{
    grid-template-columns: 1fr 1fr;
  }
  .grid-einzelwerke .card:nth-child(1){
    grid-column: 1 / -1; /* Beisammen full width */
  }
  .grid-einzelwerke .card:nth-child(2),
  .grid-einzelwerke .card:nth-child(3){
    grid-column: span 1; /* Was bleibt + Kintsugi side by side */
  }
}
/* Make Beisammen a bit taller */
.grid-einzelwerke .card:nth-child(1) .thumb{
  aspect-ratio: 2 / 1;
}


/* Lichtader cards bigger but keep 3 in a row */
.card:has(img[src*="lichtader"]) .thumb{
  aspect-ratio: 3 / 2; /* taller than default */
}
@media (min-width: 900px){
  .card:has(img[src*="lichtader"]) .thumb{
    aspect-ratio: 4 / 3;
  }
}

/* Admin-steuerbare Bild-/Kachelbreite auf der Index-Seite */
.card.custom-index-width{
  max-width: var(--index-card-width, 520px);
  width:100%;
  justify-self:center;
}
@media (max-width: 860px){
  .card.custom-index-width{max-width:100%!important;grid-column:span 12!important;}
}
