/* ---------- Basis ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--desk);font-family:var(--font-sans);color:var(--ink);line-height:1.5;overflow-x:hidden}
img,svg{max-width:100%}
img{height:auto;display:block}
a{color:var(--blue)}a:hover{color:var(--blue-dark)}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--blue);outline-offset:4px;border-radius:4px}
.blue a:focus-visible,.board a:focus-visible,.site-footer a:focus-visible{outline-color:var(--yellow)}
h1,h2,h3{margin:0;font-weight:800}
p{margin:0}
.x{font-stretch:125%;font-weight:800;letter-spacing:-0.015em}
.hand{font-family:var(--font-hand);font-weight:600}
.mono{font-family:var(--font-mono)}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;left:16px;top:-80px;z-index:100;padding:10px 16px;background:var(--yellow);color:var(--ink);border:var(--line);border-radius:10px;font-weight:700;text-decoration:none}
.skip:focus{top:16px}
.path{font-family:var(--font-mono);font-size:16px;color:var(--accent,var(--red-text))}

/* ---------- Doodle-Stil ---------- */
.o{stroke:var(--ink);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.toon{filter:drop-shadow(4px 4px 0 var(--ink))}
.toon-l{filter:drop-shadow(4px 4px 0 rgba(10,12,20,.55))}
.doodle{display:block;overflow:visible}
.term{font-family:var(--font-mono);font-size:12.5px}
.wig{display:inline-block}
.f-ink{fill:var(--ink)}.f-paper{fill:var(--paper)}.f-yellow{fill:var(--yellow)}.f-red{fill:var(--red)}.f-blue{fill:var(--blue)}.f-sand{fill:var(--sand)}.f-kraft{fill:var(--kraft)}.f-white{fill:var(--white)}
.s-ink{stroke:var(--ink)}.s-paper{stroke:var(--paper)}.s-yellow{stroke:var(--yellow)}.s-red{stroke:var(--red)}.s-blue{stroke:var(--blue)}.s-white{stroke:var(--white)}

/* ---------- Navigation ---------- */
.site-nav{position:relative;z-index:20;min-height:96px;padding:0 var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:var(--line)}
.brand{font-size:19px;color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:16px}
.brand:hover{color:var(--ink)}
.brand svg{width:44px;height:44px;flex-shrink:0}
.nav-links{display:flex;align-items:center;gap:28px}
.nl{color:var(--ink);text-decoration:none;font-size:16px;font-weight:600;padding:6px 4px;background-image:linear-gradient(var(--yellow),var(--yellow));background-size:0 60%;background-repeat:no-repeat;background-position:0 85%;transition:background-size .35s}
.nl:hover,.nl[aria-current="page"]{color:var(--ink);background-size:100% 60%}
.site-nav .burger{display:none}

/* ---------- Buttons & Links ---------- */
.btn{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 24px;border-radius:12px;border:2px solid var(--ink);box-shadow:4px 4px 0 var(--ink);font:inherit;font-weight:700;font-size:16px;text-decoration:none;color:var(--ink);background:var(--yellow);cursor:pointer;transition:transform .15s,box-shadow .15s}
.btn:hover{color:var(--ink);transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--ink)}
.btn:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--ink)}
.btn svg{width:18px;height:18px;flex-shrink:0}
.btn-w{background:var(--paper)}
.btn-l{border-color:var(--light);box-shadow:4px 4px 0 var(--light)}.btn-l:hover{box-shadow:6px 6px 0 var(--light)}
.lnk{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:17px;text-decoration:none;padding:4px 2px;border-bottom:3px solid currentColor;color:inherit;transition:gap .3s}
.lnk:hover{gap:18px;color:inherit}
.lnk svg{width:26px;height:16px}
.more{font-weight:700;font-size:15px;background-image:linear-gradient(var(--yellow),var(--yellow));background-size:0 55%;background-repeat:no-repeat;background-position:0 90%;transition:background-size .35s;align-self:flex-start;margin-left:4px}

/* ---------- Keycaps ---------- */
.key{position:relative;display:flex;flex-direction:column;justify-content:space-between;flex-shrink:0;width:196px;height:84px;padding:10px 14px 12px;border:var(--line);border-radius:14px;box-shadow:0 8px 0 var(--ink);transform:translateY(-6px);text-decoration:none;color:var(--ink);background:var(--desk);transition:transform .12s,box-shadow .12s}
.key:hover{transform:translateY(-2px);box-shadow:0 4px 0 var(--ink);color:var(--ink)}
.key:active,.key-on,.key-on:hover{transform:translateY(2px);box-shadow:0 0 0 var(--ink)}
.key .kn{font-family:var(--font-mono);font-size:13px;opacity:.8}
.key .kl{font-stretch:125%;font-weight:800;font-size:19px;line-height:1.1}
.key--graph{background:var(--desk)}
.key--lined{background:var(--paper)}
.key--dots{background:var(--paper)}
.key--kraft{background:var(--kraft)}
.key--legal{background:var(--yellow)}
.key--blue{background:var(--blue);color:var(--light)}
.key--board{background:var(--ink);color:var(--light)}
.key--blue:hover,.key--board:hover{color:var(--light)}
.keyrow{display:flex;gap:22px;padding-top:6px}

