/* Handwerk voraus · site.css
   Direction: Werkzeugwand (Schattenbrett). One module (--m = 25px pegboard pitch) rules spacing,
   radii and sizes. One light source top-right. Amber only for action, links and the glow bridge. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* module */
  --m: 25px;
  --m2: calc(var(--m) * 2);
  --m3: calc(var(--m) * 3);
  --m4: calc(var(--m) * 4);

  /* palette Werkstatt-Nacht */
  --night: #0b0f14;
  --sockel: #141a22;
  --hole: #1a212b;
  --line: #27303c;
  --cream: #f5f1ea;
  --cream-2: #ebe5da;
  --ink: #0b0f14;
  --text: #f5f1ea;
  --muted: #a7afba;
  --muted-on-cream: #4f5864;
  --amber: #f0a030;
  --amber-glow: #ffd27a;
  --amber-ink: #8a5410;

  /* type */
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h1: clamp(2.1rem, 1.1rem + 3vw, 3.3rem);
  --fs-h2: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem);
  --fs-h3: clamp(1.35rem, 1.05rem + 1.1vw, 1.9rem);

  /* radii from the module */
  --r-sockel: 28px;
  --r-tool: 14px;
  --r-ctl: 12px;

  /* layout */
  --wrap: 1180px;
  --gutter: 16px;

  /* hero tunables (Phase 6 panel) */
  --hero-pad-top: var(--m3);
  --hero-pad-bottom: var(--m2);
  --hero-gap: var(--m3);
  --wall-scale: 1;
  --wall-max: 720px;

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  overflow-x: hidden;
}
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
a { color: var(--amber); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--amber-glow); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0; max-width: 62ch; }
p + p { margin-top: calc(var(--m) * .8); }
strong { font-weight: 600; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* pegboard ground */
.board {
  background-color: var(--night);
  background-image: radial-gradient(circle at calc(var(--m) / 2) calc(var(--m) / 2), var(--hole) 2.4px, transparent 3px);
  background-size: var(--m) var(--m);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 var(--m);
  border-radius: var(--r-ctl); border: 1.5px solid transparent;
  font: 600 1.0625rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background-color .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
a.btn-primary, .btn-primary, .btn-primary * { background: var(--amber); color: var(--ink); }
.btn-primary * { background: transparent; }
a.btn-primary:hover, .btn-primary:hover, .btn-primary:hover * { background: var(--amber-glow); color: var(--ink); }
.btn-primary:hover * { background: transparent; }
.on-cream a.btn-primary, .on-cream a.btn-primary:hover { color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.on-cream .btn-ghost { border-color: #b9b2a6; color: var(--ink); }
.on-cream .btn-ghost:hover { border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .95rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, .92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .site-head { backdrop-filter: blur(8px); background: rgba(11, 15, 20, .82); } }
.site-head .wrap { display: flex; align-items: center; gap: var(--m); min-height: 72px; }
.brand { display: block; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: calc(var(--m) * 1.1); }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); border-bottom-color: var(--amber); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--ink); border-bottom: 0; }
.head-cta { flex: none; }
.head-tel { display: none; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .site-head .wrap { gap: 12px; }
  .nav { display: none; }
  .head-tel { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-left: auto; border-radius: var(--r-ctl); border: 1.5px solid var(--line); color: var(--text); }
  .head-tel svg { width: 22px; height: 22px; }
  .head-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
  .nav-toggle svg { width: 24px; height: 24px; }
  .site-head.is-open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) var(--m); }
  .site-head.is-open .nav a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-head.is-open .nav a:last-child { border-bottom: 0; }
  .site-head.is-open .nav .nav-cta { margin-top: 12px; }
}
@media (min-width: 901px) { .nav .nav-cta { display: none; } }

/* ---------- hero ---------- */
.hero { padding: var(--hero-pad-top) 0 var(--hero-pad-bottom); position: relative; overflow: hidden; }
.hero .lamp {
  position: absolute; right: -10%; top: -45%; width: 70vw; max-width: 1100px; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(240, 160, 48, .14), rgba(240, 160, 48, .04) 55%, transparent 72%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--hero-gap); align-items: center; }
.hero-copy .herkunft { font-size: 1rem; font-weight: 600; color: var(--muted); margin-top: calc(var(--m) * .6); max-width: 52ch; }
.hero-copy h1 { max-width: 17ch; }
.hero-copy .lead { font-size: var(--fs-lead); color: var(--text); margin-top: var(--m); max-width: 52ch; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--m2); }
.hero-copy .fine { font-size: .95rem; color: var(--muted); margin-top: var(--m); max-width: 46ch; }

