@font-face {
  font-family: "MBDisplay";
  src: url("./fonts/IosevkaCharon-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #edf2ee;
  --ink: #142019;
  --muted: #647168;
  --line: #d9e1db;
  --brand: #1d5a44;
  --brand-dark: #123d2f;
  --brand-soft: #dfeae4;
  --accent: #caa86a;
  --danger: #a92f2f;
  --success: #176b43;
  --shadow: 0 24px 60px rgba(18, 61, 47, 0.12);
  --shadow-small: 0 12px 30px rgba(18, 61, 47, 0.08);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --container: 1320px;
  --header-height: 128px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family:
    "MBDisplay",
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 920px;
  margin-bottom: 1.4rem;
  font-size: clamp(3rem, 7vw, 6.6rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 4vw, 4.2rem);
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.45rem;
}

p {
  color: var(--muted);
}

.container {
  width: min(calc(100% - 56px), var(--container));
  min-width: 0;
  margin-inline: auto;
}

main,
section,
header,
footer,
.nav-wrap,
.hero-grid,
.about-grid,
.contact-grid,
.service-grid,
.team-grid,
.client-grid,
.review-grid,
.service-card,
.team-card,
.client-card,
.review-card,
.contact-form,
.hero-copy,
.hero-panel,
.about-copy,
.contact-copy {
  min-width: 0;
}

p,
h1,
h2,
h3,
a,
strong,
span {
  overflow-wrap: anywhere;
}

.section-pad {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section-soft {
  background: var(--surface-soft);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  background: currentColor;
  content: "";
}

.eyebrow-light {
  color: #dbe9e1;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.text-button:focus-visible,
.footer-button:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(202, 168, 106, 0.55);
  outline-offset: 3px;
}

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

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-light {
  background: #ffffff;
  color: var(--brand-dark);
}

.btn-small {
  min-height: 42px;
  padding: 10px 15px;
  font-size: 0.9rem;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.text-link-light {
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(20, 32, 25, 0.08);
  background: #ffffff;
  backdrop-filter: blur(16px);
}

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

.brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.brand img {
  width: clamp(440px, 29vw, 560px);
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.main-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 22px;
  font-weight: 750;
}

.main-nav > a:not(.nav-cta) {
  position: relative;
}

.main-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 48px;
  flex: 0 0 48px;
  height: 48px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(5rem, 9vw, 8.5rem);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(2px);
}

.hero::before {
  top: 2rem;
  right: -10rem;
  width: 34rem;
  height: 34rem;
  background:
    radial-gradient(
      circle,
      rgba(29, 90, 68, 0.18),
      rgba(29, 90, 68, 0)
    );
}

.hero::after {
  bottom: -14rem;
  left: -10rem;
  width: 28rem;
  height: 28rem;
  background:
    radial-gradient(
      circle,
      rgba(202, 168, 106, 0.2),
      rgba(202, 168, 106, 0)
    );
}

.hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(310px, 0.65fr);
  align-items: end;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-lead {
  max-width: 740px;
  margin-bottom: 2rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.hero-actions,
.brochure-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.strength-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(29, 90, 68, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(12px);
}

.strength-card h2 {
  margin-bottom: 5px;
  font-size: 1.35rem;
}

.strength-card p {
  margin: 0;
  font-size: 0.93rem;
}

.strength-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 900;
}

.brochure-section {
  padding: 0 0 clamp(4rem, 8vw, 7rem);
}

.brochure-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      135deg,
      var(--brand-dark),
      var(--brand)
    );
  box-shadow: var(--shadow);
}

.brochure-card h2,
.brochure-card p {
  color: #ffffff;
}

.brochure-card h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 4vw, 3.65rem);
}

.brochure-card p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.brochure-actions {
  justify-content: flex-end;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(2.4rem, 5vw, 4.5rem);
}

.section-heading p {
  max-width: 720px;
  margin-bottom: 0;
}

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

.service-card,
.team-card,
.client-card,
.review-card,
.contact-form {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.service-card {
  overflow: hidden;
  border-radius: var(--radius);
}

.service-card > img,
.service-card-graphic {
  width: 100%;
  aspect-ratio: 16 / 10;
}



.service-card-graphic {
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      135deg,
      var(--brand-soft),
      #f7faf8
    );
}

.service-card-graphic svg {
  width: min(46%, 190px);
  fill: none;
  stroke: var(--brand);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns:
    minmax(280px, 0.8fr)
    minmax(0, 1.2fr);
  align-items: stretch;
}

.service-card-wide .service-card-graphic {
  height: 100%;
  aspect-ratio: auto;
  min-height: 280px;
}

