:root {
  --ink: #111313;
  --muted: #66706b;
  --paper: #f6f4ee;
  --surface: #ffffff;
  --line: rgba(17, 19, 19, 0.12);
  --green: #164b35;
  --moss: #7f9a55;
  --clay: #c8663d;
  --gold: #d6a64c;
  --shadow: 0 26px 80px rgba(20, 31, 24, 0.17);
  --radius: 28px;
  --radius-lg: 40px;
  --radius-pill: 999px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.cursor-glow {
  position: fixed;
  z-index: 0;
  width: 26rem;
  height: 26rem;
  pointer-events: none;
  background: radial-gradient(circle, rgba(214, 166, 76, 0.2), transparent 62%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-header {
  position: fixed;
  inset: 18px 24px auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(13, 18, 15, 0.5);
  color: #fff;
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.16);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.site-header.is-scrolled {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 244, 238, 0.78)),
    rgba(246, 244, 238, 0.88);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 18px 50px rgba(17, 19, 19, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  border-radius: var(--radius-pill);
  padding-right: 14px;
}

.brand-logo {
  width: 48px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  font-size: 0.76rem;
  opacity: 0.72;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
}

.is-scrolled .main-nav {
  border-color: rgba(17, 19, 19, 0.08);
  background: rgba(17, 19, 19, 0.04);
}

.main-nav a,
.header-cta {
  border-radius: var(--radius-pill);
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.main-nav a,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  opacity: 0.82;
  transition:
    opacity 0.2s ease,
    background 0.2s ease;
}

.main-nav a:hover,
.nav-item:hover > a {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
}

.is-scrolled .main-nav a:hover,
.is-scrolled .nav-item:hover > a {
  background: rgba(17, 19, 19, 0.06);
}

.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 248px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(13, 18, 15, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  color: #fff;
  font-size: 0.85rem;
  opacity: 0.86;
}

.is-scrolled .nav-dropdown {
  border-color: rgba(17, 19, 19, 0.09);
  background: rgba(255, 255, 255, 0.94);
}

.is-scrolled .nav-dropdown a {
  color: var(--ink);
}

.header-cta {
  background: linear-gradient(135deg, #fff, #f1eadb);
  color: var(--ink);
  box-shadow: inset 0 -8px 18px rgba(17, 19, 19, 0.08);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.is-scrolled .header-cta {
  background: linear-gradient(135deg, var(--green), #0f2f23);
  color: #fff;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  transform: scale(1.06);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 10, 8, 0.84), rgba(7, 10, 8, 0.58) 52%, rgba(7, 10, 8, 0.34)),
    linear-gradient(180deg, rgba(7, 10, 8, 0.28), rgba(7, 10, 8, 0.88));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 170px 0 118px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4c56a;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(2.55rem, 5.2vw, 4.9rem);
}

h2 {
  max-width: 780px;
  font-size: clamp(1.65rem, 3.25vw, 3.25rem);
}

h3 {
  margin: 0;
  font-size: clamp(1.12rem, 1.55vw, 1.45rem);
  line-height: 1.16;
}

.hero-copy {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button.primary {
  background: var(--gold);
  color: #161711;
  box-shadow: 0 14px 32px rgba(214, 166, 76, 0.28);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  width: min(560px, calc(100% - 48px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(23, 37, 30, 0.62);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-panel div {
  padding: 18px;
}

.hero-panel div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  font-size: 1.6rem;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0;
  scroll-margin-top: 88px;
}

.section-heading {
  display: grid;
  gap: 22px;
}

.section-heading.compact {
  margin-bottom: 36px;
}

.section-heading.split {
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading.split > p,
.intro-grid > p,
.about-content > p {
  color: var(--muted);
  font-size: 1rem;
}

.intro {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 56px;
  align-items: end;
}

.intro-grid {
  display: grid;
  gap: 26px;
}

.quick-contact {
  display: grid;
  gap: 4px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-contact span {
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-contact a {
  color: var(--green);
  font-size: 1.24rem;
  font-weight: 900;
}

.service-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(17, 19, 19, 0.08);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 16% 12%, rgba(214, 166, 76, 0.22), transparent 28%),
    radial-gradient(circle at 84% 78%, rgba(127, 154, 85, 0.2), transparent 30%),
    rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.service-card {
  scroll-margin-top: 118px;
  position: relative;
  min-height: 318px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(17, 19, 19, 0.08);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 244, 238, 0.78)),
    var(--surface);
  box-shadow: 0 16px 48px rgba(20, 31, 24, 0.09);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent 42%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(214, 166, 76, 0.42);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-number {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 75, 53, 0.08);
  color: var(--clay);
  font-size: 0.86rem;
  font-weight: 900;
}

.service-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: auto;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(214, 166, 76, 0.24), rgba(127, 154, 85, 0.16)),
    #fff;
  color: var(--green);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(17, 19, 19, 0.06);
}

.service-card h3 {
  margin-top: 42px;
  font-size: clamp(1.08rem, 1.35vw, 1.32rem);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.service-card p {
  color: var(--muted);
}

.service-card a {
  width: max-content;
  margin-top: auto;
  color: var(--green);
  font-weight: 900;
}

.service-card a::after {
  content: " ->";
}

.service-card.large {
  position: relative;
  grid-column: span 2;
  min-height: 500px;
  overflow: hidden;
  color: #fff;
}

.service-card.large::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 9, 0.04), rgba(7, 11, 9, 0.88)),
    linear-gradient(90deg, rgba(7, 11, 9, 0.52), transparent);
}

.service-card.large img,
.image-card img {
  position: absolute;
  inset: 0;
}

.service-card.large div {
  position: absolute;
  inset: auto 28px 28px;
  z-index: 1;
}

.service-card.large .service-number {
  position: relative;
  top: auto;
  right: auto;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.16);
  color: #f4c56a;
}

.service-card.large h3 {
  margin-top: 0;
}

.service-card.large p {
  color: rgba(255, 255, 255, 0.78);
}

.service-card.large ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.service-card.large li {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 800;
}

.image-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.image-card::after {
  content: "Innenausbau";
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  border-radius: var(--radius-pill);
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.project-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 14px;
}

.project-strip article {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1b211e;
  scroll-margin-top: 112px;
}

.project-strip article:nth-child(2),
.project-strip article:nth-child(3) {
  min-height: 380px;
  align-self: end;
}

.project-strip article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 9, 0.02), rgba(7, 11, 9, 0.82));
}

