/* ============================================================
   HH Cinar GmbH — zentrales Stylesheet
   Farben und Typografie: hh-cinar-styleguide.md (verbindlich)
   Layout-Haltung: editoriale Referenz (Hairlines, CAPS-Eyebrows,
   asymmetrische Splits, großzügiger Weißraum)
   ============================================================ */

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben (Styleguide) */
  --red:        #C8102E;
  --red-dark:   #a80d25;
  --dark:       #1A1A1A;
  --ink:        #2C2C2C;
  /* Styleguide-Wert #888888 auf Weiß erreicht nur 3,5:1 Kontrast.
     Für WCAG AA (Brief §6) auf #6b6b6b abgedunkelt, gleiche Anmutung. */
  --mid:        #6b6b6b;
  --light:      #F4F4F2;
  --border:     #E0DED9;
  --white:      #FFFFFF;

  /* Typografie */
  --font: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --fs-display: clamp(2rem, 4.6vw, 3.5rem);      /* H1 48–60 / 32–40 */
  --fs-h2:      clamp(1.5rem, 3vw, 2.375rem);    /* H2 32–40 / 24–28 */
  --fs-h3:      clamp(1.125rem, 1.8vw, 1.5rem);  /* H3 22–26 / 18–22 */
  --fs-body:    1rem;                            /* 16px */
  --fs-small:   0.8125rem;                       /* 13px */
  --lh-body:    1.65;
  --ls-caps:    0.07em;

  /* Spacing (Seitenränder wie Referenz: 20px → 55px) */
  --side: 20px;
  --container: 1360px;
  --section: clamp(4.5rem, 9vw, 8rem);
  --gap: clamp(1.5rem, 3vw, 3rem);

  /* Radius (Styleguide) */
  --r-btn: 4px;
  --r-card: 8px;
  --r-pill: 20px;

  --header-h: 76px;
}
@media (min-width: 767px)  { :root { --side: 36px; } }
@media (min-width: 1280px) { :root { --side: 55px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -120px;
  z-index: 200;
  background: var(--dark);
  color: var(--white);
  padding: 12px 20px;
  font-size: 14px;
  border-radius: var(--r-btn);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--side);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.62); }

