/* ==========================================================================
   Heuser.Heuser Architektur — heuserheuser.de
   Statischer Nachbau der Wix-Seite (1:1), modernes HTML5/CSS3
   ========================================================================== */

/* Mulish (variable Schrift, selbst gehostet – DSGVO-konform)
   dient als freie Alternative zu Avenir LT (35 Light / 85 Heavy) */
@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #f07900;      /* Quadrate, Akzent */
  --schwarz: #0a100d;     /* dunkle Quadrate, Navigation, Kontakt/Impressum-Text */
  --text: #242528;        /* Fließtext */
  --tile-gap: min(119px, 9.3vw);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 300 16px/1.31 Mulish, "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(910px, 100% - 48px);
  margin-inline: auto;
}

/* nur für Screenreader sichtbar */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Kopfbereich
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  padding: 56px 0 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-square {
  display: block;
  width: 14px;
  height: 14px;
  background: var(--orange);
  transition: background-color 0.2s;
}

.brand:hover .brand-square,
.brand:focus-visible .brand-square {
  background: var(--schwarz);
}

.site-nav {
  display: flex;
  gap: clamp(32px, 6vw, 76px);
}

.site-nav a {
  color: var(--schwarz);
  text-decoration: none;
  transition: color 0.2s;
}

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

main { padding: 60px 0 140px; }

/* --------------------------------------------------------------------------
   Startseite
   -------------------------------------------------------------------------- */

.home-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 340px);
}

.home-logo img {
  width: min(600px, 100%);
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Quadrat-Kacheln
   -------------------------------------------------------------------------- */

.tile {
  aspect-ratio: 1;
  padding: 10px;
  color: #fff;
  font-size: clamp(15px, 1.3vw + 4px, 20px);
  line-height: 1.2;
  font-weight: 800;
}

.tile :is(h1, h2, p) {
  margin: 0;
  font: inherit;
  color: inherit;
}

.tile--orange { background: var(--orange); }
.tile--schwarz { background: var(--schwarz); }

a.tile {
  display: block;
  text-decoration: none;
  transition: opacity 0.2s;
}

a.tile:hover,
a.tile:focus-visible {
  opacity: 0.85;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tile-gap);
}

/* --------------------------------------------------------------------------
   Büro
   -------------------------------------------------------------------------- */

.office-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tile-gap);
  align-items: start;
}

.col-text {
  margin-top: 50px;
}

.col-text p { margin: 0 0 21px; }
.col-text p:last-child { margin-bottom: 0; }

.ink { color: var(--schwarz); }

.col-text a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

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

.impressum {
  margin-top: 118px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tile-gap);
}

.impressum-text {
  grid-column: 1 / -1;
  max-width: 560px;
}

/* --------------------------------------------------------------------------
   Projekt-Detailseiten
   -------------------------------------------------------------------------- */

.project {
  display: grid;
  grid-template-columns: 223fr 566fr;
  gap: min(120px, 9.4vw);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: min(118px, 9.2vw);
}

.tile--back { margin-top: auto; }

.gallery {
  display: grid;
  gap: 60px;
  align-content: start;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Responsiv
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .site-header { padding: 28px 0 16px; }

  main { padding: 40px 0 90px; }

  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: min(40px, 6vw);
  }

  .office-cols,
  .impressum {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .col-text { margin-top: 32px; }

  .office-cols .tile,
  .impressum .tile {
    max-width: 223px;
  }

  .impressum { margin-top: 80px; }

  .project {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .project-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: min(40px, 6vw);
  }

  .tile--back { margin-top: 0; }

  .gallery { gap: 32px; }
}
