@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend/lexend-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14231f;
  --heading: #0b2e28;
  --text: #2f413c;
  --muted: #4a5a55;
  --brand: #017864;
  --brand-dark: #015a4b;
  --soft: #f2f5f4;
  --line: #d9e1de;
  --choice-line: #c5d2cd;
  --mint: #e9f3f0;
  --mint-line: #b9d8ce;
  --font-heading: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 4px;
  --gutter: 20px;
  --section-space: 48px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

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

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

a:hover {
  color: var(--heading);
}

/* Fast repeated taps (e.g. carousel arrows) must not trigger iOS double-tap zoom; pinch zoom stays available */
a,
button,
label,
summary {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--heading);
}

h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.12;
}

h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.15;
}

h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

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

.section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 28px;
}

.lead {
  color: var(--text);
}

.muted {
  color: var(--muted);
}

/* Buttons */

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  text-align: center;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn--outline {
  border: 1.5px solid var(--heading);
  color: var(--heading);
}

.btn--outline:hover {
  background: var(--heading);
  color: #fff;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  line-height: 1.1;
}

.brand__name {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.brand__tagline {
  font-size: 12px;
  color: var(--brand);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid #b8c6c1;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.js .menu-toggle {
  display: inline-flex;
}

.site-nav {
  border-top: 1px solid var(--line);
  padding: 4px 0 16px;
}

.js .site-nav:not(.is-open) {
  display: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid #e6ecea;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:last-child {
  border-bottom: 0;
}

.header-phone {
  display: none;
}

/* Hero */

.hero {
  padding: 28px 0 40px;
}

.hero__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__kicker {
  font-size: 16px;
  color: var(--muted);
}

.best-waerme {
  display: block;
  width: fit-content;
  margin: 0 0 14px;
  padding: 5px 14px;
  border: 2px solid #b35a0b;
  border-radius: var(--radius);
  color: #b35a0b;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.12em;
  vertical-align: middle;
}

.hero__lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--text);
}

.hero__image {
  width: 100%;
  height: clamp(300px, 50vw, 560px);
  object-fit: cover;
  border-radius: var(--radius);
}

/* Staubfrei */

.cover-image {
  width: 100%;
  height: clamp(260px, 45vw, 480px);
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.feature-list p,
.audience p,
.step p {
  color: var(--text);
}

/* Ablauf */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step__label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 17px;
  color: var(--brand);
}

.step p {
  flex-grow: 1;
}

.step img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 6px;
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin-top: 6px;
  padding: 12px;
  border: 1.5px dashed #b8c6c1;
  border-radius: var(--radius);
  background: #e7ecea;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.photo-placeholder--portrait {
  flex: none;
  width: 96px;
  height: 96px;
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

/* Für wen */

.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px 40px;
}

.audience > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
  border-top: 2px solid var(--brand);
}

/* Unsere Arbeiten (Karussell) */

.carousel__track {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 86%;
  scroll-snap-align: start;
}

.carousel__slide figure {
  margin: 0;
}

.carousel__slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
}

.carousel__slide figcaption {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
}

.carousel {
  position: relative;
}

.carousel__btn {
  display: none;
  position: absolute;
  top: 156px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--heading);
  box-shadow: 0 2px 12px rgba(11, 46, 40, 0.28);
  cursor: pointer;
}

.js .carousel__btn {
  display: inline-flex;
}

.carousel__btn:hover {
  background: #fff;
  color: var(--brand);
}

.carousel__btn--prev {
  left: 10px;
}

.carousel__btn--next {
  right: 10px;
}

.carousel__progress {
  display: none;
  position: relative;
  height: 4px;
  margin-top: 18px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.js .carousel__progress {
  display: block;
}

.carousel__progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  border-radius: 2px;
  background: var(--brand);
  transition: left 0.2s ease, width 0.2s ease;
}

@media (min-width: 640px) {
  .carousel__slide {
    flex-basis: calc((100% - 12px) / 2);
  }
}

.review-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  max-width: 420px;
}

.review-cta p {
  color: var(--text);
}

/* Projekt-Auswahl */

.project {
  display: grid;
  gap: 24px 40px;
}

.project fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.project legend {
  padding: 0;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 19px;
}

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.choices input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choices label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 12px;
  border: 2px solid var(--choice-line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 18px;
  text-align: center;
  cursor: pointer;
}

