/* ===========================================================================
   Galabau Seifermann — Bespoke-Demo (Projekt Phönix)
   Designrichtung: natürlich · draußen · organisch · saisonale Wärme
   ========================================================================== */

:root {
  /* Marke */
  --brand: #32613b; /* waldgrün */
  --brand-dark: #18371f; /* tiefes Tannengrün (Header/Footer) */
  --brand-deep: #102619;
  --accent: #c69042; /* gold/senf */
  --accent-soft: #d7e7c6; /* helles laubgrün */
  --paper: #fafbf6; /* warmes papier */
  --paper-2: #f1f4ea;
  --ink: #1b271c;
  --muted: #5e6b59;
  --line: #e2e7d8;
  --line-dark: rgba(215, 231, 198, 0.16);

  /* Typo */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Arial, sans-serif;

  --text-kicker: 0.72rem;
  --text-body: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --text-h2: clamp(1.7rem, 1.2rem + 2.2vw, 3rem);
  --text-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --text-hero: clamp(2.6rem, 1.3rem + 5.4vw, 5.4rem);

  /* Maße */
  --wrap: 1180px;
  --pad-x: clamp(1.1rem, 0.6rem + 2.4vw, 2.4rem);
  --space-sec: clamp(4rem, 3rem + 6vw, 8.5rem);
  --radius: 18px;
  --radius-lg: 26px;

  /* Motion */
  --dur: 320ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-soft: 0 12px 32px -18px rgba(16, 38, 25, 0.45);
  --shadow-lift: 0 26px 60px -28px rgba(16, 38, 25, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand-dark);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 0 0 12px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----------------------------------------------------------------- Kicker */
.kicker {
  font-family: var(--font-body);
  font-size: var(--text-kicker);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand);
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.kicker--light {
  color: var(--accent-soft);
}

.head {
  font-size: var(--text-h2);
  color: var(--ink);
  max-width: 18ch;
}
.head--light {
  color: #fff;
}

/* ------------------------------------------------------------------ Buttons */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--leaf {
  --btn-bg: var(--brand);
  box-shadow: var(--shadow-soft);
}
.btn--leaf:hover {
  --btn-bg: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.btn--ghost-dark {
  --btn-fg: var(--brand-dark);
  border-color: var(--brand);
}
.btn--ghost-dark:hover {
  background: var(--accent-soft);
}
.btn--block {
  width: 100%;
  justify-content: center;
}

/* ------------------------------------------------------------------ Topbar */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition:
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    padding var(--dur) var(--ease);
  padding-block: 0.85rem;
  background: linear-gradient(to bottom, rgba(16, 38, 25, 0.55), rgba(16, 38, 25, 0));
}
.topbar.is-scrolled {
  background: var(--brand-dark);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  padding-block: 0.55rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo img {
  height: 42px;
  width: auto;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 0.4rem;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}
.topbar__cta {
  flex: 0 0 auto;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  --btn-bg: var(--accent);
  --btn-fg: var(--brand-deep);
}
.topbar__cta:hover {
  --btn-bg: #d8a456;
  transform: translateY(-2px);
}
.topbar__cta svg {
  fill: currentColor;
  stroke: none;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  border-radius: 2px;
  transition:
    transform var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      105deg,
      rgba(16, 38, 25, 0.86) 0%,
      rgba(16, 38, 25, 0.55) 42%,
      rgba(16, 38, 25, 0.18) 75%
    ),
    linear-gradient(to top, rgba(16, 38, 25, 0.7), rgba(16, 38, 25, 0) 45%);
}
.hero__inner {
  position: relative;
  padding-top: 6rem;
}
.hero__title {
  font-size: var(--text-hero);
  color: #fff;
  margin: 0.2rem 0 1.3rem;
  max-width: 16ch;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.3);
}
.hero__title-em {
  color: var(--accent);
  font-style: italic;
}
.hero__lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 50ch;
  font-size: clamp(1.02rem, 0.96rem + 0.4vw, 1.2rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 1.6rem;
}
.hero__signals {
  list-style: none;
  margin: 0;
  padding: 1.3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hero__signals li {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__signals li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__down {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.hero__down span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  animation: scrollpulse 1.8s var(--ease) infinite;
}
@keyframes scrollpulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.3;
  }
}

/* -------------------------------------------------------------------- Intro */
.intro {
  padding-block: var(--space-sec);
}
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.intro__lead .head {
  max-width: 14ch;
}
.intro__body p {
  color: var(--muted);
}
.facts {
  margin: 2rem 0 0;
  display: grid;
  gap: 1.1rem;
}
.fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.1rem;
  align-items: baseline;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.fact dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.fact dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* --------------------------------------------------------------- Sec heads */
.sec-head {
  max-width: 56ch;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.4rem);
}
.sec-head__lead {
  margin-top: 0.9rem;
  color: var(--muted);
}
.sec-head--light .sec-head__lead--light {
  color: rgba(255, 255, 255, 0.78);
}

/* --------------------------------------------------------------- Leistungen */
.leistungen {
  padding-block: var(--space-sec);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  will-change: transform;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: var(--accent-soft);
}
.card--wide {
  grid-column: span 1;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}