.service-card-wide .service-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card-body {
  padding: 24px;
}

.service-card-body p {
  margin-bottom: 1rem;
}

.service-card-body a {
  color: var(--brand);
  font-weight: 850;
}

.about-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}

.about-copy > p {
  max-width: 650px;
}

.about-list {
  display: grid;
  gap: 0;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(20, 32, 25, 0.12);
  font-weight: 750;
}

.about-list span {
  color: var(--brand);
  font-family: "MBDisplay", sans-serif;
}

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

.team-card {
  overflow: hidden;
  border-radius: var(--radius);
}

.team-card img {
  width: 100%;
  aspect-ratio: 2 / 2.5;
  object-fit: cover;
  object-position: top center;
}

.team-card-body {
  padding: 22px;
}

.team-card-body > span {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-card-body h3 {
  margin: 5px 0 12px;
}

.text-button,
.footer-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.text-button {
  color: var(--brand);
}

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

.client-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px;
  border-radius: var(--radius);
  text-align: center;
}

.client-card img {
  max-width: min(100%, 360px);
  max-height: 120px;
  margin: auto;
  object-fit: contain;
}

.client-card h3 {
  margin: 24px 0 0;
}

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

.review-card {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
}

.review-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.78fr)
    minmax(0, 1.22fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.contact-facts {
  display: grid;
  gap: 16px;
  margin: 2rem 0;
}

.contact-facts > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-facts span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-facts a {
  color: var(--brand);
  font-weight: 800;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.social-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
}

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

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field input,
.field select {
  min-height: 52px;
  padding: 0 15px;
}

.field textarea {
  resize: vertical;
  padding: 14px 15px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(29, 90, 68, 0.1);
  outline: 0;
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.consent-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
}

.consent-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.consent-check a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.submit-btn {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.field,
.field input,
.field select,
.field textarea {
  min-width: 0;
  max-width: 100%;
}

.contact-facts a,
.contact-facts strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.map-shell {
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.map-shell iframe {
  width: 100%;
  height: 480px;
  display: block;
  border: 0;
}

.map-placeholder {
  min-height: 480px;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.76),
      rgba(255, 255, 255, 0.76)
    ),
    repeating-linear-gradient(
      45deg,
      #e9efeb 0 22px,
      #f4f7f5 22px 44px
    );
  text-align: center;
}

.map-placeholder > div {
  max-width: 560px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-small);
}

.map-placeholder strong {
  display: block;
  margin-bottom: 7px;
  font-family: "MBDisplay", sans-serif;
  font-size: 1.35rem;
}

.site-footer {
  padding: 4rem 0 1.5rem;
  background: #0e1914;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns:
    1.4fr
    0.65fr
    0.65fr;
  gap: 50px;
}

.footer-logo {
  width: auto;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 8px;
}

.site-footer p {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 4px;
}

.footer-links a,
.footer-button {
  width: fit-content;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.86rem;
}

.team-dialog,
.cookie-dialog {
  width: min(calc(100% - 32px), 880px);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.28);
}

.team-dialog::backdrop,
.cookie-dialog::backdrop {
  background: rgba(7, 14, 10, 0.7);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.dialog-layout {
  display: grid;
  grid-template-columns:
    minmax(220px, 0.72fr)
    minmax(0, 1.28fr);
  gap: 0;
}

.dialog-layout > img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: top;
}

.dialog-layout > div {
  padding: clamp(2rem, 5vw, 4rem);
}

.dialog-layout h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

/* Cookie-Banner fährt von unten sichtbar in die Seite ein. */
.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 3000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(calc(100% + 40px));

  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    visibility 0s linear 0.45s;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.cookie-banner-inner {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(14, 25, 20, 0.97);
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.cookie-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.cookie-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.91rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-banner .btn-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #ffffff;
}

.cookie-dialog {
  max-width: 700px;
  padding: clamp(1.6rem, 4vw, 2.7rem);
}

.cookie-dialog h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}

.cookie-option strong {
  display: block;
  margin-bottom: 3px;
}

.cookie-option p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-option input {
  width: 22px;
  height: 22px;
  accent-color: var(--brand);
}

.cookie-option.is-required {
  background: var(--surface-soft);
  cursor: default;
}

.required-badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.cookie-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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


/* =========================================================
   DESKTOP / WIDESCREEN
   ========================================================= */

@media (min-width: 981px) and (max-width: 1279px) {
  :root {
    --container: 1220px;
    --header-height: 112px;
  }

  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .brand img {
    width: clamp(330px, 31vw, 400px);
  }

  .main-nav {
    gap: 16px;
    font-size: 17px;
  }

  .nav-cta {
    padding: 10px 14px;
  }
}

