/* Bewusst behutsame Korrekturen der bestehenden Entwurfsfassung.
   Die Farbe, das Logo und die Originalfotografien bleiben erhalten. */
:root {
  --serif: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Bahnschrift", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --cyan: #00afe1;
  --cyan-dark: #007faa;
}

html { scroll-padding-top: 104px; }
body { font-family: var(--sans); }
.site-header { position: sticky; top: 0; height: 100px; z-index: 80; background: #fff; }
.brand img { height: 85px; width: auto; }
.main-nav a { font-size: 13px; font-weight: 700; letter-spacing: .045em; }

.display-title,
.service-card h3,
.contact-primary,
.einstein-royal h3,
.person-card h3,
.career-details h3,
.career-details h4,
.footer-logo {
  font-family: var(--serif);
  font-style: normal;
  letter-spacing: -.045em;
}
.display-title { font-size: clamp(42px, 5.7vw, 85px); line-height: 1.04; font-weight: 700; }
.display-title em { font-style: normal; font-weight: 700; }
.section-heading .display-title,
.about .display-title { font-size: clamp(42px, 5.5vw, 77px); }
.section-heading { align-items: end; }
.service-card h3 { font-size: clamp(22px, 2.1vw, 31px); }
.about-highlight { font-family: var(--sans); }
.contact-primary { font-size: clamp(17px, 2vw, 25px); }

/* Der Startbereich zeigt die gesamte Originalgruppe in natürlichem Verhältnis.
   Weder object-fit:cover noch ein überlagerter Text schneiden Personen ab. */
.hero {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  background: #f4f5f5;
}
.hero-stage {
  position: relative;
  height: clamp(430px, 44vw, 740px);
  overflow: hidden;
  background: linear-gradient(128deg, #f7f8f8, #f0f2f2 48%, #e9eeee);
}
.hero-drawing {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(23deg, transparent 37%, #c9d1d5 37.15%, transparent 37.3%),
    linear-gradient(151deg, transparent 29%, #d0d8db 29.15%, transparent 29.3%),
    linear-gradient(23deg, transparent 62%, #d0d8db 62.15%, transparent 62.3%);
}
.hero-image-wrap { position: absolute; inset: 0; display: block; }
.hero-team-photo {
  position: absolute;
  bottom: 0;
  right: clamp(0px, 5vw, 90px);
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  animation: none;
}
.hero-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding-block: 28px 32px;
}
.hero-strip .eyebrow { margin: 0 0 9px; }
.hero-strip h1 {
  margin: 0;
  font: 700 clamp(24px, 3.2vw, 45px)/1.12 var(--serif);
  letter-spacing: -.04em;
  color: #1e2427;
}
.hero-strip .text-link { margin: 0; white-space: nowrap; }

/* Kategorie-Sprungmarken zeigen alle Einblicke: kein Wegfiltern und kein
   nachträgliches Umordnen der Seite beim Scrollen. */
.gallery-controls { gap: 8px; }
.gallery-jump {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border: 1px solid #d8e1e4;
  border-radius: 3px;
  background: #fff;
  color: #253036;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.gallery-jump span { color: var(--cyan-dark); font-size: 10px; }
.gallery-jump:hover,
.gallery-jump:focus-visible { background: #f0fbff; border-color: var(--cyan); }
.project-card { scroll-margin-top: 118px; }
.project-card:hover img { transform: scale(1.008); }
.project-card-large .project-frame { min-height: 0; aspect-ratio: 1.15; }
.project-card-large img { object-fit: contain; background: #fff; }

/* Das originale, nicht beschnittene Header-Gruppenfoto erhält einen
   eigenen Platz im Team-Bereich. */
.team-header { align-items: end; }
.team-image { background: #f8faf9; border: 1px solid #edf1f2; }
.team-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
.team-image figcaption { border-top: 1px solid #e4ebee; color: #59656b; }
.team-persons {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr);
  gap: clamp(30px, 5vw, 80px);
  margin-top: clamp(65px, 7vw, 110px);
  align-items: start;
}
.person-card {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 23px;
  align-items: start;
  padding-top: 24px;
  border-top: 2px solid var(--cyan);
}
.person-card img {
  width: 155px;
  height: auto;
  aspect-ratio: 355 / 433;
  object-fit: contain;
  background: #e9ecee;
}
.person-card h3 { font-size: clamp(23px, 2.25vw, 33px); margin: 5px 0 12px; line-height: 1.1; }
.person-card p:last-child { font-size: 14px; line-height: 1.65; color: var(--muted); }

/* Königliche Auszeichnung: echtes Foto von Einstein, eigenständiger Rahmen,
   Metallschild oberhalb – kein künstlich verfremdetes Hundebild. */
.einstein-royal {
  display: grid;
  grid-template-columns: minmax(195px, 285px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
  padding: 26px;
  background: #f8f7f5;
  border: 1px solid #e6e0d6;
}
.royal-portrait { width: 100%; text-align: center; }
.royal-plaque {
  position: relative;
  z-index: 1;
  margin: 0 -7px -4px;
  padding: 13px 8px;
  color: #3f3120;
  background: linear-gradient(115deg, #a97a35 0%, #f4e1a9 20%, #c49b52 48%, #fff0bc 66%, #987237 100%);
  border: 1px solid #8e703a;
  box-shadow: inset 0 1px 1px #fff9, 0 4px 8px #0002;
  font: 800 clamp(11px, 1.1vw, 14px)/1.25 var(--sans);
  letter-spacing: .095em;
}
.royal-plaque span { font-size: 19px; margin-right: 3px; }
.royal-frame {
  padding: 12px;
  background: linear-gradient(130deg, #75501a 0%, #e4c47e 13%, #9f722b 35%, #f1dda4 53%, #795421 81%, #e1bd72 100%);
  box-shadow: inset 0 0 0 2px #f7e6a6, inset 0 0 0 7px #805b2c, 0 15px 32px #1e120b23;
}
.royal-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 538 / 785;
  object-fit: contain;
  border: 4px solid #58252b;
  background: #342124;
}
.royal-nameplate {
  margin-top: 10px;
  border: 1px solid #b48a4b;
  padding: 8px 7px;
  background: #26282a;
  color: #e7ce93;
  letter-spacing: .17em;
  font-size: 15px;
  font-weight: 800;
}
.royal-nameplate span { display: block; font-size: 10px; letter-spacing: .19em; margin-top: 5px; color: #dcc69a; }
.royal-copy h3 { font-size: clamp(31px, 3.2vw, 49px); line-height: 1.05; margin: 12px 0 15px; }
.royal-copy p:last-child { font-size: 15px; line-height: 1.6; color: #667073; }

/* Wiederhergestellter Originalbereich „Karriere“ – auf derselben Seite. */
.career { color: var(--ink); background: #f1f6f7; }
.career .display-title { margin-bottom: clamp(34px, 4vw, 54px); }
.career .display-title em { color: var(--cyan-dark); }
.career-layout {
  display: grid;
  grid-template-columns: minmax(270px, .77fr) minmax(0, 1.23fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
}
.career-poster { margin: 0; }
.career-poster img { width: 100%; height: auto; border: 1px solid #e2e8ea; }
.career-details h3 { font-size: clamp(27px, 3.2vw, 41px); margin: 0 0 30px; }
.career-details h4 { font-size: 19px; color: var(--cyan-dark); margin: 31px 0 13px; }
.career-details ul { padding-left: 22px; margin: 0; }
.career-details li { margin: 0 0 11px; padding-left: 3px; line-height: 1.55; font-size: 15px; }
.career-details p { line-height: 1.6; font-size: 15px; }
.career-details .button { margin-top: 18px; color: #fff; background: #1c262a; }
.career-details .button:hover { background: var(--cyan-dark); }
.contact-location { font-size: 14px; line-height: 1.65; color: var(--muted); margin-top: 34px; }
.contact-location span { font-size: 12px; }
.contact-location a { display: inline-block; margin-top: 4px; color: var(--cyan-dark); text-underline-offset: 4px; }

/* Kleine Opacity-Übergänge verursachen keine Layoutverschiebung.
   Keine Scroll-Locks und keine flächigen Scale-Animationen. */
.js-motion .reveal { opacity: 0; transform: none; transition: opacity .38s ease; }
.js-motion .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .site-header { height: 88px; }
  .brand img { height: 76px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 11px; }
  .person-card { grid-template-columns: 118px 1fr; }
  .person-card img { width: 118px; }
  .einstein-royal { grid-template-columns: minmax(0, 210px) 1fr; padding: 19px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .site-header { height: 78px; }
  .brand img { height: 66px; }
  .main-nav { top: 78px; inset: 78px 0 auto; max-height: calc(100svh - 78px); overflow-y: auto; }
  .hero-stage { width: 100%; height: auto; aspect-ratio: 1.52; }
  .hero-team-photo { inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
  .hero-strip { padding-block: 24px 30px; display: block; }
  .hero-strip h1 { font-size: clamp(25px, 7vw, 37px); }
  .hero-strip .text-link { margin-top: 19px; }
  .display-title, .section-heading .display-title, .about .display-title { font-size: clamp(38px, 9.3vw, 62px); }
  .team-persons, .career-layout { grid-template-columns: 1fr; gap: 40px; }
  .team-image img { max-height: none; }
  .einstein-royal { grid-template-columns: minmax(145px, 220px) 1fr; }
  .royal-plaque { font-size: 11px; }
  .royal-plaque span { font-size: 16px; }
  .person-card { grid-template-columns: 135px 1fr; }
  .person-card img { width: 135px; }
  .career-poster { max-width: 500px; }
  .career-details h3 { font-size: 29px; }
  .project-card { scroll-margin-top: 94px; }
  .project-card-large .project-frame { aspect-ratio: 1.35; }
}

@media (max-width: 500px) {
  .hero-drawing { opacity: .16; }
  .hero-strip h1 { font-size: clamp(23px, 7vw, 30px); }
  .einstein-royal { grid-template-columns: 1fr; }
  .royal-portrait { width: min(100%, 265px); margin-inline: auto; }
  .royal-copy { text-align: center; }
  .person-card { grid-template-columns: 100px 1fr; gap: 18px; }
  .person-card img { width: 100px; }
  .gallery-jump { font-size: 12px; padding: 10px 12px; }
  .team-header .display-title { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal { opacity: 1; transition: none; }
}
