/* Latin Modern Roman (GUST e-foundry, GFL-lizenziert) via jsDelivr.
   Für den Offline-/Eigenbetrieb können die Font-Dateien auch lokal unter
   /public/fonts abgelegt und hier verlinkt werden. */
@import url('https://cdn.jsdelivr.net/gh/sugina-dev/latin-modern-web@1.0.1/style/latinmodern-roman.css');

:root {
  /* Die Seite ist bewusst ausschließlich hell - kein Dark Mode,
     auch wenn das Betriebssystem auf dunkel steht. */
  color-scheme: light only;
  --bg: #f7f8f5;
  --ink: #0a0a09;
  --muted: #0a0a09;
  --rule: rgba(10, 10, 9, 0.42);
  --line: rgba(10, 10, 9, 0.42);
  --serif: 'Latin Modern Roman', 'Computer Modern Serif', 'CMU Serif',
           'STIX Two Text', 'Times New Roman', serif;
  --sans: var(--serif);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  /* Latin Modern läuft optisch klein, daher etwas größere Grundgröße */
  font-size: clamp(15px, 0.45vw + 13px, 20px);
  line-height: 1.28;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2.2rem var(--gap) 1.4rem;
  border-bottom: 1px solid var(--line);
}

.site-title {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.site-nav a {
  margin-left: 1.75rem;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--ink); }

/* Burger und Spacer nur in der mobilen Ansicht sichtbar */
.nav-burger,
.header-spacer { display: none; }

/* ---------- Mobile Header: Titel mittig, Burger rechts ---------- */
@media (max-width: 700px) {
  .site-header {
    display: grid;
    grid-template-columns: 2.5rem 1fr 2.5rem;
    align-items: center;
    padding: 1.5rem 1.25rem 1.2rem;
  }

  .header-spacer { display: block; }

  .site-title {
    grid-column: 2;
    text-align: center;
    font-size: 1rem;
  }

  .nav-burger {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    height: 2.5rem;
    cursor: pointer;
    justify-self: end;
  }
  .nav-burger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--ink);
    transition: transform .25s ease, opacity .25s ease;
  }

  /* Menü ausgeklappt: Striche werden zum X */
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    grid-column: 1 / -1;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 16rem; }

  .site-nav a {
    display: block;
    margin: 0;
    padding: 0.75rem 0;
    font-size: 1rem;
  }
  .site-nav a:first-child { margin-top: 1rem; }
}

/* ---------- Work grid (index) ---------- */
.grid-page { padding: var(--gap); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
}

.work-tile { display: block; }

.work-tile__image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ebece7;
}
.work-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.work-tile:hover .work-tile__image img { transform: scale(1.045); }

.work-tile__caption {
  display: flex;
  justify-content: space-between;
  margin-top: 0.85rem;
  font-family: var(--serif);
}
.work-tile__title { font-size: 1rem; }
.work-tile__year { color: var(--muted); font-size: 1rem; }

.empty-state { color: var(--muted); font-family: var(--serif); padding: 4rem 0; }

/* ---------- Project detail ---------- */
.project-page { padding: var(--gap); max-width: 1100px; margin: 0 auto; }

.project-header { margin-bottom: var(--gap); max-width: 46rem; }
.project-header h1 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 0.6rem;
}
.project-meta {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}
.project-meta span { margin-right: 1.2rem; }
.project-description {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 1.2rem;
}

.project-images {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.project-image img { width: 100%; height: auto; }

.project-pager {
  display: flex;
  justify-content: flex-start;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.project-pager a {
  font-size: 1rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  transition: color .2s ease;
}
.project-pager a:hover { color: var(--ink); }
.project-pager a:hover { color: var(--ink); }

/* ---------- Text pages (About / Links / 404) ---------- */
.text-page {
  padding: var(--gap);
  max-width: 40rem;
  margin: 0 auto;
}
.text-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
}
.about-image {
  margin-bottom: 2rem;
  max-width: 20rem;
}
.about-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.about-text p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-line;
}

/* ---------- Exhibitions ---------- */
.exhibitions {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.exhibitions h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  margin: 0 0 1.2rem;
}
.exhibitions-list { list-style: none; padding: 0; margin: 0; }

.links-list { list-style: none; padding: 0; margin-top: 2rem; }
.links-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1rem;
}
.links-list a:hover { text-decoration: underline; }
.links-note { color: var(--muted); font-family: var(--sans); font-size: 1rem; text-transform: none; letter-spacing: 0; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 2.5rem var(--gap);
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}
.site-footer a { transition: color .2s ease; }
.site-footer a:hover { color: var(--ink); }

/* ---------------------------------------------------------------
   Vereinheitlichte Typografie
   Alle Texte in derselben Größe und in Schwarz. Überschriften
   unterscheiden sich nur durch Abstand, nicht durch Größe.
   --------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   Textlayout nach dem Vorbild von architecturalservices.de:
   linksbündig, eine Größe, schwarz, enge Zeilen, keine Versalien.
   --------------------------------------------------------------- */
