@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f4f3ef;
  --ink: #111;
  --muted: #6b6a66;
  --line: rgba(17, 17, 17, 0.14);
  --grid: rgba(17, 17, 17, 0.045);
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  /* Millimeterpapier: feines Raster alle 24px, kräftigeres alle 120px */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Kopf & Fuß */
.top, .foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 20px var(--gutter);
}
.top { border-bottom: 1px solid var(--line); }
.top a, .foot a { text-decoration: none; }
.top a:hover, .foot a:hover { text-decoration: underline; }
.foot { border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot nav { display: flex; gap: 1.5rem; }

/* Bauzaun: Schraffur wie ein geschnittenes Bauteil im Plan */
.construction {
  padding: 12px var(--gutter);
  text-align: center;
  border-bottom: 1px solid var(--ink);
  /* SVG-Kachel statt Gradient: Gradients rendern schräge Linien gezackt */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M-1 1l2-2M0 10L10 0M9 11l2-2' stroke='%23111' stroke-width='1.2'/%3E%3C/svg%3E");
}
.construction span {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.lede strong { font-weight: 400; color: var(--ink); }

/* Startseite */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: calc(100svh - 113px);
  padding: clamp(40px, 7vw, 96px) var(--gutter);
}

h1 {
  font-weight: 200;
  font-size: clamp(3rem, 8.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
h1 span { display: block; }

.role { margin-top: 2rem; font-weight: 400; }
.lede { margin-top: 0.5rem; max-width: 34ch; color: var(--muted); }

.sheet { display: grid; gap: 24px; }

.plan { width: 100%; height: auto; overflow: visible; }
.plan * { vector-effect: non-scaling-stroke; }
.plan .wall { stroke: var(--ink); stroke-width: 1.25; fill: none; }
.plan .thin { stroke: var(--ink); stroke-width: 0.6; fill: none; }
.plan .dash { stroke: var(--ink); stroke-width: 0.6; fill: none; stroke-dasharray: 4 3; }
.plan .win { fill: var(--paper); stroke: var(--ink); stroke-width: 0.6; }
.plan text { font-family: inherit; font-size: 11px; fill: var(--ink); }
.plan text.small { font-size: 9px; fill: var(--muted); letter-spacing: 0.08em; }

/* Linien zeichnen sich beim Laden selbst */
@media (prefers-reduced-motion: no-preference) {
  .plan [pathLength] {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2.4s cubic-bezier(.6, 0, .2, 1) forwards;
    animation-delay: calc(var(--d, 0) * 0.15s);
  }
  .plan text, .plan .win {
    opacity: 0;
    animation: fade 0.8s ease forwards 2s;
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* Schriftfeld wie auf einem Plan */
.titleblock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  font-size: 14px;
}
.titleblock div {
  padding: 8px 10px 10px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.titleblock dt { margin-bottom: 2px; }
.titleblock dd { font-variant-numeric: tabular-nums; }

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(64px, 9vw, 128px) var(--gutter);
  border-top: 1px solid var(--line);
}
h2 {
  font-weight: 200;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.contact address { font-style: normal; margin-top: 2rem; }

form { display: grid; gap: 28px; }
.field { display: grid; gap: 4px; }
input, textarea {
  font: inherit;
  color: inherit;
  padding: 6px 0 8px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
input:focus, textarea:focus { outline: none; border-bottom-width: 2px; padding-bottom: 7px; }
textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; }
.note { font-size: 14px; color: var(--muted); }

button {
  justify-self: start;
  font: inherit;
  font-weight: 400;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
button:hover { background: transparent; color: var(--ink); }

.status { padding: 12px 14px; border: 1px solid var(--ink); background: var(--paper); }
.status[hidden] { display: none; }

/* Rechtstexte */
.legal {
  max-width: 68ch;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.legal h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; font-weight: 500; letter-spacing: 0; margin: 2.5rem 0 0.75rem; line-height: 1.3; }
.legal h3 { font-size: 1rem; font-weight: 500; margin: 1.5rem 0 0.25rem; }
.legal p, .legal ul { margin-bottom: 0.9rem; }
.legal ul { padding-left: 1.2rem; }

@media (max-width: 860px) {
  .hero, .contact { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
}
@media (max-width: 480px) {
  .titleblock { grid-template-columns: repeat(2, 1fr); }
}
