/* ════════════════════════════════════════════════════
   OTTO BERNDT STEFFEN — styles.css
   Design-System: Gormley / Chipperfield / Judd
   Inter 300/400/500
════════════════════════════════════════════════════ */

:root {
  --text:        #202020;
  --muted:       #8f8f8f;
  --light:       #f4f4f3;
  --border:      #e5e5e2;
  --bg:          #ffffff;
  --fg:          #202020;
  --fg-mid:      #8f8f8f;
  --fg-light:    #ccc;
  --font:        'Inter', Arial, sans-serif;

  --size-caption: 13px;
  --size-nav:     14px;
  --size-brand:   17px;
  --size-title:   22px;

  --page-margin:  36px;
  --col-gap:      64px;
  --row-gap:      140px;
  --banner-h:     42px;
  --header-h:     64px;
  --drawer-w:     300px;
  --cols:         5;
  --subpage-start: 48px;
  --subpage-start-relaxed: 60px;
}

html { font-size: 15px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.15) transparent; }

/* Dezente Scrollleiste (Webkit) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.28); }

@media (max-width: 1800px) { :root { --cols: 4; --col-gap: 48px; --row-gap: 140px; } }
@media (max-width: 1200px) { :root { --cols: 3; --col-gap: 40px; --row-gap: 140px; } }
@media (max-width: 900px)  { :root { --cols: 2; --col-gap: 32px; --row-gap: 100px; --page-margin: 16px; } }
@media (max-width: 600px)  { :root { --cols: 1; --col-gap: 0px;  --row-gap: 72px;  } }

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

main { flex: 1; }

body {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; padding: 0; color: inherit; }
*:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

/* ════════════════════════════════════════════════════
   NOTICE (ehemaliger Banner — nur index.html)
════════════════════════════════════════════════════ */
.site-notice {
  position: fixed;
  top: 0; left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--bg);
  padding: 16px 0;
  pointer-events: none;
  z-index: 215;
  color: rgba(17,17,17,0);
  animation: noticeTextIn .5s 1.8s forwards;
}
@keyframes noticeTextIn {
  to { color: rgba(17,17,17,0.72); }
}

/* Alter Banner — ausgeblendet */
.site-banner { display: none; }

/* ════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: var(--banner-h); left: 0; right: 0;
  height: var(--header-h); z-index: 210;
  background: var(--bg);
}

.header-inner {
  display: flex; align-items: center; height: 100%;
  padding: 0 var(--page-margin);
  width: 100%;
}

.brand-mark { flex-shrink: 0; display: flex; align-items: center; margin-right: 12px; }
.brand-mark img { height: 26px; width: auto; opacity: .7; transition: opacity .2s; }
.brand-mark:hover img { opacity: 1; }

.brand {
  font-size: 19px; font-weight: 400;
  letter-spacing: 0.03em; color: var(--fg);
  white-space: nowrap; flex-shrink: 0;
}

.header-nav { display: flex; gap: 42px; margin-left: auto; }
.header-nav a {
  font-size: 15px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.02em; transition: color .15s;
}
.header-nav a:hover { color: var(--fg); }
.header-nav a.active { color: var(--fg); font-weight: 500; }

.hamburger {
  display: none;
  width: 24px; height: 14px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.hamburger::before, .hamburger span, .hamburger::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--fg); transition: transform .25s, opacity .25s;
}
.hamburger::before { top: 0; }
.hamburger span    { top: 50%; transform: translateY(-50%); }
.hamburger::after  { bottom: 0; }
.hamburger[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span    { opacity: 0; transform: translateY(-50%) scaleX(0); }
.hamburger[aria-expanded="true"]::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-nav   { display: none; }
  .hamburger    { display: flex; align-items: center; margin-left: auto; }
  .header-inner { justify-content: flex-start; }
  .brand        { flex: 0 0 auto; margin-right: 0; }
  .brand-mark   { flex: 0 0 auto; }
}

/* ════════════════════════════════════════════════════
   DRAWER
════════════════════════════════════════════════════ */
.drawer { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.drawer[aria-hidden="false"] { pointer-events: all; display: flex; align-items: flex-start; justify-content: center; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(200,200,200,.35); opacity: 0; transition: opacity .25s; }
.drawer[aria-hidden="false"] .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: relative; z-index: 1;
  width: calc(100% - 2 * var(--page-margin));
  max-width: 480px;
  margin-top: calc(var(--banner-h) + var(--header-h) + 8px);
  background: var(--bg);
  display: flex; flex-direction: column;
  max-height: 70vh; overflow-y: auto;
  transform: translateY(-12px); opacity: 0;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s;
  box-shadow: 0 2px 32px rgba(0,0,0,.08);
}

