/* =========================================================
   Luca Fischer Webdesign – Stylesheet
   Aufbau: Fonts · Tokens · Basis · Layout · Komponenten · Sektionen · Unterseiten · Motion
   ========================================================= */

/* ---------- Fonts (selbst gehostet, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Farbe: kühles Papierweiß, Tinte, Soester Grünsandstein */
  --paper: #F4F5F2;
  --surface: #FFFFFF;
  --ink: #1A1D21;
  --ink-2: #50575F;
  --line: #D6DAD3;
  --stone: #3D5A49;
  --stone-deep: #2C4436;
  --stone-soft: #E3E9E1;
  --danger: #A3322A;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;

  /* Abstandsskala (0,25rem-Raster) */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 84rem;
  --section: clamp(5rem, 11vw, 9.5rem);
  --radius: 0.25rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 4.5rem;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
.work__media picture { height: 100%; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
h2 { font-size: clamp(2.125rem, 4.6vw, 4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--stone); }
:focus-visible {
  outline: 2px solid var(--stone);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--stone); color: #fff; }

.skip {
  position: absolute; left: var(--s4); top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--s3) var(--s4);
  font-family: var(--display); text-decoration: none;
}
.skip:focus { top: var(--s4); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem;
  padding: var(--s3) var(--s5);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); }
.btn--small { min-height: 2.5rem; padding: var(--s2) var(--s4); font-size: 0.9375rem; background: transparent; color: var(--ink); }
@media (hover: hover) {
  .btn--solid:hover { background: var(--stone); border-color: var(--stone); color: #fff; }
  .btn--line:hover, .btn--small:hover { background: var(--ink); color: var(--paper); }
}

/* ---------- Kopfzeile ---------- */
.masthead {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.masthead.is-scrolled { border-bottom-color: var(--line); }
.masthead__inner {
  max-width: var(--max); margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
}
.wordmark {
  display: inline-flex; align-items: baseline; gap: var(--s2);
  text-decoration: none; color: var(--ink);
  font-family: var(--display);
  white-space: nowrap;
  flex: none;
}
.wordmark__name { font-weight: 650; font-size: 1.125rem; letter-spacing: -0.02em; }
.wordmark__trade { font-weight: 400; font-size: 1.125rem; color: var(--stone); letter-spacing: -0.01em; }

.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: var(--s5);
  font-family: var(--display); font-size: 0.9875rem;
}
.nav__list a { text-decoration: none; color: var(--ink-2); padding-block: var(--s2); transition: color 160ms var(--ease-out); }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--ink); }
.nav__list a[aria-current="page"]:not(.nav__cta) { text-decoration: underline; text-decoration-color: var(--stone); text-underline-offset: 0.45em; }
.nav__list .nav__cta {
  color: var(--ink); border: 1px solid var(--ink); border-radius: 999px;
  padding: var(--s2) var(--s4);
}
@media (hover: hover) { .nav__list .nav__cta:hover { background: var(--ink); color: var(--paper); } }

