
/* ==========================================================
   HEUSER.HEUSER ARCHITEKTUR
   Gemeinsame Gestaltung der Website
   ========================================================== */

/* Schrift */

@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* Grundeinstellungen */

:root {
  --orange: #f07900;
  --schwarz: #0a100d;
  --text: #242528;
  --tile-gap: min(119px, 9.3vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Einheitliche Seitenbreite auf Desktop */

@media (min-width: 761px) {
  html {
    scrollbar-gutter: stable;
  }
}

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;
}

/* ==========================================================
   1. KOPFBEREICH UND NAVIGATION
   ========================================================== */

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

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

/* Oranges Quadrat auf der Startseite */

.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);
}

/* Kleines Logo auf den Unterseiten */

.site-header .brand img {
  display: block;
  width: 200px;
  height: auto;
}

/* Navigation */

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

/* Navigation am Schriftzug des Logos ausrichten */

.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);
}

/* Allgemeiner Seiteninhalt */

main {
  padding: 60px 0 140px;
}

/* ==========================================================
   2. STARTSEITE
   ========================================================== */

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

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

/* Definierte Logobreite nur für Desktop */

@media (min-width: 761px) {
  .home-main .home-logo {
    display: block;
    width: 600px;
    max-width: 100%;
    flex-shrink: 0;
  }
}

/* Seitenhöhe und unterer Abstand – nur Desktop */

@media (min-width: 761px) {
  .home-page {
    padding-bottom: 120px;
  }
}

/* ==========================================================
   3. ORANGEFARBENE QUADRATE
   ========================================================== */

.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);
}

/* Links auf noch nicht umgestellten Projektseiten */

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

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

/* ==========================================================
   4. BÜRO
   ========================================================== */

.office-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}


/* Büro – Bilder beim Hover */

.office-tile {
  position: relative;
  overflow: hidden;
}

/* Bilder der drei Bereiche */

.office-tile--kontakt {
  --office-photo: url("../img/buero-kontakt.jpg");
}

.office-tile--ueber-uns {
  --office-photo: url("../img/buero-ueber-uns.jpg");
}

.office-tile--team {
  --office-photo: url("../img/buero-team.jpg");
}

/* Bild zunächst unsichtbar */

.office-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--office-photo);
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Überschrift über dem Bild */

.office-tile h2 {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Hover auf Geräten mit Maus */

@media (hover: hover) {
  .office-tile:hover::before {
    opacity: 1;
  }

  .office-tile:hover h2 {
    opacity: 0;
  }
}

/* Geräte ohne Hover, z. B. Smartphones */

@media (hover: none) {
  .office-tile::before {
    opacity: 1;
  }

  .office-tile h2 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 10px;
    background: rgba(240, 121, 0, 0.92);
    color: #fff;
  }
}

.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);
}


/* Lange Studienabschlüsse in der Teamspalte */

.team-degree {
  font-size: 15px;
  white-space: nowrap;
}


/* ==========================================================
   5. PROJEKTÜBERSICHT
   ========================================================== */

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

/* Quadratische Schwarz-Weiß-Bilder */

.project-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.3s ease;
}

/* Orangefarbener Hover-Effekt */

.project-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: var(--orange);
  color: #fff;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 800;
  line-height: 1.25;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-card:hover .project-title,
.project-card:focus-visible .project-title {
  opacity: 1;
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.03);
}

/* ==========================================================
   6. PROJEKT-DETAILSEITEN
   ========================================================== */

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

/* Bisheriges Layout für noch nicht umgestellte Seiten */

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

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

/* Bildergalerie */

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

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

/* Neues reduziertes Layout */

.project-page--simple .project-info {
  display: block;
}

.project-page--simple .project-info .tile {
  width: 100%;
  max-width: 223px;
}

/* Projektinformationen als normaler Text */

.project-details {
  margin-top: 36px;
  color: var(--text);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.31;
}

.project-details p {
  margin: 0 0 21px;
}

/* Zurück-Pfeile zur Projektübersicht */

.project-back {
  display: inline-block;
  color: var(--orange);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.2s;
}

.project-back:hover {
  opacity: 0.6;
}

.project-back:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.project-back--top {
  margin-bottom: 28px;
}

.project-back--bottom {
  margin-top: 42px;
}

/* ==========================================================
   7. IMPRESSUM UND DATENSCHUTZ
   ========================================================== */

.legal-page {
  max-width: 560px;
}

.legal-page h1 {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.31;
  color: var(--text);
  margin: 0 0 30px;
}

.legal-page h2 {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.31;
  color: var(--text);
  margin: 0;
}

.legal-page p {
  margin: 0 0 21px;
}

.legal-page a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================
   8. FUSSZEILE
   ========================================================== */

.site-footer {
  text-align: center;
  padding: 0 20px 28px;
  font-size: 13px;
  font-weight: 300;
  color: #666;
}

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

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--orange);
  text-decoration: underline;
}

/* Kleines oranges Quadrat zwischen den Links */

.site-footer span {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--orange);
  margin: 0 2px;
  font-size: 0;
  vertical-align: 3px;
}

/* ==========================================================
   9. RESPONSIVE DARSTELLUNG
   ========================================================== */

@media (max-width: 760px) {

  /* Kopfbereich */

  .site-header {
    padding: 28px 0 16px;
  }

  main {
    padding: 40px 0 90px;
  }

  /* Büro */

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

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

  .office-cols .tile {
  width: 100%;
  max-width: none;
}

  /* Projektübersicht */

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  /* Projekt-Detailseiten */

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

  /* Altes Projektlayout */

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

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

  .gallery {
    gap: 32px;
  }
}

/* Projektübersicht auf kleinen Handys */

@media (max-width: 480px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}


/* Projektnamen auf Geräten ohne Hover */

@media (hover: none) {
  .project-title {
    inset: auto 0 0;
    min-height: 0;
    padding: 12px 10px;
    opacity: 1;
    background: rgba(240, 121, 0, 0.92);
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .project-title br {
    display: none;
  }
}
