/* ==========================================================================
   Ridinger Garten und Landschaftsbau – Stylesheet
   1. Schriften   2. Farben & Maße   3. Basis   4. Bausteine
   5. Kopf & Fuß  6. Startseite      7. Unterseiten   8. Bewegung
   ========================================================================== */

/* 1. Schriften (lokal eingebunden – keine Verbindung zu Google) ----------- */

/* Überschriften: Merriweather – kräftige Serifenschrift, angelehnt an den Schriftzug im Logo */
@font-face {
  font-family: "Merriweather";
  src: url("../fonts/merriweather.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Farben & Maße ---------------------------------------------------------
   Die Grüntöne und das Oliv stammen direkt aus dem Logo.                   */

:root {
  --forest: #465d36;        /* Logo: Bildmarke „R“ */
  --forest-deep: #2e3e24;   /* dunkle Flächen */
  --forest-night: #1f2a18;
  --leaf: #5e9d23;          /* Logo: Blatt und Unterzeile */
  --leaf-soft: #b5d48f;     /* Akzent auf dunklem Grund */
  --olive: #848158;         /* Logo: Schriftzug „Ridinger“ */
  --olive-ink: #6b6845;     /* Oliv für kleine Schrift (ausreichender Kontrast) */

  --ink: #232622;           /* Anthrazit */
  --ink-soft: #4b5048;
  --paper: #f6f4ee;         /* Kalkweiß */
  --stone: #ece8de;         /* Muschelkalk */
  --stone-deep: #e1dbcc;
  --line: #d9d3c4;
  --field-line: #cbc4b3;
  --white: #ffffff;
  --error: #a3261c;
  --todo: #fff0a3;

  --font-display: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1280px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --frame: clamp(.75rem, 1.6vw, 1.5rem);
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: clamp(20px, 2.2vw, 32px);
  --header-h: 76px;

  --ease: cubic-bezier(.22, .7, .18, 1);
  --shadow: 0 1px 2px rgba(35, 38, 34, .05), 0 18px 48px -18px rgba(35, 38, 34, .28);
}

@media (min-width: 1080px) {
  :root { --header-h: 92px; }
}

/* 3. Basis ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

/* Weiches Scrollen nur bei Klicks auf der Seite – beim Laden mit #Anker springt die Seite direkt */
html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 em,
h2 em,
h3 em {
  font-style: normal;
  font-weight: inherit;
  color: inherit;
}

/* Zweite Zeile einer Überschrift: gleiche Schrift, kleiner und ruhiger */
.h-sub {
  display: block;
  margin-top: .45em;
  font-size: .52em;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink-soft);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--leaf-soft);
  color: var(--ink);
}

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

.visually-hidden,
.js .upload__input {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -200px;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

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

.section--dark {
  background: var(--forest-deep);
  color: var(--paper);
}

.section--dark .h-sub,
.cta-band .h-sub {
  color: rgba(246, 244, 238, .78);
}

/* 4. Bausteine ------------------------------------------------------------- */

.display {
  font-size: clamp(2.05rem, 1.1rem + 3.6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 700;
}

h2,
.h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.015em;
}

h3,
.h3 {
  font-size: clamp(1.2rem, 1.05rem + .55vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -.005em;
}

.lead {
  max-width: 40rem;
  font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.section--dark .lead {
  color: rgba(246, 244, 238, .78);
}

h2 + .lead {
  margin-top: 1.5rem;
}

.section-head > .lead {
  margin-top: 0;
}

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.05rem + 1.25vw, 2.15rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.4rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive-ink);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.eyebrow:has(.eyebrow__num)::before {
  display: none;
}

.eyebrow__num {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--forest);
}

.eyebrow__num::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--olive-ink);
  opacity: .6;
}

.eyebrow--light,
.section--dark .eyebrow {
  color: var(--leaf-soft);
}

.section--dark .eyebrow__num {
  color: var(--paper);
}

.section--dark .eyebrow__num::after {
  background: var(--leaf-soft);
}

.section-head {
  display: grid;
  gap: 1.25rem;
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head .eyebrow {
  margin-bottom: 0;
}

.section-head--split {
  max-width: none;
}

@media (min-width: 960px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: end;
    column-gap: 4rem;
  }

  .section-head--split .eyebrow {
    grid-column: 1 / -1;
  }

  .section-head--split > :last-child {
    justify-self: end;
    max-width: 30rem;
  }
}