.project-strip article div {
  position: absolute;
  inset: auto 22px 22px;
  z-index: 1;
  color: #fff;
}

.project-strip p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.project-strip-wide article {
  min-height: 520px;
}

.project-strip-wide article:nth-child(2),
.project-strip-wide article:nth-child(3) {
  min-height: 430px;
}

.gallery-grid {
  display: grid;
  gap: 14px;
}

.gallery-grid:not(.gallery-grid-full) {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 150px;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: #1b211e;
  box-shadow: 0 18px 48px rgba(20, 31, 24, 0.11);
}

.gallery-grid:not(.gallery-grid-full) figure {
  min-height: 0;
}

.gallery-grid:not(.gallery-grid-full) figure:nth-child(1) {
  grid-column: span 6;
  grid-row: span 3;
}

.gallery-grid:not(.gallery-grid-full) figure:nth-child(2),
.gallery-grid:not(.gallery-grid-full) figure:nth-child(3) {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-grid:not(.gallery-grid-full) figure:nth-child(4) {
  grid-column: span 6;
  grid-row: span 2;
}

.gallery-grid:not(.gallery-grid-full) figure:nth-child(5),
.gallery-grid:not(.gallery-grid-full) figure:nth-child(6) {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-grid:not(.gallery-grid-full) figure:nth-child(7) {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-grid:not(.gallery-grid-full) figure:nth-child(8) {
  grid-column: span 5;
  grid-row: span 2;
}

.gallery-grid figure:nth-child(2),
.gallery-grid figure:nth-child(4) {
  transform: none;
}

.gallery-grid img {
  transition: transform 0.45s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.045);
}

.gallery-grid-full figure:nth-child(2),
.gallery-grid-full figure:nth-child(4) {
  transform: none;
}

.gallery-grid-full {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid-full figure {
  min-height: 320px;
}

.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 9, 0.02) 36%, rgba(7, 11, 9, 0.76)),
    linear-gradient(90deg, rgba(7, 11, 9, 0.2), transparent 54%);
}

.gallery-grid figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
}

.gallery-grid:not(.gallery-grid-full) figure:nth-child(1) figcaption {
  font-size: 1.22rem;
}

