/* ==========================================================================
   Zuber Malerei & Gipserei
   Stylesheet (Mobile First, Full Width Layout)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Variablen: hier lassen sich Farben, Schriften und Abstände anpassen
   -------------------------------------------------------------------------- */
:root {
  /* Farben */
  --color-anthracite: #2B2B2B;
  --color-anthracite-soft: #3A3835;
  --color-anthracite-deep: #1F1E1D;
  --color-offwhite: #F7F5F2;
  --color-white: #FFFFFF;
  --color-sand: #EDE7DF;
  --color-accent: #B4532A;        /* Terrakotta */
  --color-accent-dark: #94411F;   /* Hover Zustand */
  --color-accent-light: #E3A07C;  /* Akzent auf dunklem Grund */
  --color-text: #2B2B2B;
  --color-text-muted: #5E5A55;
  --color-text-on-dark: #F7F5F2;
  --color-text-on-dark-muted: #C9C3BB;
  --color-border: #DDD6CC;
  --color-border-on-dark: rgba(247, 245, 242, 0.16);
  --color-error: #B3261E;
  --color-success: #2A6A3F;

  /* Schriften */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Schriftgrössen (fliessend) */
  --fs-hero: clamp(2.5rem, 1.4rem + 5.4vw, 5.75rem);
  --fs-h2: clamp(1.85rem, 1.25rem + 2.4vw, 3.25rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Layout */
  --content-max: 1280px;                       /* maximale Breite des Textinhalts */
  --gutter: clamp(1.25rem, 0.5rem + 3.4vw, 4rem); /* seitlicher Innenabstand */
  --section-space: clamp(4.5rem, 3rem + 6vw, 9rem);
  --header-h: 72px;

  /* Formen und Effekte */
  --radius: 14px;
  --radius-small: 8px;
  --shadow-soft: 0 1px 2px rgba(43, 43, 43, 0.04), 0 8px 24px rgba(43, 43, 43, 0.06);
  --shadow-lift: 0 2px 4px rgba(43, 43, 43, 0.05), 0 18px 40px rgba(43, 43, 43, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed: 0.3s;
}

@media (min-width: 1200px) {
  :root { --header-h: 88px; }
}

/* --------------------------------------------------------------------------
   2. Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 0.2em; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible { outline-color: var(--color-white); }

::selection { background: var(--color-accent); color: var(--color-white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-white);
  color: var(--color-text);
  font-weight: 600;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-lift);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   3. Layout Helfer
   Sektionen laufen immer über die volle Breite. Nur .container begrenzt
   den Textinhalt für die Lesbarkeit.
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  width: 100%;
  padding-block: var(--section-space);
}
.section--offwhite { background: var(--color-offwhite); }
.section--white { background: var(--color-white); }
.section--sand { background: var(--color-sand); }
.section--dark {
  background: var(--color-anthracite);
  color: var(--color-text-on-dark);
}
.section--flush-bottom { padding-bottom: 0; }

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.section__intro {
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: "";
  width: 2.25rem; height: 2px;
  background: currentColor;
}
.eyebrow--light { color: var(--color-accent-light); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease),
              border-color var(--speed) var(--ease), transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--small { min-height: 44px; padding: 0.55rem 1.25rem; }
.btn--large { min-height: 56px; padding: 0.95rem 2rem; font-size: 1rem; }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(180, 83, 42, 0.28);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 10px 24px rgba(180, 83, 42, 0.36);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.btn--ghost-light:hover {
  background: var(--color-white);
  color: var(--color-anthracite);
  border-color: var(--color-white);
}

.btn--light {
  background: var(--color-white);
  color: var(--color-anthracite);
}
.btn--light:hover { background: var(--color-anthracite); color: var(--color-white); }

.btn--dark {
  background: var(--color-anthracite);
  color: var(--color-white);
}
.btn--dark:hover { background: var(--color-accent); }

.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* --------------------------------------------------------------------------
   5. Header und Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  width: 100%;
  height: var(--header-h);
  color: var(--color-white);
  background: transparent;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
/* Zustand nach dem Scrollen und auf Unterseiten */
.site-header.is-scrolled,
.site-header.is-open,
.site-header--solid {
  color: var(--color-text);
  background: rgba(247, 245, 242, 0.94);
  box-shadow: 0 1px 0 rgba(43, 43, 43, 0.08), 0 10px 30px rgba(43, 43, 43, 0.06);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled,
  .site-header--solid {
    background: rgba(247, 245, 242, 0.86);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
  }
}
.site-header.is-open { background: var(--color-offwhite); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding-inline: var(--gutter);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  text-decoration: none;
  line-height: 1;
  color: inherit;
}
.logo__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo__name::after {
  content: "";
  display: inline-block;
  width: 0.4em; height: 0.4em;
  margin-left: 0.12em;
  background: var(--color-accent);
  border-radius: 50%;
}
.logo__sub {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo--light { color: var(--color-white); }
.logo--light .logo__name::after { background: var(--color-accent-light); }

/* Burger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 26px; height: 18px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease), top var(--speed) var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 8px; }
.nav-toggle__bars span:nth-child(3) { top: 16px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* Mobile Navigation: vollflächiges Panel unter dem Header */
.main-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  color: var(--color-text);
  background: var(--color-offwhite);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), visibility 0s linear var(--speed);
}
.main-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.main-nav__list { list-style: none; }
.main-nav__list a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.main-nav__list a[aria-current] { color: var(--color-accent); }
.main-nav__cta { align-self: stretch; min-height: 56px; font-size: 1rem; }

/* Ohne JavaScript bleibt die Navigation als normale Liste erreichbar */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-header { position: absolute; height: auto; padding-block: 0.75rem; color: var(--color-text); background: var(--color-offwhite); }
html:not(.js) .header__inner { flex-wrap: wrap; }
html:not(.js) .main-nav { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 0; opacity: 1; visibility: visible; transform: none; background: none; }
html:not(.js) .main-nav__list { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
html:not(.js) .main-nav__list a { padding: 0.5rem 0; font-size: 1rem; border: 0; }

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .main-nav,
  html:not(.js) .main-nav {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(1.25rem, 2vw, 2.5rem);
    padding: 0;
    overflow: visible;
    color: inherit;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .main-nav__list,
  html:not(.js) .main-nav__list {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(1.1rem, 1.9vw, 2.25rem);
  }
  .main-nav__list a,
  html:not(.js) .main-nav__list a {
    position: relative;
    padding: 0.5rem 0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border: 0;
    white-space: nowrap;
  }
  .main-nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--speed) var(--ease);
  }
  .site-header:not(.is-scrolled):not(.site-header--solid) .main-nav__list a::after { background: var(--color-accent-light); }
  .main-nav__list a:hover::after,
  .main-nav__list a[aria-current]::after { transform: scaleX(1); }
  .main-nav__list a[aria-current] { color: inherit; }
  .main-nav__cta { align-self: center; min-height: 44px; font-size: 0.9375rem; }
  html:not(.js) .site-header { position: absolute; height: var(--header-h); padding-block: 0; }
}