.menu-toggle {
  display: none;
  align-items: center; gap: var(--s3);
  min-height: 2.75rem; padding: 0 var(--s2);
  background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-size: 1rem; color: var(--ink);
  touch-action: manipulation;
}
.menu-toggle__bars, .menu-toggle__bars::before {
  display: block; width: 1.25rem; height: 1px; background: currentColor;
  transition: transform 220ms var(--ease-out);
}
.menu-toggle__bars { position: relative; transform: translateY(-3px); }
.menu-toggle__bars::before { content: ""; position: absolute; left: 0; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 22.49rem) {
  .masthead__inner { gap: var(--s3); }
  .wordmark__name, .wordmark__trade { font-size: 1rem; }
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 63.99rem) {
  .menu-toggle { display: inline-flex; }
  .nav__list {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--s4) var(--gutter) var(--s6);
    font-size: 1.5rem;
    opacity: 0; transform: translateY(-0.5rem); visibility: hidden;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .nav__list li { border-top: 1px solid var(--line); }
  .nav__list li:first-child { border-top: 0; }
  .nav__list a { display: block; padding-block: var(--s4); color: var(--ink); }
  .nav__list .nav__cta { border: 0; padding-inline: 0; color: var(--stone); }
  .nav__list .nav__cta[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
  .nav.is-open .nav__list {
    opacity: 1; transform: none; visibility: visible;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
  }
}

/* ---------- Abschnitte allgemein ---------- */
.section { padding-block: var(--section); }
.section--first { padding-top: clamp(3rem, 8vw, 6rem); }
.section h1 { font-size: clamp(2.75rem, 7vw, 6rem); letter-spacing: -0.04em; line-height: 1; }
.section__head {
  display: grid; gap: var(--s5);
  margin-bottom: clamp(var(--s7), 6vw, var(--s9));
}
.section__intro { color: var(--ink-2); max-width: 34rem; font-size: 1.1875rem; }
.section__intro a { color: var(--ink); }
@media (min-width: 64rem) {
  .section__head { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--s7); }
  .section__intro { justify-self: end; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3.5rem, 10vw, 8rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.hero__title {
  font-size: clamp(2.125rem, 10.2vw, 8.25rem);
  font-weight: 620;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: initial;
}
.hero__line { display: block; }
.hero__line:nth-child(2) { padding-left: 0.6em; }
.hero__line:nth-child(3) { padding-left: 1.2em; color: var(--stone-deep); }
@media (min-width: 64rem) {
  .hero__title { font-size: clamp(4rem, 8.4vw, 8.25rem); }
  .hero__line:nth-child(3) { padding-left: 1.6em; }
  .hero__line:nth-child(2) { padding-left: 0.8em; }
}
.hero__foot {
  display: grid; gap: var(--s6);
  margin-top: clamp(var(--s7), 7vw, var(--s9));
}
.hero__lead { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.55; max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-self: end; }
@media (min-width: 64rem) {
  .hero__foot { grid-template-columns: 1fr 1fr; padding-left: calc(8.4vw * 0.8); }
  .hero__actions { justify-content: flex-end; }
}
@media (min-width: 84rem) { .hero__foot { padding-left: 5.5rem; } }

.hero__facts {
  margin: clamp(var(--s8), 8vw, var(--s10)) 0 0;
  display: grid; gap: var(--s5);
  border-top: 1px solid var(--ink);
  padding-top: var(--s5);
}
.hero__facts dt { font-family: var(--display); font-size: 0.875rem; color: var(--ink-2); }
.hero__facts dd { margin: var(--s1) 0 0; font-family: var(--display); font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
@media (min-width: 48rem) { .hero__facts { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Platzhalter ---------- */
.placeholder {
  position: relative;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--stone) 9%, transparent) 14px 15px),
    var(--stone-soft);
  border: 1px dashed color-mix(in srgb, var(--stone) 45%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
}
.placeholder__note {
  font-family: var(--display); font-size: 0.9375rem; text-align: center;
  color: var(--stone-deep);
  background: var(--paper);
  padding: var(--s2) var(--s4);
  border-radius: 999px;
  line-height: 1.4;
}
.placeholder--photo .placeholder__note { border-radius: var(--radius); padding: var(--s3) var(--s4); }

/* ---------- Projekte ---------- */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(var(--s7), 6vw, var(--s9)) var(--s6);
}
.work__link { display: block; text-decoration: none; color: inherit; }
.work__media { aspect-ratio: 3 / 2; max-width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--stone-soft); }
.work--lead .work__media { aspect-ratio: 16 / 10; }
.work--side .work__media { aspect-ratio: 4 / 5; }
.work__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.work__meta { margin-top: var(--s4); display: grid; gap: var(--s2); justify-items: start; }
.work__title { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.work__desc { color: var(--ink-2); max-width: 32rem; }
.work__desc a { color: var(--ink); }
.tag {
  font-family: var(--display); font-size: 0.8125rem; font-weight: 500;
  padding: 0.125rem var(--s3);
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2);
}
.tag--concept { border-color: var(--stone); color: var(--stone-deep); background: var(--stone-soft); }
@media (hover: hover) {
  .work__link:hover .work__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  .work__link:hover .work__media img { transform: scale(1.02); }
}
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(12, 1fr); }
  .work--lead { grid-column: 1 / -1; }
  .work--side { grid-column: 1 / span 5; }
  .work--offset { grid-column: 7 / span 6; margin-top: clamp(var(--s8), 12vw, var(--s10)); }
}
@media (min-width: 64rem) {
  .work--lead { grid-column: 1 / span 8; }
  .work--side { grid-column: 9 / span 4; margin-top: var(--s10); }
  .work--offset { grid-column: 3 / span 6; margin-top: 0; }
}

