@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-soft: #eef2f3;
  --text-heading: #111827;
  --text-body: #374151;
  --text-muted: #5f6b76;
  --text-soft: #7a8590;
  --text: var(--text-body);
  --muted: var(--text-muted);
  --micro-neutral: var(--text-soft);
  --border: #d9dee2;
  --border-soft: #e7ecef;
  --accent: #c8642a;
  --accent-hover: #b9531e;
  --accent-soft: #f3d5c4;
  --dark: #101820;
  --dark-soft: #26333d;
  --shadow: 0 8px 22px rgba(16, 24, 32, 0.08);
  --header-h: 83px;
  --maxw: 1320px;
}

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

html {
  width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  width: 100%;
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
picture {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
}

.team-card li::marker,
.project-card li::marker,
.detail-facts li::marker {
  color: var(--accent);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
.logo-wordmark,
.btn,
.nav-links a,
.nav-cta,
.section-kicker,
.team-role,
.project-card-title,
.footer-title {
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-heading);
}

h2 {
  font-size: 2.35rem;
  max-width: 18ch;
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--text-body);
}

::selection {
  background: var(--accent-soft);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(201, 99, 43, 0.55);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 84px 0;
  position: relative;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.section-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.section-intro {
  max-width: 68ch;
  margin-top: 16px;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.section-kicker-light,
.section-intro-light {
  color: inherit;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost,
.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.56);
  color: #ffffff;
}

.btn-ghost:hover,
.btn-outline:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--dark);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 1300;
  padding: 9px 14px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--dark);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#page-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(16, 24, 32, 0.03);
}

nav.nav {
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  text-decoration: none;
}

.logo-wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.logo-wordmark strong {
  font-weight: 700;
}

.logo-accent {
  color: var(--accent);
}

.logo-mark {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--dark-soft);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--dark);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-links a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.nav-cta svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--dark);
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(16, 24, 32, 0.36);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 160ms ease,
    visibility 160ms ease;
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

#hero {
  min-height: calc(100vh - var(--header-h) - 88px);
  min-height: calc(100svh - var(--header-h) - 88px);
  display: flex;
  align-items: center;
  padding: 0;
  color: #ffffff;
  background: #0c2340;
  overflow: visible;
  isolation: isolate;
  z-index: 1;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0c2340;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--hero-position-desktop, center);
  opacity: 0;
  transform: scale(1);
  transition: opacity var(--hero-crossfade-duration, 1600ms) ease-in-out;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide.is-leaving {
  opacity: 0;
}

.hero-slideshow.is-enhanced .hero-slide.is-active {
  animation: hero-slide-zoom var(--hero-zoom-duration, 11000ms) ease-out
    forwards;
}

.hero-slideshow.is-paused .hero-slide {
  animation-play-state: paused;
}

@keyframes hero-slide-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.015);
  }
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 25, 43, 0.82),
      rgba(7, 25, 43, 0.42) 58%,
      rgba(7, 25, 43, 0.1)
    ),
    linear-gradient(180deg, rgba(7, 25, 43, 0.1), rgba(7, 25, 43, 0.38));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--header-h);
  padding-bottom: 0;
}

.hero-text-column {
  max-width: 760px;
}

.hero-text-column h1 {
  color: #ffffff;
  font-size: 3.75rem;
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.hero-accent {
  color: #ffffff;
}

.hero-lead {
  max-width: 58ch;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.16rem;
  line-height: 1.62;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: -64px;
  z-index: 3;
  display: grid;
  width: 28px;
  height: 42px;
  place-items: start center;
  padding-top: 9px;
  border: 2px solid #111111;
  border-radius: 16px;
  color: #111111;
  transition: opacity 220ms ease;
}

.hero-scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  animation: hero-scroll-cue-nudge 2.4s ease-in-out infinite;
}

@keyframes hero-scroll-cue-nudge {
  0%,
  68%,
  100% {
    transform: translateY(0);
  }
  82% {
    transform: translateY(3px);
  }
}

