/* Variante A – 1:1-Nachbau der WordPress-Seite (Theme Pubvitrum)
   Abstände wurden am Original bei 1400 px Breite gemessen (Block-Gap 24 px, Spacer 100/150/180/200 px). */

:root {
  --fg: #000;
  --heading: #fff;
  --wide: 1200px;
  --content: 1050px;
  --gutter: 24px;
  --gap: 24px;        /* WordPress block gap */
  --sp-100: 100px;
  --sp-150: 150px;
  --sp-180: 180px;
  --sp-200: 200px;
}

@media (max-width: 640px) {
  :root { --sp-100: 50px; --sp-150: 75px; --sp-180: 90px; --sp-200: 100px; --gutter: 20px; }
}

body {
  color: var(--fg);
  background: #d9d9d9 linear-gradient(1deg, #e5f2e1 0%, #c7b1b1 100%) no-repeat;
  min-height: 100vh;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);  /* 32px desktop */
  line-height: 1.5;
}

/* header: 36px padding, 12.8px bold title, 1px line */
.site-header {
  padding: 36px var(--gutter);
  border-bottom: 1px solid var(--fg);
}
.site-title {
  display: block;
  width: min(var(--wide), 100%);
  margin: 0 auto;
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 600;
  text-decoration: none;
}

/* layout: wide = 1200px, content = 1050px, both without inner padding at desktop */
.wide {
  width: min(var(--wide), 100% - 2 * var(--gutter));
  margin: 0 auto;
}
.content {
  width: min(var(--content), 100% - 2 * var(--gutter));
  margin: 0 auto;
}
.half { width: 50%; }
@media (max-width: 1024px) { .half { width: 100%; } }

/* headings */
h1, h2 {
  color: var(--heading);
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
h1 { font-size: clamp(2rem, 1.2rem + 4vw, 3.5rem); }        /* 56px */
h2 { font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.625rem); } /* 42px */

/* intro: main padding 45 + gap 24 + spacer 200 + gap 24 = 293 */
.intro { padding-top: calc(45px + var(--gap) + var(--sp-200) + var(--gap)); }
.intro h1 { width: 90%; }
.company { color: var(--fg); transition: color 0.3s ease; cursor: pointer; }   /* Original: schwarz, Hover weiß */
.company:hover { color: #fff; }

/* latest project: spacer 200 → heading → spacer 100 → image */
.latest h2 { margin-top: var(--sp-200); margin-bottom: var(--sp-100); }
.hero { width: min(1115px, 100%); margin: 0 auto; }
.hero a { display: block; }
.hero-img { width: 100%; }

/* meta + tags: each block gap 24 */
.meta {
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: var(--gap);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: var(--gap);
}
.tags li {
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--fg);
  background: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  padding: 16px;
  transition: all 0.3s ease-in-out;
}
.tags li:hover { background: transparent; }

/* gallery (Jetpack tiled gallery, 4px gaps, 5px radius) */
.gallery { margin-top: var(--gap); }
.g-row { display: flex; gap: 4px; margin-bottom: 4px; }
.g-row:last-child { margin-bottom: 0; }
.g-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.g-col img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.g-col img + img { flex: 1; }

/* about: spacer 150 + gap → heading → spacer 100 + gap → text → spacer 180 → heading */
.about { padding-top: calc(var(--sp-150) + var(--gap) + var(--gap)); }  /* Galerie-Padding 16 + 7 im Original */
.about h2 { margin-bottom: calc(var(--sp-100) + var(--gap)); }
.about-text { line-height: 1.5; }
.about .featured-heading { margin-top: calc(var(--sp-180) - var(--gap)); margin-bottom: 0; }

/* featured projects: heading → spacer 100 + gap → video */
.projects { padding-top: calc(var(--sp-100) + var(--gap)); }
.project { padding-bottom: calc(var(--sp-200) + var(--gap)); }
.project .video { width: 100%; aspect-ratio: 1385 / 792; }  /* VideoPress-Iframe-Hoehe im Original */
.credits {
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: right;
  margin-top: var(--gap);
  word-break: break-all;
}
.credits a { text-decoration: none; }
.credits a:hover { text-decoration: underline; }

/* let's talk: black heading, line runs in from the left on hover, text turns white */
.talk { padding-bottom: var(--sp-100); }
.talk h2 { color: var(--fg); }
.talk a {
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}
.talk a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}
.talk a:hover { color: #fff; }
.talk a:hover::after { width: 100%; background-color: #fff; }

/* fixed white haze at the bottom edge (Original: .bottom-blur) */
.bottom-blur {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 9999;
}

/* awards (e.g. Red Dot, iF) below the tags */
.awards { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: var(--gap); }
.awards img { height: 72px; width: auto; }
.awards li { display: flex; flex-direction: column; gap: 6px; }
.awards__label { font-size: 0.8rem; line-height: 1.3; }

/* selection: headings are white on the gradient, the company names inside them are black */
h1::selection, h2::selection, h1 *::selection, h2 *::selection { background: #000; color: #fff; }
.company::selection { background: #fff; color: #000; }
