:root {
  --paper: #dfe4d1;
  --paper-soft: #cfd8bd;
  --ink: #263129;
  --muted: #64705f;
  --green: #536b50;
  --green-dark: #344b3b;
  --line: rgba(38,49,41,.20);
  --accent: #9b7651;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(223,228,209,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--max);
  margin: auto;
  min-height: 88px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { text-decoration: none; }
.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  letter-spacing: .12em;
  font-weight: 500;
}
.brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.main-nav a {
  text-decoration: none;
  font-size: .86rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--accent); }
main { min-height: 70vh; }
.hero {
  max-width: var(--max);
  margin: auto;
  padding: clamp(52px, 8vw, 110px) 28px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); margin: 0 0 24px; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); margin: 0 0 22px; }
h3 { font-size: 1.45rem; margin: 0 0 10px; }
.lead { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.18rem, 2.1vw, 1.55rem); max-width: 40rem; }
.hero-image { position: relative; }
.hero-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-image::after { content:""; position:absolute; inset:18px -18px -18px 18px; border:1px solid var(--accent); z-index:-1; }
.section { max-width: var(--max); margin: auto; padding: 70px 28px; }
.section + .section { border-top: 1px solid var(--line); }
.intro-grid, .two-col { display:grid; grid-template-columns: minmax(0,1fr) minmax(260px,.72fr); gap: clamp(38px,7vw,88px); align-items:start; }
.prose { max-width: 760px; font-size: 1.04rem; }
.prose p { margin: 0 0 1.35em; }
.prose a, .text-link { color: var(--green-dark); text-underline-offset: 4px; }
.cards { display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: rgba(248,246,232,.32); border:1px solid var(--line); text-decoration:none; min-width:0; transition: transform .18s ease, background .18s ease; }
.card:hover { transform: translateY(-3px); background: rgba(248,246,232,.54); }
.card img { width:100%; aspect-ratio: 4/3; object-fit:cover; }
.card-body { padding: 22px; }
.card-kicker { color:var(--muted); font-size:.75rem; text-transform:uppercase; letter-spacing:.12em; }
.card p { margin-bottom:0; color:#485548; }
.archive-strip { background: var(--green-dark); color: #f1efe3; }
.archive-strip .section { padding-top:55px; padding-bottom:55px; }
.archive-strip a { color:inherit; }
.book-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.book { text-decoration:none; }
.book img { width:100%; aspect-ratio: 2/3; object-fit:cover; box-shadow: 0 14px 30px rgba(23,62,53,.14); }
.book h3 { font-size:1.12rem; margin-top:14px; }
.feature { display:grid; grid-template-columns: minmax(230px,.6fr) minmax(0,1.4fr); gap: clamp(35px,7vw,80px); align-items:start; }
.feature-cover { width:100%; max-width:360px; box-shadow: 0 14px 34px rgba(23,62,53,.18); }
.meta { color:var(--muted); text-transform:uppercase; letter-spacing:.1em; font-size:.76rem; }
.actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.button { display:inline-block; padding:10px 16px; border:1px solid var(--green-dark); text-decoration:none; font-size:.88rem; }
.button.primary { background:var(--green-dark); color:white; }
.gallery-hero img { width:100%; max-height:720px; object-fit:contain; background:#d2d8c6; }
.caption { margin-top:16px; color:var(--muted); }
.site-footer { border-top:1px solid var(--line); }
.footer-inner { max-width:var(--max); margin:auto; padding:32px 28px 44px; display:flex; justify-content:space-between; gap:20px; color:var(--muted); font-size:.85rem; }
.small-links { display:flex; gap:18px; flex-wrap:wrap; }
@media (max-width: 850px) {
  .header-inner { align-items:flex-start; flex-direction:column; gap:8px; }
  .hero, .intro-grid, .two-col, .feature { grid-template-columns: 1fr; }
  .hero { padding-top:46px; }
  .hero-image { max-width:560px; }
  .cards { grid-template-columns:1fr; }
  .book-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 520px) {
  .header-inner, .hero, .section, .footer-inner { padding-left:18px; padding-right:18px; }
  .main-nav { gap:4px 15px; }
  .main-nav a { font-size:.76rem; }
  .book-grid { grid-template-columns:1fr 1fr; gap:16px; }
  .footer-inner { flex-direction:column; }
}


/* ARCHITEXXT MASTER 03 architecture detail pages */
.project-head { padding-bottom: 38px; }
.project-head h1 { font-size: clamp(2.35rem, 5.5vw, 4.8rem); max-width: 980px; }
.project-gallery { padding-top: 42px; }
.project-figure { margin: 0 auto 42px; max-width: 1050px; }
.project-figure img { width: 100%; max-height: 820px; object-fit: contain; background: rgba(255,255,255,.13); }
.project-placeholder { min-height: 260px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); color:var(--muted); }
.project-nav { justify-content: space-between; border-top:1px solid var(--line); padding-top:26px; }
@media (max-width:520px) { .project-nav { justify-content:flex-start; } }

.project-figure figcaption { margin-top:10px; font-size:.92rem; opacity:.72; }

/* MASTER 05 – Ideen & Studien: kompakte Bildbuehne und Collage */
body.ideas-study .project-head {
  padding-top: 28px;
  padding-bottom: 18px;
}
body.ideas-study .project-head .eyebrow { margin-bottom: 6px; }
body.ideas-study .project-head h1 {
  font-size: clamp(1.9rem, 3.4vw, 3.25rem);
  line-height: 1.05;
  margin-bottom: 8px;
  max-width: 1000px;
}
body.ideas-study .project-head .lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  margin: 0;
}
body.ideas-study .project-gallery {
  position: relative;
  padding-top: 18px;
  padding-bottom: 96px;
}
body.ideas-study .project-figure {
  margin: 0 auto 26px;
  max-width: 1120px;
}
body.ideas-study .project-figure img {
  width: 100%;
  max-height: calc(100vh - 275px);
  min-height: 0;
  object-fit: contain;
}
body.ideas-study .project-nav {
  position: sticky;
  bottom: 14px;
  z-index: 12;
  margin: 0 auto;
  padding: 10px 12px;
  max-width: 1120px;
  border: 1px solid var(--line);
  background: rgba(223,228,209,.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(38,49,41,.08);
}
body.ideas-study .project-nav .button { background: rgba(223,228,209,.92); }
body.ideas-study .project-nav .button.primary { background: var(--green-dark); }

body.ideas-study.collage-page .project-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2.2vw, 30px);
  align-items: center;
}
body.ideas-study.collage-page .project-figure {
  margin: 0;
  max-width: none;
  grid-column: span 6;
}
body.ideas-study.collage-page .project-figure:nth-of-type(2) { transform: translateY(22px); }
body.ideas-study.collage-page .project-figure:nth-of-type(3) {
  grid-column: 4 / span 6;
  transform: translateY(-8px);
}
body.ideas-study.collage-page .project-figure img {
  max-height: calc(100vh - 330px);
  background: transparent;
}
body.ideas-study.collage-page .project-figure figcaption {
  margin: 7px 4px 0;
  color: var(--muted);
}
body.ideas-study.collage-page .project-nav { grid-column: 1 / -1; width: 100%; }
@media (max-width:850px) {
  body.ideas-study .project-figure img { max-height: calc(100vh - 330px); }
  body.ideas-study.collage-page .project-figure,
  body.ideas-study.collage-page .project-figure:nth-of-type(3) { grid-column: 1 / -1; transform:none; }
  body.ideas-study.collage-page .project-figure:nth-of-type(2) { transform:none; }
}
@media (max-width:520px) {
  body.ideas-study .project-head { padding-top:20px; padding-bottom:12px; }
  body.ideas-study .project-gallery { padding-top:12px; }
  body.ideas-study .project-figure img { max-height: 68vh; }
  body.ideas-study .project-nav { bottom:8px; }
}