/* ---------- Über mich ---------- */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about__grid { display: grid; gap: var(--s7); }
.about__photo { margin: 0; }
.about__photo .placeholder, .about__photo img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }
.about__text { display: grid; gap: var(--s6); align-content: start; }
.prose { display: grid; gap: var(--s4); max-width: 38rem; }
.prose__lead { font-size: 1.375rem; line-height: 1.5; }
.about__sign {
  font-style: italic; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.4;
  color: var(--stone-deep);
  max-width: 30rem;
  padding-top: var(--s5); border-top: 1px solid var(--line);
}
@media (min-width: 64rem) {
  .about__grid { grid-template-columns: 5fr 1fr 6fr; align-items: start; }
  .about__photo { grid-column: 1; position: sticky; top: calc(var(--header-h) + 2rem); }
  .about__text { grid-column: 3; padding-top: var(--s8); }
}

/* ---------- Leistungen ---------- */
.services__list { border-top: 1px solid var(--ink); }
.service {
  display: grid; gap: var(--s4);
  padding-block: var(--s6) var(--s7);
  border-bottom: 1px solid var(--line);
}
.service__name { font-size: clamp(2rem, 4.4vw, 3.75rem); font-weight: 560; letter-spacing: -0.035em; }
.service__body { display: grid; gap: var(--s4); max-width: 40rem; }
.service__items {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s2);
  font-family: var(--display); font-size: 0.9375rem;
}
.service__items li { padding: var(--s1) var(--s3); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
@media (min-width: 64rem) {
  .service { grid-template-columns: 5fr 7fr; gap: var(--s7); align-items: baseline; padding-block: var(--s7); }
}

/* ---------- Branchen ---------- */
.branchen__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6) var(--s7); }
.branchen__list li { border-top: 1px solid var(--ink); padding-top: var(--s4); display: grid; gap: var(--s2); align-content: start; }
.branchen__list p { color: var(--ink-2); max-width: 34rem; }
.branchen__more { margin-top: var(--s7); font-family: var(--display); }
@media (min-width: 48rem) { .branchen__list { grid-template-columns: 1fr 1fr; } }