/* ---------- Typo-Bausteine ---------- */
.display {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--ink);
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.h2--caps {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.15;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
  flex: none;
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
}
.muted { color: var(--mid); }
.small { font-size: var(--fs-small); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 28px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }
.btn--secondary { background: transparent; color: var(--red); border-color: var(--red); }
.btn--secondary:hover { background: var(--red); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--dark); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--red);
  transition: color .18s ease;
}
.textlink:hover { color: var(--red); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo { display: inline-flex; align-items: center; flex: none; }
.header__logo img { height: 44px; width: auto; }
.header__logo .logo-light { display: none; }

.nav { display: none; }
.header__cta { display: none; }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform .22s ease, opacity .22s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile-Menü */
.mobilenav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--white);
  padding: 32px var(--side) 48px;
  overflow-y: auto;
}
.mobilenav.is-open { display: block; }
.mobilenav ul { list-style: none; }
.mobilenav li { border-bottom: 1px solid var(--border); }
.mobilenav a {
  display: block;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.mobilenav a[aria-current="page"] { color: var(--red); }
.mobilenav a.btn {
  display: inline-flex;
  justify-content: center;
  margin-top: 28px;
  width: 100%;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}
body.nav-open { overflow: hidden; }
body.nav-open .nav__toggle span { background: var(--ink); }

/* Overlay-Header über dem Full-Bleed-Hero (nur Startseite).
   Transparent über dem Foto, blendet beim Scrollen bzw. bei offenem
   Mobilmenü als solider weißer Header ein (Klasse .is-solid via JS). */
.header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.header--overlay .header__logo .logo-dark { display: none; }
.header--overlay .header__logo .logo-light { display: block; }
.header--overlay .nav a { color: #fff; border-bottom-color: transparent; }
.header--overlay .nav a:hover { color: #fff; opacity: .68; }
.header--overlay .nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.header--overlay .nav__toggle span { background: #fff; }
.header--overlay .header__cta { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }

.header--overlay.is-solid {
  background: var(--white);
  border-bottom-color: var(--border);
}
.header--overlay.is-solid .header__logo .logo-dark { display: block; }
.header--overlay.is-solid .header__logo .logo-light { display: none; }
.header--overlay.is-solid .nav a { color: var(--ink); }
.header--overlay.is-solid .nav a:hover { color: var(--red); opacity: 1; }
.header--overlay.is-solid .nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.header--overlay.is-solid .nav__toggle span { background: var(--ink); }
.header--overlay.is-solid .header__cta { box-shadow: none; }

@media (min-width: 900px) {
  .nav__toggle, .mobilenav { display: none !important; }
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.6vw, 38px);
    list-style: none;
    margin: 0 auto;
  }
  .nav a {
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color .18s ease;
  }
  .nav a:hover { color: var(--red); }
  .nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
  .header__cta { display: inline-flex; min-height: 44px; padding: 10px 22px; }
}

/* ---------- Hero: Full-Bleed-Diashow ---------- */
.hero-full {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-full__media { position: absolute; inset: 0; z-index: 0; }
.hero-full__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-full__img.is-active { opacity: 1; }
/* Scrim für Textkontrast (WCAG): oben/unten dunkler, damit Header und Text lesbar bleiben */
.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.28) 26%, rgba(0,0,0,.30) 62%, rgba(0,0,0,.62) 100%);
}
.hero-full__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  padding-block: calc(var(--header-h) + 40px) 96px;
}
.hero-full__content .display {
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-full__content .lead {
  color: rgba(255, 255, 255, 0.94);
  max-width: 48ch;
  margin: 1.5rem auto 2.25rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}
.eyebrow--center { justify-content: center; color: rgba(255, 255, 255, 0.85); }

.hero-full__dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.hero-full__dot {
  width: 40px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background-color .25s ease;
}
.hero-full__dot.is-active { background: var(--white); }
.hero-full__dot:hover { background: rgba(255, 255, 255, 0.75); }
.hero-full__dot:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

@media (min-width: 900px) {
  .hero-full__content { padding-block: var(--header-h) 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-full__img { transition: none; }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.pagehead {
  border-bottom: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.pagehead .display { margin-bottom: 1.5rem; }
.pagehead__grid { display: grid; gap: 1.5rem; }
.pagehead p { max-width: 62ch; }
@media (min-width: 900px) {
  .pagehead__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}

/* ---------- Leistungs-Index (Signature) ---------- */
.index-split {
  display: grid;
  gap: var(--gap);
  align-items: start;
}
@media (min-width: 900px) {
  .index-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); }
  .index-split__media { position: sticky; top: calc(var(--header-h) + 24px); }
}
.index-split__intro { max-width: 52ch; margin-bottom: 2.5rem; }
.index-split__intro .h2 { margin-bottom: 1rem; }
.index-split__media img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--r-card);
  aspect-ratio: 4 / 5;
}

.index-list { list-style: none; border-top: 1px solid var(--border); }
.index-list li { border-bottom: 1px solid var(--border); }
.index-list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 4px;
  text-decoration: none;
  color: var(--ink);
  transition: color .18s ease;
}
.index-list a:hover { color: var(--red); }
.index-list .num {
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: 0.05em;
  flex: none;
  width: 26px;
}
.index-list .label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.index-list .arrow {
  margin-left: auto;
  color: var(--red);
  font-weight: 600;
  transition: transform .18s ease;
}
.index-list a:hover .arrow { transform: translateX(4px); }

/* ---------- Bild/Text-Split ---------- */
.split {
  display: grid;
  gap: var(--gap);
  align-items: center;
}
.split__media img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--r-card);
}
.split__copy .h2 { margin-bottom: 1.25rem; }
.split__copy p + p { margin-top: 1rem; }
.split__copy .textlink, .split__copy .btn { margin-top: 2rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 6.5rem); }
  .split--media-right .split__media { order: 2; }
}

/* ---------- Dunkle Section ---------- */
.dark-section {
  background: var(--dark);
  color: var(--white);
}
.dark-section .h2, .dark-section .h3, .dark-section .display { color: var(--white); }
.dark-section .eyebrow { color: rgba(255, 255, 255, 0.65); }
.dark-section p { color: rgba(255, 255, 255, 0.82); }
.dark-section .quotemark {
  display: block;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.dark-section blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}
.dark-section blockquote footer {
  margin-top: 1.25rem;
  font-size: var(--fs-small);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
}
.dark-section .textlink { color: var(--white); }
.dark-section .textlink:hover { color: var(--red); }
.dark-section a:focus-visible { outline-color: var(--white); }

/* ---------- Rote CTA-Section ---------- */
.cta-section {
  background: var(--red);
  color: var(--white);
}
.cta-section .h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255, 255, 255, 0.9); max-width: 56ch; }
.cta-section__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.cta-section__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-section a:focus-visible { outline-color: var(--white); }
@media (min-width: 900px) {
  .cta-section__grid { grid-template-columns: minmax(0, 7fr) auto; }
}