/* Schaltflächen */

.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  min-height: 3.3rem;
  padding: .45rem .5rem .45rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.btn:hover {
  --btn-bg: var(--forest-deep);
}

.btn:active {
  transform: translateY(1px);
}

.btn--text {
  padding: .45rem 1.5rem;
}

.btn__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  transition: background-color .35s var(--ease);
}

.btn__icon svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform .45s var(--ease);
}

.btn:hover .btn__icon svg {
  transform: translateX(3px);
}

.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
}

.btn--light:hover {
  --btn-bg: var(--white);
}

.btn--light .btn__icon {
  background: var(--forest);
  color: var(--white);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  padding: .45rem 1.5rem;
  border-color: rgba(35, 38, 34, .28);
}

.btn--outline:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  border-color: var(--ink);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  padding: .45rem 1.5rem;
  border-color: rgba(246, 244, 238, .5);
}

.btn--outline-light:hover {
  --btn-bg: rgba(246, 244, 238, .12);
  --btn-fg: var(--paper);
  border-color: var(--paper);
}

.btn--sm {
  min-height: 2.75rem;
  padding: .35rem 1.2rem;
  font-size: .92rem;
}

.btn.is-loading {
  pointer-events: none;
  opacity: .75;
}

.btn.is-loading .btn__icon svg {
  animation: spin 1s linear infinite;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding-bottom: .15rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
  transition: background-size .5s var(--ease);
}

.link-arrow:hover {
  background-size: 100% 1px;
}

.link-arrow svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform .45s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.section--dark .link-arrow {
  color: var(--leaf-soft);
}

/* Kleine Elemente */

.badge {
  position: absolute;
  top: .85rem;
  left: .85rem;
  z-index: 2;
  padding: .32rem .65rem;
  border-radius: 999px;
  background: rgba(246, 244, 238, .92);
  color: var(--ink);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.checklist {
  display: grid;
  margin: 1.75rem 0 2rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .checklist--two {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

.checklist li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.checklist svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--leaf);
}

.section--dark .checklist li {
  border-color: rgba(246, 244, 238, .16);
}

.section--dark .checklist svg {
  color: var(--leaf-soft);
}

.arch {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% var(--radius-l) var(--radius-l) / 40% 40% var(--radius-l) var(--radius-l);
  background: var(--stone-deep);
}

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

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--leaf);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--stone);
  color: var(--ink-soft);
  font-size: .95rem;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 48rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-soft);
  font-size: .97rem;
}

.notice svg {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: .15rem;
  color: var(--leaf);
}

.notice strong {
  color: var(--ink);
}

/* 5. Kopf, Menü, Fuß ------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(246, 244, 238, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: border-color .4s var(--ease);
}

.site-header.is-scrolled,
body.menu-open .site-header {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height .4s var(--ease);
}

.brand {
  flex: none;
  border-radius: 6px;
}

.brand img {
  width: auto;
  height: 52px;
  transition: height .4s var(--ease);
}

.nav {
  display: none;
  margin-left: auto;
}

.nav__list {
  display: flex;
  gap: clamp(1.4rem, 2.3vw, 2.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  padding-block: .5rem;
  font-size: .98rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .2rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link[aria-current="page"] {
  color: var(--forest);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.header-phone {
  display: none;
  align-items: center;
  gap: .55rem;
  font-size: .97rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.header-phone svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--forest);
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  height: 2.75rem;
  padding: 0 1rem 0 1.1rem;
  border: 1px solid rgba(35, 38, 34, .22);
  border-radius: 999px;
  background: transparent;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle__lines {
  position: relative;
  width: 18px;
  height: 10px;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}

.menu-toggle__lines::before {
  top: 0;
}

.menu-toggle__lines::after {
  top: calc(100% - 1.6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before {
  top: calc(50% - .8px);
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after {
  top: calc(50% - .8px);
  transform: rotate(-45deg);
}

@media (min-width: 860px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 1080px) {
  .brand img {
    height: 64px;
  }

  .site-header.is-scrolled .site-header__inner {
    height: calc(var(--header-h) - 18px);
  }

  .site-header.is-scrolled .brand img {
    height: 52px;
  }

  .nav {
    display: block;
  }

  .site-header__actions {
    margin-left: 1.25rem;
  }

  .menu-toggle {
    display: none;
  }
}

@media (min-width: 1240px) {
  .header-phone {
    display: inline-flex;
  }

  .site-header__actions {
    margin-left: 2.25rem;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.25rem) var(--gutter) calc(1.75rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--paper);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.mobile-menu[hidden] {
  display: none;
}

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

.mobile-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu__list li {
  border-bottom: 1px solid var(--line);
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.mobile-menu__link svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--olive);
}

.mobile-menu__link[aria-current="page"] {
  color: var(--forest);
}

.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-open li:nth-child(2) .mobile-menu__link { transition-delay: .05s; }
.mobile-menu.is-open li:nth-child(3) .mobile-menu__link { transition-delay: .1s; }
.mobile-menu.is-open li:nth-child(4) .mobile-menu__link { transition-delay: .15s; }
.mobile-menu.is-open li:nth-child(5) .mobile-menu__link { transition-delay: .2s; }

.mobile-menu__contact {
  display: grid;
  gap: .7rem;
  margin-top: auto;
  padding-top: 2.5rem;
}

.mobile-menu__contact .btn {
  width: 100%;
}

.mobile-menu__mail {
  margin-top: .4rem;
  color: var(--ink-soft);
  font-size: .95rem;
  text-align: center;
}

/* Kontaktleiste auf dem Smartphone */

.quickbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: .5rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(246, 244, 238, .97);
  box-shadow: 0 -10px 30px -16px rgba(35, 38, 34, .35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform .4s var(--ease);
}

.quickbar.is-hidden {
  transform: translateY(110%);
}

.quickbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.quickbar__btn svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--forest);
}

.quickbar__btn--wa svg {
  color: #1faa52;
}

.quickbar__btn--primary {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.quickbar__btn--primary svg {
  color: currentColor;
}

@media (max-width: 859.98px) {
  body {
    padding-bottom: calc(4.3rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 860px) {
  .quickbar {
    display: none;
  }
}

/* Abschluss-Band vor dem Fuß */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.75rem, 7vw, 6.5rem);
  background:
    radial-gradient(900px 380px at 88% 115%, rgba(94, 157, 35, .28), transparent 65%),
    var(--forest-deep);
  color: var(--paper);
}

.cta-band__inner {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.cta-band__title {
  max-width: 18ch;
  font-size: clamp(1.8rem, 1.2rem + 2.3vw, 3.2rem);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.cta-band__phone {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.cta-band__phone small {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--leaf-soft);
}

@media (min-width: 960px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Fuß */

.site-footer {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: .97rem;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.site-footer__brand img {
  width: auto;
  height: 96px;
}

.site-footer__brand p {
  max-width: 22rem;
  margin-top: 1.4rem;
  color: var(--ink-soft);
}

.footer-title {
  margin: 0 0 1rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive-ink);
}

.footer-list {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  text-decoration: none;
}

.footer-list a:hover {
  text-decoration: underline;
}

.footer-list span {
  color: var(--ink-soft);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .87rem;
}

.site-footer__bottom ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__bottom p {
  margin: 0;
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  }
}

/* 6. Startseite ------------------------------------------------------------ */

/* Titelbild */

.hero {
  padding: 0 var(--frame) var(--frame);
}

.hero__frame {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(540px, calc(100svh - var(--header-h) - var(--frame)), 940px);
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--forest-deep);
  color: var(--paper);
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: 50% 58%;
  animation: hero-zoom 3.2s var(--ease) both;
}

@media (max-width: 700px) {
  .hero__media img {
    object-position: 50% 40%;
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(22, 30, 17, .3) 0%, rgba(22, 30, 17, .04) 20%, rgba(22, 30, 17, .4) 48%, rgba(22, 30, 17, .86) 100%),
    linear-gradient(90deg, rgba(22, 30, 17, .62) 0%, rgba(22, 30, 17, .2) 50%, rgba(22, 30, 17, 0) 75%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 58rem;
  padding: 7rem clamp(1.4rem, 5vw, 4.5rem) clamp(1.6rem, 5vw, 4.25rem);
}

.hero .eyebrow {
  color: rgba(246, 244, 238, .92);
}

.hero .eyebrow::before {
  background: var(--leaf-soft);
  opacity: 1;
}

@media (max-width: 599.98px) {
  .hide-sm {
    display: none;
  }

  .hero__lead {
    font-size: 1rem;
  }
}

.hero .h-sub {
  margin-top: .5em;
  font-size: .48em;
  color: rgba(246, 244, 238, .9);
}

.hero__lead {
  max-width: 35rem;
  margin: 1.5rem 0 2.25rem;
  color: rgba(246, 244, 238, .9);
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.hero__card {
  display: none;
}

@media (max-width: 519.98px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__actions .btn--outline-light {
    justify-content: center;
  }
}

@media (min-width: 1280px) {
  .hero__content {
    max-width: calc(100% - 23rem);
  }

  .hero__card {
    position: absolute;
    right: clamp(1.5rem, 3vw, 3rem);
    bottom: clamp(1.5rem, 3vw, 3rem);
    z-index: 2;
    display: block;
    width: 19rem;
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius);
    background: rgba(246, 244, 238, .94);
    color: var(--ink);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.hero__card-label {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive-ink);
}

.hero__card-text {
  margin: 0;
  font-size: .97rem;
  line-height: 1.5;
}

.hero__card hr {
  margin: 1.1rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.hero__card-phone {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  color: var(--forest);
}

.hero__card-phone:hover {
  text-decoration: underline;
}

.hero__card-note {
  margin: .2rem 0 0;
  color: var(--ink-soft);
  font-size: .88rem;
}

/* Kurzvorstellung */

.intro__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.intro__cols {
  display: grid;
  gap: 1.25rem 2.5rem;
  margin-top: 2.25rem;
  color: var(--ink-soft);
}

.facts {
  display: grid;
  margin: 2.25rem 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.facts li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.facts svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--leaf);
}

.intro__media {
  position: relative;
  justify-self: center;
  width: min(100%, 30rem);
}

.signature {
  position: absolute;
  bottom: 2.25rem;
  left: -1rem;
  z-index: 2;
  max-width: 16rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.signature strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.signature span {
  color: var(--ink-soft);
  font-size: .9rem;
}

@media (min-width: 700px) {
  .intro__cols {
    grid-template-columns: 1fr 1fr;
  }

  .signature {
    left: -2.5rem;
  }
}

@media (min-width: 1000px) {
  .intro__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* Leistungs-Explorer */

.explorer {
  position: relative;
}

.explorer__list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.explorer__item {
  padding-top: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.explorer__thumb {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: var(--stone-deep);
}

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

.explorer__thumb figcaption {
  display: none;
}

.explorer__link {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 1rem;
  padding: 1.35rem 0 1.6rem;
  text-decoration: none;
}

.explorer__link::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}

.explorer__num {
  padding-top: .5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--olive-ink);
}

.explorer__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  transition: color .4s var(--ease);
}

.explorer__text {
  grid-column: 2 / -1;
  max-width: 34rem;
  margin-top: .5rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.explorer__arrow {
  display: grid;
  grid-row: 1;
  grid-column: 3;
  place-items: center;
  align-self: start;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(35, 38, 34, .2);
  border-radius: 50%;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}

.explorer__arrow svg {
  width: 1.1rem;
  height: 1.1rem;
}

.explorer__link:hover .explorer__arrow,
.explorer__item.is-active .explorer__arrow {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.explorer__link:hover .explorer__arrow {
  transform: translateX(4px);
}

@media (min-width: 1024px) {
  .explorer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
    min-height: 600px;
  }

  .explorer__item {
    padding-top: 0;
  }

  .explorer__text {
    grid-column: 2;
  }

  .explorer__arrow {
    grid-row: 1 / span 2;
    align-self: center;
    width: 3rem;
    height: 3rem;
  }

  .explorer__link::before {
    display: block;
  }

  .explorer__item.is-active .explorer__link::before {
    transform: scaleX(1);
  }

  .explorer__thumb {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc(50% - clamp(1.5rem, 3vw, 3rem));
    aspect-ratio: auto;
    border-radius: var(--radius-l);
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s var(--ease), visibility 0s linear .8s;
  }

  .explorer__item.is-active .explorer__thumb {
    opacity: 1;
    visibility: visible;
    transition: opacity .8s var(--ease);
  }

  .explorer__thumb img {
    transform: scale(1.06);
    transition: transform 1.8s var(--ease);
  }

  .explorer__item.is-active .explorer__thumb img {
    transform: none;
  }

  .explorer__thumb figcaption {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    display: block;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(246, 244, 238, .92);
    font-size: .85rem;
    font-weight: 600;
  }
}

/* Qualitätsversprechen */

.promise__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.promise__intro .lead {
  margin-top: 1.5rem;
}

.promise__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.promise__item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: .25rem 1rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(246, 244, 238, .16);
}

.promise__item:last-child {
  border-bottom: 1px solid rgba(246, 244, 238, .16);
}

.promise__num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--leaf-soft);
}

.promise__item h3 {
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.6rem);
}

.promise__item p {
  max-width: 36rem;
  margin-top: .65rem;
  color: rgba(246, 244, 238, .78);
}

@media (min-width: 960px) {
  .promise__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 7vw, 7rem);
  }

  .promise__intro {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
    align-self: start;
  }
}

