/* =========================================================
   Naturwerkstatt Kandel — Stylesheet
   Konzept: "Spätsommer-Hof" mit strukturellem Rückgrat aus "Bauplan"
   ========================================================= */

/* --- Tokens --- */
:root {
  /* Farben */
  --bg:           #F1ECE2;   /* Sandstein-Off-White */
  --bg-deep:      #E7DFCD;   /* tiefere Sektion */
  --bg-dark:      #1F1D1A;   /* Anthrazit-Sektion */
  --ink:          #1F1D1A;
  --ink-muted:    #57544D;
  --ink-faint:    #8A877E;
  --line:         #1F1D1A;
  --line-soft:    rgba(31, 29, 26, 0.18);
  --line-fainter: rgba(31, 29, 26, 0.10);
  --accent:       #A85C3C;   /* Pfälzer Terrakotta */
  --accent-deep:  #8A4628;
  --moss:         #4A5238;   /* Olive / Moos */
  --moss-deep:    #2F3623;
  --paper:        #F8F4EA;
  --on-dark:      #EDE7D9;

  /* Typografie */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:    "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Maße */
  --maxw: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 8rem);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- Body --- */
html { scroll-behavior: smooth; }
@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; }
}
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* --- Typografie-Skala --- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
h1, .h1 {
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(2.4rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 120, "SOFT" 50;
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
h4, .h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}
.subtitle {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.4;
  color: var(--ink-muted);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  max-width: 56ch;
  color: var(--ink);
}
p { max-width: 65ch; text-wrap: pretty; }
strong { font-weight: 600; }
em { font-style: italic; }

/* --- Layout-Helfer --- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: 880px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-soft { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* --- Top-Leiste --- */
.topbar {
  background: var(--bg-dark);
  color: var(--on-dark);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.topbar__row {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  padding-block: 0.55rem;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: #7BAE6E; display: inline-block; margin-right: 0.5em; }

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 236, 226, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none;
  color: #355E3B;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.05;
  text-transform: none;
}
.brand > span:not(.brand__mark) {
  display: block;
  align-self: center;
  transform: translateY(1px); /* optical centering against tree mark */
}
.brand small { display: none; }
.brand__mark {
  width: 44px; height: 44px;
  display: inline-block; flex-shrink: 0;
  background-image: url("assets/nw-mark.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 0; color: transparent;
  transform: none;
}
.footer__brand {
  display: block;
  width: 100%; max-width: 320px;
  height: 64px;
  background-image: url("assets/nw-lockup-cream.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  text-indent: -9999px;
  overflow: hidden;
}
.brand small { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-muted); letter-spacing: 0.06em; text-transform: uppercase; display: none; }
.nav__links { display: none; gap: 1.6rem; }
.nav__links a {
  text-decoration: none; font-size: 0.95rem; color: var(--ink);
  padding: 0.5rem 0; position: relative;
}
.nav__links a[aria-current="page"]::after,
.nav__links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1.5px; background: var(--accent);
}
.nav__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.1rem; border: 1px solid var(--ink); border-radius: 999px;
  text-decoration: none; font-size: 0.92rem;
  background: var(--ink); color: var(--paper);
  transition: background .15s, color .15s;
}
.nav__cta:hover { background: var(--accent); border-color: var(--accent); }
.nav__toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid var(--line-soft); border-radius: 999px;
}
.nav__toggle svg { width: 18px; height: 18px; }
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}
.mobilenav {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  padding: 5rem var(--gutter) 2rem;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
}
.mobilenav.is-open { transform: translateY(0); }
.mobilenav__close {
  position: absolute; top: 1rem; right: var(--gutter);
  width: 44px; height: 44px; border: 1px solid var(--line-soft); border-radius: 999px;
  display: grid; place-items: center;
}
.mobilenav__list { display: grid; gap: 1.25rem; margin-top: 1rem; }
.mobilenav__list a {
  font-family: var(--display); font-size: 2rem; font-weight: 380;
  text-decoration: none; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line-soft); padding-bottom: 1rem;
  display: flex; justify-content: space-between; align-items: baseline;
}
.mobilenav__list a small { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  font-size: 0.98rem; font-weight: 500;
  border: 1px solid var(--ink); border-radius: 999px;
  text-decoration: none;
  background: var(--ink); color: var(--paper);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--lg { padding: 1.1rem 1.6rem; font-size: 1.05rem; }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* --- Hero (Home) --- */
.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero__media {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #756149, #4a3e2c 40%, #312819);
  /* Filmkorn-Optik dezent */
  background-image:
    radial-gradient(800px 480px at 30% 30%, rgba(255,210,150,0.22), transparent 60%),
    radial-gradient(900px 600px at 80% 80%, rgba(80,60,30,0.5), transparent 70%),
    linear-gradient(135deg, #6b5538, #3a2d1c 60%, #1f1812);
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero__media::before {
  /* removed — video plays unobstructed */
  display: none;
}
.hero__media::after {
  display: none;
  background:
    linear-gradient(0deg, rgba(20,15,10,0.55), rgba(20,15,10,0) 60%),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIDAuOTUgMCAwIDAgMCAwLjg1IDAgMCAwIDAgMC43IDAgMCAwIDAuMTggMCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCUyM24pJy8+PC9zdmc+");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__placeholder {
  position: absolute; top: 1.25rem; left: 1.25rem;
  font-family: var(--mono); font-size: 0.7rem; color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px dashed rgba(255,255,255,0.4);
  padding: 0.4rem 0.6rem;
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; padding-block: clamp(2.5rem, 7vw, 5rem);
  color: var(--paper);
}
.hero__eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.78);
  display: inline-flex; gap: 0.6rem; align-items: center;
  margin-bottom: 1.5rem;
}
.hero__eyebrow .dash { width: 28px; height: 1px; background: rgba(255,255,255,0.6); }
.hero h1 {
  color: var(--paper);
  max-width: 18ch;
  font-weight: 360;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero h1 em {
  font-style: italic; color: #E9C9A8;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
}
.hero__ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero__ctas .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero__ctas .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.hero__ctas .btn--ghost {
  background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.55);
}
.hero__ctas .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero__caption {
  position: absolute; right: var(--gutter); bottom: 1.5rem; z-index: 2;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7); text-align: right;
  max-width: 22ch;
}

