/* Grundlage für alle Seiten (Startseite, Werkstatt). Darüber liegen notizbuch.css und designsystem.css. */
:root {
  --papier: #F3F0E8;
  --papier-2: #FBF9F4;
  --tinte: #17171C;
  --tinte-2: #55545C;
  --linie: #D9D4C7;
  --raster: rgba(23,23,28,.045);
  --signal: #2F3CFF;
  --signal-weich: rgba(47,60,255,.10);
  --gruen: #BFEFB4;
  --gelb: #FFE27A;
  --grau: #E2DED3;
  --klebe: rgba(255,226,122,.75);
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #141418;
    --papier-2: #1C1C22;
    --tinte: #ECE8DE;
    --tinte-2: #A3A0A8;
    --linie: #2E2E36;
    --raster: rgba(236,232,222,.035);
    --signal: #8D96FF;
    --signal-weich: rgba(141,150,255,.14);
    --gruen: #2F5A2A;
    --gelb: #5E4F12;
    --grau: #33333B;
    --klebe: rgba(141,150,255,.35);
  }
}
:root[data-theme="dark"] {
    --papier: #141418;
    --papier-2: #1C1C22;
    --tinte: #ECE8DE;
    --tinte-2: #A3A0A8;
    --linie: #2E2E36;
    --raster: rgba(236,232,222,.035);
    --signal: #8D96FF;
    --signal-weich: rgba(141,150,255,.14);
    --gruen: #2F5A2A;
    --gelb: #5E4F12;
    --grau: #33333B;
    --klebe: rgba(141,150,255,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .05em; }
a { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--marker, #FFE27A); color: var(--im-marker, #2A2230); }

/* Sprunglink für Tastatur und Screenreader: erst sichtbar, wenn er den Fokus hat */
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--tinte); color: var(--papier); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.skip:hover, .skip:focus { color: var(--papier); }

/* ---------- Bewegung: Grundzustand ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.da { opacity: 1; transform: none; }

/* ---------- Kopfzeile ---------- */
.leiste { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--papier) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.leiste .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.leiste .marke { font-weight: 800; letter-spacing: -.01em; text-decoration: none; color: var(--tinte); }
.leiste nav { display: flex; gap: 24px; align-items: center; }
.leiste nav a { color: var(--tinte-2); text-decoration: none; }
.leiste nav a:hover, .leiste nav a[aria-current="page"] { color: var(--signal); }
.leiste nav a.knopf, .leiste nav a.knopf:hover { color: var(--papier); }
.knopf {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--sans); text-decoration: none;
  padding: 14px 20px; border-radius: 999px;
  background: var(--tinte); color: var(--papier); border: 1.5px solid var(--tinte);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.modus { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linie); background: transparent; color: var(--tinte); display: grid; place-items: center; cursor: pointer; padding: 0; transition: color .2s; }
.modus:hover { color: var(--signal); }
.modus svg { width: 18px; height: 18px; }
.modus .mond { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .modus .sonne { display: none; } :root:not([data-theme="light"]) .modus .mond { display: inline; } }
:root[data-theme="dark"] .modus .sonne { display: none; }
:root[data-theme="dark"] .modus .mond { display: inline; }
.knopf.klein { padding: 9px 14px; font-size: 14px; }
.knopf.hell { background: transparent; color: var(--tinte); }
.knopf .pfeil { transition: transform .2s; }
.knopf:hover .pfeil { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 96px); line-height: .95; letter-spacing: -.04em; font-weight: 800; margin: 0 0 30px; }
.hero h1 .w { display: inline-block; vertical-align: bottom; padding-bottom: .06em; }
/* Marker zieht nach einer Sekunde; vorher bleibt der Name in Tinte lesbar (Farben und Keyframes in designsystem.css). */
.js .hero h1 .strich .w { animation: markerzug .6s cubic-bezier(.6,0,.2,1) 1s both; }
.hero .lead { font-size: 21px; max-width: 36ch; margin: 0 0 32px; color: var(--tinte-2); }
.hero .lead strong { color: var(--tinte); font-weight: 600; }
.hero .aktionen { display: flex; gap: 12px; flex-wrap: wrap; }

