/*
Theme Name: Schaffwerk
Theme URI: https://www.schaffwerk.com
Author: Schaffwerk
Description: Statisches Firmen-Theme fuer schaffwerk.com. Liefert die handgebaute One-Page-Website aus; WordPress dient nur als Host.
Version: 1.0
Requires PHP: 7.4
Text Domain: schaffwerk
*/
/* ==========================================================================
   Schaffwerk — v2 (Relaunch Oktober 2026)
   Hell. Typografie. Ein Grün.
   --------------------------------------------------------------------------
   Prinzipien
   - Eine Akzentfarbe (#67DC9F, aus dem Logo gemessen). Sie taucht nur im Zeichen, im Primär-Button
     und in kleinen Hover-Momenten auf. Nie als Fließtext auf Weiß (unlesbar).
   - Schwarz auf Weiß. Grau nur für Sekundäres.
   - Viel Luft. Große Headlines, enge Laufweite. Labels klein, weit, uppercase.
   - Keine Karten, keine Schatten, keine Verläufe. Linien statt Boxen.
   ========================================================================== */

:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --ink: #0a0a0a;
  --ink-soft: #4a4d52;
  --muted: #8a8e95;
  --line: #e6e6e3;
  --line-strong: #0a0a0a;
  --green: #67dc9f;              /* Schaffwerk Brand Green (aus dem Logo gemessen) — die einzige Farbe */
  --green-ink: #0a0a0a;          /* Text auf Grün */

  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 72px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1 0 auto; }

/* ---------- Typografie ---------- */
.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-size: clamp(44px, 9vw, 136px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.title {
  font-size: clamp(36px, 6vw, 88px);
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 34em;
}
.prose p { margin-bottom: 1.1em; color: var(--ink-soft); max-width: 38em; }
.prose p:last-child { margin-bottom: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }

/* ---------- Links mit einlaufender Unterstreichung ---------- */
.u {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.u::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.u:hover::after, .u:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.btn-primary:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--black); color: var(--white); }
.btn-lg { height: 60px; padding: 0 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}
.nav {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav--home { justify-content: flex-end; }           /* Startseite: kein Logo im Kopf, Navigation rechts */
.brand-logo { height: 36px; width: auto; }
@media (min-width: 760px) { .brand-logo { height: 42px; } }

/* Navigation: Punkte in Brand-Grün erscheinen beim Hover */
.nav-links ul { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 10px 0 10px 16px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav-links a::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  transform: translate(-4px, -50%) scale(0);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav-links a:hover::before, .nav-links a:focus-visible::before, .nav-links a[aria-current="page"]::before {
  transform: translate(0, -50%) scale(1);
  opacity: 1;
}
/* Sprachumschalter: dezent, mit feiner Trennlinie */
.nav-links li.lang { margin-left: clamp(4px, 1vw, 12px); padding-left: clamp(14px, 1.6vw, 24px); border-left: 1px solid var(--line-strong); }
.nav-links li.lang a { padding-left: 16px; color: var(--ink-soft); }
.nav-links li.lang a:hover, .nav-links li.lang a:focus-visible { color: var(--ink); }

/* Mobil: Logo oben, Navigation zentriert darunter, umbrechend auf zwei Zeilen */
@media (max-width: 759px) {
  :root { --gutter: 24px; --header-h: 64px; }
  .nav { flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 0 10px; min-height: 0; }
  .nav--home { padding-top: 10px; }
  .brand-logo { height: 32px; }
  .nav-links { width: 100%; }
  .nav-links ul { flex-wrap: wrap; justify-content: center; row-gap: 2px; column-gap: 22px; }
  .nav-links a { font-size: 11px; letter-spacing: .18em; padding: 8px 0 8px 14px; }
  .nav-links a::before { width: 5px; height: 5px; }
  .nav-links li.lang { margin-left: 0; padding-left: 0; border-left: 0; }
}

/* ---------- Landing ---------- */
.landing {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-rows: 1fr auto;
}
.landing-stage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(40px, 8vh, 96px) 0;
}
.landing-logo {
  width: min(90vw, 960px);
  margin: 0 auto;
}
/* Logo-Animation: Bildmarke faehrt zusammen, Buchstaben steigen auf, Claim schreibt sich (Keyframes im SVG selbst) */
.landing-logo img, .landing-logo svg { width: 100%; height: auto; display: block; }
/* Tagline: drei Begriffe, dazwischen mittig gesetzte Punkte */
.landing-tag {
  margin-top: clamp(28px, 4.5vh, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 0;
  font-size: clamp(13px, 1.45vw, 19px);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  animation: rise 1s var(--ease) 1.5s both;
}
.landing-tag span { padding: 0 .1em; }
.landing-tag i {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  margin: 0 clamp(16px, 2.2vw, 32px);
  position: relative; top: -0.08em;
}
@media (max-width: 759px) {
  .landing { min-height: calc(100svh - var(--header-h)); }
  .landing-stage { padding: 24px 0 40px; }
  .landing-logo { width: 100%; }
  .landing-tag { margin-top: 30px; flex-direction: column; gap: 10px; font-size: 11px; letter-spacing: .22em; }
  .landing-tag i { margin: 0; top: 0; width: 5px; height: 5px; }
  .landing-actions { margin-top: 32px; }
  .landing-actions .btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
  .landing-foot { flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 22px 0 26px; }
  .creds { justify-content: center; }
  .landing-place { font-size: 10px; letter-spacing: .16em; }
  .foot { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 0 26px; }
  .foot ul { justify-content: center; gap: 18px; }
  .contact-lines .meta { display: none; }
  .hours { font-size: 15px; }
}
.landing-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: clamp(32px, 5vh, 56px);
  animation: rise 1s var(--ease) 1.7s both;
}
.landing-foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
}
.creds { display: flex; flex-wrap: wrap; gap: 10px; }
.creds li {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 16px 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
}
.creds strong { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; }
.creds span { font-size: 12px; color: var(--muted); }
.creds .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

