/* =========================================================
   v2 – Charakter-Schicht: kräftige Display-Schrift, Marker-Handschrift,
   Karopapier, Klebeband, Post-its, Stempel, wackelige Rahmen.
   Schriftvarianten per html[data-font]: a = Bricolage Grotesque (Standard),
   b = Fraunces (weiche Serif), c = Archivo Black (Plakat).
   Wird nach styles.css geladen und überschreibt gezielt.
   ========================================================= */
:root {
  --display: 'Bricolage Grotesque', 'Jost', sans-serif; --display-w: 800; --display-ls: -0.03em; --display-lh: .95;
  --marker: 'Caveat', 'LT Colored Pencil', cursive;
  --ink: #23272a; --gray: #363b3e; --muted: #5f6569;
}
:root[data-font="b"] { --display: 'Fraunces', Georgia, serif; --display-w: 700; --display-ls: -0.02em; --display-lh: 1; }
:root[data-font="c"] { --display: 'Archivo Black', Impact, sans-serif; --display-w: 400; --display-ls: -0.01em; --display-lh: .98; }
:root[data-font="b"] .display { font-variation-settings: "SOFT" 100, "WONK" 1; }
.display { font-family: var(--display); font-weight: var(--display-w); letter-spacing: var(--display-ls); line-height: var(--display-lh); }
.h1 { font-size: clamp(46px, 7.6vw, 116px); letter-spacing: -0.035em; }
.h2 { font-size: clamp(36px, 5vw, 72px); }
.step h3, .page .prose h2 { font-family: var(--display); font-weight: var(--display-w); letter-spacing: -0.01em; }
.step h3 { font-size: 22px; }
.ref__client { font-family: var(--display); font-weight: var(--display-w); font-size: 22px; }
.lead { color: var(--gray); }
.section--blue .lead { color: rgba(255,255,255,.9); }
/* Logo bleibt die CI-Wortmarke (Futura light) */
.brand { font-family: 'Futura Lt BT', 'Jost', sans-serif; font-weight: 300; }

/* Handgeschriebene Wörter innerhalb von Überschriften */
.hand-em, .wd.hand-em { font-family: var(--marker); font-weight: 700; font-style: normal; color: var(--blue); letter-spacing: 0; font-size: 1.12em; line-height: .9; font-variation-settings: normal; }
.on-blue .hand-em, .on-blue .wd.hand-em, .why .hand-em, .why .wd.hand-em { color: var(--yellow); }