/* Projekt-Mosaik – zurzeit nicht im Einsatz, für eine spätere Referenz-Vorschau auf der Startseite */

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 42vw, 260px);
  gap: clamp(.65rem, 1.4vw, 1.25rem);
}

.mosaic > :first-child {
  grid-column: span 2;
}

@media (min-width: 860px) {
  .mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(170px, 16vw, 250px);
  }

  .mosaic > :nth-child(1) { grid-column: 1 / span 7; grid-row: 1 / span 2; }
  .mosaic > :nth-child(2) { grid-column: 8 / span 5; grid-row: 1; }
  .mosaic > :nth-child(3) { grid-column: 8 / span 5; grid-row: 2; }
  .mosaic > :nth-child(4) { grid-column: 1 / span 5; grid-row: 3; }
  .mosaic > :nth-child(5) { grid-column: 6 / span 7; grid-row: 3; }
}

.tile {
  position: relative;
  isolation: isolate;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone-deep);
  color: var(--paper);
  text-decoration: none;
}

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

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 30, 17, 0) 40%, rgba(22, 30, 17, .75) 100%);
}

.tile:hover img {
  transform: scale(1.045);
}

.tile__meta {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  left: 1.1rem;
  z-index: 1;
}

.tile__cat {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--leaf-soft);
}