/* Polaroid */
.polaroid { position: relative; background: #fff; padding: 14px 14px 56px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -12px rgba(23,23,28,.35); transform: rotate(var(--r, 3deg)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.polaroid:hover { transform: rotate(0deg) scale(1.02); }
.polaroid .foto { aspect-ratio: 4/5; background: #ECE8DE; overflow: hidden; }
.polaroid .foto img { width: 100%; height: 100%; object-fit: cover; }
.polaroid .unterschrift { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-family: var(--hand); font-size: 26px; color: #2A2A30; }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(-3deg); background: var(--klebe); }
.hero .polaroid { max-width: 380px; justify-self: center; width: 100%; }
.js .hero .polaroid { animation: reinfallen 1.1s cubic-bezier(.2,.8,.2,1) .5s both; }
@keyframes reinfallen { from { opacity: 0; transform: translateY(-40px) rotate(-8deg); } to { opacity: 1; transform: rotate(var(--r, 3deg)); } }
.notiz { position: absolute; font-family: var(--hand); font-size: 24px; color: var(--signal); line-height: 1.1; white-space: nowrap; }
.notiz svg { width: 54px; height: 40px; display: block; }
.hero .notiz { right: -26px; bottom: -58px; transform: rotate(-6deg); }

/* ---------- Abschnitte ---------- */
section { padding: 96px 0; scroll-margin-top: 60px; }
section.eng { padding-top: 40px; }
section.anschluss { padding-top: 24px; }
.kopf { margin-bottom: 56px; max-width: 720px; }
.kopf h1, .kopf h2 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.035em; line-height: 1; margin: 0 0 16px; font-weight: 800; }
.kopf p { margin: 0; color: var(--tinte-2); font-size: 20px; }
.seitenkopf { padding: 72px 0 24px; }

/* ---------- Große Projekte ---------- */
.projekt { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; border-top: 1px dashed var(--linie); }
.projekt:first-child { border-top: 0; padding-top: 0; }
.projekt:nth-child(even) .bild { order: 2; }
.projekt .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--tinte-2); margin-bottom: 18px; }
.projekt .bereich { font-size: 14px; }
.etikett { font: 500 12px/1 var(--mono); letter-spacing: .04em; padding: 6px 9px; color: var(--tinte); background: var(--grau); }
.projekt .frage { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 0 0 18px; }
.projekt .frage::before { content: "„"; color: var(--signal); }
.projekt .frage::after { content: "“"; color: var(--signal); }
.projekt h2 { font-size: 22px; margin: 0 0 10px; letter-spacing: -.01em; color: var(--tinte); }
.projekt p.text { margin: 0; color: var(--tinte-2); max-width: 48ch; }

/* Geräte */
.bild { position: relative; display: grid; place-items: center; min-height: 420px; }
.bild .hinten { position: absolute; inset: 8% 4%; background: var(--signal-weich); border: 1.5px dashed var(--signal); transform: rotate(-2.5deg); }
.projekt:nth-child(even) .bild .hinten { transform: rotate(2.5deg); }
.geraet { position: relative; will-change: transform; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.handy { width: min(300px, 70%); border: 10px solid #17171C; border-radius: 40px; overflow: hidden; background: #17171C; box-shadow: 0 30px 60px -20px rgba(23,23,28,.45); }
.handy img { border-radius: 30px; }
.handy::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 20px; background: #17171C; border-radius: 12px; z-index: 2; }
.browser { width: 96%; border: 1.5px solid var(--tinte); border-radius: 12px; overflow: hidden; background: var(--papier-2); box-shadow: 0 30px 60px -20px rgba(23,23,28,.4); }
.browser .leiste-b { height: 30px; border-bottom: 1.5px solid var(--tinte); display: flex; gap: 6px; align-items: center; padding: 0 12px; background: var(--papier-2); }
.browser .leiste-b i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--tinte); }
.js .geraet img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1) .15s; }
.js .da .geraet img, .js .geraet.da img { clip-path: inset(0 0 0 0); }

