/* Die Kunsthauer – geordnete Neufassung
   Diese Datei ist noch nicht aktiv eingebunden. */

:root {
  --color-text: #222;
  --color-muted: #666;
  --color-soft: #777;
  --color-background: #f7f6f3;
  --color-surface: #fffdf9;
  --color-border: #d8d5ce;
  --color-gallery: #e8e4dc;
  --font-body: Arial, Helvetica, sans-serif;
  --font-display: "Bookman Old Style", Georgia, serif;
  --content-width: 1120px;
  --text-width: 720px;
  --page-gutter: 40px;
  --transition: 0.2s ease;
}

/* 1. Grundlage */

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  font-family: var(--font-body);
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* 2. Kopfbereich und Navigation */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 34px var(--page-gutter);
}

.logo {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-header nav,
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.site-header nav a,
.main-nav a {
  color: var(--color-text);
  font-size: 15px;
  text-decoration: none;
}

.site-header nav a:hover,
.main-nav a:hover,
.site-header nav a[aria-current="page"],
.main-nav a[aria-current="page"] {
  color: var(--color-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 3. Seitenraster und Typografie */

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 64px var(--page-gutter) 120px;
}

.hero {
  max-width: 820px;
  margin-bottom: 90px;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--color-muted);
  font-size: 14px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
.card span,
.work-item h2 {
  font-family: var(--font-display);
  font-weight: 400;
}

h1 {
  margin: 0 0 32px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.intro,
.lead,
.vita-lead {
  max-width: var(--text-width);
  line-height: 1.7;
}

.intro {
  margin: 0;
  font-size: 20px;
}

.lead,
.vita-lead {
  font-size: 1.2rem;
}

/* 4. Karten und Hinweise */

.link-grid,
.work-grid {
  display: grid;
  gap: 26px;
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 96px;
}

.link-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.work-item {
  display: block;
  min-width: 0;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
}

.card {
  min-height: 190px;
  padding: 30px;
  transition: background var(--transition), border-color var(--transition);
}

.card:hover {
  background: #fff;
  border-color: var(--color-text);
}

.card span {
  display: block;
  margin-bottom: 18px;
  font-size: 26px;
  line-height: 1.2;
}

.card small {
  display: block;
  color: #555;
  font-size: 16px;
  line-height: 1.55;
}

.notice {
  max-width: 760px;
  padding-top: 38px;
  border-top: 1px solid var(--color-border);
}

.notice h2,
.contact-block h2,
.legal-text h2,
.vita-section h2,
.vita-page h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.notice p,
.contact-block p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.65;
}

/* 5. Startseite */

.hero-start {
  position: relative;
  max-width: none;
  min-height: 545px;
  margin-bottom: 20px;
}

.hero-start .hero-text {
  max-width: 610px;
  padding-top: 158px;
}

.hero-start h1 {
  margin-bottom: 28px;
  font-size: clamp(42px, 4.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-start .intro {
  max-width: 610px;
  font-size: 18px;
  line-height: 1.65;
}

.hero-start .hero-artwork {
  position: absolute;
  z-index: 1;
  top: 54px;
  right: 20px;
  width: 360px;
  margin: 0;
  opacity: 0.93;
  pointer-events: none;
}

.hero-start + .link-grid {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  gap: 24px;
  margin: 0 auto 82px 0;
}

.hero-start + .link-grid .card {
  min-height: 150px;
  padding: 26px 28px;
}

/* 6. Künstlerseiten */

.artist-layout {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(260px, 1fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.artist-content {
  min-width: 0;
}

.artist-page .hero {
  max-width: 610px;
  min-height: 545px;
  margin-bottom: 20px;
  padding-top: 158px;
}

.artist-page .hero h1 {
  margin: 0 0 28px;
  font-size: clamp(42px, 4.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.artist-page .hero .intro {
  font-size: 18px;
  line-height: 1.65;
}

.artist-page .link-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 700px;
  gap: 22px;
  margin: 0;
}

.artist-page .card {
  min-height: 150px;
  padding: 26px 24px;
}

.artist-graphic {
  min-height: 560px;
}

.artist-graphic img {
  width: 100%;
  max-width: 390px;
  height: auto;
  margin: 54px 0 0 auto;
  object-fit: contain;
}

/* 7. Werkübersichten */

.work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.work-item {
  padding: 24px;
  transition: opacity var(--transition), transform var(--transition);
}

.work-item:hover {
  opacity: 0.96;
  transform: translateY(-3px);
}

.image-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  margin-bottom: 24px;
  overflow: hidden;
  color: var(--color-soft);
  background: var(--color-gallery);
}

.image-placeholder img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 150%;
  max-width: none;
  transform: translate(-50%, -50%);
}

.skulptur-bild img {
  height: 170%;
}

.modelle-bild img,
.theaterplastik-bild img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.work-item h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.work-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

/* 8. Galerien */

.gallery-page {
  max-width: 1100px;
  margin: 0 auto 6rem;
}

.gallery-intro {
  max-width: var(--text-width);
  margin-bottom: 4rem;
}

.work-gallery,
.studies-gallery,
.theater-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 48px 44px;
}

.gallery-item,
.study-item,
.theater-item {
  margin: 0;
}

.gallery-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

.gallery-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gallery-item figcaption,
.study-item figcaption,
.theater-item figcaption {
  margin-top: 0.8rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.gallery-item-large,
.study-featured,
.theater-featured {
  grid-column: 1 / -1;
  justify-self: center;
  width: 66.666%;
  max-width: 66.666%;
}

.study-single {
  grid-column: 1 / -1;
  justify-self: center;
  width: 60%;
}

.work-gallery .gallery-item:not(.gallery-item-large) .gallery-image {
  height: 460px;
  align-items: flex-end;
}

.sculpture-gallery-page .gallery-item-medium {
  width: 125%;
}

.sculpture-gallery-page .work-gallery .gallery-item.gallery-item-medium .gallery-image {
  height: auto;
}

.sculpture-gallery-page .work-gallery .gallery-item.gallery-item-medium .gallery-image img {
  height: auto;
}

.sculpture-gallery-page .gallery-item-medium-left {
  justify-self: end;
}

.sculpture-gallery-page .gallery-item-medium-right {
  justify-self: start;
}

.work-gallery .gallery-item:not(.gallery-item-large) img {
  width: 100%;
  height: 100%;
  object-position: center bottom;
}

.work-gallery .gallery-item.matched-height .gallery-image {
  height: auto;
  aspect-ratio: 61 / 140;
}

.work-gallery .gallery-item.matched-height .gallery-image img {
  width: 100%;
  height: 100%;
  object-position: center bottom;
}

.ratio-standard { aspect-ratio: 4 / 3; }
.ratio-wide { aspect-ratio: 16 / 9; }
.ratio-portrait { aspect-ratio: 3 / 4; }
.ratio-tall { aspect-ratio: 2 / 3; }

.study-image,
.theater-image {
  overflow: hidden;
  background: var(--color-gallery);
}

.study-image img,
.theater-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.studies-gallery-page .study-image {
  aspect-ratio: auto;
  background: transparent;
}

.studies-gallery-page .study-image img {
  height: auto;
}

.theater-gallery-page .theater-image.ratio-native {
  aspect-ratio: auto;
  background: transparent;
}

.theater-gallery-page .theater-image.ratio-native img {
  height: auto;
}

/* 9. Lebensläufe */

.vita-intro,
.vita-lead {
  max-width: 780px;
}

.vita-page .hero {
  margin-bottom: 0;
}

.vita-layout,
.vita-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 3rem;
  margin-top: 3rem;
}

.vita-text p,
.vita-grid p {
  max-width: var(--text-width);
  line-height: 1.75;
}

.vita-facts,
.vita-stations {
  padding-left: 2rem;
  border-left: 1px solid var(--color-border);
}

.vita-facts dl,
.vita-stations dl {
  margin: 0;
}

.vita-facts dl > div,
.vita-stations dl > div {
  margin-bottom: 1.3rem;
}

.vita-facts dt,
.vita-stations dt,
.vita-list time,
.vita-project time {
  color: #555;
  font-weight: 700;
}

.vita-facts dd,
.vita-stations dd {
  margin: 0;
  line-height: 1.5;
}

.vita-section {
  margin-top: 4rem;
}

.section-note {
  max-width: var(--text-width);
  margin: 0.65rem 0 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.vita-list,
.vita-projects {
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.vita-list article,
.vita-project {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.vita-list article > div {
  min-width: 0;
}

.vita-list h3,
.vita-project h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.vita-list p,
.vita-project p {
  margin: 0;
  line-height: 1.5;
}

.vita-list p + p {
  margin-top: 0.35rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

/* 10. Kontakt und Rechtliches */

.contact-block,
.legal-text {
  max-width: 780px;
  padding: 38px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.contact-block {
  max-width: var(--text-width);
  padding: 34px;
}

.legal-text h2:not(:first-child) {
  margin-top: 38px;
}

.legal-text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.notice a,
.contact-block a,
.legal-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 11. Fußbereich */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 42px var(--page-gutter);
  border-top: 1px solid var(--color-border);
}

.site-footer a,
.site-footer p {
  margin: 0;
  color: #444;
  font-size: 14px;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* 12. Tablet */

@media (min-width: 981px) and (max-width: 1120px) {
  .hero-start .hero-text {
    max-width: 54%;
    padding-top: 120px;
  }

  .hero-start .hero-artwork {
    top: 50px;
    right: 0;
    width: 34%;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .hero-start {
    min-height: 500px;
    margin-bottom: 22px;
  }

  .hero-start .hero-text {
    max-width: 54%;
    padding-top: 120px;
  }

  .hero-start .hero-artwork {
    top: 50px;
    right: 0;
    width: 34%;
  }

  .hero-start h1,
  .artist-page .hero h1 {
    font-size: clamp(40px, 5.5vw, 58px);
  }

  .artist-layout {
    grid-template-columns: minmax(0, 54%) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .artist-page .hero {
    max-width: none;
    min-height: 500px;
    margin-bottom: 22px;
    padding-top: 120px;
  }

  .artist-graphic {
    min-height: 500px;
  }

  .artist-graphic img {
    max-width: 340px;
    margin-top: 50px;
  }
}

/* 13. Smartphone */

@media (max-width: 760px) {
  :root {
    --page-gutter: 24px;
  }

  .site-header {
    display: block;
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .logo {
    display: block;
    margin-bottom: 22px;
  }

  .site-header nav,
  .main-nav {
    gap: 14px;
  }

  main,
  .vita-page main {
    padding-top: 54px;
    padding-bottom: 90px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .link-grid,
  .link-grid.two-columns,
  .work-grid,
  .work-gallery,
  .studies-gallery,
  .theater-gallery,
  .vita-layout,
  .vita-grid {
    grid-template-columns: 1fr;
  }

  .hero-start {
    min-height: 0;
    margin-bottom: 54px;
  }

  .hero-start .hero-text {
    max-width: none;
    padding-top: 0;
  }

  .hero-start .hero-artwork {
    position: static;
    width: min(100%, 320px);
    margin: 42px auto 0;
  }

  .hero-start + .link-grid {
    grid-template-columns: 1fr;
    margin-bottom: 72px;
  }

  .artist-layout {
    display: block;
  }

  .artist-page .hero {
    min-height: 0;
    margin-bottom: 48px;
    padding-top: 0;
  }

  .artist-page .link-grid.two-columns {
    grid-template-columns: 1fr;
    margin-bottom: 54px;
  }

  .artist-page .card {
    min-height: 0;
    padding: 24px;
  }

  .artist-graphic {
    min-height: 0;
  }

  .artist-graphic img {
    width: min(100%, 340px);
    margin: 36px auto 0;
  }

  .gallery-item-large,
  .study-featured,
  .theater-featured {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
  }

  .sculpture-gallery-page .gallery-item-medium {
    width: 100%;
  }

  .study-single {
    grid-column: auto;
    width: 100%;
  }

  .work-gallery .gallery-item:not(.gallery-item-large) .gallery-image {
    height: auto;
  }

  .work-gallery .gallery-item.matched-height .gallery-image {
    aspect-ratio: auto;
  }

  .vita-facts,
  .vita-stations {
    padding-top: 1.5rem;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .vita-list article,
  .vita-project {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .contact-block,
  .legal-text {
    padding: 28px;
  }

  .site-footer {
    padding-top: 34px;
    padding-bottom: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}