.tile__title {
  display: block;
  margin-top: .3rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.25;
}

.projects-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
}

.projects-foot p {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
}

/* Ablauf */

.process {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 1px;
  background: var(--olive);
  opacity: .45;
}

.process__step {
  position: relative;
  padding-left: 4.5rem;
}

.process__num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--forest);
  border-radius: 50%;
  background: var(--stone);
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.process__step h3 {
  margin: .5rem 0 .7rem;
}

.process__step p {
  color: var(--ink-soft);
  font-size: 1rem;
}

@media (min-width: 960px) {
  .process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .process::before {
    top: 1.5rem;
    right: 1.5rem;
    bottom: auto;
    left: 1.5rem;
    width: auto;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.8s var(--ease) .2s;
  }

  .no-js .process::before,
  .process.is-visible::before {
    transform: scaleX(1);
  }

  .process__step {
    padding-top: 5rem;
    padding-left: 0;
  }
}

/* Einsatzgebiet */

.area__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .92rem;
}

.chips .is-main {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.chips .is-more {
  border-style: dashed;
  border-color: var(--olive);
  background: transparent;
  color: var(--ink-soft);
}

.area__map {
  margin: 0;
}

.area-map {
  width: 100%;
  height: auto;
}

.area-map__ring {
  fill: none;
  stroke: var(--olive);
  stroke-dasharray: 2 7;
  stroke-linecap: round;
  opacity: .55;
}

.area-map__ring--outer {
  stroke-dasharray: none;
  stroke-width: 1.5;
  opacity: .8;
}

.area-map__ring-label {
  fill: var(--olive-ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 6px;
  stroke-linejoin: round;
}

.area h2 + .lead {
  margin-top: 1.5rem;
}

.area-map__river {
  fill: none;
  stroke: #d3dcc8;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.area-map__river-label {
  fill: #7d8d70;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .04em;
}

.area-map__town circle {
  fill: var(--olive);
}

/* Heller Rand um die Ortsnamen, damit sie über Fluss und Kreisen lesbar bleiben */
.area-map__town text {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.area-map__town--main circle {
  fill: var(--forest);
}

.area-map__town--main text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  stroke-width: 5px;
}

.area-map__pulse {
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 3s var(--ease) infinite;
}

@media (max-width: 699.98px) {
  .area-map__town text {
    font-size: 25px;
    stroke-width: 6px;
  }

  .area-map__town--main text {
    font-size: 32px;
    stroke-width: 7px;
  }

  .area-map__ring-label {
    font-size: 22px;
    stroke-width: 8px;
  }

  /* Auf schmalen Bildschirmen an den unteren Kreisrand, damit nichts abgeschnitten wird */
  .area-map__ring-label--outer {
    transform: translate(-330px, 334px);
  }

  .area-map__town--minor text,
  .area-map__ring-label--inner,
  .area-map__river-label {
    display: none;
  }
}

@media (min-width: 960px) {
  .area__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* Kontaktbereich & Formular */

.contact__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.contact__intro .lead {
  margin-top: 1.5rem;
}

.direct {
  display: grid;
  gap: .75rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.direct__link {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.direct__link:hover {
  border-color: var(--forest);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.direct__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--stone);
  color: var(--forest);
}

.direct__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.direct__link--wa .direct__icon {
  color: #1faa52;
}

.direct__label {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--olive-ink);
}

.direct__value {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.direct__arrow {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--olive);
  transition: transform .4s var(--ease);
}

.direct__link:hover .direct__arrow {
  transform: translateX(3px);
  color: var(--forest);
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .contact__intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.form-card {
  padding: clamp(1.25rem, 3.5vw, 3rem);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-card__title {
  margin-bottom: .4rem;
  font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem);
}

.form-card__intro {
  margin-bottom: 1.75rem;
  color: var(--ink-soft);
  font-size: .97rem;
}

.form__grid {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  align-content: start;
  gap: .45rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field__label {
  padding: 0;
  font-size: .93rem;
  font-weight: 600;
}

.field__optional {
  color: var(--ink-soft);
  font-weight: 400;
}

.req {
  color: var(--forest);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-s);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.4;
  appearance: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}

.field select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23465d36' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.1rem;
}

.field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8c8f86;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(94, 157, 35, .18);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--error);
}

.field__error {
  margin: 0;
  color: var(--error);
  font-size: .86rem;
  font-weight: 500;
}

.field__error:empty {
  display: none;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  display: inline-block;
  padding: .55rem 1rem;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .92rem;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.choice input:checked + span {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}

.upload__drop {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border: 1.5px dashed #bfb7a3;
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}

.upload__drop:hover,
.upload.is-dragover .upload__drop {
  border-color: var(--forest);
  background: #eef3e6;
}

.upload__input:focus-visible + .upload__drop {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}

.upload__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--forest);
}

