/* ============================================================
   MALER FM — Design System v3
   Nach Vorbild des Inform-Templates (Webflow, Landing One)
   ============================================================ */

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

:root {
  --dark-gray: #131313;
  --border-dark: rgba(19, 19, 19, 0.15);
  --white: #ffffff;
  --border-white: rgba(255, 255, 255, 0.15);
  --light-gray: #f5f5f5;
  --text-soft: #5a5a57;
  --text-soft-white: rgba(255, 255, 255, 0.7);

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark-gray);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--dark-gray);
  color: var(--white);
}

/* ============================================================
   Typografie
   ============================================================ */

.display-heading {
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.large-heading {
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.medium-heading {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.large-text {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.uppercase {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ============================================================
   Layout
   ============================================================ */

.section {
  position: relative;
  z-index: 1;
  background: var(--white);
  padding: clamp(64px, 8vw, 112px) 0;
}

.section.no-top-padding {
  padding-top: 0;
}

.bg-light-gray {
  background: var(--light-gray);
}

.bg-dark {
  background: var(--dark-gray);
  color: var(--white);
}

.main-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.main-container.narrow {
  max-width: 1080px;
}

.grid-halves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.title-section {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.title-section.align-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.title-section.align-center .large-text {
  color: var(--text-soft);
}

/* ============================================================
   Buttons & Links
   ============================================================ */

.button {
  display: inline-block;
  border: 2px solid var(--dark-gray);
  background: var(--dark-gray);
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
  border-radius: 200px;
  padding: 12px 35px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.2s, background-color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.button:hover {
  background: transparent;
  color: var(--dark-gray);
}

.button.large {
  padding: 16px 44px;
  font-size: 15px;
}

.button.bg-white {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark-gray);
}

.button.bg-white:hover {
  background: transparent;
  color: var(--white);
}

.button-pair {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 8px;
}

.link-with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.link-arrow {
  transition: transform 0.2s var(--ease);
}

.link-with-arrow:hover .link-arrow {
  transform: translateX(6px);
}

.link-with-arrow.below-button {
  margin-top: 24px;
  color: var(--white);
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.navbar.is-scrolled {
  border-bottom-color: var(--border-dark);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  max-width: 1500px;
  margin: 0 auto;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.brand img {
  width: 96px;
  height: 96px;
  margin: -24px -10px -24px -14px;
}

.brand-name {
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: 0;
}

.nav-menu {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
}

.nav-menu a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 0;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--dark-gray);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

.nav-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-phone {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nav-phone:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Burger */
.menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-gray);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

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

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

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

/* ============================================================
   Mobile Menu
   ============================================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 6vw, 56px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding: 0.4em 0;
  border-bottom: 1px solid var(--border-dark);
}

.mobile-menu-foot {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
}

/* ============================================================
   Hero
   ============================================================ */

.hero-grid {
  align-items: center;
}

.hero-image {
  position: relative;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 72% 35%;
  border-radius: 6px;
}

.badge.bottom-left {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.eyebrow--light {
  color: var(--text-soft-white);
}

.hero-text {
  max-width: 560px;
}

.hero-text .large-text {
  color: var(--text-soft);
  margin-bottom: 36px;
}

/* ============================================================
   Breites Arbeitsbild
   ============================================================ */

.media-wrapper {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

.media-wrapper img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.media-wrapper:hover img {
  transform: scale(1.02);
}

.badge {
  background: var(--dark-gray);
  color: var(--white);
  text-align: center;
  border-radius: 200px;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}

.badge.bottom-right {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.media-caption {
  margin-top: 32px;
  max-width: 640px;
}

.media-caption .large-text {
  color: var(--text-soft);
}

/* ============================================================
   Kennzahlen
   ============================================================ */

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--border-dark);
}

.metric {
  text-align: center;
}

.metric .display-heading {
  margin-bottom: 10px;
}

.metric p {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 240px;
  margin: 0 auto;
}

.metric-divider {
  width: 1px;
  height: 90px;
  background: var(--border-dark);
}

/* ============================================================
   Dunkle Zitat-Sektion
   ============================================================ */

.quote-image img {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 6px;
}

.quote-heading {
  font-size: clamp(32px, 4vw, 54px);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.quote-text {
  color: var(--text-soft-white);
  margin-bottom: 36px;
}

.quote-author .uppercase {
  font-size: 14px;
  margin-bottom: 2px;
}

.quote-author div:last-child {
  color: var(--text-soft-white);
  font-size: 15px;
}

/* ============================================================
   Leistungen — Icon-Cards
   ============================================================ */

.icon-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.card-link {
  background: var(--white);
  padding: clamp(20px, 2vw, 28px);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0);
}

.card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(19, 19, 19, 0.1);
}

.card-art {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card-link:hover .card-art img {
  transform: scale(1.05);
}

.card-body {
  flex: 1;
  padding: 0 6px;
}

.card-title {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card-body p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.card-link .link-with-arrow {
  color: var(--dark-gray);
  padding: 0 6px 6px;
}

.card-link--dark {
  background: var(--dark-gray);
  color: var(--white);
  justify-content: flex-end;
  padding: clamp(28px, 3vw, 44px);
}

.card-link--dark .card-body {
  flex: 0;
  padding: 0;
}

.card-link--dark .card-title {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.card-link--dark .card-body p {
  color: var(--text-soft-white);
  font-size: 17px;
}

.card-link--dark .link-with-arrow {
  color: var(--white);
  padding: 0;
}

/* ============================================================
   Projekte / Posts
   ============================================================ */

.posts-grid {
  align-items: start;
}

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

.post-image {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 24px;
}

.post-image img {
  width: 100%;
  transition: transform 0.6s var(--ease);
}

.post-image:hover img {
  transform: scale(1.04);
}

.post-category {
  font-size: 13px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--dark-gray);
  padding-bottom: 2px;
}

.post-title-link h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}

.post-title-link:hover h3 {
  opacity: 0.65;
}

.post-meta {
  color: var(--text-soft);
  font-size: 15px;
}

/* ============================================================
   CTA mit Hintergrundbild
   ============================================================ */

.cta-section {
  background: var(--dark-gray);
  color: var(--white);
  overflow: hidden;
  padding: clamp(96px, 12vw, 160px) 0;
}

.cta-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-content .large-text {
  color: var(--text-soft-white);
  margin-bottom: 40px;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: clamp(64px, 8vw, 112px) 0 32px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--border-white);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.footer-intro {
  max-width: 480px;
}

.footer-logo {
  width: 52px;
  margin-bottom: 20px;
  filter: invert(1);
}

.footer-intro .large-text {
  color: var(--text-soft-white);
}

.footer-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.footer-heading {
  font-size: 13px;
  margin-bottom: 18px;
  color: var(--text-soft-white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-links span {
  font-size: 15px;
  color: var(--white);
  line-height: 1.5;
}

.footer-links a {
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.65;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border-white);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-soft-white);
}

.footer-credit {
  color: var(--white);
  transition: color 0.2s;
}

.footer-credit:hover {
  color: #d9a440;
}

/* ============================================================
   Unterseiten
   ============================================================ */

.nav-menu a.is-active::after {
  transform: scaleX(1);
}

.page-header {
  padding-bottom: clamp(40px, 5vw, 72px);
}

.page-header-inner {
  max-width: 880px;
}

.page-header-inner .large-text {
  color: var(--text-soft);
  max-width: 640px;
}

.title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.title-row .large-heading {
  margin-bottom: 0;
}

.section-more {
  text-align: center;
  margin-top: clamp(40px, 5vw, 56px);
}

.link-light {
  color: var(--white);
  margin-top: 32px;
}

.prose .medium-heading {
  margin-bottom: 24px;
}

.prose p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 18px;
}

/* Rechtliche Seiten */
.legal {
  max-width: 760px;
  border-top: 1px solid var(--border-dark);
}

.legal h2 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
}

.legal p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.legal a {
  color: var(--dark-gray);
  text-decoration: underline;
  text-decoration-color: #c96f4a;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal a:hover {
  text-decoration-color: var(--dark-gray);
}

.legal-address {
  padding-left: 18px;
  border-left: 3px solid #d9a440;
}

.legal-facts {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  font-size: 17px;
  line-height: 1.6;
}

.legal-facts dt,
.legal-facts dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-dark);
}

.legal-facts dt {
  font-weight: 700;
}

.legal-facts dd {
  color: var(--text-soft);
}

.legal-date {
  margin-top: 56px;
  font-size: 14px !important;
}

@media (max-width: 560px) {
  .legal-facts {
    grid-template-columns: 1fr;
  }

  .legal-facts dt {
    padding-bottom: 0;
    border-bottom: none;
  }
}

/* Leistungs- und Einblick-Zeilen */
.feature-row {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(48px, 6vw, 88px) 0;
  border-top: 1px solid var(--border-dark);
  scroll-margin-top: 90px;
}

.feature-row--wide {
  grid-template-columns: 7fr 5fr;
}

.feature-row--reverse .feature-image {
  order: 2;
}

.feature-image img {
  width: 100%;
  border-radius: 6px;
}

.feature-text .medium-heading {
  margin-bottom: 18px;
}

.feature-text > p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.feature-text .post-category {
  display: inline-block;
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 32px;
}

.check-list li {
  font-size: 15px;
  font-weight: 600;
  padding-left: 22px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #c96f4a;
}

.check-list li:nth-child(2)::before { background: #d9a440; }
.check-list li:nth-child(3)::before { background: #8a9b7e; }
.check-list li:nth-child(4)::before { background: var(--dark-gray); }

/* Werte */
.values-image {
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.value-card {
  background: var(--white);
  border-radius: 6px;
  padding: clamp(28px, 3vw, 44px);
}

.value-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
}

.value-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-soft);
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  border-top: 1px solid var(--border-dark);
  padding-top: clamp(40px, 5vw, 64px);
}

.contact-big {
  display: block;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.contact-mail {
  display: block;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  margin-bottom: 48px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-big:hover,
.contact-mail:hover {
  opacity: 0.7;
}

.contact-block {
  padding: 24px 0;
  border-top: 1px solid var(--border-dark);
}

.contact-label {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.contact-block p {
  font-size: 18px;
  margin-bottom: 12px;
}

.contact-form {
  background: var(--light-gray);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .medium-heading {
  margin-bottom: 8px;
}

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

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--white);
  color: var(--dark-gray);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--dark-gray);
}

.contact-form .is-invalid {
  border-color: #c96f4a;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  align-self: flex-start;
  cursor: pointer;
}

.chip-group {
  border: none;
  padding: 0;
  margin: 0;
}

.chip-group legend {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.chip-group legend em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-soft);
  margin-left: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-form .chip {
  display: inline-flex;
  flex-direction: row;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-form .chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 18px;
  border-radius: 200px;
  background: var(--white);
  border: 2px solid var(--white);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.contact-form .chip span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  transition: background 0.2s, border-color 0.2s;
}

.contact-form .chip:hover span {
  border-color: var(--dark-gray);
}

.contact-form .chip input:checked + span {
  background: var(--dark-gray);
  border-color: var(--dark-gray);
  color: var(--white);
}

.contact-form .chip input:checked + span::before {
  background: #d9a440;
  border-color: #d9a440;
}

.contact-form .chip input:focus-visible + span {
  outline: 2px solid var(--dark-gray);
  outline-offset: 2px;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status:empty {
  display: none;
}

.form-status {
  font-size: 16px;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 6px;
  background: var(--white);
}

.form-status.is-success {
  background: #8a9b7e;
  color: var(--white);
}

.form-status.is-error {
  background: #c96f4a;
  color: var(--white);
}

.contact-form .button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.form-note {
  font-size: 14px;
  color: var(--text-soft);
}

/* ============================================================
   Back to top
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark-gray);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ============================================================
   Animationen
   ============================================================ */

.load-first,
.load-second {
  opacity: 0;
  transform: translateY(24px);
  animation: load-in 0.8s var(--ease) forwards;
}

.load-first {
  animation-delay: 0.1s;
}

.load-second {
  animation-delay: 0.3s;
}

@keyframes load-in {
  to {
    opacity: 1;
    transform: none;
  }
}

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

.reveal.is-inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .load-first,
  .load-second,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 991px) {
  .nav-menu,
  .nav-phone {
    display: none;
  }

  .menu-button {
    display: flex;
  }

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

  .hero-grid .hero-text {
    text-align: center;
    margin: 0 auto;
  }

  .button-pair {
    justify-content: center;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .metric-divider {
    width: 120px;
    height: 1px;
    margin: 0 auto;
  }

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

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

  .feature-row,
  .feature-row--wide,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-row--reverse .feature-image {
    order: 0;
  }

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

@media (max-width: 560px) {

  .navbar-right .button {
    display: none;
  }

  .icon-cards-grid,
  .check-list,
  .form-row {
    grid-template-columns: 1fr;
  }

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