/* the wall */
.wall {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--m);
  padding: var(--m);
  border-radius: var(--r-sockel);
  background-color: var(--sockel);
  background-image: radial-gradient(circle at calc(var(--m) / 2) calc(var(--m) / 2), #0b0f14 2.6px, transparent 3.2px);
  background-size: var(--m) var(--m);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transform: scale(var(--wall-scale)); transform-origin: center;
  max-width: var(--wall-max); margin-inline: auto; width: 100%;
}
.slot { position: relative; aspect-ratio: 1 / 1; }
.slot .outline {
  position: absolute; inset: 0; border-radius: var(--r-tool);
  border: 2.5px dashed rgba(240, 160, 48, .55);
}
.slot .hook { position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #0b0f14; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .06); }
.slot .slot-label { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: .9rem; font-weight: 600; color: var(--muted); padding: 0 10px; }
.slot .tool { position: absolute; inset: 0 7% 10%; border-radius: var(--r-tool); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55)); }
.slot .tool svg { width: 100%; height: 100%; display: block; }
.slot .tool svg { width: 100%; height: 100%; }
.slot.is-filled .outline { border-style: solid; border-color: rgba(240, 160, 48, .35); }
.slot.is-filled .slot-label { color: var(--text); }

/* ---------- sections ---------- */
.section { padding: var(--m2) 0; }
.section.alltag { padding-top: 0; }
.sockel { background: var(--sockel); border-radius: var(--r-sockel); padding: 75px 50px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.on-cream { background: var(--cream); color: var(--ink); border-radius: var(--r-sockel); padding: 75px 50px; }
.on-cream p { color: #2a313b; }
.on-cream .muted { color: var(--muted-on-cream); }
.on-cream a { color: var(--amber-ink); }
.on-cream a:hover { color: #6e4109; }
.muted { color: var(--muted); }
.section h2 { margin-bottom: var(--m); }
.lead { font-size: var(--fs-lead); }
@media (max-width: 700px) { .sockel, .on-cream { padding: 50px 20px; border-radius: 20px; } }

/* Alltag */
.alltag .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--m3); align-items: center; }
.alltag .wall-empty { padding: var(--m); }
.alltag .wall-empty .slot { aspect-ratio: 4 / 3; }
.alltag .wall-empty .slot-label { bottom: auto; top: 50%; transform: translateY(-50%); font-size: 1rem; color: var(--muted); }

/* Leistungen: four Sockel, tool snaps into its outline */
.leistungen .intro { margin-bottom: var(--m2); }
.werkzeug { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--m3); align-items: center; margin-top: var(--m); }
.werkzeug:nth-child(even) .werkzeug-wand { order: 2; }
.werkzeug-wand { position: relative; padding: var(--m); border-radius: var(--r-sockel); background-color: var(--night);
  background-image: radial-gradient(circle at calc(var(--m) / 2) calc(var(--m) / 2), var(--hole) 2.4px, transparent 3px); background-size: var(--m) var(--m); }
.werkzeug-wand .slot { max-width: 360px; margin-inline: auto; }
.werkzeug-wand .slot .tool { transform: translateY(-70px); opacity: 0; }
.werkzeug-wand .slot.is-in .tool { transform: translateY(0); opacity: 1; transition: transform .32s cubic-bezier(.2, 1.45, .4, 1), opacity .12s linear; }
.werkzeug-wand .slot.is-in .outline { border-style: solid; border-color: rgba(240, 160, 48, .35); transition: border-color .3s; }
.werkzeug-text h3 { margin-bottom: calc(var(--m) * .7); }
@media (prefers-reduced-motion: reduce) {
  .werkzeug-wand .slot .tool { transform: none; opacity: 1; transition: none; }
}

/* Haltung */
.haltung p { font-size: 1.2rem; max-width: 60ch; }
.haltung p + p { margin-top: var(--m); }

/* Ablauf: a path along one axis */
.ablauf ol { list-style: none; margin: 0; padding: 0; position: relative; }
.ablauf ol::before { content: ""; position: absolute; left: 31px; top: 20px; bottom: 20px; width: 0; border-left: 2px dashed var(--amber); opacity: .6; }
.ablauf li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--m); padding: var(--m) 0; }
.ablauf li + li { border-top: 1px solid var(--line); }
.ablauf .step { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 2px solid var(--amber); color: var(--amber); font: 800 1.5rem/1 var(--font-display); position: relative; z-index: 1; }
.ablauf h3 { font-size: 1.4rem; margin-bottom: 8px; }
.ablauf .actions { margin-top: var(--m2); padding-left: calc(64px + var(--m)); }
@media (max-width: 600px) { .ablauf ol::before { left: 23px; } .ablauf li { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; } .ablauf .step { width: 48px; height: 48px; font-size: 1.2rem; } .ablauf .actions { padding-left: 0; } }

/* Preise: a price board, rows not cards */
.preise .intro { margin-bottom: var(--m2); }
.pakete { display: grid; gap: 0; border-top: 2px solid var(--ink); margin-inline: -20px; }
.paket { display: grid; grid-template-columns: 200px minmax(0, 1fr) 260px; gap: var(--m); align-items: start; padding: var(--m) 20px; border-bottom: 1.5px solid #cfc7ba; position: relative; }
.paket h3 { font-size: 1.5rem; }
.paket .tag { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--amber-ink); margin-top: 6px; }
.paket .price { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; line-height: 1.35; text-align: right; }
.paket .price small { display: block; font: 600 .95rem/1.4 var(--font-body); color: var(--muted-on-cream); letter-spacing: 0; }
.paket.is-standard { background: var(--cream-2); border-radius: 14px; }
.preise .fine { margin-top: var(--m); }
@media (max-width: 800px) { .paket { grid-template-columns: 1fr; gap: 10px; } .paket .price { text-align: left; } .pakete { margin-inline: -12px; } .paket { padding-inline: 12px; } }

