:root {
  --ink: #0c1a26;
  --paper: #fff;
  --mist: #f0f6fa;
  --line: #d5dde3;
  --gutter: 1.75rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --section: 5.5rem;
  --content: 68rem;
  --measure: 46rem;
  --radius: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
}

main {
  background: var(--paper);
}

a {
  color: var(--ink);
}

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

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

h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.5rem);
  line-height: 1.3;
  margin-bottom: var(--space-5);
}

h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
}

.site-header {
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 2;
}

.bar {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter) 0 0;
  height: 5.25rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: stretch;
  height: 100%;
  text-decoration: none;
}

.brand img {
  height: 100%;
  width: auto;
}

.site-header nav a {
  color: var(--paper);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.site-header nav a,
.button,
.footer-links a,
.menu-button,
.with-icon {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-header nav a {
  text-decoration: none;
  font-weight: 700;
}

.menu-button {
  display: none;
  background: transparent;
  color: var(--paper);
  border: 0;
  font: inherit;
  padding: var(--space-2);
  margin-right: calc(var(--gutter) - var(--space-2));
}

.wrap {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: var(--section) 0;
}

.hero h1 {
  margin-bottom: 1rem;
}

.photo {
  background-size: cover;
  background-position: center;
  position: relative;
}

.photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 26, 38, 0.62);
}

.photo > * {
  position: relative;
}

.photo,
.photo h1,
.photo h2,
.photo h3,
.photo a {
  color: var(--paper);
}

.photo .cards article,
.photo .cards article h3,
.photo .cards a.service-card,
.photo .cards a.service-card h3,
.photo a.button {
  color: var(--ink);
}

.contact-band {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: var(--section) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 36rem);
  justify-content: center;
  gap: var(--space-5);
  width: 100%;
}

.contact-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.contact-facts li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.contact-facts a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
}

.crumbs li {
  display: flex;
  align-items: center;
}

.crumbs a,
.crumbs [aria-current="page"] {
  display: inline;
}

.crumbs [aria-current="page"] {
  font-weight: 700;
}

.crumbs {
  width: 100%;
  background: #f0f6fa;
  padding: 8px 0;
}

.crumbs .icon {
  color: var(--ink);
  display: block;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.crumbs a {
  font-weight: 400;
  text-decoration: none;
}

.crumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
}

.eyebrow {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: var(--space-4);
}

.lead {
  max-width: var(--measure);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: 0;
}

.button {
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem var(--space-4);
  font-weight: 700;
}

.button-quiet,
.photo a.button-quiet {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--paper);
}

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

.wrap.section,
.wrap.band {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.band {
  background: var(--mist);
}

.cards,
.project-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: var(--space-4);
}

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

.cards article,
.cards a.service-card,
.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--space-5);
}

.cards a.service-card {
  color: inherit;
  text-decoration: none;
}

.cards article p:last-child,
.cards a.service-card p:last-child,
.project-card p {
  margin-bottom: 0;
}

.cards article svg,
.cards a.service-card svg {
  margin-bottom: var(--space-3);
}

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

.project-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
  overflow: hidden;
}

.project-card h3,
.project-card p {
  margin-left: var(--space-5);
  margin-right: var(--space-5);
}

.project-card h3 {
  margin-top: var(--space-4);
}

.project-card p {
  margin-bottom: var(--space-5);
}

.project-media {
  background: var(--mist);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.project-placeholder {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.85rem;
  padding: var(--space-4);
}

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

.project-carousel {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  overflow: hidden;
  background: var(--mist);
  touch-action: pan-y;
}

.project-carousel-track {
  display: flex;
  transition: transform 0.35s ease;
}

.project-carousel img {
  flex: 0 0 100%;
  width: 100%;
  height: 28rem;
  object-fit: cover;
  user-select: none;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
}

.carousel-button.previous {
  left: var(--space-4);
}

.carousel-button.next {
  right: var(--space-4);
}

.carousel-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-4);
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}

.carousel-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--paper);
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--section) 0 var(--space-6);
}

.site-footer a,
.site-footer h2 {
  color: var(--paper);
}

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

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  font-size: 0.92rem;
}

.footer-meta p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-4);
}

.footer-links a {
  text-decoration: none;
  font-weight: 700;
}

.article {
  max-width: var(--measure);
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.leistung-page {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.inquiry {
  margin-top: var(--section);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.contact-band .inquiry {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.contact-band .inquiry-form {
  max-width: none;
}

.calc {
  display: grid;
  gap: var(--space-5);
  max-width: 36rem;
}

.calc label {
  display: grid;
  gap: var(--space-2);
  font-weight: 700;
}

.calc input,
.calc select {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.7rem var(--space-4);
}

.calc output {
  display: block;
  font-weight: 700;
}

.inquiry-form {
  display: grid;
  gap: var(--space-4);
  max-width: 36rem;
}

.inquiry-form label {
  display: grid;
  gap: var(--space-2);
  font-weight: 700;
}

.inquiry-form input,
.inquiry-form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.7rem var(--space-4);
}

.inquiry-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.inquiry-form .consent {
  font-weight: 400;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.inquiry-form .consent input {
  margin-top: 0.2rem;
}

.inquiry-form button {
  justify-self: start;
  font: inherit;
  font-weight: 700;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 0.7rem var(--space-4);
  cursor: pointer;
}

.inquiry-success {
  display: none;
}

.inquiry.is-sent .inquiry-form {
  display: none;
}

.inquiry.is-sent .inquiry-success {
  display: block;
}

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

.article .lead {
  font-weight: 700;
}

.points,
.rich ul {
  padding-left: 1.2rem;
  margin-top: 0;
  margin-bottom: var(--space-5);
}

.points {
  list-style: none;
  padding-left: 0;
}

.points li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.points li svg {
  flex: none;
  margin-top: 0.15rem;
}

.rich li {
  margin-bottom: var(--space-3);
}

.rich h2,
.rich h3 {
  margin-top: var(--space-5);
}

.project-carousel + .article {
  padding-top: var(--space-6);
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 38, 0.45);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  z-index: 3;
}

.dialog {
  background: var(--paper);
  color: var(--ink);
  max-width: 34rem;
  width: 100%;
  padding: var(--space-5);
  max-height: 80vh;
  overflow: auto;
}

.dialog button {
  font: inherit;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 0.55rem 0.9rem;
}

.loading {
  padding: var(--section) var(--gutter);
}

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

@media (max-width: 700px) {
  :root {
    --gutter: 1.25rem;
    --section: 4.5rem;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-header nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: var(--space-4);
    padding: var(--space-4) var(--gutter) var(--space-5);
  }

  .site-header nav.open {
    display: flex;
  }

  .cards,
  .project-grid,
  .contact-grid,
  .contact-layout,
  .contact-facts,
  .footer-grid,
  .footer-meta {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    display: grid;
  }

  .hero {
    min-height: 70vh;
    padding: 4.5rem 0;
  }

  .project-carousel img {
    height: 16rem;
  }
}

.icon {
  fill: currentColor;
  flex: none;
}