.upload__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.upload__title {
  display: block;
  font-weight: 600;
}

.upload__hint {
  display: block;
  color: var(--ink-soft);
  font-size: .85rem;
}

.no-js .upload__drop {
  display: none;
}

.upload__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: .6rem;
  margin: .4rem 0 0;
  padding: 0;
  list-style: none;
}

.upload__list:empty {
  display: none;
}

.upload__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--stone);
}

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

.upload__file {
  display: grid;
  place-items: center;
  height: 100%;
  padding: .5rem;
  color: var(--ink-soft);
  font-size: .72rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.upload__remove {
  position: absolute;
  top: .3rem;
  right: .3rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(35, 38, 34, .78);
  color: var(--white);
  cursor: pointer;
}

.upload__remove svg {
  width: .9rem;
  height: .9rem;
}

.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .8rem;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.5;
}

.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: .1rem 0 0;
  accent-color: var(--forest);
}

.check label {
  font-weight: 400;
}

.check .field__error {
  grid-column: 1 / -1;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.form__note {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
}

.form__status {
  margin-top: 1.25rem;
}

.form__status:empty {
  display: none;
}

.alert {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-s);
  font-size: .95rem;
}

.alert--error {
  border: 1px solid #efc6c1;
  background: #fbeeec;
  color: #6f1a13;
}

.alert a {
  font-weight: 600;
}

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