/* --------------------------------------------------------------------------
   6. Hero (volle Breite, volle Bildschirmhöhe)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 2.5rem) 5.5rem;
  color: var(--color-white);
  background: var(--color-anthracite);
  overflow: hidden;
  isolation: isolate;
}
.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero__overlay {
  background:
    linear-gradient(180deg, rgba(31, 30, 29, 0.55) 0%, rgba(31, 30, 29, 0) 26%),
    linear-gradient(100deg, rgba(31, 30, 29, 0.9) 0%, rgba(31, 30, 29, 0.78) 42%, rgba(31, 30, 29, 0.42) 100%);
}
.hero__content { position: relative; }
.hero h1 {
  max-width: 14ch;
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero__lead {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.9);
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 2.25rem;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-top: 2.5rem;
  list-style: none;
  font-size: var(--fs-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero__facts li::before {
  content: "";
  flex: none;
  width: 0.5rem; height: 0.5rem;
  background: var(--color-accent-light);
  border-radius: 50%;
}
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.25rem;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-left: -24px;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.hero__scroll:hover { background: var(--color-white); color: var(--color-anthracite); }

@media (min-width: 560px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .hero__media img { object-position: 50% 50%; }
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(31, 30, 29, 0.5) 0%, rgba(31, 30, 29, 0) 24%),
      linear-gradient(95deg, rgba(31, 30, 29, 0.92) 0%, rgba(31, 30, 29, 0.78) 38%, rgba(31, 30, 29, 0.18) 78%, rgba(31, 30, 29, 0.05) 100%);
  }
}
/* Sehr niedrige Bildschirme (Querformat auf dem Handy) */
@media (max-height: 520px) {
  .hero__facts, .hero__scroll { display: none; }
  .hero { padding-bottom: 2.5rem; }
}

