:root {
  --navy: #071c3c;
  --navy-2: #0d2d5c;
  --red: #d90f1b;
  --red-dark: #b80b14;
  --green: #20cf69;
  --green-dark: #12ad53;
  --ink: #121a27;
  --muted: #556171;
  --line: #d8dfe7;
  --soft: #f3f6f8;
  --white: #ffffff;
  --max-width: 1180px;
  --content-gutter: 24px;
  --section-space: clamp(64px, 8vw, 104px);
  --radius: 14px;
  --shadow: 0 24px 60px rgba(7, 28, 60, 0.14);
  --header-height: 108px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

p,
li,
dd {
  overflow-wrap: break-word;
}

.container {
  width: min(var(--max-width), calc(100% - (2 * var(--content-gutter))));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 12px 16px;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid #ffbd24;
  outline-offset: 4px;
}

input:focus-visible,
textarea:focus-visible {
  outline-color: var(--navy);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
  line-height: 1.12;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 5.1rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3.35rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.25rem;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.eyebrow.red {
  color: #ff7a82;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 2px solid var(--red);
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn-small {
  min-height: 44px;
  padding: 10px 15px;
}

.btn-ghost {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

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

.brand {
  flex: 0 1 340px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 340px;
  max-height: 82px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav > a:not(.btn) {
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav > a:not(.btn):hover,
.site-nav > a.active {
  border-color: currentColor;
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: clamp(58px, 8vw, 100px) 0;
  background: linear-gradient(135deg, #ffffff 0%, #f2f5f8 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 76px);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: #445064;
  font-size: 0.88rem;
  font-weight: 700;
}

.trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--red);
  font-weight: 900;
}

.hero-card {
  position: relative;
  min-width: 0;
}

.browser {
  overflow: hidden;
  border: 1px solid #e2e7ed;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.browser-bar {
  display: flex;
  gap: 7px;
  padding: 14px;
  background: #eef1f4;
}

.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #aeb7c1;
}

.mock {
  min-height: 410px;
  padding: clamp(34px, 5vw, 52px) clamp(24px, 4vw, 40px);
  background: linear-gradient(145deg, #081e41, #12396f);
  color: var(--white);
}

.mock p {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.mock h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.mock-button {
  display: inline-block;
  padding: 12px 17px;
  border-radius: 5px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 55px;
}

.mock-grid span {
  height: 66px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.badge {
  position: absolute;
  right: -18px;
  bottom: -28px;
  max-width: calc(100% - 20px);
  padding: 18px 22px;
  border-left: 5px solid var(--red);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.section {
  padding: var(--section-space) 0;
}

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

.section.dark {
  background: var(--navy);
  color: var(--white);
}

.dark h2,
.dark h3 {
  color: var(--white);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: clamp(30px, 6vw, 70px);
  margin-bottom: 50px;
}

.section-head > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.dark .section-head > p {
  color: #c4cedb;
}

.cards {
  display: grid;
  gap: 24px;
}

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

.cards article {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.cards article b {
  color: var(--red);
  font-size: 0.8rem;
}

.cards article h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.cards article p {
  color: var(--muted);
}

.services {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.services a {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.services a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.services span {
  color: #ff7a82;
  font-weight: 700;
}

.services p {
  margin: 5px 0 0;
  color: #c5cfdb;
}

.services i {
  font-size: 1.5rem;
  font-style: normal;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(40px, 7vw, 80px);
}

.portrait-wrap {
  position: relative;
  min-width: 0;
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--soft);
  object-fit: cover;
}

.portrait-note {
  position: absolute;
  right: -18px;
  bottom: 22px;
  padding: 16px 20px;
  background: var(--navy);
  color: var(--white);
}

.checklist {
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 850;
}

.text-link {
  color: var(--red);
  font-weight: 750;
}

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

.steps article {
  min-width: 0;
  padding: 28px;
  border-top: 4px solid var(--navy);
  background: var(--white);
}

.steps b {
  color: #7b8794;
  font-size: 2rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 24px 0;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.faq-list details p {
  max-width: 840px;
  margin: -8px 0 24px;
  color: var(--muted);
}

.cta {
  padding: 68px 0;
  background: #0b2349;
  color: var(--white);
}

.cta h2 {
  margin-bottom: 0;
  color: var(--white);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.page-hero {
  padding: clamp(58px, 7vw, 84px) 0 clamp(48px, 6vw, 70px);
  background: var(--soft);
}

.page-hero h1 {
  max-width: 920px;
}

.service-detail article {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 30px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.service-detail article:first-child {
  padding-top: 0;
}

.service-detail span {
  color: var(--red);
  font-size: 2rem;
  font-weight: 850;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(38px, 6vw, 70px);
}

.contact-link {
  display: block;
  margin: 12px 0;
  color: var(--navy);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.contact-points {
  margin-top: 35px;
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--soft);
}

.contact-form label {
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form label.full {
  grid-column: 1 / -1;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  min-width: 0;
  margin-top: 7px;
  padding: 13px;
  border: 1px solid #aeb8c4;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500 !important;
}

.privacy-check input {
  flex: 0 0 auto;
  inline-size: 19px;
  block-size: 19px;
  margin-top: 5px;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-form .btn {
  width: max-content;
  max-width: 100%;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin-bottom: 18px;
  padding: 22px;
  border-radius: var(--radius);
}

.form-message h2 {
  font-size: 1.5rem;
}

.form-message.success {
  border: 1px solid #add7bd;
  background: #eaf7ef;
}

.form-message.error {
  border: 1px solid #e2a8ad;
  background: #fff0f1;
}

.legal-container {
  max-width: 920px;
}

.legal-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.legal-block + .legal-block {
  margin-top: 36px;
}

.legal-card h2 {
  font-size: 1.65rem;
}

.legal-card h3 {
  font-size: 1.18rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--red);
  font-weight: 700;
}

.site-footer {
  padding: 62px 0 24px;
  background: #06162f;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1fr;
  gap: 60px;
}

.footer-grid > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-grid a,
.footer-grid span {
  overflow-wrap: anywhere;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-logo {
  width: 280px;
  padding: 10px;
  border-radius: 5px;
  background: var(--white);
}

.copyright {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #b8c3d2;
  font-size: 0.85rem;
}

.quick-contact {
  position: fixed;
  top: 50%;
  right: max(18px, env(safe-area-inset-right));
  z-index: 40;
  display: flex;
  width: 190px;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
}

.quick-contact__item {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid #e4e8ed;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(7, 28, 60, 0.17);
  color: #151515;
  font-size: 1.08rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.quick-contact__item:hover {
  box-shadow: 0 20px 48px rgba(7, 28, 60, 0.22);
  transform: translateX(-4px);
}

.quick-contact__item--phone {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.quick-contact__item--phone:hover {
  background: var(--green-dark);
}

.quick-contact__item svg {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.reference-hero {
  padding: clamp(58px, 7vw, 88px) 0 clamp(42px, 6vw, 64px);
  background: linear-gradient(135deg, #f5f7f9 0%, #ffffff 72%);
}

.reference-hero-grid,
.reference-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(38px, 6vw, 72px);
}

.reference-subtitle {
  margin: -10px 0 20px;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 750;
  line-height: 1.3;
}

.project-facts {
  min-width: 0;
  padding: 34px;
  border-top: 5px solid var(--red);
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
  color: var(--white);
}

.project-facts .eyebrow {
  color: var(--white);
}

.project-facts dl {
  margin: 0;
}

.project-facts dl div {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.project-facts dt {
  color: #aebbd0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 3px 0 0;
  font-weight: 700;
  line-height: 1.45;
}

.reference-showcase {
  padding: 28px 0 44px;
  background: var(--white);
}

.reference-visual {
  margin: 0;
  overflow: hidden;
}

.reference-visual img {
  width: 100%;
  filter: drop-shadow(0 22px 30px rgba(7, 28, 60, 0.12));
}

.reference-copy {
  min-width: 0;
}

.reference-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.07rem;
}

.reference-highlight,
.reference-quote {
  min-width: 0;
  padding: 36px;
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: var(--soft);
}

.reference-highlight strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.35rem;
}

.reference-highlight p {
  margin-bottom: 0;
  color: var(--muted);
}

.reference-content-grid.reverse {
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
}

.reference-content-grid.reverse .reference-copy {
  order: 2;
}

.reference-quote {
  background: var(--navy);
  color: var(--white);
}

.reference-quote p {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  font-weight: 750;
  line-height: 1.35;
}

.reference-services-head {
  margin-bottom: 38px;
}

.reference-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.reference-services > div {
  min-width: 0;
  min-height: 170px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.reference-services span {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 850;
}

.reference-services h3 {
  margin: 20px 0 4px;
}

.reference-services p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.reference-special .reference-copy p:not(.eyebrow) {
  color: #c4cedb;
}

.reference-live-card {
  min-width: 0;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.reference-live-card p {
  margin: 0;
  color: var(--muted);
}

.reference-live-card strong {
  display: block;
  margin: 4px 0 24px;
  color: var(--navy);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  overflow-wrap: anywhere;
}

@media (max-width: 1320px) and (min-width: 981px) {
  .quick-contact {
    width: 62px;
  }

  .quick-contact__item {
    width: 62px;
    justify-content: center;
    padding: 16px;
  }

  .quick-contact__item span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 88px;
    --content-gutter: 18px;
  }

  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .brand {
    flex-basis: 260px;
  }

  .brand img {
    width: 260px;
    max-height: 68px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    overflow: hidden;
    gap: 0;
    padding: 0 var(--content-gutter);
    border-bottom: 0 solid var(--line);
    background: var(--white);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.28s, opacity 0.2s, padding 0.28s, border-width 0.28s, visibility 0.2s;
  }

  .site-nav.open {
    max-height: 420px;
    padding-block: 12px 18px;
    border-bottom-width: 1px;
    opacity: 1;
    visibility: visible;
  }

  .site-nav > a:not(.btn) {
    padding: 15px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .site-nav > a:not(.btn):hover,
  .site-nav > a.active {
    border-color: var(--line);
  }

  .nav-cta {
    display: none !important;
  }

  .hero-grid,
  .section-head,
  .split,
  .contact-grid,
  .reference-hero-grid,
  .reference-content-grid,
  .reference-content-grid.reverse {
    grid-template-columns: 1fr;
  }

  .hero-card {
    width: min(680px, 100%);
    margin-inline: auto;
  }

  .section-head {
    gap: 14px;
  }

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

  .portrait-wrap {
    width: min(560px, 100%);
    margin-inline: auto;
  }

  .portrait-note {
    right: 10px;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .reference-content-grid.reverse .reference-copy {
    order: 0;
  }

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

  .quick-contact {
    top: auto;
    right: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    flex-direction: row;
    gap: 10px;
    transform: translateX(50%);
  }

  .quick-contact__item {
    width: 58px;
    min-height: 58px;
    justify-content: center;
    padding: 14px;
  }

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

  .quick-contact__item span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .quick-contact__item svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 78px;
    --content-gutter: 14px;
    --section-space: 64px;
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .brand {
    flex-basis: 205px;
  }

  .brand img {
    width: 205px;
    max-height: 58px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.75rem, 8.5vw, 2.55rem);
  }

  .actions,
  .cta-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn,
  .cta .btn {
    width: 100%;
  }

  .cards.three,
  .steps,
  .contact-form,
  .reference-services {
    grid-template-columns: 1fr;
  }

  .cards article,
  .steps article {
    padding: 24px;
  }

  .services a {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .services i {
    display: none;
  }

  .service-detail article {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 34px 0;
  }

  .contact-form {
    padding: 22px;
  }

  .contact-form label.full {
    grid-column: auto;
  }

  .contact-form .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .browser {
    transform: none;
  }

  .badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -4px 12px 0;
  }

  .mock {
    min-height: 340px;
  }

  .mock-grid {
    margin-top: 38px;
  }

  .project-facts,
  .reference-highlight,
  .reference-quote,
  .reference-live-card {
    padding: 24px;
  }

  .reference-services > div {
    min-height: auto;
    padding: 24px;
  }

  .reference-subtitle {
    margin-top: -4px;
  }

  .reference-showcase {
    padding: 20px 0 34px;
  }

  .quick-contact {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    gap: 0;
    padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 30px rgba(7, 28, 60, 0.12);
    transform: none;
  }

  .quick-contact__item {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 54px;
    flex-direction: column;
    gap: 3px;
    padding: 7px 4px;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    font-size: 0.76rem;
    line-height: 1.1;
  }

  .quick-contact__item:hover {
    box-shadow: none;
    transform: none;
  }

  .quick-contact__item span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .quick-contact__item svg {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 390px) {
  .brand {
    flex-basis: 180px;
  }

  .brand img {
    width: 180px;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Startseite , großformatiger Einstieg nach dem gelieferten Entwurf */
.home-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  background: #20251f;
  color: #fff;
}

.home-hero__background,
.home-hero__shade {
  position: absolute;
  inset: 0;
}

.home-hero__background {
  background-image: url('/assets/images/tischlerei-hero.webp');
  background-position: center center;
  background-size: cover;
}

.home-hero__shade {
  background: linear-gradient(90deg, rgba(4, 10, 13, .72) 0%, rgba(4, 10, 13, .55) 32%, rgba(4, 10, 13, .13) 58%, rgba(4, 10, 13, 0) 78%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100vh - var(--header-height));
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(54px, 7vh, 86px);
  padding-bottom: clamp(54px, 7vh, 82px);
}

.home-hero__eyebrow {
  margin: 0 0 24px;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
}

.home-hero h1 {
  max-width: 690px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(3.5rem, 5.15vw, 5.15rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: initial;
}

.home-hero__lead {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.93);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.65;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 32px 0 30px;
}

.home-hero__actions .btn {
  min-height: 48px;
  padding-inline: 24px;
  border-radius: 6px;
}

.home-hero__secondary {
  border-color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.12);
  color: #fff;
}

.home-hero__secondary:hover {
  border-color: #fff;
  background: #fff;
  color: var(--navy);
}

.home-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  color: rgba(255,255,255,.88);
  font-size: .78rem;
}

.home-hero__trust span::before {
  content: '✓';
  margin-right: 9px;
  color: var(--red);
  font-weight: 900;
}

.home-page .quick-contact {
  display: none;
}

@media (max-width: 980px) {
  .home-hero {
    min-height: calc(100svh - var(--header-height));
  }

  .home-hero__content {
    min-height: calc(100svh - var(--header-height));
  }

  .home-hero__background {
    background-position: 62% center;
  }

  .home-hero__shade {
    background: linear-gradient(90deg, rgba(4,10,13,.82) 0%, rgba(4,10,13,.62) 52%, rgba(4,10,13,.18) 100%);
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 720px;
  }

  .home-hero__content {
    min-height: 720px;
    justify-content: flex-end;
    padding-top: 90px;
    padding-bottom: 42px;
  }

  .home-hero__background {
    background-position: 69% center;
  }

  .home-hero__shade {
    background: linear-gradient(0deg, rgba(4,10,13,.91) 0%, rgba(4,10,13,.68) 56%, rgba(4,10,13,.14) 100%);
  }

  .home-hero h1 {
    font-size: clamp(2.7rem, 13vw, 3.8rem);
  }

  .home-hero__eyebrow {
    margin-bottom: 16px;
    font-size: .68rem;
  }

  .desktop-only {
    display: none;
  }

  .home-hero__actions {
    width: 100%;
    margin: 25px 0 24px;
  }

  .home-hero__actions .btn {
    width: 100%;
  }

  .home-hero__trust {
    display: grid;
    gap: 8px;
  }
}

/* Referenzübersicht und Branchen-Unterseiten */
.reference-overview-hero,
.branch-reference-hero {
  padding: clamp(64px, 9vw, 112px) 0;
  background: linear-gradient(135deg, #ffffff 0%, #eef3f7 100%);
}
.narrow-intro { max-width: 900px; }
.reference-overview-head,
.branch-section-head { align-items: end; }
.reference-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.reference-category-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(7, 28, 60, 0.07);
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.reference-category-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}
.reference-category-number {
  margin-bottom: auto;
  color: var(--red);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.reference-category-card h3 { margin: 42px 0 10px; font-size: 1.55rem; }
.reference-category-card p { margin: 0; color: var(--muted); }
.reference-category-link { margin-top: 24px; color: var(--navy); font-weight: 850; }
.reference-overview-note h2,
.reference-overview-note p { color: var(--white); }
.branch-reference-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
}
.branch-focus-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}
.branch-focus-card .eyebrow { color: #ff7a82; }
.branch-focus-card ul { margin: 0; padding: 0; list-style: none; }
.branch-focus-card li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: var(--white);
  font-weight: 700;
}
.branch-focus-card li::before { content: '✓'; position: absolute; left: 0; color: #ff7a82; }
.example-page-frame {
  overflow: hidden;
  border: 1px solid #d5dde5;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.example-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f7f8fa;
}
.example-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c6ced7; }
.example-browser-bar strong { margin-left: 10px; color: var(--muted); font-size: .86rem; }
.example-page-content { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 420px; }
.example-page-main { padding: clamp(36px, 6vw, 74px); align-self: center; }
.example-page-main h3 { max-width: 600px; margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.7rem); }
.example-page-main p:not(.eyebrow) { max-width: 610px; color: var(--muted); }
.example-button { display: inline-block; margin-top: 18px; padding: 12px 18px; border-radius: 7px; background: var(--red); color: var(--white); font-weight: 800; }
.example-page-visual { display: grid; min-height: 360px; place-items: center; background: linear-gradient(145deg, var(--navy), var(--navy-2)); }
.example-page-visual span { width: 72%; padding: 80px 20px; border: 1px solid rgba(255,255,255,.22); color: var(--white); font-weight: 850; text-align: center; }
.example-service-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.example-service-row span { padding: 22px; border-right: 1px solid var(--line); color: var(--navy); font-weight: 800; text-align: center; }
.example-service-row span:last-child { border-right: 0; }
.branch-checklist { display: grid; gap: 12px; }
.branch-checklist div { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; }
.branch-checklist span { color: var(--red); font-weight: 900; }
.branch-checklist p { margin: 0; color: var(--navy); font-weight: 750; }
.branch-back-nav { padding: 26px 0; border-top: 1px solid var(--line); }
.branch-back-nav a { color: var(--navy); font-weight: 850; }
@media (max-width: 920px) {
  .reference-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branch-reference-hero-grid,
  .example-page-content { grid-template-columns: 1fr; }
  .example-page-visual { min-height: 280px; }
}
@media (max-width: 620px) {
  .reference-category-grid { grid-template-columns: 1fr; }
  .reference-category-card { min-height: 250px; }
  .example-service-row { grid-template-columns: 1fr; }
  .example-service-row span { border-right: 0; border-bottom: 1px solid var(--line); }
  .example-service-row span:last-child { border-bottom: 0; }
}
.branch-reference-hero .eyebrow { text-transform: uppercase; }

/* Showroom */
.showroom-hero{padding:clamp(68px,9vw,116px) 0;background:linear-gradient(135deg,#fff 0%,#edf3f7 100%)}
.showroom-hero-grid{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(300px,.82fr);gap:clamp(42px,7vw,90px);align-items:center}
.showroom-summary{display:grid;grid-template-columns:44px 1fr;gap:0 16px;padding:30px;border-radius:var(--radius);background:var(--navy);box-shadow:var(--shadow)}
.showroom-summary span,.feature-number{color:#ff7a82;font-weight:900;letter-spacing:.1em}
.showroom-summary p{margin:0;padding:15px 0;border-top:1px solid rgba(255,255,255,.15);color:#fff;font-weight:720}
.showroom-summary span{padding-top:15px;border-top:1px solid rgba(255,255,255,.15)}
.showroom-summary span:first-child,.showroom-summary span:first-child+p{border-top:0;padding-top:0}
.showroom-section-head,.showroom-live-head{align-items:end}
.showroom-feature{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);gap:clamp(30px,6vw,78px);align-items:center;padding:clamp(48px,7vw,88px) 0;border-top:1px solid var(--line)}
.showroom-feature:first-of-type{border-top:0;padding-top:20px}.showroom-feature--reverse .showroom-feature-copy{order:2}.showroom-feature--reverse .showroom-demo{order:1}
.showroom-feature-copy h3{font-size:clamp(1.8rem,3vw,2.8rem);margin:10px 0 18px}.showroom-feature-copy p:last-child{color:var(--muted)}
.showroom-demo{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 18px 50px rgba(7,28,60,.1);overflow:hidden}
.gallery-demo{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px;background:#e7edf2}
.gallery-tile{min-height:150px;border:0;border-radius:10px;padding:18px;cursor:pointer;text-align:left;background:linear-gradient(145deg,#183e68,#071c3c);color:#fff;font:inherit;transition:transform .2s,filter .2s}
.gallery-tile:nth-child(2n){background:linear-gradient(145deg,#bd2631,#7f111b)}.gallery-tile:nth-child(3n){background:linear-gradient(145deg,#5a7086,#20384f)}
.gallery-tile:hover{transform:translateY(-3px);filter:brightness(1.08)}.gallery-tile span{display:inline-block;margin-top:70px;font-weight:850}
.gallery-lightbox{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:24px;background:rgba(2,10,20,.86)}.gallery-lightbox[hidden]{display:none}.gallery-lightbox>button{position:absolute;top:20px;right:24px;width:48px;height:48px;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:transparent;color:#fff;font-size:2rem;cursor:pointer}.gallery-lightbox>div{display:grid;width:min(820px,92vw);min-height:480px;place-items:center;border-radius:18px;background:linear-gradient(145deg,#183e68,#071c3c);color:#fff;box-shadow:0 30px 80px rgba(0,0,0,.35)}.gallery-lightbox span{font-size:clamp(2rem,6vw,5rem);opacity:.14}.gallery-lightbox strong{font-size:1.35rem}
.slideshow-demo{padding:20px;background:var(--navy)}.slideshow-stage{position:relative;min-height:330px}.showroom-slide{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;padding:42px;border-radius:12px;background:linear-gradient(145deg,#214b76,#0a2445);color:#fff;opacity:0;transform:translateX(18px);pointer-events:none;transition:.35s}.showroom-slide:nth-child(2){background:linear-gradient(145deg,#a81f2a,#621018)}.showroom-slide:nth-child(3){background:linear-gradient(145deg,#506b82,#1f3549)}.showroom-slide.active{opacity:1;transform:none;pointer-events:auto}.showroom-slide small{font-weight:900;letter-spacing:.12em}.showroom-slide strong{margin:12px 0;font-size:clamp(1.8rem,4vw,3.2rem)}.showroom-slide p{max-width:600px;margin:0;color:rgba(255,255,255,.86)}
.slideshow-controls{display:flex;align-items:center;justify-content:center;gap:16px;padding-top:16px}.slideshow-controls button{width:42px;height:42px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:transparent;color:#fff;cursor:pointer}.slideshow-dots{display:flex;gap:8px}.slideshow-dots button{width:9px;height:9px;padding:0;border:0;background:rgba(255,255,255,.35)}.slideshow-dots button.active{background:#fff}
.form-demo{padding:28px}.form-demo form{display:grid;gap:16px}.form-demo-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-demo label{display:grid;gap:7px;color:var(--navy);font-weight:800}.form-demo input,.form-demo select,.form-demo textarea{width:100%;border:1px solid #cbd5df;border-radius:8px;padding:13px 14px;background:#fff;font:inherit;color:var(--navy)}.demo-form-status{margin:0;padding:14px;border-radius:8px;background:#e9f7ee;color:#176433;font-weight:750}
.contact-button-demo{display:grid;gap:12px;padding:18px;background:#eef3f7}.demo-contact-card{display:flex;align-items:center;gap:18px;padding:20px;border-radius:12px;background:#fff;text-decoration:none;box-shadow:0 8px 20px rgba(7,28,60,.06);transition:transform .2s}.demo-contact-card:hover{transform:translateX(4px)}.demo-contact-card>span{display:grid;width:48px;height:48px;place-items:center;border-radius:50%;background:var(--navy);color:#fff;font-size:1.3rem}.demo-contact-card small{display:block;color:var(--red);font-weight:900;letter-spacing:.1em}.demo-contact-card strong{display:block;margin-top:4px;color:var(--navy)}
.faq-demo{padding:10px}.faq-demo details{border-bottom:1px solid var(--line)}.faq-demo details:last-child{border-bottom:0}.faq-demo summary{padding:22px;cursor:pointer;color:var(--navy);font-weight:850}.faq-demo p{padding:0 22px 22px;margin:0;color:var(--muted)}
.function-list-demo{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line)}.function-list-demo div{padding:20px;background:#fff;color:var(--navy);font-weight:760}.function-list-demo span{margin-right:10px;color:var(--red);font-weight:900}
.showroom-live-head h2,.showroom-live-head p{color:#fff}.live-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.live-project-card{display:flex;min-height:300px;flex-direction:column;padding:30px;border:1px solid rgba(255,255,255,.18);border-radius:var(--radius);background:rgba(255,255,255,.07);color:#fff;text-decoration:none;transition:transform .2s,border-color .2s,background .2s}.live-project-card:hover{transform:translateY(-4px);border-color:#ff7a82;background:rgba(255,255,255,.1)}.live-project-card small{color:#ff7a82;font-weight:900;letter-spacing:.1em}.live-project-card h3{margin:34px 0 12px;color:#fff;font-size:1.7rem}.live-project-card p{color:rgba(255,255,255,.78)}.live-project-card span{margin-top:auto;font-weight:850}.live-project-card--note{border-style:dashed}.live-project-card--note:hover{transform:none}
@media(max-width:900px){.showroom-hero-grid,.showroom-feature{grid-template-columns:1fr}.showroom-feature--reverse .showroom-feature-copy,.showroom-feature--reverse .showroom-demo{order:initial}.gallery-demo{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.gallery-demo,.function-list-demo,.live-project-grid,.form-demo-row{grid-template-columns:1fr}.gallery-tile{min-height:120px}.showroom-slide{padding:28px}.slideshow-stage{min-height:360px}.gallery-lightbox>div{min-height:380px}.showroom-feature{padding:48px 0}}

/* =========================================================
   Einheitliches Seitenraster
   Gilt für alle Inhaltsseiten, nicht für den Startseiten-Hero.
   ========================================================= */

:root {
  --page-hero-space-top: clamp(72px, 7vw, 104px);
  --page-hero-space-bottom: clamp(64px, 6vw, 88px);
  --page-hero-copy-width: 900px;
  --page-hero-background: linear-gradient(135deg, #ffffff 0%, #eef3f7 100%);
}

/* Einheitlicher Hintergrund sowie identische obere und untere Abstände */
.page-hero,
.reference-overview-hero,
.branch-reference-hero,
.showroom-hero {
  padding-top: var(--page-hero-space-top);
  padding-bottom: var(--page-hero-space-bottom);
  background: var(--page-hero-background);
}

/* Einheitliche Startkante und Textbreite der Einleitungen */
.page-hero > .container,
.reference-overview-hero > .container,
.branch-reference-hero > .container {
  max-width: var(--max-width);
}

.page-hero > .container,
.reference-overview-hero .narrow-intro,
.branch-reference-hero .narrow-intro {
  width: min(var(--max-width), calc(100% - (2 * var(--content-gutter))));
  margin-inline: auto;
}

/* Die schmale Referenz-Einleitung darf nicht ein zweites Mal eingerückt werden */
.reference-overview-hero .narrow-intro,
.branch-reference-hero .narrow-intro {
  max-width: var(--max-width);
}

/* Einheitliche Typografie für den sichtbaren Kopfbereich */
.page-hero h1,
.reference-overview-hero h1,
.branch-reference-hero h1,
.showroom-hero h1 {
  max-width: var(--page-hero-copy-width);
  margin-bottom: 24px;
}

.page-hero .lead,
.reference-overview-hero .lead,
.branch-reference-hero .lead,
.showroom-hero .lead {
  max-width: 760px;
}

/* Showroom: linke Textspalte beginnt exakt auf derselben Rasterkante */
.showroom-hero-grid {
  width: min(var(--max-width), calc(100% - (2 * var(--content-gutter))));
  margin-inline: auto;
}

/* Einheitlicher Abstand direkt nach den Seitenköpfen */
.page-hero + .section,
.reference-overview-hero + .section,
.branch-reference-hero + .section,
.showroom-hero + .section {
  padding-top: var(--section-space);
}

/* Einheitliche mobile Abstände */
@media (max-width: 980px) {
  :root {
    --page-hero-space-top: 64px;
    --page-hero-space-bottom: 64px;
  }

  .showroom-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --page-hero-space-top: 48px;
    --page-hero-space-bottom: 52px;
  }

  .page-hero h1,
  .reference-overview-hero h1,
  .branch-reference-hero h1,
  .showroom-hero h1 {
    margin-bottom: 20px;
  }
}

/* =========================================================
   Einheitlicher Schnellkontakt auf allen Seiten
   ========================================================= */

.quick-contact,
.home-page .quick-contact {
  position: fixed;
  top: 50%;
  right: max(18px, env(safe-area-inset-right));
  bottom: auto;
  left: auto;
  z-index: 45;
  display: flex;
  width: 60px;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
}

.quick-contact__item,
.quick-contact__item--phone {
  display: flex;
  width: 60px;
  min-width: 60px;
  height: 60px;
  min-height: 60px;
  flex: 0 0 60px;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 1px solid #cbd4de;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
  color: #151515;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease,
              color 0.18s ease, transform 0.18s ease;
}

.quick-contact__item--phone {
  border-color: #0f9f4d;
  background: var(--green);
  color: var(--white);
}

.quick-contact__item:hover,
.quick-contact__item:focus-visible {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: none;
  color: var(--navy);
  transform: translateX(-2px);
  outline: none;
}

.quick-contact__item--phone:hover,
.quick-contact__item--phone:focus-visible {
  border-color: #0a8740;
  background: var(--green-dark);
  color: var(--white);
}

.quick-contact__item span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.quick-contact__item svg {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  fill: currentColor;
}

/* Auf kleineren Desktopbreiten wird rechts Platz freigehalten. */
@media (min-width: 981px) and (max-width: 1400px) {
  main {
    padding-right: 78px;
  }
}

/* Auf Tablet und Smartphone liegt die Leiste am unteren Rand.
   Der zusätzliche Innenabstand am Body verhindert Überdeckungen. */
@media (max-width: 980px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  main {
    padding-right: 0;
  }

  .quick-contact,
  .home-page .quick-contact {
    top: auto;
    right: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: auto;
    width: auto;
    flex-direction: row;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: translateX(50%);
  }

  .quick-contact__item,
  .quick-contact__item--phone {
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
    flex-basis: 58px;
    padding: 0;
    border-radius: 50%;
  }

  .quick-contact__item:hover,
  .quick-contact__item:focus-visible {
    transform: translateY(-2px);
  }

  .quick-contact__item svg {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 390px) {
  .quick-contact,
  .home-page .quick-contact {
    gap: 8px;
  }

  .quick-contact__item,
  .quick-contact__item--phone {
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
    flex-basis: 54px;
  }
}


/* Ausgewählte Referenz */
.reference-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(42px, 6vw, 80px);
}

.reference-focus-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.reference-focus-image img {
  display: block;
  width: 100%;
}

.reference-focus-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.reference-focus-note .reference-content-grid {
  align-items: start;
}

@media (max-width: 980px) {
  .reference-focus-grid {
    grid-template-columns: 1fr;
  }
}


/* Praxisbeispiel und Projektablauf */
.process-intro {
  align-items: start;
}

.project-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.project-process article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.project-process span {
  display: block;
  margin-bottom: 26px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.project-process h3 {
  margin-bottom: 14px;
  font-size: 1.28rem;
}

.project-process p {
  margin-bottom: 0;
  color: var(--muted);
}

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

@media (max-width: 640px) {
  .project-process {
    grid-template-columns: 1fr;
  }
}

/* V15: ruhiger Mobile-Hero und klare, kollisionsfreie Desktop-Komposition */
@media (min-width: 1181px) {
  .home-hero h1 {
    max-width: 650px;
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: calc(100svh - var(--header-height));
  }

  .home-hero__content {
    min-height: calc(100svh - var(--header-height));
    justify-content: center;
    padding-top: 28px;
    padding-bottom: 96px;
  }

  /* Der Einstieg bleibt mobil bewusst fokussiert. */
  .home-hero__trust {
    display: none;
  }

  .home-hero__eyebrow {
    margin-bottom: 14px;
    font-size: clamp(.62rem, 2.8vw, .72rem);
    line-height: 1.35;
  }

  .home-hero h1 {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: clamp(2.45rem, 11.4vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -.04em;
  }

  .home-hero__lead {
    max-width: 100%;
    font-size: clamp(.96rem, 4.1vw, 1.05rem);
    line-height: 1.52;
  }

  .home-hero__actions {
    gap: 12px;
    margin: 24px 0 0;
  }

  .home-hero__actions .btn {
    min-height: 52px;
    padding: 13px 18px;
  }

  .home-hero__background {
    background-position: 66% center;
  }

  .home-hero__shade {
    background: linear-gradient(0deg, rgba(4,10,13,.95) 0%, rgba(4,10,13,.84) 62%, rgba(4,10,13,.58) 100%);
  }
}

@media (max-width: 390px) {
  .home-hero__content {
    padding-top: 22px;
    padding-bottom: 92px;
  }

  .home-hero h1 {
    font-size: clamp(2.25rem, 11.2vw, 2.7rem);
  }

  .home-hero__lead {
    font-size: .94rem;
    line-height: 1.48;
  }
}

/* Kontaktseite: persönlicher Ansprechpartner */
.contact-person {
  align-self: start;
}

.contact-person__copy > p:not(.eyebrow):not(.contact-person__location) {
  max-width: 42ch;
}

.contact-person__location {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-person__portrait {
  width: min(310px, 100%);
  margin: 28px 0 30px;
}

.contact-person__portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-person .contact-points {
  margin-top: 35px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .contact-person__portrait {
    width: min(300px, 70vw);
  }
}

@media (max-width: 700px) {
  .contact-person__portrait {
    width: min(280px, 78vw);
    margin: 24px auto 28px;
  }
}

/* Kontaktseite: E-Mail immer einzeilig, Überschrift höchstens zweizeilig */
.contact-person .contact-link[href^="mailto:"] {
  white-space: nowrap;
  font-size: clamp(0.72rem, 1.35vw, 1rem);
  letter-spacing: -0.02em;
}

#contact-person-title {
  max-width: 18ch;
  text-wrap: balance;
}

@media (max-width: 390px) {
  .contact-person .contact-link[href^="mailto:"] {
    font-size: clamp(0.64rem, 3.15vw, 0.78rem);
  }

  #contact-person-title {
    max-width: 16ch;
    font-size: clamp(1.72rem, 9vw, 2.2rem);
  }
}

/* Einheitliches Linkverhalten: keine Unterstreichung im Ruhezustand,
   Unterstreichung erst bei Hover bzw. Tastaturfokus. */
a {
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* Navigation, Buttons und vollständig klickbare Karten behalten ihre
   bestehende, nicht unterstrichene Darstellung. */
.brand:hover,
.brand:focus-visible,
.btn:hover,
.btn:focus-visible,
.site-nav > a:hover,
.site-nav > a:focus-visible,
.services a:hover,
.services a:focus-visible,
.quick-contact:hover,
.quick-contact:focus-visible,
.quick-contact__item:hover,
.quick-contact__item:focus-visible,
.contact-person:hover,
.contact-person:focus-visible,
.branch-focus-card:hover,
.branch-focus-card:focus-visible,
.project-facts:hover,
.project-facts:focus-visible,
.reference-copy:hover,
.reference-copy:focus-visible,
.reference-category-card:hover,
.reference-category-card:focus-visible,
.live-project-card:hover,
.live-project-card:focus-visible,
.demo-contact-card:hover,
.demo-contact-card:focus-visible {
  text-decoration: none;
}