/* MASTER 06 – kompaktere Architektur-Projektseiten nach dem Modell Ideen & Studien */
body.architecture-detail .project-head { padding-top: 28px; padding-bottom: 18px; }
body.architecture-detail .project-head .eyebrow { margin-bottom: 6px; }
body.architecture-detail .project-head h1 { font-size: clamp(1.9rem, 3.4vw, 3.25rem); line-height:1.05; margin-bottom:8px; max-width:1050px; }
body.architecture-detail .project-gallery { position:relative; padding-top:18px; padding-bottom:96px; }
body.architecture-detail .project-figure { margin:0 auto 26px; max-width:1120px; }
body.architecture-detail .project-figure img { width:100%; max-height:calc(100vh - 275px); min-height:0; object-fit:contain; }
body.architecture-detail .project-nav { position:sticky; bottom:14px; z-index:12; margin:0 auto; padding:10px 12px; max-width:1120px; border:1px solid var(--line); background:rgba(223,228,209,.94); backdrop-filter:blur(8px); box-shadow:0 8px 24px rgba(38,49,41,.08); }
body.architecture-detail .project-nav .button { background:rgba(223,228,209,.92); }
body.architecture-detail .project-nav .button.primary { background:var(--green-dark); }
body.architecture-overview .section:first-child { padding-top:42px; padding-bottom:38px; }
body.architecture-overview .section:first-child h1 { font-size:clamp(2.4rem,5vw,4.5rem); margin-bottom:14px; }
@media (max-width:520px){ body.architecture-detail .project-head{padding-top:20px;padding-bottom:12px} body.architecture-detail .project-gallery{padding-top:12px} body.architecture-detail .project-figure img{max-height:68vh} body.architecture-detail .project-nav{bottom:8px} }

