:root {color-scheme: dark; --bg: #0f0f0f;
--surface: #131613;
--surface-hover: #7f7f7f;
--line: #344047;
--text: #e6ebec;
--muted: #a9b7bb;
--accent: #b6c9cc;
    font-family: "Segoe UI Variable", "Segoe UI"; font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }
button, a { -webkit-tap-highlight-color: transparent; }

/* The skip link appears when keyboard users press Tab. */
.skip {
  position: absolute;
  left: -10000px;
  top: 12px;
  z-index: 20;
  padding: 12px 16px;
  color: #101211;
  background: #fff;
}
.skip:focus { left: 12px; }
a:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 0px;
}

/* Navigation */
.top{
    position: sticky; top: 0; z-index: 100; background: var(--bg);
    
    min-height: 50px; padding: 15px clamp(20px, 2vw, 70px);
    display: flex; align-items: center; justify-content: flex-end;
    border-bottom: 1px solid var(--line);}
nav{
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
    gap: 10px; margin-left: auto; text-align: right;}
nav a{
    padding: 10px; border: 0; border-radius: 5px;
    color: var(--text); background: transparent; font-size: 1rem;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;}
nav a:is(:hover, :focus-visible){
    background: var(--nav-hover-bg, #293542);
    color: var(--nav-hover-text, var(--text));}
nav a[href$="ausstellung.html"]{--nav-hover-bg: #383629; --nav-hover-text: #f0d27b;}
nav a[href$="kontakt.html"]{--nav-hover-bg: #263830; --nav-hover-text: #a8d6b5;}


main { min-height: calc(100vh - 76px); }
h1, h2, p { margin-top: 0; }
h1, h2 {
  font-family: Rockwell, Cambria, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
}
h1 { font-size: clamp(3.2rem, 6vw, 6.4rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.5vw, 3.6rem); line-height: 1.1; }
p { line-height: 1.7; }
.eyebrow {
  color: var(--accent);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.lead { color: #d6dfd6; font-size: clamp(1.08rem, 1.5vw, 1.32rem); }

/* Homepage: text on the left, two overlaid images on the right. */
section.hm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1500px;
  min-height: min(760px, calc(100svh - 76px));
  margin: auto;
}
.hm.text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(70px, 7vw, 130px) clamp(32px, 5vw, 90px);
}
.hm.text h1 { max-width: 620px; margin: 18px 0 32px; }
.hm.text .lead { max-width: 570px; }
.hm.image {
  position: relative;
  display: block;
  min-height: 590px;
  margin: 0;
  overflow: hidden;
  background: #080a08;
}
.hm.image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .45s ease, transform .7s ease;
}
.hm.image > .default { object-position: center; }

.hm.image > .hover {
  object-position: center 35%;
  -webkit-mask-image: radial-gradient(
    circle 150px at var(--reveal-x, -500px) var(--reveal-y, -500px),
    #000 40%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 150px at var(--reveal-x, -500px) var(--reveal-y, -500px),
    #000 40%,
    transparent 100%
  );
}
.hm.image figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 55px 28px 24px;
  background: linear-gradient(transparent, #080a08d9);
  font-size: .73rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hm.image figcaption .on-hover { display: none; }
.hm.image:is(:hover, :focus) figcaption .on-default { display: none; }
.hm.image:is(:hover, :focus) figcaption .on-hover { display: inline; }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 25px; margin: 32px 0 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 21px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #182017;
  font-size: .91rem;
  font-weight: 700;
}
.button:hover { background: #e1e9da; border-color: #e1e9da; }
.button.light { background: transparent; color: var(--text); border-color: #829181; }
.button.light:hover { background: var(--surface-hover); border-color: var(--accent); }

.button.back{
    display: inline-flex; align-items: center;
    gap: 10px; min-height: 40px; padding: 15px 20px;
    border: 0; border-radius: 5px;
    background: transparent; color: var(--muted); transition: background-color .2s ease, color .2s ease;
    margin-bottom: 60px;
    font-size: 1.25rem;
    font-weight: 400;}
.button.back:hover{color: var(--text); background: var(--surface);}


/* Section titles and project cards share the same width. */
.section-heading, .page-heading {
  max-width: var(--content);
  margin: 0 auto;
  padding: 100px clamp(22px, 5vw, 70px) 35px;
}
.section-heading h2, .page-heading h1 { max-width: 780px; }
.page-heading p { max-width: 700px; color: var(--muted); }


/* Projects */
.work-heading {
  max-width: var(--content);
  margin-inline: auto; margin-left: 167px;
  padding-inline: clamp(50px, 5vw, 70px); padding-top: clamp(45px, 4.5vw, 90px); padding-bottom: clamp(30px, 3vw, 60px);
  margin-top: 10px; margin-bottom: 20px;}
.work-heading h1{margin: 0; font-size: 4rem; letter-spacing: .025px;}

.projects{display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 1120px; margin: 0 auto; padding: 0px clamp(20px, 2vw, 70px) 120px;}

.project{
    display: flex; flex-direction: column; align-items: flex-start;
    padding: clamp(20px, 2vw, 70px);
    border: 0; border-radius: 5px;
    background: var(--bg);
    color: var(--text);
    transition: background-color .2s ease, color .2s ease;}
.project span{color: var(--accent); font-size: .75rem; letter-spacing: 1px; text-transform: uppercase;}
.project h2{margin: 20px 0 15px; font-size: clamp(1.5rem, 1.5vw, 2rem); letter-spacing: .1px;}
.project p{max-width: 850px; margin: 0; color: var(--muted);}

a.project:is(:hover, :focus-visible){background: #263830; color: #a8d6b5;}
a.project:is(:hover, :focus-visible) :is(span, h2, p), a.project:is(:hover, :focus-visible)::after{color: #a8d6b5;}
a.project:focus-visible{outline: none;}


/* Individual project pages. */
.detail{max-width: 1120px; margin: auto; padding: 55px 55px 55px;}
.detail h1{max-width: 1120px; margin-top: -10px; margin-bottom: 40px; font-size: 4rem; letter-spacing: .025px;}
.detail > p{max-width: 1120vw; color: var(--muted);}

.detailgrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 5vw, 70px);
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid var(--line);}
.detailgrid p{color: var(--muted);}

.evidence{max-width: 1120px; margin-top: 55px; padding: 30px; border: 1px solid var(--line); background: var(--surface);}
.evidence p{margin: 10px 0 0; color: var(--muted);}

/* Exhibition: complete drawings stay visible inside their frames. */
.art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--content);
  margin: auto;
  padding: 0 clamp(22px, 5vw, 70px) 120px;
}
.art figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.art img {
  width: 100%;
  height: clamp(380px, 44vw, 630px);
  object-fit: contain;
  background: #0c0e0d;
}
.art figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  font-size: .91rem;
  font-weight: 700;
}
.art figcaption span:last-child { color: #d3ddd3; font-size: .76rem; font-weight: 400; }

.ausstellung{
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    max-width: 1140px; margin: auto;
    display: grid; grid-template-columns: 150px minmax(0, 1fr);
    gap: 60px; padding: 63px 55px 50px;
    margin-left: 175px;}
.ausstellung p{max-width: 860px; color: var(--muted);}
.ausstellung h1{max-width: 1120px; margin-top: -9.8125px; margin-bottom: 40px; font-size: 4rem; letter-spacing: .025px;}

.profil{
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    max-width: 1140px; margin: auto;
    display: grid; grid-template-columns: 150px minmax(0, 1fr);
    gap: 60px; padding: 63px 55px 50px;
    margin-left: 175px;}
.profil p{max-width: 860px; color: var(--muted);}
.profil h1{max-width: 1120px; margin-top: -9.8125px; margin-bottom: 40px; font-size: 4rem; letter-spacing: .025px;}
.photo{width: 100%; width: 152.5px; height: 152.5px;}
.photo img{
    width: 100%; height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 50% 70%;
    border: 1px solid var(--line);
    border-radius: 50%;
    filter: grayscale(0.8);}

/* Contact */
.contact{
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    min-height: 420px; padding: 60px 236.4px;
    border-top: 1px solid var(--line); background: #1a221b;}
.contact h1{max-width: 1120px; margin-top: -10px; padding-bottom: -10px; font-size: 4rem; letter-spacing: .025px;}
.contact h2{margin: 0px 0 15px; font-size: clamp(1.5rem, 1.5vw, 2rem); letter-spacing: .1px;}
.contact p{max-width: 1120px; color: var(--muted);}

.contact-actions{display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px;}
.contact-link{
    display: inline-flex; align-items: center; justify-content: space-between;
    gap: 10px; min-height: 40px; padding: 15px 20px;
    border: 0; border-radius: 5px;
    background: var(--bg); color: var(--text); transition: background-color .2s ease, color .2s ease;
    font-size: .9rem; font-weight: 700;}
.contact-link-primary{background: var(--muted); color: var(--bg);}.contact-link-primary:hover {background: var(--text);}
.contact-link-secondary{background: transparent;}.contact-link-secondary:hover{background: #263830; color: #a8d6b5;}

.contact-page{
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
    min-height: calc(100vh - 75px); border-top: 0; padding: 55px 236.4px;}
.contact-head{color: var(--accent); font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; margin-top: 5px; padding-left: 0.2px; margin-bottom: 40px;}
.contact-page h2{max-width: 1120px; margin-bottom: 35px; font-size: 4rem;}
.contact-intro{max-width: 1140px; color: var(--muted);}




@media (max-width: 900px) {
  section.hm { grid-template-columns: 1fr; }
  .hm.text { padding: 85px clamp(22px, 6vw, 70px) 70px; }
  .hm.image { min-height: 560px; }
}
@media (max-width: 650px){
    .top{padding: 10px 10px;}
    nav{gap: 3px;} nav a{padding: 5px 5px;
    font-size: 0.9rem;}
    
    h1 { font-size: clamp(3rem, 13vw, 4.8rem); }
  .hm.image { min-height: 480px; height: 65svh; }
  .section-heading, .page-heading { padding-top: 75px; }
  .projects, .art, .detailgrid, .profil{grid-template-columns: 1fr;}
  .project { min-height: 250px; }
  .detail { padding-top: 55px; }
    .detail h1{max-width: 600px; margin-top: -10px; margin-bottom: 40px; font-size: 2.5rem; letter-spacing: .025px;}
    .button.back{Display: none;}
    .detailgrid {gap: 15px; margin-bottom: -30px;}
  .art img { height: auto; max-height: 710px; }
  .art figcaption { padding: 14px; font-size: .8rem; }
  .art figcaption span:last-child { font-size: .68rem; }
    .profil{padding-top: 75px 20px; margin-left: 0;}
    .photo{Display: none;}
    .contact{padding-left: 55px; padding-right: 55px;}
    .contact h2{font-size: 1.25rem; letter-spacing: .025px;}
    .contact{padding-left: 55px; padding-right: 55px;}
    .contact-page{padding-left: 55px; padding-right: 55px;}
    .contact h2{font-size: 1.25rem; letter-spacing: .025px;}
    .contact-page h2{font-size: 1.75rem; letter-spacing: .025px;}}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hm.image > img, .project { transition: none; }
  .contact-link{transition: none;}
}


.hm.image > .reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Weicher Übergang vom Seitenhintergrund zum Startseitenbild */
.hm.image::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(90px, 12vw, 180px);
  z-index: 1;
  pointer-events: none;
  background: var(--bg);

  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    rgb(0 0 0 / 80%) 30%,
    rgb(0 0 0 / 25%) 70%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0%,
    rgb(0 0 0 / 80%) 30%,
    rgb(0 0 0 / 25%) 70%,
    transparent 100%
  );
}

.hm.image figcaption {
  z-index: 2;
}

section.hm {
  display: flex;
  flex-direction: column;
  max-width: none;
  min-height: 0;
}

.hm.image {
  order: -1;             /* Bild vor dem Text */
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.hm.image > img,
.hm.image > .reveal {
  object-fit: contain;   /* vollständiges Bild statt Beschnitt */
}

.hm.image::after {
  content: none;         /* bisherigen Verlauf an der linken Kante entfernen */
}

.top nav a {
  transition: none;
}

.top nav a:focus-visible {
  outline: none;
}

.opening > .hm.image {
  position: sticky;
  z-index: 0;
  top: var(--topbar-height, 76px);
}

#content{position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--line);}

html.layout-pending {
  background: var(--bg);
}

html.layout-pending .opening,
html.layout-pending #content {
  visibility: hidden;
}