@keyframes rise   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes markIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .landing-logo, .landing-tag, .landing-actions { animation: none; }
}

/* ---------- Bildspur (Landing) ---------- */
.trail { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.trail img {
  position: absolute; left: 0; top: 0;
  width: var(--w, 140px); aspect-ratio: var(--ar, 3 / 4); object-fit: cover;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(.6);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform .55s var(--ease), opacity .4s var(--ease);
}
.trail img.in  { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); }
.trail img.out { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.05); transition-duration: .7s, .7s; }
.landing { position: relative; z-index: 2; }
.landing-stage > * { position: relative; }
@media (hover: none), (prefers-reduced-motion: reduce) { .trail { display: none; } }

/* ---------- Cursor (Landing): weicher, transparenter Punkt. Über Links/Buttons: aus, normaler Zeiger ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(103, 220, 159, .22);
  border: 1px solid rgba(103, 220, 159, .55);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 24px rgba(103, 220, 159, .25);
  pointer-events: none;
  transform: translate(-100px, -100px) translate(-50%, -50%);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
body.has-cursor .cursor { opacity: 1; }
body.has-cursor .cursor.is-link { opacity: 0; }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button, body.has-cursor label { cursor: pointer; }
@media (hover: none), (prefers-reduced-motion: reduce) { .cursor { display: none; } }

/* ---------- Unterseiten ---------- */
.page-head {
  padding: clamp(48px, 9vh, 120px) 0 clamp(28px, 5vh, 56px);
  border-bottom: 1px solid var(--line);
}
.page-head .label { margin-bottom: 18px; display: block; color: var(--green); font-weight: 600; font-size: 12px; }
.page-head .lead { margin-top: 24px; }
.section { padding: clamp(40px, 7vh, 88px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(28px, 4vh, 48px); }
.section-head .label { display: block; margin-bottom: 14px; color: var(--green); font-weight: 600; font-size: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 44px); }

/* Editorial-Liste: nummeriert, Linien statt Karten */
.index-list { border-top: 1px solid var(--line-strong); }
.index-list > li {
  display: grid;
  gap: 12px 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 900px) {
  .index-list > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 48px; }
}
.index-list h3 { font-size: clamp(22px, 2.4vw, 32px); }
.index-list p { color: var(--ink-soft); max-width: 36em; }