@media (max-width: 900px) {
  .drawer[aria-hidden="false"] { display: flex; align-items: flex-start; justify-content: center; }
  .drawer-backdrop { background: rgba(200,200,200,.35); }
  .drawer-panel {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    width: calc(100% - 2 * var(--page-margin));
    max-width: 480px;
    margin-top: calc(var(--banner-h) + var(--header-h) + 8px);
    max-height: 70vh;
    box-shadow: 0 2px 32px rgba(0,0,0,.08);
    transform: translateY(-12px);
    padding: 0;
  }
}
.drawer[aria-hidden="false"] .drawer-panel { transform: translateY(0); opacity: 1; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--page-margin) 16px; flex-shrink: 0; }
.drawer-title { font-size: 15px; font-weight: 400; letter-spacing: .01em; color: var(--fg); }
.drawer-close {
  font-size: 18px; color: var(--muted);
  transition: color .15s;
  padding: 4px; margin: -4px;
  cursor: pointer; line-height: 1; background: none; border: none;
}
.drawer-close:hover { color: var(--fg); }
.drawer-nav { display: flex; flex-direction: column; padding: 0 var(--page-margin) 28px; }
.drawer-nav a { font-size: 15px; padding: 6px 10px; margin: 2px 0; letter-spacing: .01em; transition: color .15s; color: var(--muted); }
.drawer-nav a:hover, .drawer-nav a[aria-current] { color: var(--fg); }

/* ════════════════════════════════════════════════════
   FILTER
════════════════════════════════════════════════════ */
.filter-group { display: flex; flex-wrap: wrap; align-items: baseline; margin-bottom: 46px; }
.filter-label {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-right: 12px; white-space: nowrap;
  line-height: 2.2; margin-bottom: 18px;
}
.filter-btn {
  font-size: 15px; line-height: 2;
  color: var(--muted); padding: 0 12px; margin: 0 2px;
  border: none; cursor: pointer; transition: color .15s;
  white-space: nowrap; background: none;
}
.filter-btn:hover  { color: var(--fg); }
.filter-btn.active { color: var(--fg); font-weight: 500; }
.filter-divider { display: none; }
.no-results { display: none; padding: 48px var(--page-margin); font-size: var(--size-caption); color: var(--muted); }
.no-results.visible { display: block; }

/* ════════════════════════════════════════════════════
   WORKS GRID
════════════════════════════════════════════════════ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  column-gap: var(--col-gap);
  row-gap: var(--row-gap);
  padding: 48px var(--page-margin) 80px;
}

.work { display: flex; flex-direction: column; opacity: 0; animation: fadeIn .35s forwards; }
.work.hidden { display: none; }
.work:nth-child(1)  { animation-delay: .03s; }
.work:nth-child(2)  { animation-delay: .06s; }
.work:nth-child(3)  { animation-delay: .09s; }
.work:nth-child(4)  { animation-delay: .12s; }
.work:nth-child(5)  { animation-delay: .15s; }
.work:nth-child(6)  { animation-delay: .18s; }
.work:nth-child(7)  { animation-delay: .21s; }
.work:nth-child(8)  { animation-delay: .24s; }
.work:nth-child(9)  { animation-delay: .27s; }
.work:nth-child(10) { animation-delay: .30s; }
.work:nth-child(11) { animation-delay: .33s; }
.work:nth-child(12) { animation-delay: .36s; }
.work:nth-child(13) { animation-delay: .39s; }
.work:nth-child(14) { animation-delay: .42s; }
.work:nth-child(15) { animation-delay: .45s; }
.work:nth-child(16) { animation-delay: .48s; }
.work:nth-child(17) { animation-delay: .51s; }
.work:nth-child(18) { animation-delay: .54s; }
.work:nth-child(19) { animation-delay: .57s; }
.work:nth-child(20) { animation-delay: .60s; }

.work-link { display: block; }
.work-link:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }

.work-frame {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background: #f2f2f2; overflow: hidden;
}
.work-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  transition: opacity .3s, transform .6s cubic-bezier(.4,0,.2,1);
}
/* Grauer Chipperfield-Schleier */
.work-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .4s ease;
  pointer-events: none;
  z-index: 1;
}
.work-link:hover .work-frame::after {
  background: rgba(0,0,0,0.06);
}
.work-link:hover .work-frame img {
  transform: scale(1.018);
}