/* MASTER 07 – additional collage handling */
body.ideas-study.collage-four .project-gallery {
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 28px 34px;
  align-items:start;
}
body.ideas-study.collage-four .project-figure:nth-of-type(1) { grid-column: 1 / span 5; }
body.ideas-study.collage-four .project-figure:nth-of-type(2) { grid-column: 7 / span 4; transform:translateY(42px); }
body.ideas-study.collage-four .project-figure:nth-of-type(3) { grid-column: 2 / span 4; transform:translateY(-8px); }
body.ideas-study.collage-four .project-figure:nth-of-type(4) { grid-column: 7 / span 5; transform:translateY(18px); }
body.ideas-study.collage-four .project-figure img { max-height:52vh; width:100%; object-fit:contain; }

body.munich-model-page .munich-model-gallery {
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:34px 28px;
  align-items:start;
}
body.munich-model-page .munich-model-gallery .project-figure { margin:0; max-width:none; }
body.munich-model-page .munich-model-gallery .project-figure:nth-of-type(3n+1) { grid-column:1 / span 7; }
body.munich-model-page .munich-model-gallery .project-figure:nth-of-type(3n+2) { grid-column:8 / span 5; transform:translateY(34px); }
body.munich-model-page .munich-model-gallery .project-figure:nth-of-type(3n) { grid-column:3 / span 8; }
body.munich-model-page .munich-model-gallery .project-figure img {
  width:100%; height:auto; max-height:none; object-fit:contain;
}
body.munich-model-page .munich-model-gallery .project-nav { grid-column:1 / -1; width:100%; }

@media (max-width:760px) {
  body.ideas-study.collage-four .project-figure:nth-of-type(n),
  body.munich-model-page .munich-model-gallery .project-figure:nth-of-type(n) {
    grid-column:1 / -1; transform:none;
  }
}

