/* Fira Sans, lokal eingebunden (SIL Open Font License, siehe fonts/OFL.txt) */
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/fira-sans-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/fira-sans-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fira-sans-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fira-sans-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fira-sans-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fira-sans-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --gutter: clamp(16px, 4vw, 48px);
  --font: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

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

strong { font-weight: 500; }

/* Only for screen readers and search engines */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px var(--gutter) 2px;
  background: var(--bg);
}

.logo img { width: 134px; }

@media (min-width: 701px) {
  .logo { margin-left: 10px; }
}

.menu-toggle {
  display: none;
  position: absolute;
  top: 50%;
  left: var(--gutter);
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translateY(-50%);
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--ink);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px);
  max-width: 1735px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) clamp(16px, 2vw, 28px) clamp(56px, 8vw, 96px);
}

.card { margin: 0; }

.card-media {
  overflow: hidden;
  aspect-ratio: 635 / 535;
  background: #e8e6e1;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-link { display: block; }

.card-link .card-media { position: relative; }

.card-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Mouseover-Detailbild nur bei verlinkten Kacheln (a.card-link).
   Weitere Kacheln aktivieren: in galerie.html div data-href wieder zu a href machen. */
a.card-link:hover .card-hover,
a.card-link:focus-visible .card-hover { opacity: 1; }

.card-title {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 300;
  text-align: center;
}

/* Text sections */
.info {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) var(--gutter);
  text-align: center;
}

.info h1 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.info p { margin: 0; color: var(--muted); }

/* About page */
.about {
  display: grid;
  grid-template-columns: minmax(0, 600fr) minmax(0, 632fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) var(--gutter) clamp(56px, 8vw, 96px);
}

.about-media img { width: 100%; }

.about-text h1 {
  margin: 0 0 50px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 300;
  line-height: 1.25;
}

.about-text p { margin: 0 0 16px; }

.about-contact .about-text h1 { margin-bottom: 70px; }

.about-text .about-variant {
  margin: 50px 0 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .about { grid-template-columns: minmax(0, 1fr); }
}

/* Footer */
.site-footer {
  padding: 32px var(--gutter);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

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

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
    padding-right: 0;
  }
  .logo img { width: 204px; }
  .site-header { justify-content: center; }

  .menu-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 16px;
  }
}

.site-footer p { margin: 0; }

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--ink); }

.card-text {
  display: block;
  color: var(--muted);
}

.about-text address { font-style: normal; }

.about-text a:hover,
.about-text a:focus-visible { color: var(--muted); }

/* Werk-Detailseite: Hauptbild zentriert, Thumbnails links daneben */
.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 724px) minmax(0, 1fr);
  align-items: start;
  padding: clamp(16px, 3vw, 32px) var(--gutter) clamp(56px, 8vw, 96px);
}

.work-main { grid-column: 2; }
.work-main img { width: 100%; }

.work-thumbs {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 16px 0 0;
  padding: 0;
  list-style: none;
}

.work-thumb {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.work-thumb img { width: 100px; }

@media (max-width: 700px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .work-main { grid-column: 1; }
  .work-thumbs {
    grid-row: 2;
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 0;
  }
  .work-thumb img { width: 100%; }
}

.work-title {
  margin: 40px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.work-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.work-info p { margin: 0 0 16px; }
.work-info p:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .work-info { grid-template-columns: minmax(0, 1fr); }
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-available::before { background: #3a9d4f; }
.status-unavailable::before { background: #c8423b; }

/* Weiterer Abschnitt unter dem Werk, volle Breite */
.work-more {
  background: #f4f2f2;
  margin-top: -10px;
  padding: clamp(48px, 7vw, 80px) var(--gutter);
}

.work-more-inner {
  max-width: 724px;
  min-height: 160px;
  margin: 0 auto;
}

.work-more .work-title { margin-top: 0; }

.work-text {
  margin-top: 18px;
  color: var(--ink);
  font-size: 16px;
}

.work-text p { margin: 0 0 16px; }
.work-text p:last-child { margin-bottom: 0; }

/* Button "Nächstes" rechts neben dem großen Bild, bündig mit Unterkante */
.work-figure { position: relative; }

.work-next {
  position: absolute;
  left: calc(100% + 40px);
  bottom: -5px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-next:hover,
.work-next:focus-visible { color: var(--ink); }

@media (max-width: 1100px) {
  .work {
    grid-template-columns: auto minmax(0, 724px);
    justify-content: center;
  }
  .work-main { grid-column: 2; }
  .work-next {
    position: static;
    display: block;
    margin-top: 30px;
    text-align: right;
  }
}

@media (max-width: 700px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .work-main { grid-column: 1; }
  /* Thumbnails direkt unter dem Bild, Text darunter */
  .work-main { display: contents; }
  .work-figure { display: contents; }
  #work-image { grid-row: 1; }
  .work-thumbs { grid-row: 2; }
  .work-title { grid-row: 3; }
  .work-info { grid-row: 4; }
  .work-next { grid-row: 5; }
}

.work-next-icon {
  margin-right: 6px;
  font-size: 22px;
  vertical-align: -2px;
}

/* Detailseiten Laptop (1101–1599 px): Bilder und Abstände um 20 % verkleinert.
   Ab 1600 px (große Monitore) gilt die ursprüngliche Größe mit 724 px. */
@media (min-width: 1101px) and (max-width: 1599px) {
  .work { grid-template-columns: minmax(0, 1fr) minmax(0, 579px) minmax(0, 1fr); }
  .work-thumbs { gap: 12.8px; margin-right: 12.8px; }
  .work-thumb img { width: 80px; }
  .work-next { left: calc(100% + 32px); bottom: -4px; }
  .work-title { margin-top: 32px; }
  .work-more-inner { max-width: 579px; }
}

/* Pfeile zum Blättern auf dem großen Bild (erscheinen bei Mouseover) */
.work-stage { position: relative; }

.work-arrow {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.25s ease;
}

.work-arrow-prev { left: 4px; }
.work-arrow-next { right: 4px; }

.work-arrow svg {
  width: 80px;
  height: 80px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.35));
}

.work-stage:hover .work-arrow,
.work-arrow:focus-visible { opacity: 1; }

/* Touchgeräte ohne Mouseover: Pfeile immer sichtbar */
@media (hover: none) {
  .work-arrow { opacity: 1; }
}

@media (max-width: 700px) {
  .work-stage { grid-row: 1; }
}