.work-caption { margin-top: 18px; }
.work-caption-title {
  display: block; font-size: 13.5px; font-weight: 400;
  letter-spacing: -0.005em; line-height: 1.3;
  color: var(--fg);
}
.work-caption-year { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ════════════════════════════════════════════════════
   SERIEN
════════════════════════════════════════════════════ */
.serie-block-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 0; padding-top: 32px; padding-left: var(--page-margin); }
.serie-block-titel { font-size: 22px; font-weight: 400; letter-spacing: .01em; margin: 0; }
.serie-block-meta { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.serie-block { padding: 0; }
.serie-block + .serie-block { margin-top: 40px; }

@media (max-width: 600px) {
  .serie-block-header { padding-left: var(--page-margin); padding-right: var(--page-margin); }
  .serie-block + .serie-block { margin-top: 40px; }
}

/* ════════════════════════════════════════════════════
   VIEWER
════════════════════════════════════════════════════ */
.viewer {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 190;
  background: #fff; overflow: hidden;
}
body.viewer-open .site-header,
body.viewer-open .site-notice,
body.viewer-open .filter-float { display: none; }
.viewer[aria-hidden="false"] { display: flex; align-items: stretch; justify-content: center; }



.viewer-footer { display: none; }

/* Pfeile — Gormley-Stil: vertikal mittig, am Rand */
.viewer-nav-btn {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  font-size: 44px; line-height: 1;
  font-weight: 300;
  color: #666; opacity: .7;
  padding: 8px 28px;
  background: none; border: none; cursor: pointer;
  transition: color .2s, opacity .2s; -webkit-appearance: none;
  z-index: 201;
  display: none;
  /* JS überschreibt top mit exakter Bildmitte */
}
.viewer-nav-btn:hover { color: var(--fg); opacity: 1; }
body.viewer-open .viewer-nav-btn { display: block; }
.viewer-prev { left: 20px; }
.viewer-next { right: 20px; }

/* Viewer Layout */
.viewer-inner {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  padding: 48px 80px 90px; /* 90px unten = Platz für fixed meta */
  box-sizing: border-box;
}

.viewer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  max-width: min(90vw, 1100px);
}

.viewer-stage {
  display: flex; align-items: center; justify-content: center;
  width: 100%; flex: 1; min-height: 0;
  overflow: hidden;
  position: relative;
}

/* Bild — Animation via inline styles in JS */
.viewer-img {
  will-change: transform, opacity;
}

/* Fester Sockel: fixiert an Unterkante */
.viewer-bottom {
  position: fixed;
  bottom: 20px;
  left: 0; right: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 80px;
  z-index: 200;
}
body.viewer-open .viewer-bottom { display: flex; }

/* Meta — Desktop: eine Zeile */
.viewer-meta {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  text-align: center;
  min-width: 0;
  flex: 1;
}
.viewer-caption-title {
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
}
.viewer-caption-sub { display: none; }

