/* Hinsen & Reith – statische Website
   Aufbau: 1 Schriften · 2 Grundlagen · 3 Kopf · 4 Bausteine · 5 Startseite
           6 Projektseite · 7 Karussell · 8 Fuß · 9 Tablet · 10 Handy */

/* 1 Schriften ---------------------------------------------------------- */
@font-face {
  font-family: "TT Norms";
  src: url("../fonts/TTNorms-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "TT Norms";
  src: url("../fonts/TTNorms-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

/* 2 Grundlagen --------------------------------------------------------- */
:root {
  --schwarz: #000;
  --grau-flaeche: #f2f2f2;
  --grau-text: #999;
  --grau-menue: #878787;
  --linie: #333;
  --punkt: #ccc;
  --punkt-aktiv: #52b3d9;
  --abstand: 43px;      /* Grundabstand zwischen den Reihen */
  --kopf-hoehe: 85px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--schwarz);
  font-family: "TT Norms", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6, .vorspann, .fuss-firma {
  margin: 0;
  padding-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -1px;
  text-transform: uppercase;
}
h1 { font-size: 40px; }
h2 { font-size: 34px; }
h3 { font-size: 29px; }
h4 { font-size: 18px; }
h5 { font-size: 21px; }
h6, .vorspann { font-size: 18px; }

p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }
strong { font-weight: 700; }

ul { margin: 0; padding: 0 0 17px 17px; line-height: 26px; }
ul.eingerueckt { padding: 0 0 34px 34px; }

.nur-vorlesen {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* 3 Kopf --------------------------------------------------------------- */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  box-shadow: 0 12px 10px -14px rgba(0, 0, 0, .3);
}
.kopf-innen {
  display: flex; justify-content: space-between; align-items: flex-start;
  max-width: 1480px; height: var(--kopf-hoehe);
  margin: 0 auto; padding: 14px 2% 0;
}
.logo img { width: clamp(180px, 19.5vw, 281px); }
.menue { display: flex; gap: clamp(24px, 5.28vw, 76px); padding-top: 9px; }
.menue img { width: clamp(120px, 11.6vw, 167px); }
.menue span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.menue-knopf { display: none; }

/* 4 Bausteine ---------------------------------------------------------- */
.abschnitt { padding: var(--abstand) 0; }
.abschnitt[id] { scroll-margin-top: var(--kopf-hoehe); }

.inhalt { width: 80%; max-width: 1150px; margin: 0 auto; }
.reihe { padding: var(--abstand) 0; }

.text-mitte { text-align: center; }
.text-schmal > * { max-width: 90%; margin-left: auto; margin-right: auto; }

.spalten-2, .spalten-3 { display: grid; column-gap: 5.5%; row-gap: 30px; }
.spalten-2 { grid-template-columns: 1fr 1fr; }
.spalten-3 { grid-template-columns: repeat(3, 1fr); }

.bild-voll img { width: 100%; }

/* 5 Startseite --------------------------------------------------------- */
.hero-start { padding-top: 1px; }
.hero-start img { width: 80%; margin: 0 auto; }

.abschnitt-intro .reihe { padding-bottom: 4vw; }

.team {
  position: relative;
  aspect-ratio: 1150 / 629;
  margin-top: 29px;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 5.5%;
}
.team-bild { position: absolute; inset: 0; }
.team-bild img { width: 100%; height: 100%; object-fit: cover; }
.team-person { position: relative; }
.team-links { align-self: end; max-width: 94%; padding-right: 20px; }
.team-rechts { align-self: start; padding-left: 9.4%; }

.bildreihe {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 173px 0 146px;
}
.bildreihe img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.abschnitt-leistung { padding-top: 0; }
.abschnitt-orte { padding: 0; }
.orte-intro { max-width: 76%; margin: 0 auto 2.75%; }

/* 6 Projektseite ------------------------------------------------------- */
.hero-projekt { max-height: 72vh; overflow: hidden; }
.hero-projekt img { width: 100%; }

.projekt-kopf { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3%; }
.projekt-text { border-right: 1px solid var(--linie); }

/* Foto mit Marke „Visualisierung“ / „Umsetzung“ unten links */
.bild-marke { position: relative; margin: 0; aspect-ratio: 2 / 1; overflow: hidden; }
.bild-marke img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Impressum, Datenschutz */
.rechtstext { padding-top: calc(var(--abstand) + 32px); overflow-wrap: break-word; }
.rechtstext a { text-decoration: underline; }
.impressum h5 { margin-top: 34px; }

/* 7 Karussell ---------------------------------------------------------- */
.karussell {
  --sichtbar: 4;        /* Karten nebeneinander */
  overflow: hidden;
  padding: var(--abstand) 0;
}
.karussell-bahn {
  display: flex; gap: 2px;
  transition: transform .6s ease;
  touch-action: pan-y;
  cursor: grab;
}
.karte {
  flex: 0 0 calc((100% - (var(--sichtbar) - 1) * 2px) / var(--sichtbar));
  background: var(--grau-flaeche);
  /* wie im Original: Systemschrift Tahoma statt Hausschrift */
  font-family: Tahoma, Verdana, "TT Norms", sans-serif;
  font-weight: 400;
  user-select: none;
}
.karte-bild { display: block; aspect-ratio: 2 / 1; overflow: hidden; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.karte-text { padding: 15px 20px 7px; }
.karte-rubrik { padding: 0; font-size: 14px; line-height: 24px; color: var(--grau-text); }
.karte-titel {
  margin: 0 0 10px; padding: 0 0 10px;
  font-size: 16px; font-weight: 700; line-height: 30px;
  letter-spacing: normal; text-transform: none;
}
.karte-mehr {
  display: inline-block; margin: 10px 0 14px; padding-bottom: 5px;
  font-size: 14px; line-height: 24px;
}
.karussell-punkte { display: flex; justify-content: center; gap: 6px; margin-top: 26px; height: 34px; }
.karussell-punkte button {
  width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%;
  background: var(--punkt); cursor: pointer;
}
.karussell-punkte button[aria-current="true"] { background: var(--punkt-aktiv); }
.abschnitt + .karussell { padding-top: 0; padding-bottom: 62px; }   /* auf Projektseiten direkt unter den Fotos */

/* 8 Fuß ---------------------------------------------------------------- */
.fuss { background: var(--grau-flaeche); padding: var(--abstand) 0; }
.fuss-innen { display: flex; justify-content: space-between; align-items: flex-end; padding: var(--abstand) 0; }
.fuss-firma { font-size: 20px; }
.fuss-links { display: flex; gap: 80px; padding-bottom: 1.5em; }


/* 9 Tablet (bis 980 px): Spalten untereinander ------------------------- */
@media (max-width: 980px) {
  :root { --abstand: 30px; }
  body { font-size: 15px; }
  .abschnitt { padding: 50px 0; }
  .abschnitt-leistung { padding-top: 0; }
  .abschnitt-orte { padding: 0; }

  .hero-start img { width: 100%; }
  .spalten-2, .spalten-3, .projekt-kopf { grid-template-columns: 1fr; }
  .text-schmal > * { max-width: none; }
  .orte-intro { max-width: none; margin-bottom: 30px; }

  .team { display: block; aspect-ratio: auto; margin-top: 0; padding-top: var(--abstand); }
  .team-bild { position: static; }
  .team-bild img { height: auto; }
  .team-person { max-width: none; padding: 30px 0 0; }
  .team-links { padding-top: 60px; }
  .bildreihe { margin: 169px 0 141px; }

  .projekt-text { border-right: 0; padding-bottom: 30px; }

  .fuss { padding: 50px 0; }
  .fuss-innen { display: block; }
  .fuss-links { justify-content: flex-end; gap: 10px; padding: 60px 0 0; }
}
@media (max-width: 1200px) { .karussell { --sichtbar: 3; } }
@media (max-width: 736px)  { .karussell { --sichtbar: 2; } }
@media (max-width: 480px)  { .karussell { --sichtbar: 1; } }

/* 10 Handy (bis 767 px): Menü-Knopf, kleinere Schrift, linksbündig ----- */
@media (max-width: 767px) {
  :root { --abstand: 26px; --kopf-hoehe: 50px; }
  body { font-size: 13px; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 17px; }
  h5 { font-size: 12px; }
  h6, .vorspann { font-size: 11px; }
  .abschnitt { padding: 10px 0; }
  .abschnitt-leistung { padding-top: 0; }
  .abschnitt-orte { padding: 0; }
  .text-mitte { text-align: left; }
  .abschnitt-leistung .text-schmal > * { max-width: 90%; margin-left: 0; }
  .team-links { padding-top: 41px; }
  .bildreihe { margin: 113px 0 96px; }

  .kopf { box-shadow: none; }
  .kopf-innen { position: relative; align-items: center; width: 80%; padding: 0; }
  .logo img { width: 120px; }
  .menue-knopf {
    display: block; width: 32px; height: 32px; margin-right: 5px; padding: 6px 4px;
    border: 0; background: none; cursor: pointer;
  }
  .menue-knopf span { display: block; height: 2px; margin: 4px 0; background: var(--grau-menue); }
  .menue {
    display: none;
    position: absolute; top: 63px; left: 0; right: 0;
    padding: 5%;
    background: #fff; border-top: 3px solid var(--grau-menue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  }
  .menue.offen { display: block; }
  .menue img { display: none; }
  .menue span { position: static; width: auto; height: auto; clip-path: none; }
  .menue a {
    display: block; padding: 10px 5%;
    font-size: 14px; color: rgba(0, 0, 0, .6);
    border-bottom: 1px solid rgba(0, 0, 0, .03);
  }

  .karte-titel { font-size: 14px; }
  .fuss { padding: 10px 0; }
  .fuss-firma { font-size: 14px; }
  .fuss-links { padding: 71px 0 33px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