/* Zwei Spalten */
.cols { display: grid; gap: 40px; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 80px; } }
.facts { border-top: 1px solid var(--line-strong); }
.facts li { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.facts strong { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; }
.facts span { color: var(--muted); font-size: 14px; text-align: right; }

/* Referenzen */
.refs { border-top: 1px solid var(--line-strong); }
.ref {
  display: grid; gap: 10px 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .ref { grid-template-columns: 160px minmax(0, 1fr) 220px; align-items: start; } }
.ref-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); display: flex; gap: 14px; }
@media (min-width: 900px) { .ref-meta { flex-direction: column; gap: 4px; padding-top: 6px; } }
.ref h3 { font-size: clamp(20px, 2.2vw, 28px); margin-bottom: 8px; }
.ref p { color: var(--ink-soft); max-width: 40em; }
.ref-tag { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .ref-tag { text-align: right; padding-top: 6px; } }

/* Jobs */
.jobs { border-top: 1px solid var(--line-strong); }
.jobs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.jobs .job { font-size: 18px; font-weight: 500; }
.jobs .meta { color: var(--muted); font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  transform: rotate(45deg); transition: transform .3s var(--ease);
  margin-right: 4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { color: var(--green); }
.faq-item p { padding: 0 0 22px; color: var(--ink-soft); max-width: 44em; }

/* ---------- Kontakt ---------- */
.contact-lines { border-top: 1px solid var(--line-strong); }
.contact-lines li { border-bottom: 1px solid var(--line); }
.contact-lines a {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: clamp(20px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.02em;
  transition: color .25s;
}
.contact-lines a:hover { color: var(--green); }
.contact-lines .meta { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.hours { margin-top: 28px; color: var(--ink-soft); font-size: 15px; display: grid; gap: 14px; }
.hours address, .hours p { line-height: 1.55; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 10px 0; outline: none;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--green); }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; gap: 24px; } }
.optional { color: var(--muted); text-transform: none; letter-spacing: 0; }

.dropzone {
  border: 1px dashed var(--line-strong); padding: 26px 20px; text-align: center; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-dragover { border-color: var(--green); background: rgba(103,220,159,.04); outline: none; }
.dropzone input { display: none; }
.dropzone-title { font-size: 15px; }
.dropzone-title span { text-decoration: underline; }
.dropzone-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.file-list .file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .file-size { color: var(--muted); font-size: 12px; }
.file-remove { display: inline-flex; padding: 4px; color: var(--muted); }
.file-remove:hover { color: var(--ink); }
.file-error, .form-failure { color: #b42318; font-size: 14px; }
.form-success { color: var(--ink); font-size: 15px; padding: 14px 0; border-top: 1px solid var(--green); border-bottom: 1px solid var(--green); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.check input { margin-top: 4px; accent-color: var(--green); }
.check a { text-decoration: underline; }
.form-hint { font-size: 13px; color: var(--muted); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-submitting { opacity: .6; pointer-events: none; }

/* ---------- Rechtliches ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li, .legal dd { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; }
.legal dt { font-weight: 500; }
.legal dd { margin: 0; }
.legal a { text-decoration: underline; }
.legal address { color: var(--ink-soft); }
.legal-callout { border-left: 2px solid var(--green); padding: 10px 18px; margin: 24px 0; color: var(--ink-soft); font-size: 15px; }
.legal-intro { color: var(--muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: auto; }
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding: 22px 0 28px;
  font-size: 13px; color: var(--muted);
}
.foot ul { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a:hover { color: var(--ink); }

/* ---------- Datenschutz-Hinweis ---------- */
.notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  margin: 0 auto; max-width: 560px;
  background: var(--black); color: var(--white);
  padding: 18px 20px;
  display: flex; gap: 20px; align-items: center;
  font-size: 13px; line-height: 1.45;
}
.notice[hidden] { display: none; }
.notice p { color: rgba(255,255,255,.75); }
.notice a { text-decoration: underline; color: var(--white); }
.notice .btn { height: 40px; padding: 0 18px; font-size: 13px; flex-shrink: 0; }

/* ---------- Kleinigkeiten ---------- */
::selection { background: var(--green); color: var(--black); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