.hero-slideshow-toggle {
  position: absolute;
  right: clamp(18px, 2.5vw, 40px);
  bottom: 22px;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(7, 25, 43, 0.48);
  box-shadow: 0 2px 12px rgba(7, 25, 43, 0.16);
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.hero-slideshow-toggle[hidden] {
  display: none;
}

.hero-slideshow-toggle:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(7, 25, 43, 0.68);
}

.hero-slideshow-toggle:focus-visible {
  outline-color: rgba(255, 255, 255, 0.92);
}

.hero-slideshow-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-slideshow-toggle-play,
.hero-slideshow-toggle[aria-pressed="true"] .hero-slideshow-toggle-pause {
  display: none;
}

.hero-slideshow-toggle[aria-pressed="true"] .hero-slideshow-toggle-play {
  display: block;
}

#unternehmen,
#referenzen {
  background: var(--surface);
}

#unternehmen {
  padding-top: 124px;
}

.unternehmen-layout,
.kontakt-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 52px;
  align-items: center;
}

.unternehmen-statement-box h2 {
  max-width: 19ch;
}

.statement-lead {
  margin-top: 22px;
  color: var(--text-body);
  font-size: 1.08rem;
  line-height: 1.65;
}

.statement-divider {
  width: 50px;
  height: 3px;
  margin: 24px 0;
  border: 0;
  background: var(--accent);
}

.statement-sub {
  max-width: 58ch;
  color: var(--text-muted);
}

.unternehmen-visual {
  position: relative;
}

.unternehmen-visual-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.unternehmen-visual-image img,
.unternehmen-visual-image picture,
.unternehmen-visual-image picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.unternehmen-visual-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: min(330px, calc(100% - 36px));
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.unternehmen-visual-card-label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.unternehmen-visual-card strong {
  display: block;
  line-height: 1.25;
}

.unternehmen-visual-card p {
  margin-top: 4px;
  font-size: 0.92rem;
  line-height: 1.45;
}

#team {
  background: var(--bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.team-card,
.project-card,
.referenz-logo-card,
.kontakt-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.team-card {
  grid-column: span 2;
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 1041px) {
  .team-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .team-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.team-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d8dee3;
}

.team-card-image picture,
.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.team-card-head {
  display: grid;
  gap: 9px;
}

.team-card-head h3 {
  font-size: 1.24rem;
  color: var(--text-heading);
}

.team-role {
  min-height: 2.8em;
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.48;
}

.team-bio {
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.62;
}

.team-tags,
.reference-list,
.footer-links,
.footer-meta,
.footer-bottom-links,
.kontakt-details,
.detail-facts {
  list-style: none;
}

.team-tags {
  display: grid;
  gap: 9px;
  margin: auto 0;
}

.team-tags li {
  position: relative;
  padding-left: 18px;
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.55;
}

.team-tags li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent-hover);
}

.text-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

#abgeschlossene-projekte {
  background: var(--surface-soft);
}

.projects-section-head {
  max-width: none;
  margin-bottom: 30px;
}

.projects-description-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 32px;
  align-items: center;
  margin-top: 16px;
}
.projects-description-row .section-intro {
  margin-top: 0;
}

.project-filter {
  display: flex;
  justify-content: flex-end;
}

.project-search {
  position: relative;
  width: min(100%, 380px);
}

.project-search-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  fill: var(--text-soft);
  transform: translateY(-50%);
}

.project-search-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-body);
}

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