.choices input:checked + label {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.choices input:focus-visible + label {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.field label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 19px;
}

.field input {
  width: 100%;
  max-width: 240px;
  min-height: 56px;
  padding: 0 16px;
  border: 2px solid var(--choice-line);
  border-radius: var(--radius);
  font: inherit;
}

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

.result__hint {
  font-size: 15px;
  color: #3f524c;
}

.result {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 20px;
  background: var(--mint);
  border: 1.5px solid var(--mint-line);
  border-radius: var(--radius);
  align-self: start;
}

.result__label {
  display: block;
  font-size: 16px;
  color: #3f524c;
}

.result__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.result__subhead {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
}

.result ol {
  margin: 0;
  padding: 0 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Häufige Fragen */

.faq details {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  font-weight: 700;
  font-size: 19px;
  cursor: pointer;
}

.faq details p {
  margin-top: 10px;
  color: var(--text);
}

/* Kontakt */

.contact {
  display: grid;
  gap: 22px;
}

.contact__person {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact__photo {
  flex: none;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
}

.contact__person strong {
  display: block;
  font-size: 21px;
}

.contact__address {
  font-size: 17px;
  color: var(--text);
}

/* Footer */

.site-footer {
  padding: 20px 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--text);
}

/* Rechtstexte */

.legal {
  max-width: 820px;
}

.legal h1 {
  margin-bottom: 28px;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: clamp(24px, 3vw, 30px);
}

.legal h3 {
  margin: 24px 0 8px;
}

.legal p,
.legal ul {
  margin: 0 0 12px;
  color: var(--text);
}

.legal a {
  overflow-wrap: anywhere;
}

/* Muster-Widerrufsformular */

.withdrawal-form {
  margin-top: 40px;
  padding: 24px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.withdrawal-form h2 {
  margin-top: 0;
}

.withdrawal-form__lines {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.withdrawal-form__lines li {
  margin-bottom: 18px;
}

.withdrawal-form__field {
  display: block;
  height: 30px;
  border-bottom: 1px solid #9aa8a3;
}

.withdrawal-form__actions {
  margin-top: 20px;
}

.withdrawal-form__actions button {
  font: inherit;
  font-weight: 700;
  font-size: 19px;
  background: #fff;
  cursor: pointer;
}

@media print {
  .site-header,
  .site-footer,
  .withdrawal-form__actions,
  .legal:has(.withdrawal-form) > *:not(.withdrawal-form) {
    display: none;
  }

  .withdrawal-form {
    margin: 0;
    border: 0;
    background: none;
  }
}

/* Ab Tablet- und Desktop-Breite */

@media (min-width: 960px) {
  :root {
    --gutter: 40px;
    --section-space: 96px;
  }

  body {
    font-size: 19px;
  }

  .hero {
    padding: 64px 0 96px;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .btn-stack {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
  }

  .section__head {
    margin-bottom: 40px;
  }

  /* Photo beside the text, so a small source photo is never stretched across the full width.
     Photo on the left, mirroring the hero above (text left, photo right). */
  .media-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "media head" "media list";
    grid-template-rows: auto 1fr;
    column-gap: 64px;
  }

  .media-split .section__head {
    grid-area: head;
  }

  .media-split .cover-image {
    grid-area: media;
    height: 100%;
    min-height: 560px;
    margin: 0;
  }

  .media-split .feature-list {
    grid-area: list;
    grid-template-columns: 1fr;
    align-content: start;
  }

  .carousel__slide {
    flex-basis: calc((100% - 24px) / 3);
  }

  .carousel__slide img {
    height: 420px;
  }

  .carousel__btn {
    top: 186px;
  }

  .carousel__btn--prev {
    left: -22px;
  }

  .carousel__btn--next {
    right: -22px;
  }

  .step img,
  .step .photo-placeholder {
    height: 240px;
  }

  .project {
    grid-template-columns: 3fr 2fr;
  }

  .review-cta {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    max-width: none;
  }

  .contact {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    column-gap: 64px;
  }
}

/* Ab genug Breite fuer alle Menuepunkte in einer Zeile */

@media (min-width: 1180px) {
  .js .menu-toggle {
    display: none;
  }

  .site-header__bar {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .site-header__bar {
    flex: none;
  }

  .site-nav,
  .js .site-nav:not(.is-open) {
    display: flex;
    gap: 28px;
    padding: 0;
    border: 0;
  }

  .site-nav a {
    min-height: 44px;
    border: 0;
    font-size: 17px;
    white-space: nowrap;
  }

  .header-phone {
    display: inline-flex;
    min-height: 48px;
    padding: 0 20px;
    font-size: 17px;
  }
}