body { line-height: 1.45; }

.site-header {
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: none;
}

.site-nav a { letter-spacing: 0; text-transform: none; }
.links-note {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.links-list li { margin-bottom: 0.6rem; }

.exhibitions { border-top: none; margin-top: 2.5rem; padding-top: 0; }

.project-meta span { display: block; margin: 0; }
.project-header { margin-bottom: 2rem; }

.site-footer {
  border-top: none;
  padding-top: 3rem;
  letter-spacing: 0;
}

/* ===============================================================
   Typografie exakt nach architecturalservices.de
   Drei Stufen: Fließtext 1rem, Sekundärangaben 0.86rem,
   Label/Überschriften 0.78rem in Versalien. Werktitel kursiv.
   Haarlinien statt flächiger Trennungen.
   =============================================================== */

body { line-height: 1.28; }

a {
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.16em;
}
a:hover, a:focus-visible { text-decoration-thickness: 0.1em; }

/* Titelstufe */
.site-title,
.text-page h1,
.project-header h1,
.work-tile__title {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0;
}

/* Werktitel aufrecht */
.work-tile__title,
.project-header h1 { font-style: normal; }

/* Haarlinien */
.site-header { border-bottom: 1px solid var(--rule); padding-bottom: 0.72rem; }
.site-footer { border-top: 1px solid var(--rule); padding-top: 0.72rem; }
.exhibitions  { border-top: 1px solid var(--rule); padding-top: 0.72rem; margin-top: 3rem; }
.project-pager { border-top: 1px solid var(--rule); padding-top: 0.72rem; }

/* Kein künstliches Fetten durch den Browser */
body, h1, h2, h3, h4 { font-synthesis-weight: none; font-weight: 400; }

/* Links in Lebenslauf und Ausstellungsliste: dezent unterstrichen,
   damit die Textfläche ruhig bleibt. */
.about-text a,
.exhibitions-list a {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.16em;
  color: inherit;
}
.about-text a:hover,
.exhibitions-list a:hover { text-decoration-thickness: 0.1em; }

/* ---------------------------------------------------------------
   Ausstellungsliste im Werkverzeichnis-Satz:
   Titel kursiv, darunter die Angaben, deutlicher Abstand
   zwischen den Einträgen.
   --------------------------------------------------------------- */
.exhibitions-list .exhibition {
  margin-bottom: 1.1rem;
  border-bottom: none;
  padding: 0;
}
.exhibitions-list .exhibition:last-child { margin-bottom: 0; }

.exhibition__title {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.28;
  margin: 0;
}
.exhibition__detail {
  font-size: 0.86rem;
  line-height: 1.32;
  margin: 0;
}

p.exhibitions-year {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  margin: 1.9rem 0 0.55rem;
  border-bottom: none;
  padding: 0;
}
p.exhibitions-year:first-child { margin-top: 0; }

/* ---------------------------------------------------------------
   Ausstellungen: enge Zeilen ohne Absatzabstand, Titel kursiv.
   Steht bewusst am Ende, damit diese Werte gelten.
   --------------------------------------------------------------- */
.exhibitions-list p { margin: 0; padding: 0; border: none; }

.exhibitions-list .exhibition {
  margin: 0 0 1.15rem;
  padding: 0;
  border: none;
}
.exhibitions-list .exhibition:last-child { margin-bottom: 0; }

.exhibitions-list .exhibition__title {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.3;
}
.exhibitions-list .exhibition__detail {
  font-size: 0.86rem;
  line-height: 1.3;
}
.exhibitions-list p.exhibitions-year {
  font-size: 0.78rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  margin: 1.8rem 0 0.5rem;
}
.exhibitions-list p.exhibitions-year:first-child { margin-top: 0; }

/* ---------------------------------------------------------------
   Impressum & Datenschutz — Satz wie auf architecturalservices.de:
   Abschnitte durch Haarlinien getrennt, Überschriften als kleine
   Versalzeilen, Textspalte schmal gehalten.
   --------------------------------------------------------------- */
.imprint-page { max-width: 94rem; }

.imprint-page section {
  border-top: 1px solid var(--rule);
  padding-block: 0.72rem clamp(2.5rem, 5vw, 4rem);
}
.imprint-page section:last-of-type { padding-bottom: 1.5rem; }

.imprint-page h2 {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  margin: 0 0 2rem;
}
.imprint-page h3 {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  margin: 1.75rem 0 0.5rem;
}
.imprint-page .text { max-width: 48rem; }
.imprint-page p { margin: 0; font-size: 1rem; line-height: 1.28; }
.imprint-page p + p { margin-top: 0.75rem; }
.imprint-page address { font-style: normal; }
.imprint-page .email { white-space: nowrap; user-select: text; }