/* MASTER 08 – Ideen & Studien: freie Collagen */
body.collage-three .project-gallery,
body.collage-free-a .project-gallery,
body.collage-free-b .project-gallery,
body.collage-two-free .project-gallery {
  display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:30px 34px; align-items:start;
}
body.collage-three .project-figure:nth-of-type(1) {grid-column:1/span 5;}
body.collage-three .project-figure:nth-of-type(2) {grid-column:7/span 6; transform:translateY(36px);}
body.collage-three .project-figure:nth-of-type(3) {grid-column:3/span 7; transform:translateY(5px);}
body.collage-free-a .project-figure:nth-of-type(1) {grid-column:1/span 5;}
body.collage-free-a .project-figure:nth-of-type(2) {grid-column:7/span 4; transform:translateY(62px);}
body.collage-free-a .project-figure:nth-of-type(3) {grid-column:4/span 6; transform:translateY(12px);}
body.collage-free-b .project-figure:nth-of-type(1) {grid-column:2/span 4; transform:translateY(34px);}
body.collage-free-b .project-figure:nth-of-type(2) {grid-column:7/span 5;}
body.collage-free-b .project-figure:nth-of-type(3) {grid-column:4/span 5; transform:translateY(28px);}
body.collage-two-free .project-figure:nth-of-type(1) {grid-column:1/span 6;}
body.collage-two-free .project-figure:nth-of-type(2) {grid-column:7/span 5; transform:translateY(68px);}
body.collage-three .project-figure img,
body.collage-free-a .project-figure img,
body.collage-free-b .project-figure img,
body.collage-two-free .project-figure img {width:100%; height:auto; max-height:58vh; object-fit:contain;}
body.collage-three .project-nav,
body.collage-free-a .project-nav,
body.collage-free-b .project-nav,
body.collage-two-free .project-nav {grid-column:1/-1; width:100%;}
.project-figure figcaption {margin-top:9px; font-size:.88rem; letter-spacing:.02em; opacity:.72;}
@media(max-width:760px){
 body.collage-three .project-figure:nth-of-type(n), body.collage-free-a .project-figure:nth-of-type(n),
 body.collage-free-b .project-figure:nth-of-type(n), body.collage-two-free .project-figure:nth-of-type(n){grid-column:1/-1;transform:none;}
}

/* MASTER 09 – Bildgroessen und Bildunterschriften */
body.ideas-study .project-figure figcaption,
body.architecture-detail .project-figure figcaption {
  margin: 9px 4px 0;
  padding: 0;
  font-size: .88rem;
  line-height: 1.35;
  letter-spacing: .02em;
  color: var(--muted);
  opacity: 1;
  text-align: left;
  font-style: normal;
}
body.house-hang-two .project-gallery {
  grid-template-columns: repeat(12, minmax(0,1fr));
  align-items: start;
}
body.house-hang-two .project-figure:nth-of-type(1) { grid-column: 1 / span 7; }
body.house-hang-two .project-figure.small-study {
  grid-column: 9 / span 3;
  align-self: center;
  transform: none;
}
body.house-hang-two .project-figure.small-study img { max-height: 43vh; }

body.large-single-study .project-figure { max-width: 1280px; }
body.large-single-study .project-figure img {
  max-height: calc(100vh - 235px);
  width: 100%;
}

body.ideas-study.collage-page .project-figure {
  display: flex;
  flex-direction: column;
}
body.ideas-study.collage-page .project-figure figcaption { width: 100%; }

@media (max-width: 850px) {
  body.house-hang-two .project-figure:nth-of-type(1),
  body.house-hang-two .project-figure.small-study { grid-column: 1 / -1; }
  body.house-hang-two .project-figure.small-study {
    max-width: 72%;
    justify-self: center;
  }
}


/* MASTER 10 – project-wide hierarchy, collage pages, navigation */

/* Hierarchy: overview headings are clearly smaller than before;
   detail-page headings retain the compact scale already approved. */
h1 {
  font-size: clamp(2.45rem, 4.15vw, 4.15rem);
  line-height: 1.06;
  margin-bottom: 18px;
}
.section {
  padding-top: 54px;
  padding-bottom: 54px;
}
.section:first-child {
  padding-top: 52px;
  padding-bottom: 46px;
}
.project-head {
  padding-top: 28px !important;
  padding-bottom: 18px !important;
}
.project-head h1,
body.architecture-detail .project-head h1,
body.ideas-study .project-head h1 {
  font-size: clamp(1.9rem, 3.4vw, 3.25rem) !important;
  line-height: 1.05;
  margin-bottom: 8px;
  max-width: 1050px;
}
body.architecture-overview .section:first-child h1 {
  font-size: clamp(2.45rem, 4.15vw, 4.15rem);
}