/* ---------- Peel-Sticker ---------- */
@property --c{syntax:'<length>';inherits:true;initial-value:16px}
.peel{position:absolute;z-index:6;--c:16px;filter:drop-shadow(0 6px 8px rgba(34,35,42,.28));transition:--c .45s var(--ease),transform .45s var(--ease)}
/* Ecke nur mit Maus anheben, auf Touch-Geräten bleibt sonst der Hover-Zustand nach dem Tippen hängen */
@media (hover:hover){.peel:hover{--c:46px}}
.peel:focus-visible{--c:46px}
.peel-face{position:relative;display:block;border:3px solid var(--white);border-radius:10px;line-height:1.1;text-align:center;font-size:17px;padding:12px 18px;white-space:nowrap;clip-path:polygon(0 0,100% 0,100% calc(100% - var(--c)),calc(100% - var(--c)) 100%,0 100%)}
.peel-face small{display:block;font-size:12px;font-weight:600;margin-top:2px}
.peel-sh{position:absolute;right:0;bottom:0;filter:drop-shadow(-3px -3px 3px rgba(34,35,42,.3))}
.peel-curl{display:block;width:var(--c);height:var(--c);clip-path:polygon(0 0,100% 0,0 100%);background:linear-gradient(135deg,#FFFFFF 0%,#EFEAE0 45%,#C7C0B0 100%)}
.peel--yellow .peel-face{background:var(--yellow);color:var(--ink)}
.peel--red .peel-face{background:var(--red);color:var(--white)}
.peel--blue .peel-face{background:var(--blue);color:var(--white)}
.peel--ink .peel-face{background:var(--ink);color:var(--yellow)}
.peel--link{display:block;text-decoration:none}
.peel--link:focus-visible{outline:none}
.peel--link:focus-visible .peel-face{outline:3px solid var(--blue);outline-offset:3px}
.peel--inline{position:relative;display:inline-block}
.peel--inline .peel-face{font-size:15px;padding:10px 16px}
.peel--badge{left:auto;right:-14px;top:-22px}
.peel--badge .peel-face{font-size:15px;padding:8px 14px}
.sticker-hint{position:absolute;z-index:6;font-size:26px;color:var(--ink);transform:rotate(-8deg);white-space:nowrap;pointer-events:none}
.blue .sticker-hint,.board .sticker-hint{color:var(--light)}

/* ---------- Karten ---------- */
.card{position:relative;display:flex;flex-direction:column;gap:14px;text-decoration:none;color:var(--ink);transform:rotate(var(--r,0deg));transition:transform .4s var(--ease),box-shadow .4s}
a.card:hover,a.card:focus-visible{color:var(--ink);transform:rotate(0deg) translateY(-10px)}
a.card:hover .more,a.card:focus-visible .more{background-size:100% 55%}
.sheet{background:var(--paper);padding:18px 18px 26px;box-shadow:0 18px 36px rgba(20,22,30,.28)}
.polaroid{background:var(--white);padding:16px 16px 22px;box-shadow:0 18px 36px rgba(60,35,10,.35)}
.index{background:var(--white);padding:18px 20px 26px;box-shadow:0 18px 36px rgba(0,0,0,.4);background-image:linear-gradient(transparent 52px,rgba(212,65,43,.7) 52px,rgba(212,65,43,.7) 54px,transparent 54px),linear-gradient(rgba(40,71,168,.2) 1px,transparent 1px);background-size:100% 100%,100% 30px}
.card-meta{display:flex;justify-content:space-between;align-items:baseline;padding:0 4px}
.card-meta .hand{font-size:24px;color:var(--red-text)}
.card-meta .mono{font-size:13px;color:var(--text-muted)}
.card-title{margin:0;padding:0 4px;font-size:26px;line-height:1.05}
.card-title.hand{font-size:30px;line-height:1;font-weight:700;padding-top:2px}
.card-text{padding:0 4px;font-size:15px;line-height:1.5;color:var(--text-muted)}
.card-caption{font-size:26px;padding:0 4px}
.tape{position:absolute;top:-14px;left:calc(50% - 60px);width:120px;height:28px;background:rgba(242,217,78,.75);transform:rotate(-3deg);z-index:2}
.pin{position:absolute;top:-10px;left:calc(50% - 11px);width:22px;height:22px;border-radius:50%;background:var(--red);box-shadow:0 4px 6px rgba(0,0,0,.35),inset -3px -3px 0 rgba(0,0,0,.2);z-index:2}
.empty{border:2.5px dashed currentColor;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:560px;padding:24px;text-align:center;color:inherit;text-decoration:none;opacity:.8;transform:rotate(var(--r,1.2deg));transition:transform .4s var(--ease),opacity .3s,background-color .3s}
a.empty:hover,a.empty:focus-visible{color:inherit;opacity:1;transform:rotate(0deg) translateY(-6px);background-color:rgba(242,217,78,.18)}
.empty .hand{font-size:40px;line-height:1.1}
.empty span:last-child{font-size:14px;max-width:220px;line-height:1.5}

/* ---------- Bild & Platzhalter ---------- */
.ph{position:relative;overflow:hidden;background-color:var(--sand);height:var(--h,300px)}
.ph-in{position:absolute;inset:0;background-image:repeating-linear-gradient(135deg,transparent 0 12px,rgba(34,35,42,.10) 12px 13px);transition:transform .6s var(--ease)}
.ph img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
a.card:hover .ph-in,a.card:hover .ph img{transform:scale(1.06)}
.ph-lab{position:absolute;left:10px;bottom:10px;max-width:calc(100% - 20px);display:flex;flex-direction:column;gap:2px;padding:7px 9px;background:var(--paper);color:var(--ink);font-family:var(--font-mono);font-size:11.5px;border:1.5px solid var(--ink);overflow-wrap:anywhere}
.ph-x{position:absolute;inset:0;width:100%;height:100%}
.ph-x line{stroke:rgba(34,35,42,.25);stroke-width:1.5}

/* ---------- Leistungsliste ---------- */
.services{list-style:none;margin:6px 0 0;padding:0;max-width:460px;border-bottom:2px solid var(--rule)}
.services li{display:flex;gap:14px;align-items:center;padding:12px 0;border-top:2px solid var(--rule);font-size:16px}
.services li::before{content:'>';font-family:var(--font-mono);font-size:14px;color:var(--accent,var(--red-text))}

/* ---------- Sprechblase, Post-it, Fenster ---------- */
.bubble{position:absolute;background:var(--white);border:var(--line);border-radius:20px;box-shadow:4px 4px 0 var(--ink);padding:10px 18px;font-family:var(--font-hand);font-weight:700;font-size:30px;line-height:1.2;white-space:nowrap;color:var(--ink)}
.bubble svg{position:absolute;right:26px;bottom:-22px;width:30px;height:24px;overflow:visible}
.postit{background:var(--postit);color:var(--ink);padding:16px 18px;border:var(--line);border-radius:6px;box-shadow:4px 4px 0 var(--ink);transform:rotate(-4deg)}
.win{position:relative;background-color:var(--paper);background-image:radial-gradient(rgba(34,35,42,.16) 1.2px,transparent 1.5px);background-size:24px 24px;border:var(--line);border-radius:22px;box-shadow:10px 10px 0 var(--ink);overflow:hidden}
.bar{height:58px;border-bottom:var(--line);background:var(--yellow);display:flex;align-items:center;gap:22px;padding:0 22px}
.tls{display:flex;gap:10px}
.tl{width:16px;height:16px;border-radius:50%;border:var(--line)}
.addr{flex-grow:1;max-width:560px;min-width:0;height:34px;border:var(--line);border-radius:999px;background:var(--paper);display:flex;align-items:center;gap:10px;padding:0 14px;font-family:var(--font-mono);font-size:14px;white-space:nowrap;overflow:hidden}
.addr svg{width:14px;height:16px;flex-shrink:0}
.tab-label{margin-left:auto;font-size:13px}

/* ---------- Cartoon-Cursor: Mauszeiger auf der ganzen Seite, Koordinaten nur im Hero-Fenster ---------- */
@media (pointer:fine){
  .has-toon-cursor,.has-toon-cursor *{cursor:url(../images/cursor.svg) 4 4,auto}
}
.toon-coords{position:absolute;z-index:9;pointer-events:none;display:none;font-family:var(--font-mono);font-size:11px;background:var(--ink);color:var(--yellow);padding:3px 6px;white-space:nowrap;transform:translate(30px,38px)}
.toon-coords.is-on{display:block}

/* ---------- Marienkäfer ---------- */
.bug-btn{display:block;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;line-height:0}
.bug-btn:focus-visible{outline:3px solid var(--blue);outline-offset:4px;border-radius:12px}
.bug-fly{display:block}
/* Beim Laufen ist der Panzer zu, die Flügel liegen darunter. Klick: Panzer klappt nach hinten auf, Flügel schlagen, Abflug. */
.bug-walk{animation:bug-walk .28s ease-in-out infinite alternate}
.bug-wing{opacity:0;transform-box:fill-box;transform-origin:100% 90%;transition:opacity .15s}
.bug-shell{transform-box:fill-box;transform-origin:92% 30%;transition:transform .28s var(--ease)}
.bug-btn:hover .bug-shell,.bug-btn:focus-visible .bug-shell{transform:rotate(9deg)}
.bug-btn.is-flying .bug-shell{transform:rotate(48deg)}
.bug-btn.is-flying .bug-wing{opacity:1;animation:bug-flap .09s linear infinite alternate}
.bug-btn.is-flying .bug-fly{animation:bug-fly 1.7s .3s cubic-bezier(.45,0,.7,1) forwards}
.bug-btn.is-flying .legs,.bug-btn.is-flying .bug-walk{animation:none}
.bug-btn.is-gone{visibility:hidden}
.bug-fly.is-spawning{animation:bug-pop .55s var(--ease)}
/* Sticker, der den Marienkäfer zurückholt */
.peel--button{padding:0;border:0;background:none;font:inherit;color:inherit;cursor:pointer;text-align:inherit}
.peel--button:focus-visible{outline:none}
.peel--button:focus-visible .peel-face{outline:3px solid var(--blue);outline-offset:3px}
.peel--button.is-calling{animation:sticker-call 3s ease-in-out infinite}
.peel--button.is-nudged{animation:sticker-call .9s ease-in-out;animation-delay:-.6s}

/* ---------- Links-Liste, Nächstes Projekt, Kontakt ---------- */
.ext{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 4px;border-bottom:var(--line);color:var(--ink);text-decoration:none;font-size:20px;font-weight:700;transition:padding .3s,background-color .3s}
.ext:hover{padding-left:16px;color:var(--ink);background-color:rgba(242,217,78,.6)}
.ext svg{width:24px;height:24px;flex-shrink:0}
.next{display:flex;flex-direction:column;gap:14px;color:var(--ink);text-decoration:none}
.next:hover{color:var(--ink)}
.next .x{font-size:68px;line-height:1;display:flex;align-items:center;gap:30px}
.nx{width:60px;height:40px;flex-shrink:0;transition:transform .45s var(--ease)}
.next:hover .nx{transform:translateX(18px)}
.mail{font-stretch:125%;font-weight:800;font-size:44px;line-height:1.2;color:var(--ink);text-decoration:none;overflow-wrap:anywhere;background-image:linear-gradient(var(--paper),var(--paper));background-size:100% 30%;background-repeat:no-repeat;background-position:0 88%;transition:background-size .35s}
.mail:hover{color:var(--ink);background-size:100% 88%}
.sl{color:var(--ink);text-decoration:none;font-weight:700;font-size:17px;border-bottom:2px solid var(--ink);padding-bottom:2px}.sl:hover{color:var(--blue);border-color:var(--blue)}
.stamp-link{position:relative;width:240px;height:240px;display:block;flex-shrink:0;border-radius:50%}
.stamp{position:absolute;inset:0;width:240px;height:240px;animation:spin 22s linear infinite;transform-origin:50% 50%}
.stampt{font-family:var(--font-mono);font-size:14.5px;letter-spacing:.18em;fill:var(--ink)}
.stamp-core{position:absolute;left:70px;top:70px;width:100px;height:100px;border-radius:50%;background:var(--red);border:var(--line);display:flex;align-items:center;justify-content:center;box-shadow:4px 4px 0 var(--ink)}
.stamp-core svg{width:38px;height:38px}

/* ---------- Footer ---------- */
.site-footer{min-height:120px;padding:24px var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:16px 32px;flex-wrap:wrap;background:var(--ink);color:var(--footer-text);font-size:14px}
.site-footer nav{display:flex;gap:28px}
.fl{color:var(--footer-text);text-decoration:none;font-size:14px}.fl:hover{color:var(--paper)}

/* ---------- Brotkrümel ---------- */
.crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;font-size:16px}
.crumbs a{color:inherit;font-weight:700}
.crumbs .path{margin-left:auto;font-size:15px}

/* ---------- Fließtext (Impressum, Datenschutz, Projekttext) ---------- */
.prose{font-size:18px;line-height:1.7;color:var(--text-soft);max-width:760px}
.prose h1,.prose h2,.prose h3{font-stretch:125%;letter-spacing:-0.015em;color:var(--ink);line-height:1.1;margin:1.6em 0 .5em}
.prose h1{font-size:44px;margin-top:0}
.prose h2{font-size:30px}
.prose h3{font-size:22px}
.prose p,.prose ul,.prose ol{margin:0 0 1em}
.prose a{font-weight:600;overflow-wrap:anywhere}
.prose strong{color:var(--ink)}