/* ---------- Warum ---------- */
.why { background: var(--stone-deep); color: #EEF2EC; }
.why__grid { display: grid; gap: var(--s7); }
.why__title { color: #fff; max-width: 14ch; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6) var(--s7); }
.why__list li { border-top: 1px solid rgba(255,255,255,0.28); padding-top: var(--s4); display: grid; gap: var(--s2); }
.why__list h3 { color: #fff; font-size: 1.25rem; }
.why__list p { color: #D3DCD2; font-size: 1.0625rem; }
@media (min-width: 48rem) { .why__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) {
  .why__grid { grid-template-columns: 4fr 8fr; }
  .why__title { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- Ablauf ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  counter-reset: none;
}
.step {
  position: relative;
  display: grid; grid-template-columns: 3rem 1fr; column-gap: var(--s4); row-gap: var(--s2);
  padding-bottom: var(--s6);
}
.step::before {
  content: ""; position: absolute; left: 1.5rem; top: 3rem; bottom: 0;
  width: 1px; background: var(--line);
}
.step:last-child::before { display: none; }
.step__no {
  grid-row: span 2;
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 50%;
  font-family: var(--display); font-weight: 500; font-size: 1.0625rem;
  background: var(--paper);
}
.step h2, .step h3 { padding-top: var(--s3); }
.step h2 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
.step p { color: var(--ink-2); max-width: 30rem; }
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s8) var(--s6); }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .step::before { left: 3.75rem; right: calc(-1 * var(--s6) + 0.75rem); top: 1.5rem; bottom: auto; width: auto; height: 1px; }
  .step:nth-child(3n)::before { display: none; }
  .step__no { grid-row: auto; margin-bottom: var(--s4); }
  .step h2, .step h3 { padding-top: 0; }
  .step p { font-size: 1.0625rem; }
}
@media (min-width: 84rem) {
  .steps { grid-template-columns: repeat(6, 1fr); gap: var(--s5); }
  .step::before { right: calc(-1 * var(--s5) + 0.75rem); }
  .step:nth-child(3n)::before { display: block; }
  .step:last-child::before { display: none; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: var(--s7); }
.faq__aside { display: grid; gap: var(--s4); align-content: start; }
.faq__list { border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s5);
  padding-block: var(--s5);
  font-family: var(--display); font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 500; letter-spacing: -0.015em;
  touch-action: manipulation;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 0.875rem; height: 0.875rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 220ms var(--ease-out);
}
.qa[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) { .qa summary:hover { color: var(--stone); } }
.qa__a { padding-bottom: var(--s6); max-width: 40rem; color: var(--ink-2); }
.qa[open] .qa__a { animation: qa-in 260ms var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-4px); } }
@media (min-width: 64rem) {
  .faq__grid { grid-template-columns: 4fr 8fr; }
  .faq__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- Kontakt ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact__grid { display: grid; gap: var(--s8); }
.contact__intro { display: grid; gap: var(--s5); align-content: start; }
.contact__intro h1, .contact__intro h2 { font-size: clamp(2.5rem, 5.6vw, 5rem); max-width: 12ch; }
.contact__intro > p { font-size: 1.25rem; max-width: 30rem; }
.contact__direct { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); display: grid; gap: var(--s3); justify-items: start; }
.contact__label { color: var(--ink-2); font-size: 1rem; }
.contact__mail { font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; user-select: all; }
.contact__mail a { text-decoration: none; }
.copy-status { font-family: var(--display); font-size: 0.9375rem; color: var(--stone); min-height: 1.4em; }
@media (min-width: 64rem) {
  .contact__grid { grid-template-columns: 5fr 7fr; gap: var(--s9); }
  .contact__intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

.form { display: grid; gap: var(--s5); }
@media (min-width: 40rem) {
  .form { grid-template-columns: 1fr 1fr; column-gap: var(--s5); }
  .form__notice, .field--wide, .form__submit, .form__result { grid-column: 1 / -1; }
}
.form__notice {
  padding: var(--s4) var(--s5);
  background: var(--stone-soft);
  border-left: 3px solid var(--stone);
  font-size: 1rem; line-height: 1.5;
}
.form__notice[hidden] { display: none; }
.field { display: grid; gap: var(--s2); align-content: start; }
.field label { font-family: var(--display); font-size: 0.9375rem; font-weight: 500; }
.field__opt { font-weight: 400; color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; /* mind. 16px: kein Zoom auf iOS */
  font-family: var(--display);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #A9B0A7;
  border-radius: var(--radius);
  padding: var(--s3) var(--s4);
  min-height: 3rem;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9rem) 50%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: var(--s7); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--stone); background: var(--surface); outline: 2px solid var(--stone); outline-offset: 0; }