/* ---------- Projekt-Karten ---------- */
.project-grid {
  display: grid;
  gap: var(--gap);
}
@media (min-width: 700px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.project-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-card__meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--red);
}
.project-card__body p { color: var(--mid); font-size: 15px; }

/* Platzhalter-Kachel für kommende Projekte */
.project-card--placeholder .project-card__media {
  aspect-ratio: 4 / 3;
  background: var(--light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.project-card--placeholder .project-card__media span {
  font-size: var(--fs-small);
  color: var(--mid);
  max-width: 26ch;
}

/* Vorher/Nachher-Feature */
.feature-project { display: grid; gap: var(--gap); align-items: start; }
.feature-project__media img { border-radius: var(--r-card); width: 100%; object-fit: cover; }
.feature-project__facts {
  list-style: none;
  border-top: 1px solid var(--border);
  margin-top: 1.75rem;
}
.feature-project__facts li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.feature-project__facts .k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--mid);
  padding-top: 3px;
  flex: none;
}
@media (min-width: 900px) {
  .feature-project { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); }
}

/* ---------- Leistungs-Detailzeilen ---------- */
.service-rows { border-top: 1px solid var(--border); }
.service-row {
  display: grid;
  gap: 12px;
  padding: clamp(1.75rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--border);
}
.service-row__head { display: flex; align-items: baseline; gap: 18px; }
.service-row__head .num {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.05em;
  flex: none;
  width: 30px;
}
.service-row p { max-width: 62ch; }
.service-row .for {
  font-size: var(--fs-small);
  color: var(--mid);
}
.service-row .for strong {
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  font-size: 11.5px;
  color: var(--ink);
}
@media (min-width: 900px) {
  .service-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); }
  .service-row__body { padding-top: 4px; }
}

/* Saisonales Aktions-Modul (austauschbar) */
.promo {
  border: 1.5px solid var(--red);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: grid;
  gap: 1.25rem;
}
.promo .h3 { color: var(--ink); }
.promo__tag {
  display: inline-block;
  width: fit-content;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  border-radius: var(--r-pill);
  padding: 5px 14px;
}
@media (min-width: 900px) {
  .promo { grid-template-columns: 1fr auto; align-items: center; }
  .promo__text { max-width: 60ch; }
  .promo__tag { grid-column: 1 / -1; }
}

/* ---------- Team ---------- */
.person { display: grid; gap: var(--gap); align-items: center; }
.person__media img { border-radius: var(--r-card); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.person__copy .h3 { margin-bottom: 2px; }
.person__role {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}
.person__copy p + p { margin-top: 0.9rem; }
@media (min-width: 900px) {
  .person { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 5vw, 5.5rem); }
  .person--flip .person__media { order: 2; }
}

.team-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.team-card__media {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.team-card__media img { width: 100%; height: 100%; object-fit: cover; }
/* Initialen-Platzhalter, bis echte Portraits vorliegen */
.team-card__media--placeholder {
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__media--placeholder span {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}
.team-card h3 { margin-top: 14px; font-size: 17px; font-weight: 600; }
.team-card .role { font-size: var(--fs-small); color: var(--mid); margin-top: 2px; }

/* ---------- Jobs: Vorteilszeilen ---------- */
.benefit-rows { border-top: 1px solid var(--border); }
.benefit-row {
  display: grid;
  gap: 8px;
  padding: clamp(1.25rem, 3vw, 1.9rem) 0;
  border-bottom: 1px solid var(--border);
}
.benefit-row h3 { font-size: 17px; font-weight: 600; }
.benefit-row p { color: var(--mid); font-size: 15px; max-width: 62ch; }
@media (min-width: 900px) {
  .benefit-row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); }
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: calc(var(--gap) * 1.4); align-items: start; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); }
}
.contact-list { list-style: none; border-top: 1px solid var(--border); }
.contact-list li {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list .k {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--mid);
}
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--red); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 700px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.form input, .form select, .form textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  padding: 13px 14px;
  width: 100%;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mid) 50%), linear-gradient(135deg, var(--mid) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}
.form__hint { font-size: var(--fs-small); color: var(--mid); }
.form .btn { justify-self: start; }

.map-panel {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--light);
  display: grid;
  gap: 10px;
}