/* --------------------------------------------------------------------------
   7. Leistungen
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.card {
  position: relative;
  padding: 2rem 1.75rem 2.1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  left: 1.75rem; right: 1.75rem; bottom: 0;
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lift);
}
.card:hover::after { transform: scaleX(1); }
.card__icon {
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  background: #F6E9E1;
  border-radius: 14px;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.card:hover .card__icon { background: var(--color-accent); color: var(--color-white); }
.card__icon svg,
.value__icon svg {
  width: 1.75rem; height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--color-text-muted); font-size: 0.9688rem; }

@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   8. Über uns (Bild randlos bis zum Bildschirmrand)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  padding-block: 0;
}
.split__media {
  position: relative;
  min-height: 62vw;
}
.split__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.split__badge {
  position: absolute;
  left: var(--gutter); bottom: 1rem;
}
.split__content {
  padding: clamp(3.5rem, 2rem + 6vw, 8rem) var(--gutter);
}
.split__text { max-width: 38rem; }
.split__text h2 { margin-bottom: 1.5rem; }
.split__text > p { color: var(--color-text-muted); font-size: 1.0625rem; }

.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}
.value { display: flex; gap: 1rem; align-items: flex-start; }
.value__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  color: var(--color-accent);
  background: #F6E9E1;
  border-radius: 50%;
}
.value__icon svg { width: 1.35rem; height: 1.35rem; }
.value h3 { margin-bottom: 0.25rem; font-size: 1.0625rem; }
.value p { color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.55; }

.values--row { margin-top: 0; padding-top: 0; border-top: 0; }
.section__more { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

.about { display: grid; grid-template-columns: 1fr; }
.about__text h2 { margin-bottom: 1.5rem; }
.about__text > p { max-width: 38rem; color: var(--color-text-muted); font-size: 1.0625rem; }
.about__text > p:last-child { margin-top: 2rem; }

@media (min-width: 560px) {
  .values { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2rem; }
}
@media (min-width: 1000px) {
  .values--row { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .about .values { margin-top: 0; padding-top: 0; border-top: 0; }
}
@media (min-width: 1000px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split__media { min-height: 100%; }
  .split__content {
    display: flex;
    align-items: center;
    padding-left: clamp(3rem, 6vw, 7rem);
  }
  .split__badge { left: 1.25rem; }
}

/* --------------------------------------------------------------------------
   11. Ablauf
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 4.75rem;
}
.step__number {
  position: absolute;
  left: 0; top: -0.2rem;
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.step:hover .step__number { background: var(--color-accent); color: var(--color-white); }
/* Verbindungslinie zwischen den Schritten */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(1.75rem - 1px);
  top: 3.6rem; bottom: -2.5rem;
  width: 2px;
  background: var(--color-border);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--color-text-muted); max-width: 34rem; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .step { padding-left: 0; padding-top: 5.25rem; }
  .step__number { top: 0; }
  .step:not(:last-child)::before {
    left: 4.25rem; right: -1.75rem;
    top: calc(1.75rem - 1px); bottom: auto;
    width: auto; height: 2px;
  }
}

/* --------------------------------------------------------------------------
   12. Aufruf zur Offerte (Band in Akzentfarbe)
   -------------------------------------------------------------------------- */
.cta-band {
  width: 100%;
  padding-block: clamp(3rem, 2.25rem + 3vw, 5rem);
  color: var(--color-white);
  background: linear-gradient(110deg, var(--color-accent-dark) 0%, var(--color-accent) 70%);
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.cta-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); margin-bottom: 0.5rem; }
.cta-band p { font-size: var(--fs-lead); color: rgba(255, 255, 255, 0.95); }
.cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
@media (min-width: 900px) {
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 3rem; }
  .cta-band__actions { flex: none; align-items: center; }
}