/* Desktop: Zeile 2 — Material · Maße · Zähler inline */
.viewer-caption-row2 {
  display: inline;
}
.viewer-caption-material {
  font-size: 13px; font-weight: 400; color: #777;
  white-space: nowrap;
}
.viewer-caption-material:not(:empty)::before { content: '   ·   '; color: #ccc; white-space: pre; }
.viewer-caption-masse {
  font-size: 13px; color: #777;
  white-space: nowrap;
}
.viewer-caption-masse:not(:empty)::before { content: '   ·   '; color: #ccc; white-space: pre; }
.viewer-caption-count {
  font-size: 12px; color: #999;
  white-space: nowrap;
}
.viewer-caption-count:not(:empty)::before { content: '   ·   '; color: #ccc; white-space: pre; }
.viewer-caption { display: none; }
.viewer-counter { display: none; }
.viewer-caption-masse:not(:empty)::before { content: '   ·   '; color: #ccc; white-space: pre; }
.viewer-caption-count {
  font-size: 12px; color: #aaa;
}
.viewer-caption-count:not(:empty)::before { content: '   ·   '; color: #ccc; white-space: pre; }
.viewer-caption { display: none; }
.viewer-counter { display: none; }

.viewer-close {
  display: none;
  position: fixed;
  top: 20px;
  right: 28px;
  font-size: 32px; font-weight: 300; color: #777;
  padding: 8px; line-height: 1;
  cursor: pointer; background: none; border: none; outline: none;
  transition: color .15s; z-index: 9999;
  -webkit-appearance: none;
}
body.viewer-open .viewer-close { display: block; }
.viewer-close:hover { color: var(--fg); }

.viewer-img {
  display: block; max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain; transition: opacity .2s;
}
.viewer-img.loading { opacity: 0; }
.viewer-nav { display: none; }

@media (max-width: 900px) {
  .viewer-inner {
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
  }
  .viewer-block {
    max-width: 100vw; width: 100vw;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .viewer-stage {
    width: 100%;
    flex: 1;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: 52px 0 80px; /* 52px oben für X, 80px unten für Textblock */
  }
  .viewer-img {
    width: auto;
    max-width: 100vw;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    display: block;
  }
  /* Pfeile: vertikal mittig */
  .viewer-nav-btn {
    font-size: 32px;
    padding: 8px 16px;
    top: calc(50% + 26px); /* versetzt um halbe Text-Höhe */
  }
  .viewer-prev { left: 0; }
  .viewer-next { right: 0; }

  /* Textblock: fix am unteren Rand, zentriert */
  .viewer-bottom {
    position: fixed !important;
    bottom: 0 !important;
    left: 0; right: 0;
    flex-shrink: 0;
    padding: 14px 24px 20px;
    justify-content: center;
    background: #fff;
    z-index: 202;
    display: none;
  }
  body.viewer-open .viewer-bottom {
    display: flex !important;
  }

  .viewer-meta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    flex-wrap: nowrap;
    width: 100%;
  }

  /* Zeile 1: Titel, Jahr */
  .viewer-caption-title {
    font-size: 13px;
    font-weight: 500;
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Zeile 2: row2 als Block, spans inline */
  .viewer-caption-row2 {
    display: block;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .viewer-caption-material {
    font-size: 11px;
    color: #777;
    display: inline;
  }
  .viewer-caption-material::before { content: none !important; }
  .viewer-caption-masse {
    font-size: 11px;
    color: #777;
    display: inline;
  }
  .viewer-caption-masse:not(:empty)::before { content: ' · ' !important; color: #bbb; white-space: pre; }
  .viewer-caption-count {
    font-size: 11px;
    color: #aaa;
    display: inline;
  }
  .viewer-caption-count:not(:empty)::before { content: ' · ' !important; color: #bbb; white-space: pre; }

  .viewer-close { right: 12px; top: 10px; font-size: 28px; }
}

/* ════════════════════════════════════════════════════
   MOBILE GRID
════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .work-frame { aspect-ratio: auto; height: auto; background: transparent; overflow: visible; }
  .work-frame img { position: relative; inset: auto; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
  .works-grid { row-gap: 64px; padding: 24px var(--page-margin) 80px; }

}

/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
.footer-mini { display: flex; gap: 2em; padding: 32px var(--page-margin); margin-top: auto; }
.footer-mini a { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .15s; }
.footer-mini a:hover { color: var(--fg); }

/* ════════════════════════════════════════════════════
   TEXTSEITEN
════════════════════════════════════════════════════ */
.page-wrap {
  margin-top: calc(var(--banner-h) + var(--header-h));
  padding: 60px var(--page-margin) 0;
  max-width: 680px;
  min-height: calc(100vh - var(--banner-h) - var(--header-h) - 88px);
  opacity: 0; animation: fadeIn .4s .05s forwards;
}
.kontakt-wrap {
  margin-top: calc(var(--banner-h) + var(--header-h));
  padding: 60px var(--page-margin) 0;
  max-width: 960px;
  min-height: calc(100vh - var(--banner-h) - var(--header-h) - 88px);
  opacity: 0; animation: fadeIn .4s .05s forwards;
}
.legal-wrap, .vita-wrap {
  margin-top: calc(var(--banner-h) + var(--header-h));
  padding: 60px var(--page-margin) 0;
  max-width: 560px;
  min-height: calc(100vh - var(--banner-h) - var(--header-h) - 88px);
  opacity: 0; animation: fadeIn .4s .05s forwards;
}
.serien-page {
  margin-top: calc(var(--banner-h) + var(--header-h));
  padding-top: 28px;
  padding-bottom: 120px;
  opacity: 0; animation: fadeIn .4s .05s forwards;
}

.page-wrap h1, .legal-wrap h1, .vita-wrap h1, .kontakt-wrap h1 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
  color: var(--fg);
}

.page-wrap h2, .legal-wrap h2, .vita-wrap h2 {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin: 40px 0 14px;
}
.page-wrap h2:first-of-type,
.legal-wrap h2:first-of-type,
.vita-wrap h2:first-of-type { margin-top: 0; }

.legal-wrap h3 {
  font-size: 13px; font-weight: 400; color: var(--muted);
  margin: 28px 0 8px; letter-spacing: .04em;
}
.legal-divider { border: none; margin: 56px 0; }

.page-wrap p, .page-wrap address,
.legal-wrap p, .legal-wrap address {
  font-size: 15px; line-height: 1.75; font-style: normal;
  color: var(--fg); margin-bottom: 8px;
}
.legal-wrap a, .page-wrap a {
  color: var(--fg); border-bottom: 1px solid var(--border); transition: border-color .15s;
}
.legal-wrap a:hover, .page-wrap a:hover { border-color: var(--fg); }

/* ── Vita ── */
.vita-portrait {
  margin-bottom: 48px;
  margin-left: calc(-1 * var(--page-margin));
  margin-right: calc(-1 * var(--page-margin));
}
.vita-portrait img { display: block; width: 100%; max-width: 100%; height: auto; }

@media (min-width: 700px) {
  .vita-portrait { margin-left: 0; margin-right: 0; margin-bottom: 48px; }
  .vita-portrait img { max-width: 480px; }
}
.vita-section { margin-bottom: 64px; }
.vita-row {
  display: grid; grid-template-columns: 96px 1fr;
  gap: 2px 20px; margin-bottom: 6px;
  font-size: 15px; line-height: 1.6;
}
.vita-row-year, .vita-year { color: var(--muted); white-space: nowrap; font-size: 14px; }
.vita-row-text { color: var(--fg); }
.vita-text     { font-size: 15px; line-height: 1.6; color: var(--fg); margin-bottom: 4px; max-width: 720px; }
.vita-materials { font-size: 15px; color: var(--muted); line-height: 1.6; }

@media (max-width: 600px) { .vita-row { grid-template-columns: 72px 1fr; } }

/* ── Kontakt ── */
.kontakt-block {
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 24px;
  align-items: start;
}
.kontakt-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); padding-top: 2px; white-space: nowrap;
}
.kontakt-text { font-size: 15px; line-height: 1.75; color: var(--fg); }
.kontakt-text a { color: var(--fg); border-bottom: 1px solid var(--border); transition: border-color .15s; }
.kontakt-text a:hover { border-color: var(--fg); }

@media (max-width: 480px) {
  .kontakt-block { grid-template-columns: 1fr; gap: 4px 0; }
}

/* ── Kontakt Layout ── */
.contact-layout {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}
.contact-info {
  flex: 1;
  min-width: 0;
}
.contact-portrait {
  width: 340px;
  flex-shrink: 0;
}
.contact-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

@media (max-width: 700px) {
  .contact-layout {
    flex-direction: column;
    gap: 32px;
  }
  .contact-portrait {
    width: 100%;
    max-width: none;
    padding-top: 0;
  }
  .contact-info { order: 1; }
  .contact-portrait { order: 2; }
}

/* ════════════════════════════════════════════════════
   ANIMATION
════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.viewer-img {
  display: block; max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain; transition: opacity .2s;
}
.viewer-img.loading { opacity: 0; }
.viewer-nav { display: none; }


