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


/* ------------------------------------------------------------
   Versions-Auswahl (nur Begutachtung — gehört nicht zur finalen Seite)
   ------------------------------------------------------------ */

.version-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.version-switcher__label {
  color: #999;
  font-size: 0.7rem;
  margin-right: 0.2rem;
}
.version-switcher a {
  color: #999;
  text-decoration: none;
  padding: 0.1rem 0.35rem;
  border: none;
  transition: color 120ms linear, background 120ms linear;
}
.version-switcher a:hover { color: #1a1a1a; background: #f0f0f0; }
.version-switcher a.is-active { color: #1a1a1a; background: #ebebeb; }




@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: baseline;
  gap: 3rem;
  padding: 2rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.01em;
  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 button[aria-current="true"] { color: var(--ink); }
.lang button:hover { color: var(--ink); }

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 1rem 2rem;
  }
  .site-nav {
    grid-column: 1 / -1;
    gap: 1.5rem;
  }
}


/* ------------------------------------------------------------
   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; }


/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(3rem, 8vh, 6rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.work--hero { width: min(620px, 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);
}

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


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

.bio__text {
  font-size: 1rem;
  line-height: 1.7;
  max-width: var(--max-text);
}
.bio__text p + p { margin-top: 1rem; }

.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__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

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

.contact__col h3 {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--ink);
}

.contact__col address,
.galleries {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
}

.galleries li { padding: 0.15rem 0; }


/* ------------------------------------------------------------
   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; }
}