.field input[type="file"] { font-family: var(--display); font-size: 1rem; padding: var(--s3); border: 1px dashed #A9B0A7; border-radius: var(--radius); background: var(--paper); width: 100%; }
.field__hint { font-size: 0.9375rem; color: var(--ink-2); }
.field__error { font-family: var(--display); font-size: 0.9375rem; color: var(--danger); }
.field__error:empty { display: none; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field--check { grid-template-columns: auto 1fr; column-gap: var(--s3); align-items: start; }
.field--check input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--stone); }
.field--check label { font-family: var(--text); font-weight: 400; font-size: 1rem; line-height: 1.5; }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.form__result {
  padding: var(--s5);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
  display: grid; gap: var(--s4);
}
.form__result:focus { outline: 2px solid var(--stone); outline-offset: 2px; }
.form__result h3 { font-size: 1.25rem; }
.form__result .btns { display: flex; flex-wrap: wrap; gap: var(--s3); }
.compose { white-space: pre-wrap; font-family: inherit; font-size: 1rem; margin: 0; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-height: 16rem; overflow: auto; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.form__result.is-error { border-color: var(--danger); }
.form__result.is-success { border-color: var(--stone); background: var(--stone-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #D9DDD8; padding-block: var(--s8) calc(var(--s6) + env(safe-area-inset-bottom)); font-size: 1rem; }
.footer a { color: #fff; }
.footer a:hover { color: #BFD0BF; }
.footer__grid { display: grid; gap: var(--s6); }
.footer__claim { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: #fff; max-width: 22ch; }
.footer__col { display: grid; gap: var(--s1); align-content: start; }
.footer__name { color: #fff; font-family: var(--display); font-weight: 600; }
.footer :focus-visible { outline-color: #fff; }
@media (min-width: 40rem) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } .footer__claim { grid-column: 1 / -1; } }
@media (min-width: 64rem) { .footer__grid { grid-template-columns: 5fr 3fr 2fr 2fr; } .footer__claim { grid-column: auto; } }
.footer__mail { overflow-wrap: anywhere; }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s5);
  margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid rgba(255,255,255,0.18);
  font-family: var(--display); font-size: 0.9375rem; color: #B9C0B8;
}
.footer__top { text-decoration: none; }
.footer__top:hover { text-decoration: underline; }

/* ---------- Einwilligung (Google Ads) ---------- */
.footer__consent {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: #fff; text-align: left; text-decoration: none;
}
.footer__consent:hover { color: #BFD0BF; text-decoration: underline; }
.consent {
  position: fixed; z-index: 70;
  left: max(var(--s3), env(safe-area-inset-left, 0px));
  right: max(var(--s3), env(safe-area-inset-right, 0px));
  bottom: calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  max-width: 34rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(26, 29, 33, 0.16);
  animation: consent-in 240ms cubic-bezier(0.23, 1, 0.32, 1) backwards;
}
.consent__inner { display: grid; gap: var(--s3); padding: var(--s5); }
.consent__title { margin: 0; font-family: var(--display); font-size: 1.125rem; line-height: 1.3; font-weight: 600; text-wrap: balance; }
.consent__text { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.consent__text a { color: var(--stone-deep); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s1); }
.consent__actions .btn { width: 100%; justify-content: center; }
@media (min-width: 40rem) { .consent { left: auto; } }
@keyframes consent-in { from { opacity: 0; transform: translateY(0.75rem); } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
/* Banner sitzt mobil oberhalb der Schnellkontakt-Leiste */
@media (max-width: 63.99rem) {
  .consent { bottom: calc(4.5rem + var(--s2) + env(safe-area-inset-bottom, 0px)); }
}
@media print { .consent { display: none !important; } }

/* ---------- Mobil-Leiste ---------- */
.mobilebar { display: none; }
@media (max-width: 63.99rem) {
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
  .mobilebar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 2fr; gap: var(--s2);
    padding: var(--s3) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--s3) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobilebar__link {
    display: flex; align-items: center; justify-content: center; min-height: 3rem;
    border: 1px solid var(--ink); border-radius: 999px;
    font-family: var(--display); font-size: 1rem; font-weight: 500; text-decoration: none; color: var(--ink);
    touch-action: manipulation;
  }
  .mobilebar__link--main { background: var(--ink); color: var(--paper); }
  .mobilebar__link:active { transform: scale(0.97); }
}

/* ---------- Startseite: Kurzvorstellung, Überblick, Kontakt-Teaser ---------- */
.intro { border-top: 1px solid var(--line); }
.intro__grid { display: grid; gap: var(--s6); align-items: center; }
.intro__photo { margin: 0; max-width: 16rem; }
.intro__photo .placeholder, .intro__photo img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }
.intro__text { display: grid; gap: var(--s4); max-width: 40rem; }
.intro__text > p:first-of-type { font-size: 1.25rem; line-height: 1.55; }
.textlink { font-family: var(--display); font-size: 1.0625rem; font-weight: 500; color: var(--stone-deep); }
@media (min-width: 48rem) { .intro__grid { grid-template-columns: 16rem 1fr; gap: var(--s8); } }
@media (min-width: 64rem) { .intro__grid { grid-template-columns: 3fr 1fr 8fr; } .intro__photo { max-width: none; } .intro__text { grid-column: 3; } }

.overview { padding-top: 0; }
.overview__title { margin-bottom: var(--s6); }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index li { border-bottom: 1px solid var(--line); }
.index__row {
  display: grid; gap: var(--s2);
  padding-block: var(--s6);
  text-decoration: none; color: var(--ink);
}
.index__name { font-family: var(--display); font-size: clamp(2rem, 5.6vw, 4.5rem); font-weight: 560; letter-spacing: -0.04em; line-height: 1; transition: color 180ms var(--ease-out), transform 260ms var(--ease-out); }
.index__text { color: var(--ink-2); max-width: 32rem; }
@media (hover: hover) {
  .index__row:hover .index__name { color: var(--stone); transform: translateX(0.25rem); }
}
@media (min-width: 64rem) {
  .index__row { grid-template-columns: 7fr 5fr; align-items: center; gap: var(--s7); padding-block: var(--s7); }
}

.cta { background: var(--stone-deep); color: #EEF2EC; }
.cta h2 { color: #fff; font-size: clamp(2.25rem, 5vw, 4.5rem); max-width: 14ch; }
.cta__grid { display: grid; gap: var(--s6); }
.cta__side { display: grid; gap: var(--s5); justify-items: start; align-content: end; max-width: 26rem; font-size: 1.1875rem; }
.cta .btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta :focus-visible { outline-color: #fff; }
@media (hover: hover) { .cta .btn--solid:hover { background: #fff; border-color: #fff; color: var(--stone-deep); } }
@media (min-width: 64rem) { .cta__grid { grid-template-columns: 7fr 5fr; align-items: end; } }

/* ---------- Unterseiten (Rechtliches, Projekte) ---------- */
.page-head { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: var(--s7); }
.page-head h1 { font-size: clamp(2.5rem, 6.4vw, 5.5rem); letter-spacing: -0.04em; }
.page-head p { margin-top: var(--s5); color: var(--ink-2); max-width: 38rem; font-size: 1.1875rem; }
.back { display: inline-block; margin-bottom: var(--s6); font-family: var(--display); font-size: 1rem; color: var(--ink-2); }
.legal { padding-bottom: var(--section); }
.legal__body { max-width: 44rem; min-width: 0; grid-template-columns: minmax(0, 1fr); display: grid; gap: var(--s5); }
.legal__body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: var(--s6); }
.legal__body ul { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--s2); }
.legal__stand { margin-top: var(--s6); font-family: var(--display); font-size: 0.9375rem; color: var(--ink-2); }
.todo {
  padding: var(--s4) var(--s5);
  border: 1px solid #C9A227; background: #FBF5DF; border-radius: var(--radius);
  font-family: var(--display); font-size: 1rem; line-height: 1.5;
}
.todo, .legal__body p { overflow-wrap: anywhere; }
.todo strong { font-weight: 650; }
.case { padding-bottom: var(--section); }
.case__hero { aspect-ratio: 16 / 9; margin-bottom: var(--s8); }
.case__facts { display: grid; gap: var(--s4); border-top: 1px solid var(--ink); padding-top: var(--s5); margin: 0 0 var(--s8); }
.case__facts dt { font-family: var(--display); font-size: 0.875rem; color: var(--ink-2); }
.case__facts dd { margin: var(--s1) 0 0; font-family: var(--display); font-weight: 500; }
@media (min-width: 48rem) { .case__facts { grid-template-columns: repeat(4, 1fr); } }
.case__body { display: grid; gap: var(--s8); }
.case__block { display: grid; gap: var(--s4); }
.case__block h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.case__block p { max-width: 40rem; color: var(--ink-2); }
.case__pair { display: grid; gap: var(--s5); }
.case__pair .placeholder { aspect-ratio: 4 / 3; }
@media (min-width: 64rem) {
  .case__block { grid-template-columns: 4fr 8fr; gap: var(--s7); }
  .case__pair { grid-template-columns: 1fr 1fr; }
}

/* ---------- Motion: eine orchestrierte Bewegung (Hero beim Laden) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__line {
    animation: line-in 1000ms var(--ease-out) backwards;
  }
  .js .hero__line:nth-child(2) { animation-delay: 120ms; }
  .js .hero__line:nth-child(3) { animation-delay: 240ms; }
  .js .hero__foot, .js .hero__facts { animation: fade-in 700ms var(--ease-out) 520ms backwards; }
}
@keyframes line-in {
  from { transform: translateY(100%); clip-path: inset(-10% -5% 100% -5%); }
  to { transform: none; clip-path: inset(-10% -5% 0 -5%); }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(1rem); } }

/* ---------- Motion 2: Licht im Hero, Scroll-Reveals, Seitenwechsel, Lesefortschritt ---------- */
@media screen {
  /* Weiches Licht hinter der Hero-Überschrift */
  .hero { position: relative; isolation: isolate; overflow: clip; }
  .hero::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: min(78vw, 52rem); aspect-ratio: 1; right: -14%; top: -4%;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--stone) 20%, transparent), transparent);
  }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .hero::before { animation: glow-drift 18s ease-in-out infinite alternate; }

  /* Unterseiten: Kopfbereich beim Laden */
  .js .section--first h1 { animation: rise-in 800ms var(--ease-out) backwards; }
  .js .section--first .section__intro,
  .js .section--first .prose__lead { animation: rise-in 800ms var(--ease-out) 120ms backwards; }

  /* Inhalte erscheinen beim Scrollen (Klassen setzt site.js und entfernt sie danach wieder) */
  .rv { opacity: 0; transform: translateY(1.75rem); }
  .rv.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .rv--img { clip-path: inset(0 0 100% 0); }
  .rv--img.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1100ms var(--ease-out); }
  .rv--img:not(.work__media) img { scale: 1.15; }
  .rv--img.is-in:not(.work__media) img { scale: 1; transition: scale 1400ms var(--ease-out); }
  .rv-d1.is-in { transition-delay: 70ms; }
  .rv-d2.is-in { transition-delay: 140ms; }
  .rv-d3.is-in { transition-delay: 210ms; }
  .rv-d4.is-in { transition-delay: 280ms; }
  .rv-d5.is-in { transition-delay: 350ms; }

  /* Weicher Wechsel zwischen den Seiten (Kopfzeile bleibt stehen) */
  @view-transition { navigation: auto; }
  .masthead { view-transition-name: masthead; }
  .mobilebar { view-transition-name: mobilebar; }
  ::view-transition-old(root) { animation: vt-out 180ms var(--ease-out) both; }
  ::view-transition-new(root) { animation: vt-in 420ms var(--ease-out) both; }

  /* Lesefortschritt in der Kopfzeile */
  @supports (animation-timeline: scroll()) {
    .masthead::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
      background: var(--stone); transform-origin: 0 50%; transform: scaleX(0);
      animation: read-progress linear both; animation-timeline: scroll(root);
    }
  }
  /* Projektbilder bewegen sich beim Scrollen leicht im Rahmen */
  @supports (animation-timeline: view()) {
    .work__media img { scale: 1.06; animation: img-drift linear both; animation-timeline: view(); }
  }
}
@keyframes glow-drift { to { transform: translate3d(-18%, 22%, 0) scale(1.15); } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(0.75rem); } }
@keyframes read-progress { to { transform: scaleX(1); } }
@keyframes img-drift { from { translate: 0 -2.5%; } to { translate: 0 2.5%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------- Druck ---------- */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; padding: 0 !important; }
  body::before, .skip, .menu-toggle, .nav, .mobilebar, .footer__top, .form, .btn, [data-copy], .copy-status { display: none !important; }
  .masthead { position: static; background: none; backdrop-filter: none; border-bottom: 1px solid #000; }
  .section, .hero { padding-block: 12pt; }
  .cta, .why, .footer { background: none !important; color: #000 !important; }
  .cta h2, .why__title, .why__list h3, .why__list p, .footer__claim, .footer__name, .footer a { color: #000 !important; }
  .footer__base { border-color: #000; color: #000; }
  .qa .qa__a { display: block; }
  .about__photo, .faq__aside, .contact__intro, .why__title { position: static !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  h1, h2, h3 { break-after: avoid; }
  img, picture, .service, .qa, .step { break-inside: avoid; }
  .hero__line, .hero__foot, .hero__facts { animation: none !important; }
}
.notfound__actions { margin-top: var(--s6); }