@media (min-width: 1280px) {
  :root {
    --container: 1380px;
    --header-height: 142px;
  }

  .brand img {
    width: clamp(500px, 31vw, 580px);
  }

  .nav-wrap {
    gap: 36px;
  }

  .main-nav {
    gap: 24px;
    font-size: 20px;
  }
}

@media (min-width: 1600px) {
  :root {
    --container: 1520px;
    --header-height: 154px;
  }

  .container {
    width: min(calc(100% - 72px), var(--container));
  }

  .brand img {
    width: 620px;
  }

  .main-nav {
    gap: 30px;
    font-size: 22px;
  }

  .hero-grid {
    grid-template-columns:
      minmax(0, 1.45fr)
      minmax(390px, 0.62fr);
    gap: clamp(4rem, 6vw, 7rem);
  }

  .section-heading {
    max-width: 940px;
  }
}

@media (min-width: 1800px) {
  :root {
    --container: 1720px;
    --header-height: 166px;
  }

  .container {
    width: min(calc(100% - 96px), var(--container));
  }

  .brand img {
    width: 680px;
  }

  .main-nav {
    gap: 34px;
    font-size: 23px;
  }

  .section-pad {
    padding: clamp(6rem, 7vw, 9rem) 0;
  }

  .hero {
    padding-top: clamp(7rem, 8vw, 10rem);
  }

  .hero-lead {
    max-width: 860px;
    font-size: 1.35rem;
  }

  .service-grid,
  .client-grid {
    gap: 28px;
  }

  .review-grid {
    gap: 24px;
  }

  .service-card-body,
  .team-card-body {
    padding: 30px;
  }
}

@media (min-width: 2200px) {
  :root {
    --container: 2040px;
    --header-height: 184px;
  }

  .container {
    width: min(calc(100% - 140px), var(--container));
  }

  .brand img {
    width: 760px;
  }

  .main-nav {
    gap: 40px;
    font-size: 25px;
  }

  .hero-grid {
    grid-template-columns:
      minmax(0, 1.5fr)
      minmax(480px, 0.6fr);
    gap: 8rem;
  }

  .about-grid,
  .contact-grid {
    gap: 8rem;
  }

  .brochure-card {
    padding: 5rem;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 105px;
  }

  .nav-wrap {
    gap: 16px;
  }

  .brand img {
    width: 320px;
    max-width: calc(100vw - 100px);
    height: auto;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 18px 20px 26px;
    border-bottom: 1px solid var(--line);
    background: rgba(245, 247, 244, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .main-nav a {
    padding: 13px 0;
  }

  .main-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

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

  .hero-grid,
  .about-grid,
  .contact-grid,
  .brochure-card {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .brochure-actions,
  .cookie-actions {
    justify-content: flex-start;
  }

  .contact-copy {
    position: static;
  }

  .cookie-banner-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 100px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav-wrap {
    gap: 10px;
  }

  .brand img {
    width: 290px;
    max-width: calc(100vw - 90px);
    height: auto;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4.6rem);
  }

  .hero-panel,
  .service-grid,
  .team-grid,
  .client-grid,
  .review-grid,
  .form-row.two-cols,
  .footer-grid,
  .dialog-layout,
  .service-card-wide {
    grid-template-columns: 1fr;
  }

  .service-card-wide {
    grid-column: auto;
  }

  .service-card-wide .service-card-graphic {
    min-height: 240px;
  }

  .strength-card {
    grid-template-columns: 54px 1fr;
  }

  .team-card img {
    aspect-ratio: 4 / 4.5;
  }

  .client-card {
    min-height: 190px;
  }

  .review-card img {
    min-height: 0;
  }

  .footer-grid {
    gap: 32px;
  }

  .dialog-layout > img {
    max-height: 420px;
    min-height: 0;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .cookie-actions,
  .cookie-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-actions .btn,
  .cookie-dialog-actions .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 96px;
  }

  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .brand img {
    width: 275px;
    max-width: calc(100vw - 82px);
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 10px;
  }

  .hero-actions,
  .brochure-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .brochure-actions .btn {
    width: 100%;
  }

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

  .map-shell,
  .map-shell iframe,
  .map-placeholder {
    min-height: 400px;
    height: 400px;
  }
}


@media (max-width: 390px) {
  :root {
    --header-height: 90px;
  }

  .container {
    width: min(calc(100% - 18px), var(--container));
  }

  .brand img {
    width: 245px;
    max-width: calc(100vw - 78px);
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
}

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

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