/* Requested freer presentation for selected lamp/furniture/object pages. */
body.object-collage .project-gallery {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: 32px 34px;
  align-items: start;
  padding-top: 16px;
}
body.object-collage .project-figure {
  margin: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
}
body.object-collage .project-figure img {
  width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: contain;
}
body.object-collage-three .project-figure:nth-of-type(1) { grid-column: 1 / span 5; }
body.object-collage-three .project-figure:nth-of-type(2) { grid-column: 7 / span 4; transform: translateY(38px); }
body.object-collage-three .project-figure:nth-of-type(3) { grid-column: 3 / span 6; transform: translateY(-4px); }

body.object-collage-two .project-figure:nth-of-type(1) { grid-column: 1 / span 6; }
body.object-collage-two .project-figure:nth-of-type(2) { grid-column: 8 / span 4; transform: translateY(44px); }

/* Captions keep the same baseline, spacing and type treatment across collage pages. */
.project-figure figcaption {
  margin: 9px 4px 0 !important;
  padding: 0 !important;
  font-size: .88rem !important;
  line-height: 1.35 !important;
  letter-spacing: .02em;
  color: var(--muted);
  opacity: 1 !important;
  text-align: left;
  font-style: normal;
}

/* Desktop: navigation is always available at the left edge.
   This restores the useful behaviour of the old site without coupling it to image height. */