/* --- Vertrauensleiste --- */
.trustbar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line-soft);
}
.trustbar__row {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (min-width: 768px) { .trustbar__row { grid-template-columns: repeat(4, 1fr); } }
.trustbar__cell {
  padding: 1.25rem var(--gutter);
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.trustbar__cell:nth-child(2n) { border-right: 0; }
@media (min-width: 768px) { .trustbar__cell:nth-child(2n) { border-right: 1px solid var(--line-soft); } .trustbar__cell:last-child { border-right: 0; } }
.trustbar__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.trustbar__value { font-family: var(--display); font-size: 1.05rem; font-weight: 420; }
.trustbar__value .dot { width: 7px; height: 7px; border-radius: 50%; background: #6B9F5C; display: inline-block; margin-right: 0.4rem; transform: translateY(-1px); }

/* --- Section-Header --- */
.shead { display: grid; gap: 1.25rem; align-items: var(--shead-align, end); margin-bottom: 3rem; }
@media (min-width: 1024px) {
  .shead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; }
}
.shead__num { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.75rem; display: inline-flex; align-items: center; gap: 0.6rem; }
.shead__num .dash { width: 32px; height: 1px; background: var(--ink); display: inline-block; }
.shead p { color: var(--ink-muted); }

/* --- Featured Projects (asymmetrisch) --- */
.feat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .feat {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem 2rem;
    grid-auto-rows: minmax(280px, auto);
  }
  .feat__item--a { grid-column: 1 / span 8; grid-row: span 2; align-self: start; }
  .feat__item--b { grid-column: 9 / span 4; }
  .feat__item--c { grid-column: 9 / span 4; }
}
.feat__item { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.feat__media {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.feat__item--a .feat__media { aspect-ratio: 4 / 3; height: auto; }
.feat__media .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.72rem;
  color: rgba(255,255,255,0.7); letter-spacing: 0.06em;
  padding: 1rem; text-align: center;
}
.feat__media--a { background: linear-gradient(160deg, #5e7048, #2f3a23); }
.feat__media--b { background: linear-gradient(160deg, #8c6c4d, #533c25); }
.feat__media--c { background: linear-gradient(160deg, #87826f, #44402f); }
.feat__media--d { background: linear-gradient(160deg, #6e5944, #3a2d20); }
.feat__media--e { background: linear-gradient(160deg, #a87a55, #6b4a30); }
.feat__media--f { background: linear-gradient(160deg, #4f5a3f, #28311b); }
.feat__meta {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted);
  padding-top: 1rem;
}
.feat__title { font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 400; line-height: 1.2; margin-top: 0.4rem; letter-spacing: -0.01em; }
.feat__desc { color: var(--ink-muted); margin-top: 0.35rem; font-size: 0.96rem; }
.feat__item:hover .feat__title { color: var(--accent); }
.feat__item:hover .feat__media { filter: brightness(1.05); }
.feat__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Leistungs-Kachelnetz (Home) --- */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 768px) { .leistungen-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .leistungen-grid { grid-template-columns: repeat(5, 1fr); } }
.leistung-tile {
  text-decoration: none; color: inherit;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 1.2rem 1.6rem;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 160px;
  transition: background .2s;
  position: relative;
  background: var(--bg);
}
.leistung-tile:hover { background: var(--ink); color: var(--paper); }
.leistung-tile:hover .leistung-tile__num { color: rgba(255,255,255,0.6); }
.leistung-tile:hover .leistung-tile__arrow { color: var(--accent); }
.leistung-tile__num { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink-muted); }
.leistung-tile__title { font-family: var(--display); font-size: 1.15rem; font-weight: 400; line-height: 1.18; letter-spacing: -0.01em; }
.leistung-tile__arrow { font-family: var(--mono); font-size: 0.85rem; align-self: flex-end; }

/* --- Personal Block --- */
.persoenlich {
  display: grid; gap: 2rem;
}
@media (min-width: 900px) {
  .persoenlich { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: center; }
}
.persoenlich__photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(165deg, #6e5b3f, #2f2516);
  position: relative; border: 1px solid var(--line-soft);
}
.persoenlich__photo .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.72rem; color: rgba(255,255,255,0.7);
  padding: 1rem; text-align: center;
}
.persoenlich__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.persoenlich__sig {
  font-family: var(--display); font-style: italic; font-size: 1.5rem;
  color: var(--ink); margin-top: 1.5rem; font-variation-settings: "opsz" 96, "SOFT" 100;
}

/* --- Pfalz-Karte --- */
.region {
  background: var(--bg-dark);
  color: var(--on-dark);
  position: relative; overflow: hidden;
}
.region__row {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) { .region__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.region h2, .region .h2 { color: var(--paper); }
.region p { color: rgba(237, 231, 217, 0.78); }
.region__map {
  aspect-ratio: 4 / 3;
  background: #2a2722;
  border: 1px solid rgba(237, 231, 217, 0.18);
  position: relative;
}
.region__list { columns: 2; column-gap: 2rem; margin-top: 1rem; }
.region__list li { padding: 0.45rem 0; border-bottom: 1px solid rgba(237, 231, 217, 0.12); break-inside: avoid; font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em; }
.region__list li::before { content: "→ "; color: var(--accent); }

/* --- Closing-CTA --- */
.cta-3 {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 800px) { .cta-3 { grid-template-columns: repeat(3, 1fr); } }
.cta-card {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 0.75rem;
  text-decoration: none; color: inherit;
  min-height: 220px;
  transition: background .2s;
}
.cta-card:hover { background: var(--bg-deep); }
.cta-card__label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.cta-card__head { font-family: var(--display); font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; }
.cta-card__sub { color: var(--ink-muted); font-size: 0.95rem; margin-top: auto; }

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: var(--on-dark);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__row { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer__row { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand { font-family: var(--display); font-size: 1.6rem; font-weight: 400; letter-spacing: -0.01em; }
.footer__claim { font-family: var(--display); font-style: italic; color: rgba(237, 231, 217, 0.68); margin-top: 0.5rem; max-width: 30ch; }
.footer h4 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(237, 231, 217, 0.6); margin-bottom: 1rem; }
.footer ul { display: grid; gap: 0.5rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(237, 231, 217, 0.16);
  font-family: var(--mono); font-size: 0.75rem; color: rgba(237, 231, 217, 0.55); letter-spacing: 0.04em;
}

/* --- Allgemeine Page-Header --- */
.pagehead { padding-block: clamp(4rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line-soft); }
.pagehead .eyebrow { margin-bottom: 1.25rem; }
.pagehead h1 { max-width: 22ch; }
.pagehead p { margin-top: 1.5rem; max-width: 60ch; color: var(--ink-muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; }
.crumbs { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin-inline: 0.5rem; color: var(--ink-faint); }

/* --- Leistung Detail Page --- */
.leistung-intro { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .leistung-intro { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 5rem; align-items: start; } }
.factbox {
  border: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 1.5rem;
}
.factbox h4 { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1rem; }
.factbox dl { display: grid; gap: 0; }
.factbox dt { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-muted); padding-top: 0.85rem; }
.factbox dd { font-family: var(--display); font-size: 1.05rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line-soft); }
.factbox dd:last-of-type { border-bottom: 0; }

.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
@media (min-width: 768px) { .step { grid-template-columns: 80px 1fr 1fr; gap: 2rem; } }
.step__num { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.08em; color: var(--ink-muted); padding-top: 0.4rem; }
.step__head { font-family: var(--display); font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.step__body { color: var(--ink); }
.step__body p + p { margin-top: 0.75rem; }

/* --- Projekte-Liste --- */
.proj-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.proj-filter {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  padding: 0.5rem 0.95rem; border: 1px solid var(--line-soft); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.proj-filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.proj-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }
.proj-grid .feat__item--big { grid-column: span 1; }
@media (min-width: 1100px) { .proj-grid .feat__item--big { grid-column: span 2; } }
.proj-grid .feat__media { aspect-ratio: 4 / 3; }
.proj-grid .feat__item--big .feat__media { aspect-ratio: 16 / 10; }

/* --- Vorher/Nachher-Slider --- */
.compare {
  position: relative; overflow: hidden; user-select: none;
  aspect-ratio: 16 / 10; max-width: 100%;
  border: 1px solid var(--line-soft);
  background: var(--bg-deep);
  touch-action: none;
}
.compare__panel { position: absolute; inset: 0; }
.compare__panel--after { clip-path: inset(0 0 0 50%); }
.compare__label {
  position: absolute; top: 1rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.92);
  background: rgba(31,29,26,0.6); padding: 0.4rem 0.7rem; border: 1px solid rgba(255,255,255,0.15);
}
.compare__label--before { left: 1rem; }
.compare__label--after { right: 1rem; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--paper);
  transform: translateX(-1px);
  cursor: ew-resize;
}
.compare__handle::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
  border: 1.5px solid var(--paper); border-radius: 50%;
  background: rgba(31,29,26,0.55);
}
.compare__handle::after {
  content: "‹  ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono); color: var(--paper); font-size: 0.85rem; letter-spacing: 0.1em;
  pointer-events: none;
}
.compare__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  text-align: center; padding: 1rem;
}
.compare__panel--before { background: linear-gradient(160deg, #6a604f, #3c3326); }
.compare__panel--after  { background: linear-gradient(160deg, #5e7048, #2f3a23); }

/* --- Akt-Erzählung --- */
.akte { display: grid; gap: 0; border-top: 1px solid var(--line); }
.akt {
  display: grid; gap: 1rem; padding: 2rem 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 900px) { .akt { grid-template-columns: 200px 1fr; gap: 3rem; } }
.akt__label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding-top: 0.4rem; }
.akt__body p { font-size: 1.05rem; }

/* --- Detail-Galerie --- */
.gal { display: grid; gap: 0.75rem; grid-template-columns: repeat(6, 1fr); }
.gal__item { aspect-ratio: 1 / 1; border: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.gal__item--w2 { grid-column: span 2; aspect-ratio: 2 / 1; }
.gal__item--w3 { grid-column: span 3; aspect-ratio: 3 / 2; }
.gal__item--w6 { grid-column: span 6; aspect-ratio: 16 / 9; }
@media (max-width: 720px) { .gal__item, .gal__item--w2, .gal__item--w3 { grid-column: span 3; aspect-ratio: 1/1; } .gal__item--w6 { grid-column: span 6; } }
.gal__item .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; font-family: var(--mono); font-size: 0.7rem; color: rgba(255,255,255,0.72); letter-spacing: 0.04em; }
.gal__a { background: linear-gradient(160deg, #6e5944, #3a2d20); }
.gal__b { background: linear-gradient(160deg, #5e7048, #2f3a23); }
.gal__c { background: linear-gradient(160deg, #87826f, #44402f); }
.gal__d { background: linear-gradient(160deg, #a87a55, #6b4a30); }
.gal__e { background: linear-gradient(160deg, #4f5a3f, #28311b); }
.gal__f { background: linear-gradient(160deg, #8c6c4d, #533c25); }
.gal__g { background: linear-gradient(160deg, #756149, #4a3e2c); }
.gal__h { background: linear-gradient(160deg, #98724e, #5b3f24); }

/* --- Kunden-Zitat --- */
.quote {
  border-left: 2px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  max-width: 60ch;
}
.quote p {
  font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 380; font-style: italic; line-height: 1.35;
  font-variation-settings: "opsz" 120, "SOFT" 80;
}
.quote cite {
  display: block; font-style: normal; font-family: var(--mono);
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: 1rem;
}

/* --- About / Über uns --- */
.portrait {
  aspect-ratio: 3 / 4;
  background: linear-gradient(165deg, #6e5b3f, #2f2516);
  position: relative; border: 1px solid var(--line-soft);
}
.notdo {
  background: var(--bg-dark); color: var(--on-dark);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line-soft);
}
.notdo h3 { color: var(--paper); margin-bottom: 1.5rem; }
.notdo ul { display: grid; gap: 0.85rem; }
.notdo li {
  display: grid; grid-template-columns: 24px 1fr; gap: 0.75rem;
  align-items: start; padding: 0.5rem 0;
  border-bottom: 1px solid rgba(237, 231, 217, 0.16);
}
.notdo li::before {
  content: "✕"; color: var(--accent);
  font-family: var(--mono); font-size: 0.9rem; line-height: 1.5;
}
.notdo li strong { display: block; font-weight: 600; font-family: var(--sans); }
.notdo li span { color: rgba(237, 231, 217, 0.68); font-size: 0.9rem; }

/* --- Ablauf --- */
.flow { counter-reset: flow; display: grid; gap: 0; }
.flow__step {
  display: grid; gap: 1rem 2rem; padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .flow__step { grid-template-columns: 120px minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; } }
.flow__num {
  font-family: var(--display); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 380; line-height: 1; color: var(--accent);
  font-variation-settings: "opsz" 144;
}
.flow__head h3 { margin-bottom: 0.5rem; }
.flow__meta { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-muted); text-transform: uppercase; }
.flow__body p + p { margin-top: 0.85rem; }
.flow__body ul { display: grid; gap: 0.5rem; margin-top: 1rem; }
.flow__body ul li { padding-left: 1.25rem; position: relative; color: var(--ink-muted); font-size: 0.96rem; }
.flow__body ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* --- Kontaktformular --- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; } }
.contact-info dl { display: grid; gap: 0; }
.contact-info dt { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); padding-top: 1rem; }
.contact-info dd { font-family: var(--display); font-size: 1.15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft); }
.contact-info dd a { text-decoration: none; }
.contact-info dd a:hover { color: var(--accent); }
.contact-quick { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 1rem;
  padding: 0.85rem 0.95rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 0;
  color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 140px; }
.field--file { border: 1px dashed var(--line); padding: 1rem; background: var(--paper); }
.field--file label { color: var(--ink); font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0; text-transform: none; }
.field--file small { color: var(--ink-muted); font-size: 0.8rem; }
.form__bottom { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.form__hint { font-size: 0.85rem; color: var(--ink-muted); }
.form__hint strong { color: var(--ink); }

/* --- Map (Kontakt) --- */
.map {
  aspect-ratio: 16 / 7;
  background: var(--bg-dark);
  border: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}

/* --- Pfalz-Region SVG --- */
.regionmap-svg { width: 100%; height: 100%; display: block; }

/* --- Tags / Labels --- */
.tag {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border: 1px solid var(--line-soft); color: var(--ink-muted);
}

/* --- Leistungen-Sektion auf Startseite (großzügiges Karten-Grid) --- */
.leistungen-section { padding-block: clamp(5rem, 11vw, 9rem); background: var(--bg); }
.leistungen__head {
  display: grid; gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .leistungen__head { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 4rem; align-items: end; }
}
.leistungen__head h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-wrap: balance;
}
.leistungen__intro { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.leistungen__intro p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-muted); line-height: 1.5; max-width: 50ch; }
.leistungen__seeall {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--ink);
  transition: color .15s, border-color .15s, gap .15s;
}
.leistungen__seeall:hover { color: var(--accent); border-color: var(--accent); gap: 0.85rem; }

.leistungen__gridwrap { padding-inline: var(--gutter); }
.leistungen-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 700px) { .leistungen-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .leistungen-cards { grid-template-columns: repeat(3, 1fr); } }

.leistung-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem;
  padding: clamp(1.5rem, 2.4vw, 2.25rem) clamp(1.5rem, 2.4vw, 2.25rem) clamp(1.4rem, 2vw, 1.75rem);
  min-height: clamp(220px, 28vw, 320px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: background .25s ease, color .25s ease, transform .15s ease;
  overflow: hidden;
}
.leistung-card::before {
  content: "";
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 3px; background: transparent;
  transition: background .25s ease, width .25s ease;
}
.leistung-card:hover { background: var(--ink); color: var(--paper); }
.leistung-card:hover::before { background: var(--accent); width: 6px; }
.leistung-card:hover .leistung-card__num { color: rgba(255, 244, 224, 0.45); }
.leistung-card:hover .leistung-card__desc { color: rgba(237, 231, 217, 0.78); }
.leistung-card:hover .leistung-card__arrow { color: var(--accent); transform: translateX(4px); }

.leistung-card__num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-weight: 500;
  transition: color .25s ease;
}
.leistung-card__body { display: flex; flex-direction: column; gap: 0.65rem; }
.leistung-card__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.leistung-card__desc {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-muted);
  text-wrap: pretty;
  margin: 0;
  transition: color .25s ease;
}
.leistung-card__arrow {
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1;
  align-self: end;
  color: var(--ink);
  transition: color .25s ease, transform .25s ease;
}

/* Werkstatt-Stimme (sans default jetzt): Titel als Inter Tight 600 */
body[data-voice="sans"] .leistung-card__title,
body:not([data-voice]) .leistung-card__title {
  /* nur wenn voice-tweak explizit sans gesetzt: dort greift die globale Regel ohnehin */
}

@media (max-width: 700px) {
  .leistung-card { min-height: auto; padding: 1.4rem 1.25rem 1.3rem; gap: 1rem; }
  .leistung-card__title { font-size: 1.4rem; }
}

/* === Leistungen-Karussell (zentrierte Karte, seitlich verblasst, endlos) === */
.leist-slider {
  background: var(--bg-deep);
  color: var(--ink);
  padding-block: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  position: relative;
}
.leist-slider__head {
  display: grid; gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 900px) {
  .leist-slider__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: end; }
}
.leist-slider__eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem;
}
.leist-slider__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.024em;
  color: var(--ink);
  text-wrap: balance;
}
body[data-voice="sans"] .leist-slider__title {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.034em;
}
.leist-slider__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 48ch;
}

/* Viewport — JS-driven carousel (no native scroll) */
.leist-slider__viewport {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.leist-slider__track {
  display: flex;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  transition: transform .55s cubic-bezier(.4, .2, .2, 1);
  will-change: transform;
  align-items: flex-start;
}

.leist-slide {
  flex: 0 0 clamp(280px, 46vw, 540px);
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  opacity: 0.32;
  filter: blur(2px);
  transition: opacity .45s ease, filter .45s ease;
  pointer-events: none;
}
.leist-slide.is-active {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}
.leist-slide__media {
  aspect-ratio: 4 / 3;
  background: var(--bg-deep) url("assets/leistung-placeholder.jpg") center/cover no-repeat;
  border: 0;
  position: relative; overflow: hidden;
  margin-bottom: 1.5rem;
  transition: filter .25s ease;
}
.leist-slide__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(31,29,26,0.18) 100%);
  pointer-events: none;
}
.leist-slide__media--01 { background: var(--bg-deep) url("assets/leist/01-pflasterarbeiten.jpeg") center/cover no-repeat; }
.leist-slide__media--02 { background: var(--bg-deep) url("assets/leist/02-mauerarbeiten.jpeg") center/cover no-repeat; }
.leist-slide__media--03 { background: var(--bg-deep) url("assets/leist/03-zaunbau.jpeg") center/cover no-repeat; }
.leist-slide__media--04 { background: var(--bg-deep) url("assets/leist-rollrasen-hof.jpg") center/cover no-repeat; }
.leist-slide__media--05 { background: var(--bg-deep) url("assets/leist-schnitt-hecke.jpg") center/cover no-repeat; }
.leist-slide__media--06 { background: var(--bg-deep) url("assets/leist-gartenpflege-rasen.jpg") center/cover no-repeat; }
.leist-slide__media--07 { background: var(--bg-deep) url("assets/leist-steinreinigung-pflaster.jpg") center/cover no-repeat; }
.leist-slide__media--08 { background: var(--bg-deep) url("assets/leist/08-unkrautbekaempfung.jpeg") center/contain no-repeat; }
.leist-slide__media--09 { background: var(--bg-deep) url("assets/leist/09-gruenschnitt.jpeg") center/cover no-repeat; }

.leist-slide__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 0.75rem;
}
body[data-voice="sans"] .leist-slide__title {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.022em;
}
.leist-slide__desc {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
  max-width: 50ch;
}
.leist-slide.is-active:hover .leist-slide__media { filter: brightness(1.04) saturate(1.05); }
.leist-slide.is-active:hover .leist-slide__title { color: var(--accent); }
a.leist-slide { cursor: pointer; }
a.leist-slide .leist-slide__desc::after {
  content: "Mehr erfahren \2192";
  display: block;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s, transform .25s;
}
a.leist-slide.is-active:hover .leist-slide__desc::after { opacity: 1; transform: translateX(0); }

/* Controls */
.leist-slider__controls {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  gap: 1.5rem;
}
.leist-slider__cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--ink);
  transition: gap .15s, color .15s, border-color .15s;
}
.leist-slider__cta:hover { gap: 0.95rem; color: var(--accent); border-color: var(--accent); }
.leist-slider__nav { display: flex; gap: 0.65rem; }
.leist-slider__btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.leist-slider__btn:hover { background: var(--ink); color: var(--paper); }
.leist-slider__btn:active { transform: scale(0.96); }
.leist-slider__btn svg { width: 18px; height: 18px; }

.leist-slider__dots {
  display: flex; gap: 0.55rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.leist-slider__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(31,29,26,0.22);
  border: 0; padding: 0; cursor: pointer;
  transition: background .2s, transform .2s, width .2s;
}
.leist-slider__dot.is-active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .leist-slide { flex-basis: 78vw; }
  .leist-slider__btn { width: 42px; height: 42px; }
}

/* --- Faktenmarker (für Platzhalter) --- */
.fakt {
  display: inline-block; padding: 0.05em 0.4em;
  background: rgba(168, 92, 60, 0.15);
  border-bottom: 1px dashed var(--accent);
  font-family: var(--mono); font-size: 0.85em;
  color: var(--accent-deep);
  cursor: help;
}

/* --- Bild-Marker --- */
.bildph {
  display: block;
  font-family: var(--mono); font-size: 0.72rem; color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em; padding: 1rem; text-align: center;
}

/* --- Util --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-muted { color: var(--ink-muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; } .mt-5 { margin-top: 3.5rem; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 2rem; }

/* ============================================================
   MOBILE OPTIMIZATION (≤768px) — phones & narrow tablets
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section: clamp(2.75rem, 9vw, 4.5rem);
    --gutter: 1.1rem;
  }

  /* Body */
  body { font-size: 16px; line-height: 1.6; }
  h1, .h1 { font-size: clamp(2.1rem, 9vw, 3.4rem); line-height: 1.04; }
  h2, .h2 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  h3, .h3 { font-size: clamp(1.2rem, 4.5vw, 1.5rem); }
  .lead { font-size: 1.05rem; }
  p { max-width: none; }

  /* Topbar — kompakt, E-Mail wandert in zweite Zeile, kleinere Schrift */
  .topbar { font-size: 0.72rem; letter-spacing: 0.02em; }
  .topbar__row { gap: 0.35rem 1rem; padding-block: 0.5rem; flex-direction: column; align-items: flex-start; }
  .topbar__row > span:first-child { display: flex; align-items: center; }
  .topbar__row > span:last-child { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; }
  .topbar__row > span:last-child > a[href^="mailto"] { font-size: 0.68rem; opacity: 0.85; flex-basis: 100%; }
  .topbar__row > span:last-child > span[aria-hidden]:last-of-type { display: none; }

  /* Nav-Header */
  .nav__row { height: 60px; }
  .brand { font-size: 0.9rem; gap: 0.5rem; }
  .brand__mark { width: 36px; height: 36px; }
  .nav__cta { display: none; }            /* CTA wandert ins Mobile-Menü */
  .nav__toggle { width: 44px; height: 44px; }

  /* Mobile-Menü erweitern — primärer CTA als großer Knopf oben */
  .mobilenav { padding-top: 4.5rem; }
  .mobilenav__list a { font-size: 1.7rem; padding-bottom: 0.8rem; }
  .mobilenav__list a small { font-size: 0.65rem; }

  /* Hero */
  .hero { min-height: clamp(440px, 88vh, 720px); }
  .hero__inner { padding-block: clamp(2rem, 8vw, 3rem); }
  .hero h1 { max-width: none; }
  .hero__eyebrow { font-size: 0.7rem; margin-bottom: 1rem; }
  .hero__eyebrow .dash { width: 20px; }
  .hero__sub { font-size: 1.02rem; margin-top: 1.1rem; }
  .hero__ctas { gap: 0.6rem; flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; justify-content: center; padding: 1rem 1.25rem; font-size: 1rem; }
  .hero__caption { display: none; }
  .hero__placeholder { font-size: 0.62rem; padding: 0.3rem 0.45rem; max-width: 70%; }

  /* Buttons */
  .btn { padding: 0.85rem 1.2rem; font-size: 0.95rem; }
  .btn--lg { padding: 0.95rem 1.35rem; font-size: 1rem; }

  /* Section-Header */
  .shead { gap: 1rem; margin-bottom: 2rem; }
  .shead__num { font-size: 0.7rem; }

  /* Featured projects — kein Hero-Tile */
  .feat { gap: 1.75rem; }
  .feat__item--a .feat__media { aspect-ratio: 4/3; height: auto; }
  .feat__title { font-size: 1.3rem; }

  /* Leistungen-Grid: 2-spaltig, kompakter */
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
  .leistung-tile { min-height: 140px; padding: 1rem 0.85rem 1.1rem; gap: 0.4rem; }
  .leistung-tile__title { font-size: 1rem; line-height: 1.15; }
  .leistung-tile__arrow { font-size: 0.75rem; }
  .leistung-tile__num { font-size: 0.65rem; }

  /* Persönlich — Foto sitzt vor Text */
  .persoenlich { gap: 1.75rem; }
  .persoenlich__photo { aspect-ratio: 4/3; }
  .persoenlich__sig { font-size: 1.3rem; }

  /* Region — Map ganz nach unten, Liste 1-spaltig */
  .region__row { gap: 1.5rem; }
  .region__map { aspect-ratio: 4/3; order: 2; }
  .region__list { columns: 1; }
  .region__list li { font-size: 0.78rem; }

  /* CTA-Karten — voll gestapelt */
  .cta-3 { grid-template-columns: 1fr; }
  .cta-card { min-height: auto; padding: 1.25rem 1.1rem; gap: 0.45rem; }
  .cta-card__head { font-size: 1.2rem; }
  .cta-card__sub { font-size: 0.88rem; }

  /* Page-Header */
  .pagehead { padding-block: 2.75rem 1.5rem; }
  .pagehead p { font-size: 1rem; margin-top: 1rem; }
  .crumbs { font-size: 0.68rem; letter-spacing: 0.06em; margin-bottom: 1.25rem; }

  /* Leistung-Detail Page */
  .leistung-intro { gap: 2rem; }
  .factbox { padding: 1.1rem; }
  .factbox dd { font-size: 0.95rem; }
  .step { padding: 1.3rem 0; }
  .step__num { font-size: 0.78rem; }
  .step__head { font-size: 1.15rem; }

  /* Projekte */
  .proj-filters { gap: 0.4rem; }
  .proj-filter { padding: 0.4rem 0.75rem; font-size: 0.72rem; }
  .proj-grid { gap: 1.5rem; }

  /* Compare-Slider */
  .compare { aspect-ratio: 4/3; }
  .compare__label { font-size: 0.65rem; padding: 0.3rem 0.5rem; top: 0.6rem; }
  .compare__handle::before { width: 36px; height: 36px; }

  /* Galerie — alle Items auf 2 Spalten */
  .gal { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .gal__item, .gal__item--w2, .gal__item--w3 { grid-column: span 1; aspect-ratio: 1/1; }
  .gal__item--w6 { grid-column: span 2; aspect-ratio: 4/3; }
  .gal__item .ph { font-size: 0.62rem; padding: 0.5rem; }

  /* Akt-Erzählung */
  .akt { padding: 1.5rem 0; gap: 0.6rem; }
  .akt__label { font-size: 0.7rem; }
  .akt__body p { font-size: 1rem; }

  /* Quote */
  .quote p { font-size: 1.2rem; }

  /* Über uns */
  .notdo { padding: 1.5rem 1.25rem; }
  .notdo li { padding: 0.4rem 0; gap: 0.55rem; }

  /* Ablauf */
  .flow__step { padding: 1.75rem 0; gap: 0.75rem; }
  .flow__num { font-size: 2.4rem; }
  .flow__head h3 { font-size: 1.25rem; }
  .flow__body ul li { font-size: 0.92rem; }

  /* Kontakt */
  .contact-grid { gap: 2rem; }
  .form__row { grid-template-columns: 1fr; gap: 1rem; }
  .form { gap: 1rem; }
  .field input, .field textarea, .field select { font-size: 16px; padding: 0.75rem 0.85rem; } /* 16px verhindert iOS-Zoom */
  .field textarea { min-height: 110px; }
  .form__bottom { flex-direction: column; align-items: stretch; gap: 0.85rem; }
  .form__bottom .btn { width: 100%; justify-content: center; }
  .contact-info dt { font-size: 0.72rem; padding-top: 0.85rem; }
  .contact-info dd { font-size: 1.02rem; padding-bottom: 0.85rem; }

  /* Footer */
  .footer { padding-block: 2.5rem 1.5rem; }
  .footer__row { gap: 1.75rem; }
  .footer__brand { font-size: 1.35rem; }
  .footer__claim { font-size: 0.95rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-top: 2rem; padding-top: 1rem; font-size: 0.68rem; }

  /* Akzent-Boxen / Quotes / Listen — mehr Luft, weniger Indent */
  .quote { padding-left: 1rem; }
}

/* === Sehr kleine Phones (≤420px) — feinere Korrekturen === */
@media (max-width: 420px) {
  /* Leistungen-Grid 1-spaltig — bei vielen Kacheln lesbarer */
  .leistungen-grid { grid-template-columns: 1fr; }
  .leistung-tile { min-height: auto; padding: 1rem var(--gutter); display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; gap: 0.4rem 1rem; }
  .leistung-tile > div { display: contents; }
  .leistung-tile__num { grid-row: 1; grid-column: 1; align-self: center; }
  .leistung-tile__title { grid-row: 1; grid-column: 2; font-size: 1.1rem; }
  .leistung-tile__arrow { grid-row: 1; grid-column: 3; align-self: center; }
  .leistung-tile > p { grid-row: 2; grid-column: 2 / -1; margin-top: 0; font-size: 0.85rem; }

  /* Hero noch knapper */
  .hero { min-height: 78vh; }
  h1, .h1 { font-size: clamp(1.95rem, 10vw, 2.6rem); }

  /* Region — SVG dunkler Hintergrund, Text könnte überlappen → Map etwas kürzer */
  .region__map { aspect-ratio: 4/3; }

  /* Topbar — nur Telefon zeigen, Email + WhatsApp gehen ins Menü */
  .topbar__row > span:last-child > a[href^="mailto"] { display: none; }
  .topbar__row > span:last-child > span[aria-hidden] { display: none; }

  /* Project-Filter: horizontal scrollen statt umbrechen, edge-fade */
  .proj-filters { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.25rem; scrollbar-width: none; }
  .proj-filters::-webkit-scrollbar { display: none; }
  .proj-filter { flex-shrink: 0; }

  /* Step / Flow — kompakter */
  .step { grid-template-columns: 1fr; }
  .step__num { padding-top: 0; }
  .flow__step { grid-template-columns: 1fr; }
}

/* === Tweaks-Panel auf Mobile sicherstellen, dass es nicht den Inhalt blockt === */
@media (max-width: 600px) {
  [data-tweaks-panel],
  [class*="tweaks"][class*="panel"],
  #tweaks-root > * {
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: 0.75rem !important;
    max-width: calc(100vw - 1.5rem) !important;
  }
}