@media (min-width: 640px) {
  .form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

/* 7. Unterseiten ----------------------------------------------------------- */

.page-hero {
  padding: clamp(2.75rem, 6vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}

.page-hero__grid {
  display: grid;
  gap: 1.75rem;
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 1.3rem + 3vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.page-hero__aside {
  display: grid;
  gap: 1.75rem;
  align-content: end;
}

.page-hero__aside .lead {
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 2rem;
  padding: 0;
  color: var(--ink-soft);
  font-size: .86rem;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: .5rem;
  color: var(--olive);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

@media (min-width: 1000px) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: 4rem;
  }
}

.wide-media {
  padding-inline: var(--frame);
}

.wide-media__frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  background: var(--stone-deep);
}

.wide-media__frame picture {
  display: block;
  height: 100%;
}

.wide-media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bildausschnitt nach unten verschieben, wenn das Motiv im unteren Bilddrittel liegt */
.wide-media__frame--low img {
  object-position: 50% 72%;
}

@media (min-width: 700px) {
  .wide-media__frame {
    aspect-ratio: 21 / 9;
  }
}

/* Leistungen */

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.anchor-nav a {
  display: inline-block;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}

.anchor-nav a:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.service {
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.service__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}

.service__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  background: var(--stone-deep);
}

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

.service__body h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.5rem);
}

.service__body > p {
  margin-top: 1.4rem;
  color: var(--ink-soft);
}

.service__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.service__phone {
  color: var(--ink-soft);
  font-size: .95rem;
}

.service__phone a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.service__phone a:hover {
  text-decoration: underline;
}

@media (min-width: 960px) {
  .service__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .service--reverse .service__media {
    order: 2;
  }
}

.more-grid {
  display: grid;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 2.5rem;
  border-top: 1px solid var(--line);
}

.more-item {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.more-item h3 {
  font-size: 1.2rem;
}

/* Einzelner Eintrag in der letzten Reihe über die volle Breite, damit keine halbe Reihe entsteht */
.more-item--wide {
  grid-column: 1 / -1;
}

.more-item p {
  margin-top: .55rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

@media (min-width: 700px) {
  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Über uns */

.story__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.story__media {
  justify-self: center;
  width: min(100%, 28rem);
}

.story__body > p {
  color: var(--ink-soft);
}

.story__body h2 {
  margin-bottom: 1.75rem;
}

.person {
  display: grid;
  gap: .3rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.person__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.person__links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  margin-top: .4rem;
}

@media (min-width: 960px) {
  .story__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.values {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--line);
}

.value {
  padding: clamp(1.75rem, 3vw, 2.6rem);
  background: var(--stone);
}

.value__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--olive-ink);
}

.value h3 {
  margin: 1.4rem 0 .75rem;
  font-size: 1.25rem;
}

.value p {
  color: var(--ink-soft);
  font-size: 1rem;
}

@media (min-width: 700px) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}

/* Projekte – zurzeit nicht im Einsatz. Die Gestaltung bleibt erhalten, damit
   später eine Referenzseite mit eigenen Fotos ergänzt werden kann
   (Vorlage: Ordner "vorlagen" außerhalb der Website, siehe ANLEITUNG.md). */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.no-js .filters {
  display: none;
}

.filter {
  padding: .6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .93rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

.filter:hover {
  border-color: var(--ink);
}

.filter[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.gallery {
  display: grid;
  gap: clamp(1.25rem, 2.2vw, 2rem);
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project {
  margin: 0;
  animation: fade-in .6s var(--ease) both;
}

.project[hidden] {
  display: none;
}

.project__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
  background: var(--stone-deep);
  cursor: zoom-in;
}

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

.project__open:hover img {
  transform: scale(1.045);
}

.project__zoom {
  position: absolute;
  right: .85rem;
  bottom: .85rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(246, 244, 238, .94);
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.project__zoom svg {
  width: 1.1rem;
  height: 1.1rem;
}

.project__open:hover .project__zoom,
.project__open:focus-visible .project__zoom {
  opacity: 1;
  transform: none;
}

.project figcaption {
  padding-top: 1rem;
}

.project__cat {
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive-ink);
}

.project__title {
  margin: .3rem 0 .25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.project__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: .96rem;
}

.ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  background: var(--stone-deep);
  user-select: none;
}

.ba__img,
.ba__before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba__img {
  object-fit: cover;
}

.ba__before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba__img--placeholder {
  filter: grayscale(.9) sepia(.25) brightness(.78) contrast(.9);
}

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  pointer-events: none;
}

.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%23232622' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1.3rem no-repeat;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.ba__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba:has(.ba__range:focus-visible) .ba__handle::after {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}