/* ---------- Kleine Karten ---------- */
.unterkopf { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 80px 0 28px; }
.unterkopf h2 { font-size: 30px; letter-spacing: -.025em; margin: 0; font-weight: 800; }
.unterkopf p { margin: 0; color: var(--tinte-2); font-size: 15px; }
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.karte { background: var(--papier-2); border: 1.5px solid var(--tinte); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.karte .oben { display: flex; justify-content: space-between; align-items: center; }
.karte svg { width: 44px; height: 44px; color: var(--signal); }
.karte .frage { font-weight: 800; font-size: 21px; line-height: 1.2; letter-spacing: -.015em; margin: 0; }
.karte h3 { margin: 0; font: 600 15px/1.3 var(--sans); color: var(--tinte); }
.karte p { margin: 0; color: var(--tinte-2); font-size: 16px; }

.kulisse { margin-top: 28px; border: 1.5px dashed var(--tinte-2); padding: 20px 24px; display: grid; grid-template-columns: auto 1fr 1fr; gap: 28px; align-items: center; }
.kulisse h2 { margin: 0; font: 600 16px/1.3 var(--sans); color: var(--tinte); }
.kulisse div.eintrag { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--tinte-2); }
.kulisse div.eintrag svg { width: 26px; height: 26px; color: var(--signal); flex: none; }
.kulisse b { color: var(--tinte); }

/* ---------- Methode ---------- */
.schritte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.schritt { position: relative; }
.schritt .punkt { font: 500 18px var(--mono); margin-bottom: 20px; }
.schritt h3 { font-size: 24px; margin: 0 0 8px; letter-spacing: -.02em; font-weight: 800; }
.schritt p { margin: 0; color: var(--tinte-2); font-size: 16px; }

/* ---------- Über mich ---------- */
.ueber { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: center; }
.collage { position: relative; height: 520px; }
.collage .polaroid { position: absolute; width: 56%; }
.collage .polaroid:nth-child(1) { left: 0; top: 0; --r: -5deg; }
.collage .polaroid:nth-child(2) { right: 0; top: 170px; --r: 4deg; z-index: 1; }
.ueber .text p { font-size: 20px; margin: 0 0 18px; }
.ueber .text h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 26px; }
.fakten { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fakten li { border: 1.5px solid var(--tinte); border-radius: 999px; padding: 8px 14px; font-size: 15px; background: var(--papier-2); }

/* ---------- Mein Weg ---------- */
.zeit-rahmen { position: relative; max-width: 780px; }
.zeit { list-style: none; margin: 0; padding: 0 0 0 40px; position: relative; }
.zeit::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--linie); }
.zeit-rahmen .fuell { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--signal); transform-origin: top; transform: scaleY(var(--p, 0)); z-index: 1; }
.zeit li { position: relative; padding-bottom: 40px; display: grid; grid-template-columns: 130px 1fr; gap: 20px; }
.zeit li:last-child { padding-bottom: 0; }
.zeit li::before { content: ""; position: absolute; left: -40px; top: 6px; width: 16px; height: 16px; background: var(--papier); border: 2px solid var(--tinte); transition: background .4s, border-color .4s; z-index: 2; }
.zeit li.an::before { background: var(--signal); border-color: var(--signal); }
.zeit .jahr { font: 500 16px/1.6 var(--mono); color: var(--signal); }
.zeit h3 { margin: 0 0 4px; font-size: 23px; letter-spacing: -.015em; font-weight: 800; }
.zeit p { margin: 0; color: var(--tinte-2); }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--tinte); color: var(--papier); padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.kontakt h2 { font-size: clamp(42px, 7vw, 88px); line-height: .95; letter-spacing: -.04em; margin: 0 0 22px; font-weight: 800; }
.kontakt h2 em { font-style: normal; color: var(--signal); }
.kontakt p { color: color-mix(in srgb, var(--papier) 70%, transparent); font-size: 20px; max-width: 46ch; margin: 0 auto 36px; }
.kontakt .knopf { background: var(--signal); border-color: var(--signal); color: #fff; font-size: 18px; padding: 18px 28px; }
.kontakt .wrap { position: relative; z-index: 1; }
.kontakt .adresse { margin: 18px auto 0; font-size: 17px; }
.kontakt .adresse a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.kontakt .wege { margin-top: 10px; font-size: 16px; }
.kontakt .wege a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

footer { padding: 28px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--tinte-2); }
footer a { color: var(--tinte-2); text-decoration: none; margin-left: 20px; }
footer a:hover { color: var(--signal); }