/* Über mich */
.ueber .grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--m3); align-items: start; }
.foto {
  aspect-ratio: 4 / 5; border-radius: var(--r-sockel); display: grid; place-items: center; text-align: center; padding: 25px;
  background-color: var(--night); background-image: radial-gradient(circle at calc(var(--m) / 2) calc(var(--m) / 2), var(--hole) 2.4px, transparent 3px); background-size: var(--m) var(--m);
  border: 2.5px dashed rgba(240, 160, 48, .55); color: var(--muted); font-weight: 600;
}
.foto img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
@media (max-width: 800px) { .ueber .grid { grid-template-columns: 1fr; } .foto { max-width: 300px; } }

/* Fragen */
.fragen details { border-top: 1px solid var(--line); }
.fragen details:last-of-type { border-bottom: 1px solid var(--line); }
.fragen summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--m); padding: 18px 0; font: 700 1.15rem/1.4 var(--font-body); }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2.5px solid var(--amber); border-bottom: 2.5px solid var(--amber); transform: rotate(45deg); transition: transform .2s; margin-right: 6px; }
.fragen details[open] summary::after { transform: rotate(-135deg); }
.fragen summary:hover { color: var(--amber-glow); }
.fragen details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* Anfrage */
.anfrage .grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--m3); }
.anfrage .side .tel { display: block; font: 800 1.9rem/1.35 var(--font-display); letter-spacing: -.02em; color: var(--text); text-decoration: none; margin-top: var(--m); }
.anfrage .side .tel:hover { color: var(--amber-glow); }
.anfrage .side .mail { display: inline-block; margin-top: 8px; }
.field { margin-bottom: 18px; }
.field label, .field .legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--r-ctl);
  border: 1.5px solid var(--line); background: var(--night); color: var(--text); font: 400 1.0625rem/1.4 var(--font-body);
  caret-color: var(--amber);
}
.field input::placeholder { color: #7b848f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(240, 160, 48, .25); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field-error { display: none; font-size: .92rem; color: #ffb4a8; margin-top: 6px; }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error select { border-color: #e0604c; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--text); font-weight: 600; font-size: .95rem; transition: border-color .15s, background-color .15s, color .15s; }
.choice input:checked + span { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.choice input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 3px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--amber); flex: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--m); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; }
.form-status.is-error { color: #ffb4a8; }
#form-wrap.is-sent form { display: none; }
#form-success { padding: 50px; border-radius: var(--r-sockel); border: 2.5px solid var(--amber); }
#form-success h3 { margin-bottom: 10px; }
@media (max-width: 800px) { .anfrage .grid { grid-template-columns: 1fr; } .two { grid-template-columns: 1fr; } }

/* footer */
.site-foot { padding: var(--m3) 0 var(--m2); border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-foot .fact { max-width: 70ch; color: var(--text); }
.site-foot .row { display: flex; flex-wrap: wrap; gap: 10px var(--m); margin-top: var(--m); align-items: center; }
.site-foot .row a { color: var(--muted); }
.site-foot .row a:hover { color: var(--amber); }
.site-foot .brand-small { height: 24px; width: auto; opacity: .85; }

/* sub pages */
.subpage { padding: var(--m3) 0 var(--m4); }
.subpage h1 { margin-bottom: var(--m); }
.subpage h2 { font-size: 1.5rem; margin-top: var(--m2); margin-bottom: 10px; }
.subpage p { max-width: 70ch; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: var(--m2); }
  .hero-copy h1 { max-width: 16ch; }
  .alltag .grid, .werkzeug, .werkzeug:nth-child(even) { grid-template-columns: 1fr; }
  .werkzeug:nth-child(even) .werkzeug-wand { order: 0; }
  .wall { max-width: min(520px, var(--wall-max)); }
}
@media (max-width: 480px) {
  :root { --fs-body: 1rem; --fs-lead: 1.1rem; --hero-pad-top: var(--m); }
  .wall { gap: 14px; padding: 14px; }
  .slot .slot-label { font-size: .8rem; bottom: 8px; }
  .btn { width: 100%; }
  .hero-copy .actions { flex-direction: column; }
}
/* Marcs Feinjustierung aus dem Regler-Panel, gespeichert 13.10.2026 17:14 (Desktop) */
@media (min-width: 901px) {
  .hero { --hero-pad-top: 75px; --hero-pad-bottom: 50px; --hero-gap: 75px; --fs-h1: 45px; --wall-max: 698px; }
}