.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: 46px;
}

.subpage-hero {
  width: min(var(--max), calc(100% - 48px));
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: end;
  margin: 0 auto;
  padding: 170px 0 74px;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.anchor-list a {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
}

.service-detail {
  width: min(var(--max), calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: center;
  margin: 0 auto;
  padding: 72px 0;
  scroll-margin-top: 112px;
}

.service-detail.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.service-detail.reverse div {
  order: 2;
}

.service-detail.reverse img {
  order: 1;
}

.service-detail > div {
  display: grid;
  gap: 22px;
}

.service-detail p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.service-detail img {
  height: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  height: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-content {
  display: grid;
  gap: 24px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: #26312b;
  font-weight: 760;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: inset 0 0 0 4px #e3ecd0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(22, 75, 53, 0.08), rgba(214, 166, 76, 0.12)),
    rgba(255, 255, 255, 0.34);
}

blockquote {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(17, 19, 19, 0.08);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 244, 238, 0.72)),
    #fff;
  box-shadow: 0 18px 50px rgba(20, 31, 24, 0.08);
}

blockquote::before {
  content: "“";
  position: absolute;
  right: 22px;
  bottom: -48px;
  color: rgba(22, 75, 53, 0.08);
  font-family: Georgia, serif;
  font-size: 12rem;
  line-height: 1;
}

blockquote.featured {
  transform: translateY(-18px);
  background:
    linear-gradient(145deg, rgba(22, 75, 53, 0.96), rgba(15, 47, 35, 0.96)),
    var(--green);
  color: #fff;
  box-shadow: 0 28px 90px rgba(22, 75, 53, 0.28);
}

blockquote.featured::before {
  color: rgba(255, 255, 255, 0.08);
}

.quote-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c66f, #c8663d);
  color: #17120c;
  font-weight: 900;
}

.stars {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
}

blockquote p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1rem, 1.12vw, 1.14rem);
  line-height: 1.38;
}

cite {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

cite span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

blockquote.featured cite,
blockquote.featured cite span {
  color: rgba(255, 255, 255, 0.82);
}

.contact {
  width: min(var(--max), calc(100% - 48px));
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  margin: 0 auto 24px;
  padding: 44px;
  border-radius: var(--radius-lg);
  background: #17251e;
  color: #fff;
  scroll-margin-top: 120px;
}

.contact-page {
  margin-top: 28px;
}

.contact-content {
  align-self: center;
}

.contact-content p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.contact-details a,
.contact-details span {
  color: rgba(255, 255, 255, 0.86);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

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

.trap-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  padding: 13px 14px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

textarea {
  resize: vertical;
}

select option {
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.14);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: #f4c56a;
  font-weight: 800;
}

.site-footer {
  width: min(var(--max), calc(100% - 48px));
  display: grid;
  gap: 12px;
  margin: 22px auto 28px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 56px;
  align-items: stretch;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 166, 76, 0.18), transparent 25%),
    radial-gradient(circle at 92% 82%, rgba(127, 154, 85, 0.14), transparent 24%),
    linear-gradient(145deg, #17251e, #0d1712);
  box-shadow: 0 28px 90px rgba(20, 31, 24, 0.18);
}

.footer-company {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  color: #fff;
  padding-right: 0;
}