/* Externe Links: Symbol "öffnet neue Seite" */
a[target="_blank"]::after {
  content: ""; display: inline-block; width: .72em; height: .72em; margin-left: .3em; vertical-align: .02em;
  background: currentColor; opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ki-marke { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--flieder); color: var(--tinte); font: 600 11px/1.6 var(--sans); vertical-align: 2px; }
a.arbeit { color: inherit; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a.arbeit:hover { color: var(--signal); }

/* ---------- Drei Türen ---------- */
.tueren { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tuer { background: var(--papier-2); border: 1.5px solid var(--tinte); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.tuer-nr { font: 600 20px var(--sans); }
.tuer h3 { font-size: 26px; line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 0; font-weight: 800; }
.tuer p { margin: 0; color: var(--tinte-2); font-size: 16px; }
.tuer p.zitat { color: var(--tinte); font-style: italic; }
.tuer a.weiter { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
.tuer a.weiter .pfeil { display: inline-block; transition: transform .2s; }
.tuer a.weiter:hover .pfeil { transform: translateX(4px); }

/* Kinderfoto in der Zeitleiste */
.zeit li.mitbild { grid-template-columns: 130px 1fr 300px; align-items: start; }
.polaroid.quer .foto { aspect-ratio: 4/3; }
.polaroid.klein { padding: 10px 10px 42px; }
.polaroid.klein .unterschrift { font-size: 21px; bottom: 8px; }
.polaroid.klein::before { width: 70px; height: 20px; top: -9px; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 72px; padding-top: 48px; }
  .hero .polaroid { max-width: 300px; }
  .projekt { grid-template-columns: 1fr; gap: 36px; }
  .projekt:nth-child(even) .bild { order: 0; }
  .karten { grid-template-columns: 1fr 1fr; }
  .kulisse { grid-template-columns: 1fr; gap: 14px; }
  .schritte { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .ueber { grid-template-columns: 1fr; gap: 48px; }
  .tueren { grid-template-columns: 1fr; }
  .zeit li.mitbild { grid-template-columns: 130px 1fr; }
  .zeit li.mitbild .polaroid { grid-column: 2; max-width: 320px; margin-top: 12px !important; }
  /* Höhe wächst mit der Breite, damit das zweite Foto nie über den Text rutscht */
  .collage { height: auto; aspect-ratio: 1 / 1.3; max-width: 520px; width: 100%; margin: 0 auto; }
  .collage .polaroid:nth-child(2) { top: 30%; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .leiste nav { gap: 12px; }
  .leiste nav a:not(.knopf) { display: none; }
  section { padding: 72px 0; }
  .seitenkopf { padding-top: 48px; }
  /* Handy: Gesicht und Name zusammen im ersten Bildschirm */
  .hero { padding-top: 28px; gap: 36px; }
  .hero .polaroid { order: -1; max-width: 210px; padding: 10px 10px 44px; }
  .hero .polaroid .unterschrift { font-size: 21px; bottom: 8px; }
  .hero .notiz { right: -62px; bottom: 6px; }
  .hero .lead { font-size: 19px; }
  .bild { min-height: 0; padding: 20px 0; }
  .karten { grid-template-columns: 1fr; }
  .schritte { grid-template-columns: 1fr; }
  .zeit { padding-left: 32px; }
  .zeit li, .zeit li.mitbild { grid-template-columns: 1fr; gap: 2px; }
  .zeit li.mitbild .polaroid { grid-column: 1; }
  .zeit li::before { left: -32px; }
  .kontakt { padding: 80px 0; }
  footer a { margin: 0 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .geraet img { clip-path: none; }
}