@media (min-width: 1050px) {
  .project-gallery .project-nav {
    position: fixed !important;
    left: 14px;
    top: 50%;
    bottom: auto !important;
    transform: translateY(-50%);
    z-index: 40;
    width: auto;
    max-width: 170px;
    margin: 0;
    padding: 9px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    border: 1px solid var(--line);
    background: rgba(223,228,209,.94);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(38,49,41,.08);
  }
  .project-gallery .project-nav .button {
    margin: 0;
    white-space: nowrap;
    text-align: center;
  }
}
/* Smaller screens: navigation stays reachable at the bottom and does not cover the artwork. */
@media (max-width: 1049px) {
  .project-gallery .project-nav {
    position: sticky !important;
    bottom: 8px !important;
    top: auto !important;
    transform: none !important;
    z-index: 30;
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Competition overview: center the single entry instead of leaving it at the grid edge. */
body.competition-index .cards {
  display: flex;
  justify-content: center;
}
body.competition-index .card {
  width: min(620px,100%);
  margin-inline: auto;
}
body.competition-index .card > img {
  display: block;
  margin-inline: auto;
  object-position: center;
}

@media (max-width: 760px) {
  h1 { font-size: clamp(2.15rem, 10vw, 3.2rem); }
  .section { padding-top: 42px; padding-bottom: 42px; }
  body.object-collage .project-figure:nth-of-type(n) {
    grid-column: 1 / -1;
    transform: none;
  }
}


/* MASTER 11 – Navigation fix and Ideen 9 secondary image */

/* Override older, more specific width rules on collage pages.
   The desktop navigation must remain a compact vertical control at the left edge. */
@media (min-width: 1050px) {
  body .project-gallery .project-nav,
  body.ideas-study .project-gallery .project-nav,
  body.ideas-study.collage-page .project-gallery .project-nav,
  body.architecture-detail .project-gallery .project-nav,
  body.object-collage .project-gallery .project-nav,
  body.munich-model-page .project-gallery .project-nav {
    position: fixed !important;
    left: 14px !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 154px !important;
    min-width: 0 !important;
    max-width: 154px !important;
    margin: 0 !important;
    padding: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    box-sizing: border-box;
    z-index: 50;
  }

  body .project-gallery .project-nav .button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 9px 7px !important;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: center;
    font-size: .82rem;
  }
}

/* Ideen 9: the second sheet is intentionally subordinate to the first one. */
body.ideen9-secondary-small .project-figure:nth-of-type(2) {
  max-width: 720px;
}
body.ideen9-secondary-small .project-figure:nth-of-type(2) img {
  width: 100%;
  max-height: 46vh;
  object-fit: contain;
}

@media (max-width: 1049px) {
  body.ideen9-secondary-small .project-figure:nth-of-type(2) {
    max-width: min(88%, 720px);
  }
}


/* MASTER 12 – Literaturwerkseiten */
body.literature-overview .literature-overview-head { padding-top:42px; padding-bottom:38px; }
body.literature-overview .literature-overview-head h1 {
  font-size:clamp(2.4rem,5vw,4.5rem);
  margin-bottom:14px;
}
.literature-reader { width:100%; max-width:340px; justify-self:center; object-fit:cover; }
.literature-books { grid-template-columns:repeat(3,1fr); gap:34px 28px; }
.literature-books .book { display:block; min-width:0; }
.literature-books .book img { aspect-ratio:2/3; object-fit:cover; }
.literature-books .book h3 { margin:13px 0 3px; font-size:1.18rem; }
.book-subtitle { margin:0; color:var(--muted); font-size:.85rem; line-height:1.35; }

.literature-book-head { padding-top:36px; padding-bottom:50px; }
.literature-feature {
  display:grid;
  grid-template-columns:minmax(220px,.62fr) minmax(0,1.38fr);
  gap:clamp(38px,7vw,90px);
  align-items:center;
}
.literature-cover-wrap { display:flex; justify-content:center; }
.literature-cover { width:100%; max-width:390px; max-height:70vh; object-fit:contain; box-shadow:0 14px 34px rgba(23,62,53,.18); }
.literature-book-copy h1,
body.literature-detail .literature-project-head h1 {
  font-size:clamp(1.9rem,3.4vw,3.25rem);
  line-height:1.05;
  margin:0 0 10px;
  max-width:950px;
}
.literature-book-copy .lead,
body.literature-detail .literature-project-head .lead { font-size:clamp(1rem,1.5vw,1.18rem); margin:0 0 18px; }
.literature-intro { max-width:650px; color:#485548; }
body.literature-detail .literature-project-head { padding-top:28px; padding-bottom:18px; }
body.literature-detail .literature-project-head .eyebrow { margin-bottom:6px; }
.literature-step { padding-top:34px; }
.literature-sequence { margin-top:48px; padding-top:22px; border-top:1px solid var(--line); justify-content:space-between; }
.button.disabled { opacity:.55; cursor:default; pointer-events:none; }

@media (max-width:850px) {
  .literature-books { grid-template-columns:repeat(2,1fr); }
  .literature-feature { grid-template-columns:1fr; }
  .literature-cover { max-width:320px; }
}
@media (max-width:520px) {
  .literature-books { grid-template-columns:1fr 1fr; gap:20px 14px; }
  .literature-books .book h3 { font-size:1rem; }
  .literature-book-head { padding-top:24px; }
  .literature-sequence { justify-content:flex-start; }
}


/* MASTER 13 – Literatur-Leseproben und Wettbewerbslinks */
.competition-title-list {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.competition-title-list a {
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid transparent;
  width:fit-content;
}
.competition-title-list a:hover,
.competition-title-list a:focus-visible {
  border-bottom-color:currentColor;
}
.competition-card { cursor:default; }

.literature-reading-section {
  padding-top:18px;
}
.reading-prose {
  max-width:780px;
  margin:0 auto;
  font-family:Georgia, "Times New Roman", serif;
  font-size:clamp(1.03rem,1.25vw,1.16rem);
  line-height:1.72;
}
.reading-prose p {
  margin:0 0 1.15em;
}
.reading-prose h2 {
  margin:2.3em 0 .85em;
  font-size:clamp(1.45rem,2.2vw,2rem);
  font-weight:500;
}
.reading-prose h2:first-child {
  margin-top:0;
}
.reading-prose .sample-subhead {
  margin:1.8em 0 .55em;
  font-size:1.08em;
  font-weight:500;
  font-style:italic;
}
body.literature-reading .literature-sequence {
  max-width:780px;
  margin:42px auto 0;
}


/* MASTER 14 – Literatur-Feintuning und Inhaltsseiten */

/* Literaturübersicht: wieder kleinere Coverobjekte mit mehr Luft dazwischen. */
.literature-books {
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 36px 30px;
  align-items:start;
}
.literature-books .book {
  text-align:left;
}
.literature-books .book img {
  width:100%;
  max-width:190px;
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
  display:block;
  margin:0 auto;
}
.literature-books .book h3,
.literature-books .book .book-subtitle {
  max-width:190px;
  margin-left:auto;
  margin-right:auto;
}

/* Klappentexte: gleiche Schriftgröße und Zeilenhöhe auf allen Werkseiten. */
.literature-book-copy .literature-intro {
  max-width:650px;
  font-size:1rem;
  line-height:1.58;
  color:#485548;
}

/* Undine: knappe, mittige Abschnittstrenner. */
.reading-prose .section-break {
  text-align:center;
  margin:.55em 0 .62em;
  line-height:1;
  letter-spacing:.28em;
  font-size:1.05rem;
}

/* Gedichte: Zeilen und Strophen folgen der Vorlage, nicht normalen Prosa-Absätzen. */
.poetry-prose {
  max-width:720px;
}
.poetry-section-title {
  text-align:center;
  margin:0 0 2.5rem;
  font-size:clamp(1.45rem,2.1vw,1.9rem);
  font-weight:500;
}
.poem {
  margin:0 0 3.4rem;
}
.poem-title {
  margin:0 0 1.25rem;
  font-size:1.06rem;
  font-weight:400;
  font-style:italic;
}
.poem-lines {
  font-family:Georgia, "Times New Roman", serif;
  font-size:clamp(1.03rem,1.25vw,1.16rem);
  line-height:1.46;
}
.poem-line {
  min-height:1.46em;
}
.poetry-end {
  margin-top:3.5rem;
  font-style:italic;
  color:var(--muted);
}

/* Inhaltsangaben */
.summary-prose {
  max-width:820px;
  margin:0 auto;
  font-family:Georgia, "Times New Roman", serif;
  font-size:clamp(1.02rem,1.2vw,1.13rem);
  line-height:1.68;
}
.summary-prose p {
  margin:0 0 1.15em;
}
.summary-prose h2 {
  margin:2.25em 0 .7em;
  font-size:clamp(1.35rem,2vw,1.8rem);
  font-weight:500;
}
.summary-prose h2:first-child {
  margin-top:0;
}
.summary-actions {
  max-width:820px;
  margin:42px auto 0;
}

@media (max-width:1100px) {
  .literature-books { grid-template-columns:repeat(4,1fr); }
}
@media (max-width:820px) {
  .literature-books { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:580px) {
  .literature-books { grid-template-columns:repeat(2,1fr); gap:28px 18px; }
  .literature-books .book img,
  .literature-books .book h3,
  .literature-books .book .book-subtitle { max-width:155px; }
}


/* MASTER 15 – Makovecz, Helenadreieck, Gemischtes */
.text-grid {
  max-width:980px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}
.text-card {
  display:block;
  padding:26px 28px;
  border:1px solid var(--line);
  color:inherit;
  text-decoration:none;
  background:rgba(255,255,255,.12);
}
.text-card span {
  display:block;
  margin-bottom:9px;
  font-size:.78rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}
.text-card h3 {
  margin:0;
  font-size:1.55rem;
  font-weight:500;
}
.text-card:hover { background:rgba(255,255,255,.22); }

.inline-legend-image {
  max-width:560px;
  margin:30px auto;
}
.inline-legend-image img {
  display:block;
  width:100%;
  height:auto;
  opacity:.88;
}

.makovecz-intro { margin-bottom:34px; }
.makovecz-viewer { max-width:980px; margin:0 auto; }
.makovecz-toolbar {
  position:sticky;
  top:10px;
  z-index:20;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  margin:0 auto 18px;
  padding:8px 10px;
  width:max-content;
  max-width:100%;
  border:1px solid var(--line);
  background:rgba(223,228,209,.95);
}
.makovecz-toolbar button {
  border:0;
  background:none;
  font:inherit;
  cursor:pointer;
  color:inherit;
}
.makovecz-page { margin:0; text-align:center; }
.makovecz-page img {
  display:block;
  max-width:100%;
  max-height:calc(100vh - 190px);
  width:auto;
  height:auto;
  margin:0 auto;
  object-fit:contain;
}
.makovecz-page figcaption {
  margin-top:8px;
  font-size:.85rem;
  color:var(--muted);
}

@media (max-width:700px) {
  .text-grid { grid-template-columns:1fr; }
}


/* MASTER 16 – Gemischtes/Helena/Makovecz vereinheitlicht */
body.misc-reading .reading-prose {
  max-width: 780px;
  margin: 0 auto;
}
body.misc-reading .reading-prose #content,
body.misc-reading .reading-prose #main_section,
body.misc-reading .reading-prose div[style*="background-color"] {
  background: transparent !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.misc-reading .reading-prose #navigation,
body.misc-reading .reading-prose #top_section {
  display: none !important;
}
body.misc-reading .text-meta {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 1.8rem;
}
body.misc-reading .reading-prose h2 {
  margin-top: 2.15rem;
}

body.helena-reading .literature-reading-section {
  padding-top: 16px;
}
body.helena-reading .reading-prose.helena-prose {
  max-width: 980px;
  margin: 0 auto;
}
body.helena-reading .helena-chapter-nav {
  max-width: 980px;
  margin: 0 auto 30px;
  font-size: 1rem;
  line-height: 1.6;
}
body.helena-reading .helena-chapter-nav a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.helena-reading .helena-chapter-nav [aria-current="page"] {
  font-weight: 600;
}
body.helena-reading .helena-chapter-nav .sep {
  color: var(--muted);
  padding: 0 .25rem;
}
body.helena-reading .helena-prose #content,
body.helena-reading .helena-prose div[style*="background-color"] {
  background: transparent !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.helena-reading .helena-prose h2 {
  margin-top: 0;
}
@media (max-width: 800px) {
  body.helena-reading .reading-prose.helena-prose,
  body.helena-reading .helena-chapter-nav {
    max-width: 100%;
  }
  body.helena-reading .helena-chapter-nav .sep {
    padding: 0 .1rem;
  }
}


/* MASTER 17 – Makovecz-Abbildungen, Formkeime, Datenschutz */
.makovecz-prose {
  max-width: 860px;
}
.makovecz-inline-figure {
  margin: 2.4rem auto 2.7rem;
  max-width: 760px;
}
.makovecz-inline-figure img {
  display:block;
  width:auto;
  max-width:100%;
  max-height:82vh;
  margin:0 auto;
  object-fit:contain;
}

.formkeime-collage {
  max-width: 1120px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px 24px;
  align-items:start;
}
.formkeime-collage .formkeim {
  margin:0;
}
.formkeime-collage .formkeim img {
  width:100%;
  height:auto;
  object-fit:contain;
  display:block;
}
.formkeime-collage .fk1 { grid-column:1 / span 6; transform:translateY(18px); }
.formkeime-collage .fk2 { grid-column:7 / span 5; }
.formkeime-collage .fk3 { grid-column:2 / span 4; }
.formkeime-collage .fk4 { grid-column:7 / span 6; transform:translateY(-14px); }
.formkeime-collage .project-nav { grid-column:1 / -1; }

.privacy-head { padding-bottom:18px; }
.privacy-intro {
  max-width: 900px;
  padding-top: 10px;
  padding-bottom: 28px;
}
.privacy-intro h2 {
  font-size:clamp(1.5rem,2.2vw,2rem);
  font-weight:500;
  margin:0 0 1rem;
}
.privacy-intro p {
  font-family:Georgia, "Times New Roman", serif;
  font-size:clamp(1.05rem,1.35vw,1.18rem);
  line-height:1.65;
  max-width:780px;
}
.privacy-legal {
  max-width:900px;
  border-top:1px solid var(--line);
  padding-top:28px;
}
.privacy-legal h2 {
  font-size:1.35rem;
  margin:0 0 1.3rem;
  font-weight:500;
}
.privacy-legal h3 {
  font-size:.96rem;
  margin:1.7rem 0 .45rem;
  font-weight:600;
}
.privacy-legal p {
  max-width:780px;
  font-size:.82rem;
  line-height:1.55;
  color:var(--muted);
}
.privacy-legal a { color:inherit; }
.privacy-note {
  margin-top:2rem;
  font-style:italic;
}

@media (max-width:760px) {
  .formkeime-collage {
    display:block;
  }
  .formkeime-collage .formkeim {
    margin:0 0 28px;
    transform:none;
  }
}