/* ---------- Rechtstexte ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.25rem; font-weight: 600; margin: 2.25rem 0 0.6rem; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.4rem; }
.legal p + p { margin-top: 0.75rem; }
.legal ul { margin: 0.6rem 0 0 1.2rem; }
.legal a { color: var(--red); }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
}
.footer__main {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 900px) {
  .footer__main { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); gap: clamp(2rem, 4vw, 4rem); }
}
.footer__logo img { height: 60px; width: auto; }
.footer__claim { margin-top: 1.1rem; max-width: 30ch; }
.footer h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { display: inline-block; padding: 3px 0; color: rgba(255, 255, 255, 0.75); text-decoration: none; transition: color .18s ease; }
.footer a:hover { color: var(--red); }
.footer a:focus-visible { outline-color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Werte-Reihe (Leistungsseite) ---------- */
.values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.75rem);
}
@media (min-width: 900px)  { .values { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.values__media {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 1rem;
  background: var(--border);
}
.values__media img { width: 100%; height: 100%; object-fit: cover; }
.values__name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
  overflow-wrap: break-word;
  hyphens: auto;
}
.values__name::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  margin-bottom: 0.65rem;
}
.values__text { font-size: 14px; line-height: 1.55; color: var(--mid); }
/* Letztes Werte-Item (Weiterentwicklung) auf Mobile über beide Spalten zentrieren,
   damit die ungerade Zahl sauber aufgeht */
@media (max-width: 719px) {
  .values__item:nth-child(5) { grid-column: 1 / -1; max-width: 50%; }
}
.values-quote {
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  max-width: 40ch;
  text-align: center;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.values-quote::before {
  content: "\201E";
  display: block;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--red);
  margin-bottom: 1rem;
}
.values-quote footer {
  margin-top: 1.1rem;
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--mid);
}

/* ---------- Projekte-Übersicht: Karten (borderless) ---------- */
.work-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem) var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.work-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.work-card__media {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.1rem;
  background: var(--border);
}
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.work-card:hover .work-card__media img { transform: scale(1.04); }
.work-card__place {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.work-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.work-card:hover h3 { color: var(--red); }
.work-card p { font-size: 15px; color: var(--mid); }
.work-card__more {
  margin-top: 0.9rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  gap: 8px;
}
.work-card:hover .work-card__more { color: var(--red); }

/* ---------- Projekt-Detail-Template ---------- */
.project-meta {
  list-style: none;
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--border);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
@media (min-width: 700px) { .project-meta { grid-template-columns: repeat(3, 1fr); } }
.project-meta li {
  background: var(--white);
  padding: 16px 4px;
  display: grid;
  gap: 3px;
}
.project-meta .k {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--mid);
}
.project-meta .v { font-size: 15px; color: var(--ink); font-weight: 500; }
.project-lead { max-width: 62ch; font-size: clamp(1.05rem, 1.4vw, 1.1875rem); line-height: 1.6; }

.project-photos { display: grid; gap: var(--gap); }
.project-photos img { width: 100%; border-radius: var(--r-card); object-fit: cover; }
/* Zwei nebeneinander, wenn genug Bilder vorhanden sind */
.project-photos--duo { grid-template-columns: 1fr; }
@media (min-width: 800px) { .project-photos--duo { grid-template-columns: repeat(2, 1fr); } }

.project-brief { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 900px) {
  .project-brief { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); }
}
.brief-list { list-style: none; border-top: 1px solid var(--border); }
.brief-list li { padding: 16px 0; border-bottom: 1px solid var(--border); display: flex; gap: 16px; }
.brief-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--red);
}
.brief-list p { color: var(--ink); }

/* Platzhalter-Kachel für noch fehlende Projektfotos */
.photo-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--r-card);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  aspect-ratio: 3 / 2;
}
.photo-placeholder span { font-size: var(--fs-small); color: var(--mid); max-width: 30ch; }

/* ---------- Jobs: Mosaik-Galerie (Masonry, zeigt jedes Foto vollständig) ---------- */
.mosaic {
  list-style: none;
  columns: 2;
  column-gap: 12px;
}
@media (min-width: 720px)  { .mosaic { columns: 3; column-gap: 16px; } }
@media (min-width: 1100px) { .mosaic { column-gap: 18px; } }
.mosaic__item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--border);
}
@media (min-width: 720px) { .mosaic__item { margin-bottom: 16px; } }
/* Kein object-fit-Crop: volle Bildhöhe, damit keine Gesichter abgeschnitten werden */
.mosaic__item img { width: 100%; height: auto; display: block; }

/* ---------- Hintergrund-Varianten ---------- */
.bg-light { background: var(--light); }

/* ---------- Reveal (dezent, eine Bewegung) ---------- */
/* Verstecken nur, wenn JavaScript läuft (html.js). Ohne JS bleibt der Inhalt
   sichtbar, statt dauerhaft ausgeblendet zu sein. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
  }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