.card--wide h3 {
  color: #fff;
}
.card--wide p {
  color: rgba(255, 255, 255, 0.82);
}
.card--wide .card__icon {
  background: rgba(215, 231, 198, 0.16);
  color: var(--accent-soft);
}
.card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: var(--text-h3);
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}
.leistungen__more {
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.leistungen__more a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  white-space: nowrap;
}
.leistungen__more a:hover {
  color: var(--brand-dark);
}

/* ----------------------------------------------------------------- Projekte */
.projekte {
  padding-block: var(--space-sec);
  background: var(--brand-deep);
  color: #fff;
  position: relative;
}
.gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 1.1rem;
}
.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-dark);
}
.shot--tall {
  grid-row: span 2;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.shot:hover img {
  transform: scale(1.05);
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 38, 25, 0.78) 0%, rgba(16, 38, 25, 0) 52%);
  pointer-events: none;
}
.shot figcaption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.shot__tag {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-deep);
  background: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.shot__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}
.shot--tall {
  min-height: 100%;
}
.gallery .shot:not(.shot--tall) {
  min-height: clamp(180px, 24vw, 240px);
}

/* ------------------------------------------------------------------- Ablauf */
.ablauf {
  padding-block: var(--space-sec);
}
.ablauf__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.ablauf__intro p {
  color: var(--muted);
  margin: 0.9rem 0 1.6rem;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: start;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.step:hover {
  transform: translateX(5px);
  border-color: var(--accent-soft);
}
.step__no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}
.step h3 {
  font-size: var(--text-h3);
  margin-bottom: 0.3rem;
}
.step p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

/* ------------------------------------------------------------------ Kontakt */
.kontakt {
  padding-block: var(--space-sec);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.kontakt__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
.kontakt__sub {
  color: var(--muted);
  margin: 0.9rem 0 1.6rem;
  max-width: 42ch;
}
.contact {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.contact li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 500;
}
.contact a {
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.contact a:hover {
  border-color: var(--accent);
}
.contact svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
}
.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.form input,
.form select,
.form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(50, 97, 59, 0.16);
}
.form textarea {
  resize: vertical;
}
.form__note {
  background: var(--accent-soft);
  color: var(--brand-dark);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

/* -------------------------------------------------------------------- Footer */
.foot {
  background: var(--brand-dark);
  color: #fff;
  padding-block: clamp(2.6rem, 2rem + 3vw, 4rem);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}
.foot__brand img {
  height: 46px;
  width: auto;
  margin-bottom: 0.9rem;
}
.foot__brand p {
  color: rgba(255, 255, 255, 0.74);
  max-width: 36ch;
  font-size: 0.95rem;
}
.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  max-width: 420px;
}
.foot__nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--dur) var(--ease);
}
.foot__nav a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------- Scroll-Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* =============================================================== pbStrip
   Kanonischer Schwarzwald-Agent Powered-by-Footer (aus _kit/footer.css). */
.pbStrip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 26px 16px 22px;
  text-align: center;
  background: #fefdf9;
  border-top: 1px solid #e8e0d5;
}
.pbStrip .pbLink {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  opacity: 0.75;
  transition: opacity 0.18s ease;
  text-decoration: none;
}
.pbStrip .pbLink:hover {
  opacity: 1;
  text-decoration: none;
}
.pbStrip .pbLabel {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #8b7355;
}
.pbStrip .pbIcon {
  height: 32px;
  width: 32px;
  object-fit: contain;
  display: block;
}
.pbStrip .pbName {
  font-family:
    "Plus Jakarta Sans",
    "Inter",
    system-ui,
    -apple-system,
    Segoe UI,
    Arial,
    sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0d4a3c;
}

/* ============================================================== Responsive */
@media (max-width: 960px) {
  .intro__grid,
  .ablauf__grid,
  .kontakt__grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .card--wide {
    grid-column: span 2;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .shot--tall {
    grid-row: span 1;
    grid-column: span 2;
  }
  .gallery .shot:not(.shot--tall) {
    min-height: clamp(200px, 40vw, 280px);
  }
}

@media (max-width: 720px) {
  .nav,
  .topbar__cta {
    display: none;
  }
  .burger {
    display: flex;
    margin-left: auto;
  }

  /* Mobile-Menü mit SOLIDEM Hintergrund */
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    gap: 0.3rem;
    background: var(--brand-dark);
    padding: 5.2rem 1.4rem 1.6rem;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6);
  }
  .nav.is-open a {
    font-size: 1.1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line-dark);
    border-radius: 0;
  }
  .nav.is-open a:last-child {
    border-bottom: 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }
  .card--wide {
    grid-column: span 1;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .shot--tall {
    grid-column: span 1;
  }
  .shot {
    min-height: 240px;
  }
  .hero {
    min-height: 92svh;
  }
  .foot__inner {
    flex-direction: column;
  }
}

/* ---------------------------------------------------- Reduced motion guard */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hero__down span {
    animation: none;
  }
}