.project-card {
  overflow: hidden;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.project-card:hover {
  border-color: #c7d0d6;
  box-shadow: var(--shadow);
}

.project-card[hidden] {
  display: none;
}

.project-card-trigger {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.project-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d8dee3;
}

.project-card-media picture,
.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-year,
.project-card-gallery-hint {
  position: absolute;
  top: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.project-card-year {
  left: 12px;
  background: var(--accent);
}

.project-card-gallery-hint {
  right: 12px;
  background: rgba(16, 24, 32, 0.76);
}

.project-card-gallery-hint svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  height: 100%;
  padding: 19px 20px 20px;
}

.project-card-title {
  display: grid;
  min-height: 0;
  align-items: flex-start;
  gap: 1px;
  color: var(--text-heading);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.26;
  overflow-wrap: anywhere;
}

.project-card-title-company,
.project-card-title-site {
  display: block;
}

.project-card-location {
  display: inline-flex;
  min-height: 1.5em;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.project-card-location svg {
  width: 15px;
  height: 15px;
  color: var(--text-soft);
  fill: var(--micro-neutral);
  stroke: var(--text-soft);
}

.project-card-subtitle {
  display: -webkit-box;
  min-height: calc(1.48em * 3);
  margin-top: 16px;
  overflow: hidden;
  color: var(--text-body);
  font-size: 0.94rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.project-card-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 96px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 16px;
  padding-top: 0;
}

.project-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.15;
}

.project-card-summary {
  display: block;
  min-height: 78px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  overflow: hidden;
}

.project-card-summary > span {
  display: block;
  gap: 2px;
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.42;
}

.project-card-summary strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-heading);
  font-size: 0.84rem;
}

.project-card-cta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 0;
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 700;
}

.project-card-cta svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.project-empty {
  margin-top: 24px;
  padding: 26px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.project-empty svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  fill: var(--muted);
}

.project-detail {
  width: min(1120px, calc(100vw - 32px));
  height: min(720px, calc(100vh - 32px));
  height: min(720px, calc(100dvh - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-body);
  box-shadow: 0 24px 80px rgba(16, 24, 32, 0.28);
}

.project-detail::backdrop {
  background: rgba(16, 24, 32, 0.58);
}

.detail-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  height: 100%;
  min-height: 0;
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.detail-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.detail-gallery {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  background: #17212a;
}

.detail-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: #17212a;
}

.detail-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: transparent;
}

.detail-image-backdrop {
  position: absolute;
  inset: -24px;
  z-index: 0;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  max-width: none;
  object-fit: cover;
  filter: blur(20px) saturate(0.8) brightness(0.58);
  transform: scale(1.05);
  pointer-events: none;
  user-select: none;
}

.detail-counter {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(16, 24, 32, 0.72);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
}

.detail-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
}

.detail-arrow[hidden] {
  display: none;
}

.detail-arrow-prev {
  left: 14px;
}

.detail-arrow-next {
  right: 14px;
}

.detail-arrow svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.detail-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(16, 24, 32, 0.76);
  color: #ffffff;
  font-size: 0.92rem;
}

