/* ============================================================
   Erich Gruber — Entwurf A
   Vorgabe: sehr nüchtern, reduziert, professionell.
   Schrift: Ubuntu (Light / Regular / LightItalic / Medium).
   ============================================================ */




@font-face {
  font-family: 'Ubuntu';
  src: url('fonts/Ubuntu-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('fonts/Ubuntu-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('fonts/Ubuntu-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('fonts/Ubuntu-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


/* ------------------------------------------------------------
   Variablen
   ------------------------------------------------------------ */

:root {
  --bg:         #ffffff;
  --ink:        #1a1a1a;
  --ink-muted:  #6b6b6b;
  --line:       #e6e6e6;

  --gutter:     clamp(1.5rem, 5vw, 5rem);
  --max-text:   34rem;
  --max-page:   1100px;
}


/* ------------------------------------------------------------
   Reset & Basis
   ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms linear;
}
a:hover { border-bottom-color: var(--ink); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, p, ul, ol, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }


/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.site-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 3rem;
  padding: 2rem var(--gutter) 1.6rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: 0.01em;
  line-height: 1;
  border-bottom: none;
}

.site-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.92rem;
}

.lang {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.lang__btn {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 120ms linear, border-color 120ms linear;
}
.lang__btn:hover { color: var(--ink); border-bottom-color: var(--ink); }
.lang__btn.is-active,
.lang__btn[aria-current="page"] { color: var(--ink); }
/* Legacy button style kept as fallback while any cached page still uses <button> */
.lang button[aria-current="true"] { color: var(--ink); }
.lang button:hover { color: var(--ink); }

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 1rem 1.5rem;
    padding: 1.4rem var(--gutter) 1.2rem;
  }
  .site-nav {
    grid-column: 1 / -1;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
  }
  .lang { justify-self: end; }
}
@media (max-width: 480px) {
  .site-nav { gap: 0.9rem; font-size: 0.85rem; }
}


/* ------------------------------------------------------------
   Sektionen
   ------------------------------------------------------------ */

section {
  padding: clamp(4rem, 10vh, 8rem) var(--gutter);
}

section + section { border-top: 1px solid var(--line); }

/* Gemeinsamer Innen-Rahmen für alle Sektionen.
   Alles in der Sektion ist linksbündig am linken Rand dieses 1100px-Blocks. */
.section-inner {
  max-width: var(--max-page);
  margin: 0 auto;
}

.section-title {
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
  color: var(--ink);
}


/* ------------------------------------------------------------
   Werk — Kachel und Bildunterschrift
   ------------------------------------------------------------ */

.work { display: block; }

.work__image img {
  width: 100%;
  height: auto;
  display: block;
}

.work figcaption {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}
.work figcaption i { font-style: italic; font-weight: 300; }


/* ------------------------------------------------------------
   Aktuell — Ankündigung der aktuellen Ausstellung
   ------------------------------------------------------------ */

.aktuell__layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.aktuell__work { margin: 0; }

.aktuell__text {
  font-size: 1rem;
  line-height: 1.7;
  padding-top: 0.4rem;
}

.aktuell__title {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  margin: 0 0 1.4rem;
  color: var(--ink);
}
.aktuell__title em { font-style: italic; }

.aktuell__text p { margin: 0 0 0.9rem; }
.aktuell__text a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.aktuell__text a:hover { border-bottom-color: var(--ink); }

.aktuell__placeholder {
  font-style: italic;
  color: var(--ink-muted);
  background: #f8f7f3;
  padding: 1.1rem 1.3rem;
  border-left: 2px solid var(--line);
}

@media (max-width: 780px) {
  .aktuell__layout { grid-template-columns: 1fr; gap: 2rem; }
  .aktuell__work { max-width: 100%; }
}


/* ------------------------------------------------------------
   Werke — Raster
   ------------------------------------------------------------ */

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 5vw, 4rem);
}

/* Marco uniforme: todas las obras en el mismo rectángulo 38/52, sin recortar.
   La pieza con ratio distinto (Winkler) queda con un pequeño letterbox
   superior/inferior pero alineada con las demás. */
.works__grid .work__image {
  aspect-ratio: 38 / 52;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
}
.works__grid .work__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 640px) {
  .works__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}


/* ------------------------------------------------------------
   Biografie
   ------------------------------------------------------------ */

.bio__list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 4vw, 3rem);
  row-gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 44rem;
}
.bio__list dt {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bio__list dd {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 620px) {
  .bio__list {
    grid-template-columns: 1fr;
    row-gap: 0.15rem;
  }
  .bio__list dt { margin-top: 0.9rem; }
  .bio__list dt:first-of-type { margin-top: 0; }
  .bio__downloads { margin-top: 2rem; }
}

.bio__downloads {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: var(--max-text);
}
.bio__downloads li { margin: 0.4rem 0; }
.bio__downloads a {
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}


/* ------------------------------------------------------------
   Kontakt
   ------------------------------------------------------------ */

.contact__body {
  max-width: 32rem;
}

.contact__primary {
  font-size: 1rem;
  line-height: 1.9;
  margin: 0;
}
.contact__primary a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.galleries {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
}
.galleries li { padding: 0.15rem 0; }
.galleries a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}


/* ------------------------------------------------------------
   Legale Seiten (Impressum, Datenschutz)
   ------------------------------------------------------------ */

.legal__body {
  max-width: var(--max-text);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
}
.legal__body p { margin: 0 0 1.2rem; }
.legal__body a { border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.legal__webdesign {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.legal__sep {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}
.legal__body h3 {
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 0.4rem;
}
.legal__body h4 {
  font-size: 0.98rem;
  font-weight: 500;
  margin: 1.6rem 0 0.4rem;
  color: var(--ink);
}
.legal__body ul {
  margin: 0 0 1.2rem 1.2rem;
  padding: 0;
  list-style: disc;
}
.legal__body ul li { margin: 0.2rem 0; padding: 0; }
.legal__body code {
  background: #f0f0f0;
  padding: 0.05rem 0.3rem;
  font-size: 0.92em;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  border-radius: 2px;
}
.legal__stand {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0;
  margin-bottom: 1.5rem;
}


/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1.6rem var(--gutter);
  }
}

/* ------------------------------------------------------------
   Kleinere Bildschirme — Feinschliff
   ------------------------------------------------------------ */

@media (max-width: 480px) {
  body { font-size: 15px; }
  section { padding: clamp(2.5rem, 8vh, 4rem) var(--gutter); }
  .section-title { margin-bottom: 2rem; }
  .aktuell__title { font-size: 1.05rem; margin-bottom: 1.1rem; }
  .contact__primary, .galleries { font-size: 0.95rem; line-height: 1.75; }
  .legal__body { font-size: 0.92rem; }
  .legal__body h3 { font-size: 1.05rem; }
  .legal__body h4 { font-size: 0.94rem; }
}
