/* Startseite: eine Skizze auf Punktraster, wie sie dir jemand am Tisch erklärt. Schwarzer Marker, Königsblau, ein Textmarker. */
@font-face { font-family: "Archivo"; src: url("fonts/Archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --papier: #fbfbf9;
  --punkt: rgb(24 32 56 / 0.17);
  --tinte: #121212;
  --tinte-2: #4f535a;
  --blau: #2446c8;
  --gelb: #ffe93a;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--papier); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--papier);
  background-image: radial-gradient(circle at 1px 1px, var(--punkt) 1.1px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--tinte);
  font: 450 1rem/1.5 "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: rgb(255 233 58 / 0.7); }
a { color: inherit; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 4px; border-radius: 4px; }
p, ul { margin: 0; }

.blatt {
  position: relative;
  max-width: 1040px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(36px, 8vh, 88px) clamp(22px, 6vw, 64px) max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

/* ---------- Schriftzug ---------- */
.wort { margin: 0; width: min(640px, 100%); }
.schrift { display: block; width: 100%; height: auto; overflow: visible; }
.wort-text { font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 850; letter-spacing: -0.02em; line-height: 1; }
.gezeichnet .wort-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.claim { margin-top: 22px; max-width: 30ch; font-size: clamp(1.1875rem, 2.2vw, 1.5rem); line-height: 1.35; font-weight: 500; text-wrap: pretty; }
.wichtig { white-space: nowrap; }

/* ---------- Skizze ---------- */
.skizze {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(72px, 12vw, 150px);
  margin-top: clamp(44px, 8vh, 72px);
}
.quelle { justify-self: start; padding: 20px 26px 22px; transform: rotate(-1.2deg); }
.ziel { padding: 22px 28px 24px; }
.kasten-titel { font-weight: 750; font-size: 1.125rem; }
.quelle .kasten-titel { font-size: 1.5rem; font-stretch: 90%; letter-spacing: 0.01em; }
.klein { margin-top: 4px; font-size: 0.875rem; color: var(--tinte-2); }
.check { margin-top: 12px; padding: 0; list-style: none; }
.check li { position: relative; padding: 5px 0 5px 34px; font-size: 1rem; }

/* ---------- Anmelden ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: clamp(40px, 7vh, 64px); }
.go {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
}
.go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--ease-out); }
.go:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .go:hover svg { transform: translateX(3px); } }
.note { font-size: 0.9375rem; color: var(--tinte-2); }

.meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 30px; padding: 0; list-style: none; font-size: 0.875rem; color: var(--tinte-2); }
.meta li + li::before { content: "·"; margin: 0 10px; }

.fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: auto; padding-top: 48px; font-size: 0.8125rem; color: var(--tinte-2); }
.fuss nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.fuss nav a { padding: 6px 0; color: var(--tinte); text-decoration: none; }
@media (hover: hover) { .fuss nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; } }
.fuss p { padding: 6px 0; }

/* ---------- Wer dahintersteckt: Foto, ein paar Sätze, und die Einladung, den Code prüfen zu lassen ---------- */
.meta a { color: var(--tinte); text-underline-offset: 0.25em; }
.ich {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 60ch);
  grid-template-areas: "foto text" "foto pruefen" ". kontakt";
  align-items: start;
  gap: 26px clamp(40px, 7vw, 84px);
  margin-top: clamp(96px, 15vh, 150px);
  scroll-margin-top: 40px;
}
.ich.ohne-foto { grid-template-columns: minmax(0, 60ch); grid-template-areas: "text" "pruefen" "kontakt"; }
.ich.ohne-foto .foto { display: none; }
.foto {
  grid-area: foto;
  margin: 10px 0 0;
  padding: 10px 10px 0;
  background: #fff;
  transform: rotate(-2deg);
  box-shadow: 0 1px 2px rgb(18 18 18 / 0.08), 0 18px 30px -20px rgb(18 18 18 / 0.5);
}
.foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #e6e6e0; }
.foto figcaption { padding: 9px 2px 11px; font-size: 0.875rem; font-weight: 650; text-align: center; }
.ich-text { grid-area: text; }
.ich h2 { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.375rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.ich-text p { margin-top: 14px; font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
.ich a { text-underline-offset: 0.2em; }
.pruefen { grid-area: pruefen; margin-top: 14px; padding: 22px 26px 24px; }
.pruefen h3 { margin: 0; font-size: 1.25rem; font-weight: 750; line-height: 1.35; text-wrap: balance; }
.pruefen > p { margin-top: 10px; line-height: 1.55; text-wrap: pretty; }
.markiert { white-space: nowrap; }
.pk-reihe { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 20px; }
.pk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.pk svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--ease-out); }
.pk:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .pk:hover { background-color: rgb(255 233 58 / 0.35); }
  .pk:hover svg { transform: translate(2px, -2px); }
}
.pruefen .klein { margin-top: 18px; line-height: 1.55; }
.pruefen .klein a, .kontakt a { color: var(--tinte); }
.link { padding: 0; border: 0; background: none; color: var(--tinte); font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.kontakt { grid-area: kontakt; font-size: 0.9375rem; color: var(--tinte-2); }

/* ---------- Gezeichnetes: alles im Overlay, aus dem echten Layout berechnet ---------- */
.striche { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; mix-blend-mode: multiply; }
.schrift path, .striche path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.schrift path { stroke: var(--tinte); stroke-width: 9; }
.striche .tinte { stroke: var(--tinte); stroke-width: 2.3; }
.striche .blau { stroke: var(--blau); stroke-width: 2.6; }
.striche .marker { stroke: var(--gelb); stroke-linecap: butt; }

@media (max-width: 720px) {
  .skizze { grid-template-columns: 1fr; gap: 76px; order: 2; }
  .cta { margin-top: 32px; }
  .meta { order: 3; }
  .fuss { order: 4; }
  .quelle { justify-self: start; }
  .meta { flex-direction: column; }
  .meta li + li::before { content: none; }
  .ich { grid-template-columns: minmax(0, 1fr); grid-template-areas: "foto" "text" "pruefen" "kontakt"; gap: 20px; margin-top: 80px; order: 3; }
  .foto { width: 160px; margin: 0 0 6px 4px; }
  .ich-text p { font-size: 1rem; }
  .pruefen { margin-top: 8px; padding: 18px 18px 20px; }
  .pk-reihe { gap: 12px 16px; }
}

/* ---------- Einmal: der Marker zeichnet, Strich für Strich ---------- */
.zug { stroke-dasharray: 1; }
@media (prefers-reduced-motion: no-preference) {
  .intro .zug { animation: zeichnen var(--t, 300ms) cubic-bezier(0.5, 0.05, 0.3, 1) var(--v, 0ms) both; }
  .claim, .skizze, .cta, .meta, .fuss { animation: auf 700ms var(--ease-out) both; }
  .claim { animation-delay: 300ms; }
  .skizze { animation-delay: 500ms; }
  .cta { animation-delay: 650ms; }
  .meta, .fuss { animation-delay: 800ms; }
}
@keyframes zeichnen { from { stroke-dashoffset: 1; } }
@keyframes auf { from { opacity: 0; transform: translateY(8px); } }