.detail-caption.is-empty {
  display: none;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-thumb {
  flex: 0 0 82px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.detail-thumb.is-active {
  border-color: var(--accent);
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  min-height: 0;
  padding: 34px 32px;
  overflow-y: auto;
}

.detail-head {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  padding-right: 48px;
}

.detail-head h3 {
  font-size: 1.65rem;
  color: var(--text-heading);
}

.detail-location,
.detail-subtitle,
.detail-text {
  color: var(--text-body);
}

.detail-location {
  color: var(--text-muted);
}

.detail-section {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.detail-section h4 {
  color: var(--text-heading);
  font-size: 0.96rem;
}

.detail-facts-grid {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-fact {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.detail-fact dt {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.detail-fact dd {
  margin: 2px 0 0;
}

.detail-facts {
  display: grid;
  gap: 8px;
}

.detail-facts li {
  position: relative;
  padding-left: 18px;
}

.detail-facts li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

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

.referenz-logo-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.referenz-logo-card:hover {
  border-color: rgba(201, 99, 43, 0.38);
  box-shadow: var(--shadow);
}

.referenz-logo-card-media {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--bg);
}

.referenz-logo-card-media picture,
.referenz-logo-card-media img {
  max-height: 86px;
  width: auto;
  object-fit: contain;
}

.referenz-logo-card-meta {
  display: grid;
  gap: 7px;
}

.referenz-logo-card-label,
.referenz-logo-card-cta {
  font-size: 0.9rem;
  font-weight: 700;
}

.referenz-logo-card-label {
  color: var(--text-soft);
}

.referenz-logo-card-cta {
  color: var(--accent);
}

.referenz-logo-card-meta strong {
  color: var(--text-heading);
  font-size: 1.12rem;
  line-height: 1.3;
}

.referenz-logo-card-meta p {
  color: var(--text-body);
  font-size: 0.96rem;
}

.referenz-logo-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.referenz-logo-card-cta svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

#kontakt {
  background: var(--bg);
}

.kontakt-wrapper {
  align-items: start;
}

.kontakt-info h2 {
  max-width: 14ch;
}

.kontakt-lead {
  color: var(--text-body);
}

.kontakt-details {
  display: grid;
  gap: 28px;
  margin-top: 44px;
}

.kontakt-details li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.kontakt-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
}

.kontakt-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: currentColor;
}

.kontakt-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.kontakt-details a {
  color: var(--text-heading);
  font-weight: 650;
  text-decoration: none;
}

.kontakt-details a:hover {
  color: var(--accent);
}

.kontakt-direct address {
  display: grid;
  gap: 1px;
  margin: 0;
  font-style: normal;
}

.kontakt-direct address strong {
  color: var(--text-heading);
  font-weight: 650;
}

.kontakt-direct address span {
  color: var(--text-body);
}

.kontakt-phone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.kontakt-phone-list a {
  font-weight: 600;
}

.kontakt-form {
  padding: 28px;
}

.kontakt-form > p {
  margin-top: 8px;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 7px;
}

.form-group label {
  color: var(--text-heading);
  font-size: 0.94rem;
  font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-body);
}

.form-group input,
.form-group select {
  min-height: 46px;
  padding: 10px 12px;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
  padding: 12px;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 0.18em 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.btn-submit {
  width: fit-content;
}

.btn-submit.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.form-status {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.94rem;
}

.form-status.is-success {
  background: #e7f2ec;
  color: #17623d;
}

.form-status.is-error {
  background: #fdecea;
  color: #8c2318;
}

.form-status.is-pending {
  background: var(--surface-soft);
  color: var(--text-body);
}

footer {
  background: var(--dark);
  color: #ffffff;
}

.footer-main {
  padding: 52px 0 38px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 80px;
}

footer .logo,
footer .logo-wordmark {
  color: #ffffff;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-brand > p,
.footer-meta li,
.footer-links a,
.footer-bottom-inner {
  color: rgba(255, 255, 255, 0.68);
}

.footer-brand > p {
  max-width: 34ch;
  font-size: 0.95rem;
}

.footer-meta {
  display: grid;
  gap: 5px;
  margin-top: 16px;
}

.footer-meta strong {
  color: #ffffff;
}

.footer-title {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-title-spacer {
  margin-top: 22px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  font-size: 0.94rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.reveal,
html.reveal-pending
  :is(
    .team-card,
    .referenz-logo-card,
    .kontakt-wrapper,
    .unternehmen-statement-box,
    .unternehmen-visual,
    .project-card,
    .stat-item
  ) {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 360ms ease,
    transform 360ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  background: var(--bg);
}

.legal-hero {
  padding: calc(var(--header-h) + 40px) 0 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  color: var(--text-heading);
  font-size: 2.5rem;
}

.legal-hero p {
  max-width: 64ch;
  margin-top: 12px;
}

.legal-content {
  padding: 28px 0 68px;
}

.legal-hero .container,
.legal-content .container {
  max-width: 1040px;
}

.legal-block {
  margin-bottom: 36px;
}

.legal-block h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.legal-block h3 {
  margin: 22px 0 8px;
  font-size: 1.08rem;
}

.legal-block p,
.legal-block li {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.68;
}

.legal-block p {
  margin-bottom: 12px;
}

.legal-block ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.legal-block a,
.legal-back {
  color: var(--accent);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-weight: 700;
  text-decoration: none;
}

.legal-back svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transform: rotate(180deg);
}

.legal-note {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: var(--accent-soft);
}

@media (max-width: 1040px) {
  .team-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-card,
  .team-card:nth-child(4),
  .team-card:nth-child(5) {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hamburger {
    display: block;
    position: relative;
    z-index: 1006;
  }

  .nav-actions {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1005;
    width: min(340px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: calc(var(--header-h) + 24px) 24px 32px;
    background: #ffffff;
    border-left: 1px solid var(--border);
    box-shadow: -18px 0 42px rgba(16, 24, 32, 0.18);
    transform: translateX(100%);
    transition: transform 180ms ease;
  }

  .nav-actions.is-open {
    transform: translateX(0);
  }

  .nav-links {
    display: grid;
    gap: 4px;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-cta {
    width: 100%;
  }

  .unternehmen-layout,
  .kontakt-wrapper,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .detail-shell {
    height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0, 0.56fr) minmax(0, 0.44fr);
  }

  .detail-stage,
  .detail-image {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16.5px;
  }

  section {
    padding: 60px 0;
  }

  #unternehmen {
    padding-top: 84px;
  }

  .container {
    padding: 0 20px;
  }

  h2 {
    font-size: 1.85rem;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .hero-grid {
    padding-top: var(--header-h);
    padding-bottom: 0;
  }

  .hero-text-column h1 {
    font-size: 2.65rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .team-grid,
  .project-grid,
  .referenzen-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .referenz-logo-card {
    grid-template-columns: 1fr;
  }

  .referenz-logo-card-media {
    min-height: 96px;
  }

  .project-filter {
    justify-content: stretch;
  }

  .projects-description-row {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .project-search {
    width: 100%;
  }

  .project-card-title,
  .project-card-location,
  .project-card-subtitle,
  .project-card-meta,
  .project-card-summary {
    min-height: 0;
  }

  .project-card-subtitle {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  .unternehmen-visual-card {
    position: static;
    max-width: none;
    margin-top: 12px;
  }

  .kontakt-details li {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .kontakt-icon {
    width: 40px;
    height: 40px;
  }

  .kontakt-form,
  .detail-info {
    padding: 22px;
  }

  .detail-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 520px) {
  .hero-text-column h1 {
    font-size: 2.25rem;
  }

  .hero-buttons,
  .btn-submit {
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .footer-bottom-inner {
    display: grid;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-slide {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .hero-slideshow-toggle {
    display: none !important;
  }

  .hero-scroll-cue span {
    animation: none;
  }
}

@media print {
  header#page-header {
    position: static !important;
  }

  .back-to-top,
  .nav-overlay {
    display: none !important;
  }
}
/* ============================================================
   FINAL POLISH QA - DELIVERABLE HARDENING
   ============================================================ */

/* 1. Global layout safety */
html,
body {
  width: 100%;
  margin: 0;
  overflow-x: clip;
}

@media print {
  .site-header,
  #page-header {
    position: static !important;
  }
}

.site-nav a,
.nav-links a {
  font-size: 14px;
}

.logo,
.logo-wordmark {
  font-size: 17px;
}

/* 4. Image loading fallback */
img {
  display: block;
  max-width: 100%;
}

.team-card img,
.project-card img,
.project-image {
  background: #d8dee3;
  object-fit: cover;
}

/* 5. Team section */
.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card img,
.team-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d8dee3;
}

.team-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-role {
  min-height: 2.8em;
}

/* 6. Project section */
.project-card {
  font-size: 14px;
}

.project-card h3 {
  font-size: 16px;
}

.project-card .meta,
.project-card .project-details,
.project-card-subtitle,
.project-card-fact-value {
  font-size: 13px;
  line-height: 1.45;
}

/* 8. Contact section honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* 11. Accessibility focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c8642a;
  outline-offset: 3px;
}

/* User Overrides */
:root {
  --header-h: 83px;
}
.logo,
.logo-wordmark {
  font-size: 17px !important;
}
.site-nav a,
.nav-links a {
  font-size: 14px !important;
}
.section-kicker {
  font-size: 1.15rem !important;
}
.section-kicker-light {
  color: var(--accent) !important;
}

/* User Overrides */
:root {
  --header-h: 83px;
}
.logo,
.logo-wordmark {
  font-size: 17px !important;
}
.site-nav a,
.nav-links a {
  font-size: 14px !important;
}
.section-kicker {
  font-size: 1.15rem !important;
}
.section-kicker-light {
  color: var(--accent) !important;
}

/* ============================================================
   TEAM 5-COLUMN OVERRIDE
   ============================================================ */
.team-section .team-wide-container {
  width: min(94vw, 1680px);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 1180px) {
  .team-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 22px !important;
    align-items: stretch !important;
  }
  .team-card,
  .team-card:nth-child(n) {
    grid-column: auto !important;
  }
}

@media (max-width: 1179px) {
  .team-section .team-wide-container {
    width: min(100%, var(--maxw));
  }
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .team-card,
  .team-card:nth-child(n) {
    grid-column: auto !important;
  }
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .team-section .team-wide-container {
    padding-inline: 20px;
  }
  .team-grid {
    grid-template-columns: 1fr !important;
  }
}

.team-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  font-size: 15px;
}

.team-card img,
.team-card-image {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: var(--team-image-fit, cover) !important;
  object-position: var(--team-image-position, 50% 50%) !important;
  background: var(--team-image-background, #d8dee3) !important;
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.team-card-image img {
  transform: translateY(var(--team-image-translate-y, 0))
    scale(var(--team-image-scale, 1));
  transform-origin: var(
    --team-image-transform-origin,
    var(--team-image-position, 50% 50%)
  );
}

.team-card-image::after {
  display: none !important;
}

.team-card-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  gap: 0 !important;
  padding: clamp(18px, 1.4vw, 22px) !important;
}

.team-card-head {
  display: grid;
  grid-template-rows: auto minmax(3.2em, auto);
  gap: 0;
}

.team-card h3 {
  min-height: 0;
  margin-bottom: 0.4rem;
  font-size: 18px;
  line-height: 1.2;
}

.team-role {
  min-height: 3.2em;
  margin-bottom: 1rem;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.team-bio,
.team-description {
  min-height: 5.4em;
  color: var(--text-body);
  line-height: 1.55;
}

.team-card ul {
  margin-top: 1rem;
  padding-left: 0;
}

.team-card li {
  margin-bottom: 0.55rem;
  color: var(--text-body);
  line-height: 1.45;
}

.team-link {
  margin-top: auto;
  padding-top: 1rem;
}

.project-card .meta,
.project-card .project-details,
.project-card-meta span {
  font-size: 13px;
  line-height: 1.45;
}

header#page-header .logo,
header#page-header .logo-wordmark {
  font-size: 24px !important;
  font-weight: 800;
}

header#page-header {
  background: #ffffff;
  border-bottom-color: rgba(16, 24, 32, 0.1);
  box-shadow: 0 2px 12px rgba(16, 24, 32, 0.045);
}

header#page-header nav.nav {
  width: min(94vw, 1680px);
  max-width: 1680px;
  margin-inline: auto;
  min-height: 82px;
  padding-inline: 20px;
}

header#page-header .nav-actions {
  gap: 26px;
}

header#page-header .nav-links {
  gap: 15px;
}

header#page-header .nav-links a {
  color: var(--dark);
  font-size: 15px !important;
  font-weight: 750;
}

header#page-header .nav-links a:hover {
  color: var(--dark);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

header#page-header .nav-links a.is-active {
  color: var(--dark);
  background: #efc5ad;
  text-decoration: none;
}

header#page-header .nav-cta {
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: 0 2px 0 rgba(16, 24, 32, 0.08);
  font-size: 15px;
  font-weight: 800;
}

@media (min-width: 1800px) {
  :root {
    --maxw: 1440px;
  }
}

.logo-accent,
.section-kicker,
.referenz-logo-card-cta,
.project-card-cta,
.text-link {
  color: var(--accent);
}

.referenz-logo-card-label,
.unternehmen-visual-card-label {
  color: var(--text-soft);
}

.section-kicker::before {
  height: 3px;
  opacity: 1;
}

.team-tags li::before {
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.project-card-year {
  background: var(--accent);
}

body.capture-mode #page-header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
}

body.capture-mode img {
  opacity: 1 !important;
  filter: none !important;
}

body.capture-mode .team-card img,
body.capture-mode .project-card img,
body.capture-mode .project-image {
  background: #d8dee3;
}

/* ============================================================
   MOBILE LAYOUT FIXES — make it look good on any smartphone
   ============================================================ */

@media (max-width: 640px) {
  /* --- Root & header --- */
  :root {
    --header-h: 65px;
  }

  header#page-header .logo,
  header#page-header .logo-wordmark {
    font-size: 18px !important;
  }

  header#page-header nav.nav {
    min-height: 64px;
    padding-inline: 16px;
  }

  .hamburger {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .nav-actions {
    width: min(320px, 82vw);
    padding: calc(var(--header-h) + 16px) 20px 24px;
  }

  /* --- Hero --- */
  #hero {
    min-height: calc(100svh - var(--header-h) - 48px);
  }

  .hero-slide {
    object-position: var(
      --hero-position-mobile,
      var(--hero-position-desktop, center)
    );
  }

  .hero-grid {
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 48px;
  }

  .hero-text-column {
    max-width: 100%;
  }

  .hero-text-column h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: 1.12;
  }

  .hero-text-column h1 br {
    display: none;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.55;
    margin-top: 16px;
  }

  .hero-buttons {
    margin-top: 24px;
    gap: 10px;
  }

  .hero-scroll-cue {
    bottom: -46px;
    width: 24px;
    height: 36px;
    padding-top: 7px;
  }

  .hero-slideshow-toggle {
    right: 16px;
    bottom: 14px;
    width: 36px;
    height: 36px;
  }

  /* --- Sections --- */
  section {
    padding: 44px 0;
  }

  #unternehmen {
    padding-top: 56px;
  }

  .container,
  .team-wide-container {
    padding: 0 16px;
  }

  .section-head {
    margin-bottom: 26px;
  }

  h2 {
    font-size: 1.5rem;
    max-width: none;
    line-height: 1.15;
  }

  h3 {
    font-size: 1.15rem;
  }

  .section-kicker {
    font-size: 0.88rem !important;
    margin-bottom: 10px;
  }

  .section-intro {
    font-size: 1rem;
    line-height: 1.55;
    margin-top: 12px;
  }

  header#page-header .nav-links a {
    font-size: 14px !important;
  }

  /* Prevent iOS zoom on form focus */
  input,
  textarea,
  select {
    font-size: 16px;
  }

  /* Improve tap targets and remove default highlight */
  a,
  button,
  .hamburger,
  .detail-thumb,
  .detail-arrow,
  .detail-close,
  .project-card-trigger {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* --- Unternehmen --- */
  .unternehmen-layout {
    gap: 28px;
  }

  .unternehmen-visual-image {
    aspect-ratio: 16 / 10;
  }

  .unternehmen-visual-card {
    padding: 14px 16px;
    margin-top: 10px;
  }

  .statement-lead {
    font-size: 1rem;
    margin-top: 16px;
  }

  .statement-divider {
    margin: 18px 0;
  }

  /* --- Team --- */
  .team-grid {
    gap: 16px;
  }

  .team-card {
    font-size: 14px;
  }

  .team-card-content {
    padding: 18px !important;
    gap: 0 !important;
  }

  .team-card h3 {
    font-size: 16px;
  }

  .team-role {
    min-height: 0 !important;
    margin-bottom: 0.6rem;
    font-size: 14px;
  }

  .team-bio,
  .team-description {
    min-height: 0 !important;
    font-size: 14px;
  }

  .team-card ul {
    margin-top: 0.6rem;
  }

  .team-card li {
    font-size: 14px;
    margin-bottom: 0.3rem;
  }

  .team-link {
    padding-top: 0.6rem;
  }

  /* --- Projects --- */
  .projects-description-row {
    gap: 14px;
  }

  .project-grid {
    gap: 16px;
  }

  .project-card {
    font-size: 14px;
  }

  .project-card-body {
    padding: 16px;
  }

  .project-card-title {
    font-size: 1rem;
  }

  .project-card-location {
    font-size: 0.88rem;
    margin-top: 4px;
  }

  .project-card-subtitle {
    min-height: 0 !important;
    margin-top: 12px;
    font-size: 0.88rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .project-card-meta {
    min-height: 0 !important;
    margin-top: 12px;
    gap: 6px;
  }

  .project-card-meta span {
    font-size: 0.78rem;
    padding: 3px 6px;
  }

  .project-card-summary {
    min-height: 0 !important;
    padding-top: 12px;
    margin-top: 12px;
  }

  .project-card-summary > span {
    font-size: 0.84rem;
  }

  .project-card-cta {
    margin-top: 12px;
    font-size: 0.92rem;
  }

  .project-search-input {
    min-height: 42px;
    font-size: 1rem;
  }

  /* --- Referenzen --- */
  .referenzen-grid {
    gap: 16px;
  }

  .referenz-logo-card {
    padding: 16px;
    gap: 16px;
  }

  .referenz-logo-card-media {
    min-height: 80px;
    padding: 10px;
  }

  .referenz-logo-card-meta strong {
    font-size: 1rem;
  }

  .referenz-logo-card-meta p {
    font-size: 0.88rem;
  }

  /* --- Kontakt --- */
  .kontakt-wrapper {
    gap: 32px;
  }

  .kontakt-details {
    margin-top: 20px;
    gap: 12px;
  }

  .kontakt-details li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .kontakt-icon {
    width: 36px;
    height: 36px;
  }

  .kontakt-icon svg {
    width: 18px;
    height: 18px;
  }

  .kontakt-form {
    padding: 20px;
  }

  .kontakt-form h3 {
    font-size: 1.2rem;
  }

  .kontakt-form > p {
    font-size: 0.92rem;
  }

  .contact-form {
    gap: 14px;
    margin-top: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-group input,
  .form-group select {
    min-height: 44px;
    font-size: 1rem;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .checkbox-label {
    font-size: 0.88rem;
  }

  .btn-submit {
    width: 100%;
    min-height: 48px;
  }

  /* --- Footer --- */
  .footer-main {
    padding: 40px 0 28px;
  }

  .footer-grid {
    gap: 32px;
  }

  .footer-brand > p {
    font-size: 0.9rem;
  }

  .footer-title {
    font-size: 0.88rem;
  }

  .footer-links a {
    font-size: 0.88rem;
  }

  .footer-bottom {
    padding: 14px 0;
  }

  .footer-bottom-inner {
    font-size: 0.82rem;
  }

  /* --- Project detail modal --- */
  .project-detail {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px;
  }

  .detail-shell {
    grid-template-rows: minmax(0, 0.52fr) minmax(0, 0.48fr);
  }

  .detail-stage,
  .detail-image {
    min-height: 0;
  }

  .detail-info {
    padding: 18px;
  }

  .detail-head {
    padding-right: 0;
    margin-bottom: 18px;
    gap: 6px;
  }

  .detail-head h3 {
    font-size: 1.3rem;
  }

  .detail-close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
  }

  .detail-arrow {
    width: 36px;
    height: 36px;
  }

  /* --- Back-to-top --- */
  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }

  /* --- Global text safety --- */
  h1,
  h2,
  h3,
  h4,
  p,
  li,
  a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .hero-text-column h1 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
  }
}

@media (max-width: 480px) {
  .hero-text-column h1 {
    font-size: clamp(1.55rem, 6.5vw, 1.9rem);
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .btn {
    min-height: 42px;
    padding: 8px 16px;
    font-size: 0.92rem;
  }

  .project-card-year,
  .project-card-gallery-hint {
    top: 8px;
    font-size: 0.72rem;
    min-height: 24px;
    padding: 2px 6px;
  }

  .project-card-year {
    left: 8px;
  }

  .project-card-gallery-hint {
    right: 8px;
  }

  .referenz-logo-card {
    padding: 14px;
  }

  .referenz-logo-card-media {
    min-height: 68px;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-bottom-links {
    gap: 12px;
  }

  .detail-stage,
  .detail-image {
    min-height: 0;
  }
}