.footer-card p {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-contact {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact a {
  color: #fff;
  font-weight: 850;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-content: start;
  gap: 34px;
  min-height: 100%;
  padding: 8px 0;
}

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

.footer-links nav::before {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-links nav[aria-label="Footer Navigation"]::before {
  content: "Navigation";
}

.footer-links nav[aria-label="Rechtliches"]::before {
  content: "Rechtliches";
}

.footer-links nav a {
  width: max-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-links nav a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bottom a {
  color: var(--green);
  font-weight: 900;
}

.legal-page {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 96px;
}

.legal-card {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 60px rgba(20, 31, 24, 0.09);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.12;
}

.legal-card h2:first-child,
.legal-date + h2 {
  margin-top: 0;
}

.legal-card h3 {
  margin: 24px 0 10px;
  font-size: 1.08rem;
}

.legal-card p,
.legal-card li,
.legal-card dd {
  color: #3f4843;
}

.legal-card p {
  margin: 12px 0 0;
}

.legal-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-date {
  margin: 0 0 22px;
  color: var(--clay);
  font-weight: 900;
}

.legal-details {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

.legal-details div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.legal-details dt {
  color: var(--muted);
  font-weight: 900;
}

.legal-details dd {
  margin: 0;
  font-weight: 760;
}

.legal-card a {
  color: var(--green);
  font-weight: 900;
}

.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.12) translate3d(-2%, 1%, 0);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    inset: 12px 12px auto;
  }

  .nav-toggle {
    justify-self: end;
    display: grid;
    gap: 6px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: currentColor;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .nav-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .main-nav.is-open {
    grid-column: 1 / -1;
    display: grid;
    justify-self: stretch;
    gap: 6px;
    padding: 8px;
    border-radius: 24px;
  }

  .main-nav.is-open a {
    padding: 13px 10px;
    border-radius: 18px;
  }

  .main-nav.is-open .nav-item {
    display: grid;
    gap: 6px;
  }

  .main-nav.is-open .nav-dropdown {
    position: static;
    width: auto;
    padding: 4px 0 0 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .main-nav.is-open .nav-dropdown::before {
    display: none;
  }

  .main-nav.is-open .nav-dropdown a {
    color: currentColor;
    opacity: 0.72;
    padding: 10px;
  }

  .hero-content {
    width: min(100% - 32px, var(--max));
    padding: 132px 0 220px;
  }

  .hero-panel {
    left: 16px;
    right: 16px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .hero-panel div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .section,
  .contact,
  .site-footer {
    width: min(100% - 32px, var(--max));
  }

  .section {
    padding: 74px 0;
  }

  .intro,
  .subpage-hero,
  .section-heading.split,
  .about,
  .service-detail,
  .service-detail.reverse,
  .contact {
    grid-template-columns: 1fr;
  }

  .subpage-hero {
    width: min(100% - 32px, var(--max));
    padding: 142px 0 54px;
  }

  .anchor-list {
    justify-content: flex-start;
  }

  .service-detail {
    width: min(100% - 32px, var(--max));
    gap: 28px;
    padding: 54px 0;
  }

  .service-detail.reverse div,
  .service-detail.reverse img {
    order: initial;
  }

  .service-detail img {
    height: 380px;
  }

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

  .project-strip,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid:not(.gallery-grid-full) {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    margin: 0 -16px;
    padding: 2px 16px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-grid figure,
  .gallery-grid figure:nth-child(2),
  .gallery-grid figure:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    min-height: 330px;
    transform: none;
  }

  .gallery-grid:not(.gallery-grid-full) figure,
  .gallery-grid:not(.gallery-grid-full) figure:nth-child(2),
  .gallery-grid:not(.gallery-grid-full) figure:nth-child(4) {
    flex: 0 0 min(78vw, 360px);
    height: 340px;
    min-height: 0;
    scroll-snap-align: start;
  }

  .project-strip article,
  .project-strip article:nth-child(2),
  .project-strip article:nth-child(3) {
    min-height: 360px;
  }

  .about-image {
    height: 430px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  blockquote.featured {
    transform: none;
  }

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

  .footer-links nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 9px;
    border-radius: 26px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 2.9rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  h2 {
    font-size: clamp(1.55rem, 7.4vw, 2.35rem);
  }

  .hero-content {
    padding-bottom: 260px;
  }

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

  .gallery-grid:not(.gallery-grid-full) figure,
  .gallery-grid:not(.gallery-grid-full) figure:nth-child(2),
  .gallery-grid:not(.gallery-grid-full) figure:nth-child(4) {
    flex-basis: 82vw;
    height: 300px;
    border-radius: 22px;
  }

  .gallery-grid figcaption {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .service-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .testimonial-grid {
    padding: 10px;
    border-radius: 30px;
  }

  .service-card.large {
    grid-column: span 1;
    min-height: 420px;
  }

  .image-card {
    min-height: 260px;
  }

  .contact {
    padding: 28px 18px;
  }

  .service-detail img {
    height: 300px;
    border-radius: 30px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-card {
    padding: 24px;
    border-radius: 30px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    width: 100%;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .legal-page {
    width: min(100% - 32px, var(--max));
    padding-bottom: 68px;
  }

  .legal-card {
    padding: 26px 20px;
    border-radius: 30px;
  }

  .legal-details div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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