.ba__label {
  position: absolute;
  bottom: 1rem;
  z-index: 2;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(35, 38, 34, .72);
  color: var(--paper);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba__label--before {
  left: 1rem;
}

.ba__label--after {
  right: 1rem;
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}

.lightbox[open] {
  display: grid;
}

.lightbox::backdrop {
  background: rgba(17, 23, 13, .93);
}

.lightbox__figure {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  margin: 0;
  padding: 4.5rem 1rem 5.5rem;
}

.lightbox__img {
  width: auto;
  max-width: min(100%, 1200px);
  height: auto;
  max-height: calc(100dvh - 11rem);
  border-radius: var(--radius-s);
}

.lightbox__caption {
  max-width: 40rem;
  text-align: center;
  font-size: .97rem;
}

.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 244, 238, .94);
  color: var(--ink);
  cursor: pointer;
}

.lightbox__btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.lightbox__btn--close {
  top: 1rem;
  right: 1rem;
}

.lightbox__btn--prev,
.lightbox__btn--next {
  bottom: 1.25rem;
}

.lightbox__btn--prev {
  left: calc(50% - 3.5rem);
}

.lightbox__btn--next {
  right: calc(50% - 3.5rem);
}

@media (min-width: 860px) {
  .lightbox__btn--prev,
  .lightbox__btn--next {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .lightbox__btn--prev {
    left: 1.5rem;
  }

  .lightbox__btn--next {
    right: 1.5rem;
  }
}

/* Kontakt: nächste Schritte & Fragen */

.next-steps {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--line);
  list-style: none;
}

.next-steps li {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--stone);
}

.next-steps strong {
  display: block;
  margin: .9rem 0 .5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.next-steps p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.next-steps .value__num {
  display: block;
}

@media (min-width: 860px) {
  .next-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

.faq summary {
  position: relative;
  padding: 1.4rem 3rem 1.4rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .25rem;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(35, 38, 34, .25);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%23465d36' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 1rem no-repeat;
  transform: translateY(-50%);
  transition: transform .4s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  max-width: 44rem;
  padding-bottom: 1.5rem;
  color: var(--ink-soft);
}

/* Rechtliches (Entwurf) */

.legal {
  max-width: 48rem;
}

.legal h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem);
}

.legal h3 {
  margin: 2rem 0 .75rem;
  font-size: 1.15rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal > :first-child {
  margin-top: 0;
}

/* Rechtstexte schließen ohne großen Abstand an den Seitentitel an */
.section:has(> .legal) {
  padding-top: clamp(1rem, 3vw, 2.5rem);
}

.draft-banner {
  margin-bottom: 2.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid #e3cf5e;
  border-radius: var(--radius-s);
  background: var(--todo);
  color: #463e0b;
}

.draft-banner strong {
  display: block;
  margin-bottom: .25rem;
}

.todo {
  padding: .1em .4em;
  border-radius: 4px;
  background: var(--todo);
  color: #463e0b;
  font-weight: 600;
}

/* Einfache Seiten (Danke, 404) */

.simple {
  display: grid;
  align-items: center;
  min-height: 62vh;
  padding-block: var(--section);
}

.simple__inner {
  max-width: 44rem;
}

.simple h1 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.8rem);
  line-height: 1.12;
}

.simple .lead {
  margin: 1.5rem 0 2.25rem;
}

.simple__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

/* 8. Bewegung -------------------------------------------------------------- */

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes pulse {
  from { opacity: .9; transform: scale(.6); }
  to { opacity: 0; transform: scale(2.6); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.js [data-reveal]:not([data-reveal="group"]) {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js [data-reveal="group"] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.js [data-reveal].is-visible:not([data-reveal="group"]),
.js [data-reveal="group"].is-visible > * {
  opacity: 1;
  transform: none;
}

.js [data-reveal="group"].is-visible > :nth-child(2) { transition-delay: .1s; }
.js [data-reveal="group"].is-visible > :nth-child(3) { transition-delay: .2s; }
.js [data-reveal="group"].is-visible > :nth-child(4) { transition-delay: .3s; }
.js [data-reveal="group"].is-visible > :nth-child(5) { transition-delay: .4s; }
.js [data-reveal="group"].is-visible > :nth-child(6) { transition-delay: .5s; }

.js [data-delay="1"] { transition-delay: .12s; }
.js [data-delay="2"] { transition-delay: .24s; }
.js [data-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal]:not([data-reveal="group"]),
  .js [data-reveal="group"] > * {
    opacity: 1;
    transform: none;
  }

  .process::before {
    transform: scaleX(1);
  }
}

@media print {
  .site-header,
  .quickbar,
  .mobile-menu,
  .cta-band,
  .form-card {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
  }
}