/* --------------------------------------------------------------------------
   14. Kontakt
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.contact__form {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field__req { color: var(--color-accent); }
.field__opt { font-weight: 400; color: var(--color-text-muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-offwhite);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-small);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.field textarea { min-height: 9.5rem; resize: vertical; line-height: 1.55; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2B2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
}
.field ::placeholder { color: #6F6A64; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9AFA2; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(180, 83, 42, 0.18);
}
.field [aria-invalid="true"] { border-color: var(--color-error); background: #FFF8F7; }
.field__error {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-error);
}

.field--checkbox {
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.85rem;
  align-items: start;
}
.field--checkbox input {
  width: 1.4rem; height: 1.4rem;
  margin: 0.15rem 0 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.field--checkbox label { font-weight: 400; font-size: 0.9375rem; line-height: 1.55; cursor: pointer; }
.field--checkbox label a { color: var(--color-accent); font-weight: 600; }
.field--checkbox .field__error { grid-column: 2; }

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}
.form__hint { margin: 0; font-size: var(--fs-small); color: var(--color-text-muted); }
.form__status {
  margin: 0;
  padding: 1rem 1.25rem;
  font-weight: 500;
  border-radius: var(--radius-small);
  border-left: 4px solid currentColor;
}
.form__status.is-success { color: var(--color-success); background: #EAF4EC; }
.form__status.is-error { color: var(--color-error); background: #FDECEA; }
.form__status.is-info { color: #6B4A00; background: #FFF1C9; }


@media (min-width: 620px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .contact { max-width: 54rem; }
}

/* --------------------------------------------------------------------------
   15. Footer (volle Breite)
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  color: var(--color-text-on-dark-muted);
  background: var(--color-anthracite-deep);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}
.footer__brand p { margin-top: 1.25rem; max-width: 26rem; }
.footer__col h2 {
  margin-bottom: 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white);
}
.footer__col ul { display: grid; gap: 0.15rem; }
.footer__col a,
.footer__top {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--color-text-on-dark-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--speed) var(--ease);
}
.footer__col a:hover,
.footer__top:hover { color: var(--color-white); text-decoration: underline; }
.footer__bottom { border-top: 1px solid var(--color-border-on-dark); }
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
  font-size: var(--fs-small);
}
.footer__bottom-inner p { margin: 0; }

@media (min-width: 620px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
  .footer__brand { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   17. Unterseiten (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.page-head {
  width: 100%;
  padding-block: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem)) clamp(3rem, 2rem + 4vw, 5.5rem);
  color: var(--color-text-on-dark);
  background:
    radial-gradient(50rem 26rem at 90% 0%, rgba(180, 83, 42, 0.24), transparent 60%),
    var(--color-anthracite);
}
.page-head h1 { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem); font-weight: 700; letter-spacing: -0.03em; }
.page-head p { max-width: 42rem; margin-top: 1.25rem; font-size: var(--fs-lead); color: var(--color-text-on-dark-muted); }

.legal { max-width: 50rem; }
.legal h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.75rem);
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--color-text-muted); font-size: 1.0625rem; }
.legal ul { margin: 0 0 1em; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.35rem; }
.legal a { color: var(--color-accent); font-weight: 500; }
.legal__back { margin-top: 3.5rem; }

/* --------------------------------------------------------------------------
   18. Animationen beim Scrollen (nur mit JavaScript aktiv)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Karten behalten ihren Hover Effekt nach dem Einblenden */
.js .card.reveal.is-visible,
.js .step.reveal.is-visible { transition: opacity 0.8s var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.js .card.reveal.is-visible:hover { transform: translateY(-6px); transition-delay: 0s; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero__content > * { animation: hero-in 0.9s var(--ease) both; }
  .hero__content > *:nth-child(2) { animation-delay: 0.08s; }
  .hero__content > *:nth-child(3) { animation-delay: 0.16s; }
  .hero__content > *:nth-child(4) { animation-delay: 0.24s; }
  .hero__content > *:nth-child(5) { animation-delay: 0.32s; }
  @keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   19. Druck
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .hero__scroll, .nav-toggle, .cta-band { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero { min-height: 0; color: #000; background: none; padding-block: 1rem; }
  .hero__media, .hero__overlay { display: none; }
  body { background: #fff; }
}