/* Marker-Textmarker, Kringel, Durchstreichung */
.hl { background: linear-gradient(104deg, transparent 1%, rgba(255, 226, 122, .9) 3%, rgba(255, 226, 122, .9) 97%, transparent 99%); padding: 0 .12em; margin: 0 -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.circle { position: relative; display: inline-block; }
.circle::after { content: ''; position: absolute; inset: -.1em -.2em -.18em; border: 3px solid var(--blue); border-radius: 46% 54% 50% 50% / 60% 40% 60% 40%; transform: rotate(-2.5deg); filter: url(#sketchy2); pointer-events: none; opacity: 0; transition: opacity .4s .9s; }
.is-loaded .circle::after, .is-in .circle::after, .is-static .circle::after { opacity: 1; }
s.scribble { text-decoration: none; position: relative; color: var(--muted); }
s.scribble::after { content: ''; position: absolute; left: -2%; right: -2%; top: 48%; height: 4px; background: var(--blue); transform: rotate(-3deg); border-radius: 2px; filter: url(#sketchy); }

/* Klebeband, Post-it, Stempel */
.tape { position: absolute; width: 96px; height: 26px; background: rgba(255, 226, 122, .85); box-shadow: 0 1px 2px rgba(0,0,0,.08); transform: rotate(-4deg); pointer-events: none; z-index: 3; }
.tape--blue { background: rgba(0, 105, 180, .5); }
.tape--l { left: -22px; top: 12px; transform: rotate(-38deg); }
.tape--t { left: 50%; top: -12px; transform: translateX(-50%) rotate(-3deg); }
.postit { position: relative; display: inline-block; background: #ffe27a; padding: 20px 22px 18px; font-family: var(--marker); font-weight: 600; font-size: clamp(20px, 1.6vw, 25px); line-height: 1.15; color: var(--ink); transform: rotate(-3deg); box-shadow: 3px 8px 18px rgba(35,39,42,.14); max-width: 250px; }
.postit::before { content: ''; position: absolute; right: 0; bottom: 0; border-style: solid; border-width: 0 0 22px 22px; border-color: transparent transparent rgba(35,39,42,.12) #f5d65a; }
.stamp { width: 122px; height: 122px; border-radius: 50%; border: 3px solid var(--blue); color: var(--blue); font-family: var(--marker); font-weight: 700; font-size: 18px; line-height: 1; display: grid; place-items: center; text-align: center; transform: rotate(-12deg); filter: url(#sketchy); padding: 8px; background: rgba(250,248,243,.85); }
.stamp b { display: block; font-family: var(--display); font-weight: var(--display-w); font-size: 28px; letter-spacing: -0.02em; margin: 3px 0; }

/* ---------- Buttons: kräftiger, Papier-Schatten ---------- */
.btn { font-weight: 600; font-size: 16px; padding: 16px 28px; filter: url(#sketchy); box-shadow: 4px 4px 0 var(--yellow); }
.btn:hover { transform: translate(-1px, -2px) rotate(-1deg); box-shadow: 6px 7px 0 var(--yellow); }
.btn--sm { padding: 11px 18px; font-size: 14px; box-shadow: 3px 3px 0 var(--yellow); }
.btn--outline { box-shadow: 4px 4px 0 var(--blue-100); }
.section--blue .btn--outline { box-shadow: 4px 4px 0 rgba(255,255,255,.35); }
.link-arrow { font-weight: 600; font-size: 16px; }
.card__tags span, .filters button, .badge, .why__pills li, .cities li, .ref__facts li { filter: url(#sketchy); }
.card__tags span, .filters button { font-weight: 600; border-width: 2px; }
.nav a { font-weight: 600; font-size: 15.5px; }
.nav a::after { height: 3px; filter: url(#sketchy); }
.header__bar { border-width: 2px; }

/* ---------- Hero ---------- */
.hero { overflow: visible; padding-bottom: 30px; }
.hero .container { position: relative; }
.hero__grid { align-items: start; }
.hero__copy { padding-top: 10px; }
.hero__title { max-width: 11ch; }
.hero__stamp { position: absolute; right: 8px; top: -22px; z-index: 3; }
.hero__lead { color: var(--gray); }
.hero__postit { position: absolute; left: 50%; bottom: 60px; z-index: 3; transform: rotate(3deg); }
.hero__postit .arrow { position: absolute; left: -76px; top: 30px; width: 74px; height: 60px; color: var(--blue); }
.hero__visual { margin-right: calc(-1 * var(--pad) - 24px); margin-top: 36px; }
.hero__facts { font-family: var(--marker); font-weight: 600; font-size: 24px; }
.hero__facts li::before { width: 10px; height: 10px; }
.bee { position: absolute; width: 46px; height: 46px; z-index: 4; pointer-events: none; left: 42%; top: 24%; offset-path: path('M0,0 C 60,-40 140,20 200,-30 S 320,40 380,-10 S 460,60 300,90 S 60,60 0,0'); offset-rotate: auto; animation: fly 28s linear infinite; }
@keyframes fly { to { offset-distance: 100%; } }
@media (max-width: 1000px) {
  .hero__visual { margin-right: 0; margin-top: 20px; }
  .hero__postit { position: relative; left: 0; bottom: 0; margin-top: 26px; }
  .hero__postit .arrow { display: none; }
  .hero__stamp { right: 0; top: -14px; transform: scale(.75); }
  .bee { display: none; }
}

/* ---------- Doppel-Laufschrift (zwei sich kreuzende Klebestreifen) ---------- */
.marquee { border: 0; background: var(--blue); color: #fff; transform: rotate(-1.6deg) scale(1.03); padding-block: 14px; margin-top: clamp(30px, 5vw, 60px); box-shadow: 0 10px 30px rgba(35,39,42,.12); position: relative; z-index: 2; }
.marquee__track span { font-family: var(--marker); font-weight: 700; font-size: clamp(28px, 2.8vw, 40px); color: #fff; }
.marquee__track span::after { border-color: #fff; background: var(--yellow); }
.marquee--2 { background: var(--yellow); color: var(--ink); transform: rotate(1.4deg) scale(1.03); margin-top: -30px; z-index: 1; box-shadow: none; }
.marquee--2 .marquee__track { animation-direction: reverse; animation-duration: 64s; }
.marquee--2 .marquee__track span { color: var(--ink); }
.marquee--2 .marquee__track span::after { border-color: var(--ink); background: #fff; }

/* ---------- Intro / Bereiche ---------- */
.intro__figure { position: relative; display: inline-block; margin-bottom: 26px; }
.intro__img { width: min(460px, 100%); transform: rotate(-2deg); background: #fff; padding: 12px 12px 34px; box-shadow: 3px 8px 20px rgba(35,39,42,.12); mix-blend-mode: normal; margin-bottom: 0; }
.intro__figure figcaption { position: absolute; left: 22px; bottom: 6px; font-family: var(--marker); font-weight: 600; font-size: 24px; color: var(--blue); transform: rotate(-2deg); }
.area { border: 0; border-radius: 2px; background: #fff; transform: rotate(var(--rot, -1deg)); box-shadow: 3px 6px 18px rgba(35,39,42,.08); }
.area:nth-child(2) { --rot: 1.2deg; border-radius: 2px; }
.area:nth-child(3) { --rot: -.6deg; }
.area:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-md); }
.area h3 { font-size: clamp(24px, 2vw, 30px); }
.area p { color: var(--gray); }

/* ---------- Zahlen als Post-its ---------- */
.numbers__grid { gap: 22px; align-items: start; }
.num { background: #ffe27a; padding: 26px 14px 24px; transform: rotate(var(--rot, -2deg)); box-shadow: 3px 8px 18px rgba(35,39,42,.14); border-radius: 2px; }
.num:nth-child(2) { --rot: 1.5deg; background: #fff; }
.num:nth-child(3) { --rot: -1deg; }
.num:nth-child(4) { --rot: 2deg; background: #fff; }
.num:nth-child(5) { --rot: -1.5deg; }
.num:nth-child(even) { margin-top: 26px; }
.num__val { font-family: var(--marker); font-weight: 700; font-size: clamp(48px, 5vw, 76px); color: var(--blue); padding: 0; }
.num__val::before { display: none; }
.num__val sup { font-family: var(--marker); font-size: .4em; }
.num__label { font-family: var(--body); font-weight: 500; font-size: 15px; color: var(--ink); }
@media (max-width: 900px) { .num:nth-child(even) { margin-top: 0; } }

/* ---------- Leistungen: Notizbuch-Karten ---------- */
.card { border: 0; border-radius: 6px; background-color: #fff; background-image: linear-gradient(rgba(0,105,180,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(0,105,180,.10) 1px, transparent 1px); background-size: 28px 28px; box-shadow: 0 18px 40px rgba(35,39,42,.14); overflow: visible; }
.card::before { content: ''; position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 6px; filter: url(#sketchy2); pointer-events: none; }
.card--blue { background-color: var(--blue); background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); }
.card--blue::before { border-color: rgba(255,255,255,.6); }
.card__num { position: absolute; top: -18px; left: 34px; z-index: 2; background: var(--yellow); color: var(--ink); font-family: var(--marker); font-weight: 700; font-size: 24px; padding: 6px 16px; transform: rotate(-2deg); box-shadow: 2px 4px 10px rgba(35,39,42,.12); }
.card--blue .card__num { color: var(--ink); }
.card__tags { margin-top: 24px; }
.card__title { max-width: 14ch; margin-top: 16px; }
.card__text { color: var(--gray); }
.card--blue .card__text { color: rgba(255,255,255,.9); }
.card__visual { position: relative; }

/* ---------- Messehalle ---------- */
.hall { border: 0; box-shadow: inset 0 12px 30px rgba(35,39,42,.06), inset 0 -12px 30px rgba(35,39,42,.06); }
.hall__note { font-family: var(--marker); font-weight: 700; border: 0; background: var(--yellow); transform: rotate(-2.5deg); box-shadow: 3px 6px 14px rgba(35,39,42,.14); font-size: clamp(26px, 2.6vw, 38px); padding: 10px 22px; border-radius: 2px; }

/* ---------- Ablauf auf Linienpapier ---------- */
.process { background-color: var(--paper); background-image: repeating-linear-gradient(transparent 0 35px, rgba(0,105,180,.12) 35px 36px); }
.step { border: 0; background: #fff; transform: rotate(var(--rot, -1deg)); box-shadow: 3px 6px 16px rgba(35,39,42,.08); border-radius: 3px; }
.step:nth-child(2n) { --rot: 1deg; } .step:nth-child(3n) { --rot: -.5deg; } .step:nth-child(5n) { --rot: 1.6deg; }
.step:hover { transform: rotate(0) translateY(-4px); }
.step .tape { left: 50%; top: -11px; transform: translateX(-50%) rotate(-3deg); width: 70px; height: 20px; }
.step__num { font-family: var(--marker); font-weight: 700; font-size: 26px; }
.road__truck { filter: drop-shadow(2px 4px 0 rgba(0,105,180,.15)); }
.road svg path { stroke-width: 4; }
.road__from, .road__to { font-family: var(--marker); font-weight: 700; font-size: 22px; }

/* ---------- Nachhaltigkeit ---------- */
.quote { border: 0; background: rgba(255,255,255,.1); }
.quote::before { content: ''; position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.7); border-radius: 18px; filter: url(#sketchy2); pointer-events: none; }
.quote > * { position: relative; }
.quote p::before { font-family: var(--marker); font-weight: 700; font-size: 40px; }
.sustain__postcard { transform: rotate(-3deg); border-radius: 3px; }
.sustain__postcard figcaption { font-family: var(--marker); font-weight: 600; font-size: 22px; }
.badge { font-weight: 600; }

/* ---------- Referenzen: Polaroids ---------- */
.ref__media { border: 0; padding: 12px 12px 0; border-radius: 3px; box-shadow: 3px 8px 20px rgba(35,39,42,.12); background: #fff; overflow: visible; }
.ref:nth-child(3n+1) { --rot: -1.8deg; } .ref:nth-child(3n+2) { --rot: 1.6deg; } .ref:nth-child(3n) { --rot: -.7deg; } .ref:nth-child(4n) { --rot: 2.2deg; }
.ref__media img { border-radius: 2px; }
.ref__tape { top: -12px; transform: translateX(-50%) rotate(-3deg); }
.ref__meta { padding-top: 18px; }
.ref__event { font-family: var(--marker); font-weight: 600; font-size: 22px; }
.ref__facts li { font-weight: 500; color: var(--gray); }

/* ---------- Warum: dunkles Skizzenbuch ---------- */
.why { background: var(--ink); color: #fff; padding-bottom: var(--section); }
.why .display { color: #fff; }
.why .eyebrow { color: var(--yellow); }
.why__tree { background-color: var(--paper); padding: clamp(18px, 3vw, 40px) clamp(14px, 2vw, 30px); border-radius: 3px; transform: rotate(-1.2deg); box-shadow: 0 30px 70px rgba(0,0,0,.45); position: relative; margin-top: 34px; background-image: linear-gradient(rgba(0,105,180,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0,105,180,.08) 1px, transparent 1px); background-size: 28px 28px; }
.why__tree .tape--t { width: 130px; height: 30px; }
.why__tree .tape--l { width: 90px; }
.why__pills li { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); font-weight: 600; }
.why__pills li:nth-child(odd) { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.why .btn { --btn-bg: var(--yellow); --btn-fg: var(--ink); --btn-border: var(--yellow); --btn-hover: #fff; box-shadow: 4px 4px 0 var(--blue); }
.why .btn:hover { border-color: #fff; }

/* ---------- Ueber uns / Chronik / Standort ---------- */
.about__frame { border: 0; border-radius: 3px; transform: rotate(-2deg); box-shadow: 3px 10px 24px rgba(35,39,42,.14); padding-bottom: 6px; position: relative; }
.about__frame figcaption { font-family: var(--marker); font-weight: 600; font-size: 22px; }
.about__frame .tape--t { width: 110px; }
.about__sticker { width: 150px; right: -30px; top: -34px; transform: rotate(10deg); }
.tl__year { font-family: var(--marker); font-weight: 700; font-size: 32px; }
.location address { font-weight: 500; }

/* ---------- Kontakt ---------- */
.form { border: 0; border-radius: 4px; transform: rotate(1deg); background-color: var(--paper); background-image: linear-gradient(rgba(0,105,180,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(0,105,180,.09) 1px, transparent 1px); background-size: 28px 28px; overflow: visible; }
.form::before { content: ''; position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 4px; filter: url(#sketchy2); pointer-events: none; }
.form > * { position: relative; }
.form .tape--t { width: 120px; height: 30px; }
.form .hand { font-family: var(--marker); font-weight: 700; font-size: 28px; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { border-width: 2px; border-radius: 4px; background: rgba(255,255,255,.92); }
.contact__list li { font-weight: 500; }
.contact__direct a { font-weight: 600; }

/* ---------- Footer ---------- */
.footer h4 { font-family: var(--marker); font-weight: 700; font-size: 26px; }

/* ---------- Schrift-Umschalter (nur für die Abstimmung, später entfernen) ---------- */
.fontswitch { position: fixed; left: 16px; bottom: 16px; z-index: 120; display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 30px; box-shadow: var(--shadow-md); font-size: 12px; font-weight: 600; }
.fontswitch span { margin-right: 4px; color: var(--muted); }
.fontswitch button { padding: 5px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--ink); }
.fontswitch button.is-active { background: var(--blue); color: #fff; }
.fontswitch button[data-font="a"] { font-family: 'Bricolage Grotesque', sans-serif; }
.fontswitch button[data-font="b"] { font-family: 'Fraunces', serif; }
.fontswitch button[data-font="c"] { font-family: 'Archivo Black', sans-serif; font-weight: 400; }
@media (max-width: 600px) { .fontswitch { left: 10px; bottom: 10px; } .fontswitch span { display: none; } }
@media (prefers-reduced-motion: reduce) { .bee { animation: none; } }

/* ---- Korrekturen nach erstem Rendering ---- */
.form { position: relative; }
.h1 { font-size: clamp(44px, 6.8vw, 104px); }
:root[data-font="c"] .h1 { font-size: clamp(40px, 5.9vw, 90px); letter-spacing: -0.02em; }
:root[data-font="c"] .h2 { font-size: clamp(32px, 4.2vw, 60px); }
.hero__copy { position: relative; }
.hero__facts { padding-right: 250px; }
.hero__postit { position: absolute; right: 0; left: auto; bottom: -18px; }
.hero__postit .arrow { left: -76px; top: -46px; width: 82px; height: 74px; }
.hero__hint { background: var(--yellow); color: var(--ink); font-family: var(--marker); font-weight: 600; font-size: 22px; padding: 8px 16px; transform: rotate(2deg); box-shadow: 3px 6px 14px rgba(35,39,42,.14); right: 4%; bottom: 12px; }
@media (max-width: 1000px) { .hero__facts { padding-right: 0; } .hero__postit { position: relative; right: auto; bottom: auto; } }
.hero__postit .arrow { left: -70px; top: -96px; width: 78px; height: 108px; }
@media (max-width: 600px) { .btn { white-space: normal; text-align: center; } .why__actions .btn { max-width: 100%; } }
