/* PPD-Charakter: handgezeichnete Marker, Notizen, Sticker, Polaroid, Neigungen.
   Regel: auf Desktop locker, auf Mobile ruhig (weniger Rotation, keine Deko über Text). */

/* Marker unter/um ein Wort – zeichnet sich beim Einblenden */
.mark { position: relative; display: inline-block; white-space: nowrap; z-index: 0; }
.mark__svg { position: absolute; z-index: -1; left: -3%; bottom: -.1em; width: 106%; height: .28em; overflow: visible; fill: none;
  stroke: var(--ppd-green); stroke-width: max(4px, .058em); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mark__svg path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.mark--circle .mark__svg { left: -12%; bottom: -22%; width: 124%; height: 138%; stroke-width: max(3px, .045em); }
.cta-band .mark__svg, .path--candidate .mark__svg { stroke: #fff; }

/* Handschriftliche Notiz mit Pfeil */
.note { display: inline-flex; align-items: flex-end; gap: 4px; font-family: var(--font-hand); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--ppd-green-dark); }
.note__text { rotate: -3deg; }
.note__arrow { width: 44px; height: 44px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.note__arrow path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.note--up .note__arrow { transform: scale(-1, -1); order: -1; }
.note--right .note__arrow { transform: rotate(-70deg); }

/* Sticker */
.sticker { position: relative; display: inline-grid; place-content: center; text-align: center; width: 132px; aspect-ratio: 1; border-radius: 50%;
  background: var(--ppd-green); color: #fff; rotate: -10deg; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); font-family: var(--font-head); line-height: 1; padding: 12px; }
.sticker b { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.sticker small { font-size: .74rem; font-weight: 700; margin-top: 4px; line-height: 1.15; }
.sticker::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.5); }
.sticker--ink { background: var(--ppd-ink); color: #fff; rotate: 7deg; }
.sticker--ink::after { border-color: rgba(88,111,88,.6); }
.sticker--ink b { color: var(--ppd-green-light); }

/* Hero: gekipptes Schaufenster, Sticker, Notiz, Pillen */
.hero__window { position: relative; }
.window-row { rotate: -2deg; }
.sticker--hero { position: absolute; z-index: 3; left: -26px; top: -40px; }
.window__caption { margin: 22px 0 0 auto; width: fit-content; font-family: var(--font-hand); font-size: 1.35rem; color: var(--ppd-green-light); rotate: -2deg; }
.hero__note { margin: 14px 0 0 38px; }
.hero__note .note { color: var(--ppd-green-light); }
.pills { display: flex; flex-wrap: wrap; gap: 10px 12px; padding-top: 56px; padding-bottom: 56px; }
.pills li { padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); font-weight: 700; font-size: .95rem; color: #e6e6e6; }
.pills li:nth-child(odd) { rotate: -1.5deg; } .pills li:nth-child(even) { rotate: 1.2deg; translate: 0 6px; }
.pills .pill--green { background: var(--ppd-green); border-color: var(--ppd-green); color: #fff; }

/* Leistungen: zweite Karte versetzt, Nummern gekippt */
@media (min-width: 960px) { .service:nth-child(2) { margin-left: 9%; rotate: .8deg; } .service:nth-child(1) { rotate: -.6deg; } }
.service__no { rotate: -8deg; width: fit-content; }

/* Vertrauen: Polaroid mit Klebeband */
.polaroid { position: relative; margin: 0; padding: 14px 14px 56px; background: #fff; border-radius: 6px; rotate: -2.5deg;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.08); }
.polaroid picture { display: block; overflow: hidden; border-radius: 3px; }
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 20px; right: 20px; bottom: 14px; font-family: var(--font-hand); font-size: 1.5rem; color: var(--ppd-black); rotate: -1deg; }
@media (max-width: 520px) { .polaroid { padding-bottom: 74px; } .polaroid figcaption { font-size: 1.25rem; bottom: 12px; } }
.tape { position: absolute; z-index: 2; top: -16px; left: 50%; width: 120px; height: 34px; translate: -50% 0; rotate: 4deg; background: rgba(230,230,230,.9);
  clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 45%); }
.trust__stickers { display: flex; gap: 18px; margin: 28px 0 30px; }

/* Wege-Karten: Überschrift in Schreibschrift-Nähe, Notiz */
.path h2 { max-width: 9ch; }

/* Seiten-Heros: Sticker rechts statt Konturschrift */
.page-hero__wrap { position: relative; }
.page-hero__wrap > .sticker--hero { position: absolute; left: auto; right: var(--gutter); top: 10px; width: 150px; }
.page-hero__wrap > .sticker--hero b { font-size: 2.3rem; }
.jobs-hero .page-hero__wrap > .sticker--hero { top: 0; }

/* Bewerber: Notiz neben Formular */
.apply-section__note { margin-top: 18px; }
.apply-section__note .note { font-size: 1.6rem; }

/* Kontakt: Telefon-Tile */
.tile--call { position: relative; min-height: 150px; }
.tile--call b { white-space: nowrap; font-size: clamp(1.3rem, 6.4vw, 2.3rem); }
.tile__note { font-family: var(--font-hand); font-size: 1.4rem; font-weight: 700; rotate: -3deg; width: fit-content; margin-top: 6px; }

/* Zeiger mobil: Panel mit Pfeil nach unten auf die Liste */
.pointer__down { display: none; }
@media (max-width: 999px) {
  .pointer { overflow: visible; border: 2px dashed rgba(88,111,88,.45); margin-bottom: 30px; }
  .pointer__fig { overflow: hidden; height: 172px; border-radius: 0 20px 20px 0; }
  .pointer__down { display: block; position: absolute; left: 22px; bottom: -34px; width: 46px; height: 46px; fill: none; stroke: var(--ppd-green-dark);
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
  .pointer__down path { stroke-dasharray: 1; stroke-dashoffset: 0; }
  .pointer__bubble { rotate: -2deg; }
}

/* Mobile: ruhiger */
@media (max-width: 859px) {
  .window-row { rotate: -1deg; }
  .sticker--hero { width: 96px; left: -6px; top: -30px; }
  .sticker--hero b { font-size: 1.9rem; } .sticker--hero small { font-size: .62rem; }
  .page-hero__wrap > .sticker--hero { position: relative; right: auto; top: auto; float: right; margin: -6px 0 6px 10px; width: 96px; }
  .page-hero__wrap > .sticker--hero b { font-size: 1.5rem; }
  .pills li:nth-child(n) { rotate: 0deg; translate: 0 0; }
  .polaroid { rotate: -1deg; }
  .hero__note { margin-left: 8px; }
}
@media (max-width: 380px) { .page-hero__wrap > .sticker--hero { display: none; } }

/* Unternehmen: Leistungskarten gekippt und versetzt */
@media (min-width: 900px) {
  .split-services__grid { align-items: start; }
  .big-card { rotate: -1deg; }
  .big-card--dark { rotate: 1.4deg; margin-top: 60px; }
}
.story__photo.polaroid picture { border-radius: 3px; }

/* MR. P-P-D – Original-Raster (294×813). Nie über native Größe skalieren. */
.mr-orig { display: block; }
.mr-orig img { display: block; width: 100%; height: auto; max-width: 294px; }

/* Zeiger mit Original: Sprechblase oben (volle Breite), Figur darunter rechts, Pfeil von der Blase in die Lücke zu den Jobs */
.pointer--orig { position: relative; display: grid; grid-template-columns: 1fr; justify-items: end; padding-top: 10px; }
.pointer--orig .pointer__bubble { position: relative; top: auto; left: auto; max-width: 250px; justify-self: start; rotate: -3deg; margin: 0 0 6px 20px; z-index: 2; }
.pointer--orig .pointer__bubble::after { left: 22px; bottom: -12px; width: 18px; height: 14px; clip-path: polygon(0 0, 100% 0, 30% 100%); }
.pointer--orig .pointer__arrow { position: absolute; left: -50px; top: 92px; width: 130px; }
.pointer--orig .pointer__fig { width: 200px; margin-top: 22px; } /* Kopf-Sicherheitszone: Blase + Spitze enden über dem Kopf (Geometrie-Test scripts/qa/figure.js) */
.pointer--orig .pointer__fig img { width: 200px; }
.pointer__down { display: none; }
@media (max-width: 999px) {
  /* Mobile: kompaktes Mint-Panel, Oberkörper-Ausschnitt per CSS-Crop (dasselbe Bild), Pfeil nach unten auf die Liste */
  .pointer--orig { grid-template-columns: 1fr 120px; align-items: start; height: 168px; overflow: visible; padding: 16px 0 0 16px; border-radius: 22px; background: var(--ppd-green-soft); border: 2px dashed rgba(88,111,88,.45); margin-bottom: 34px; }
  .pointer--orig .pointer__bubble { margin: 8px 0 0; padding: 12px 14px; border-radius: 16px 16px 4px 16px; }
  .pointer--orig .pointer__arrow { display: none; }
  .pointer--orig .pointer__fig { width: 120px; height: 152px; overflow: hidden; border-radius: 0 20px 0 0; align-self: end; }
  .pointer--orig .pointer__fig img { width: 120px; max-width: none; }
  .pointer--orig .pointer__down { display: block; position: absolute; left: 22px; bottom: -34px; width: 46px; height: 46px; fill: none; stroke: var(--ppd-green-dark); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
  .pointer--orig .pointer__down path { stroke-dasharray: 1; stroke-dashoffset: 0; }
}
/* Motion-Startzustände (nur mit JS + ohne reduced motion) */
.js-motion .pointer--orig [data-fig] { opacity: 0; transform: translateX(70px) rotate(4deg); }
.js-motion .pointer--orig [data-bubble] { opacity: 0; transform: scale(.6) rotate(-8deg); }
.js-motion .pointer--orig [data-arrow], .js-motion .pointer--orig [data-arrow-head] { opacity: 0; }
.js-motion .pointer--orig .pointer__down path { stroke-dashoffset: 1; }

/* Schaufenster (Hero): Original in den Seitenfenstern, Höhe an Fenster gebunden */
.window__orig { position: absolute; left: 50%; bottom: 4%; height: 86%; translate: -50% 0; }
.window__orig img { height: 100%; width: auto; max-width: none; }

/* Bewerber: Figur neben dem Formular (Desktop) */
.apply-section__fig { display: none; }
@media (min-width: 1000px) { .apply-section__fig { display: block; width: 230px; margin-top: 26px; } }

/* Kontakt: Figur schaut ins Telefon-Tile */
.tile--call { position: relative; overflow: hidden; min-height: 190px; padding-right: 130px; }
.tile__mr { position: absolute; right: 10px; bottom: -150px; width: 110px; transition: transform .5s var(--spring); }
.tile__mr img { width: 110px; }
.tile--call:hover .tile__mr { transform: translateY(-10px) rotate(-2deg); }
@media (max-width: 380px) { .tile--call { padding-right: 96px; } .tile--call b { font-size: 1.18rem; letter-spacing: -.02em; } .tile__mr { width: 84px; bottom: -120px; } .tile__mr img { width: 84px; } }

/* Über uns: Teamkarte */
.person__img--mascot { display: grid; place-items: end center; background: var(--ppd-green); padding: 20px 20px 0; overflow: hidden; }
.person__img--mascot img { height: 100%; width: auto; max-height: 100%; }
/* Danke */
.thanks__fig { width: min(220px, 55vw); justify-self: center; }

/* Interne Vergleichsseiten */
.cmp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin-top: 30px; align-items: start; }
.cmp__grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 1000px; } /* intern: unter ~700 px einspaltig */
.cmp__fig { margin: 0; }
.cmp__img { width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.cmp__window { display: grid; place-items: end center; min-height: 380px; padding: 16px; background: var(--ppd-green); border: 8px solid #e6e6e6; border-radius: 6px; }
.cmp__window .mr-orig img { width: auto; height: 340px; }
.cmp__window--wide { grid-template-columns: 340px 1fr; place-items: start; gap: 24px; background: var(--ppd-paper); border-color: var(--line); }
.cmp__window--wide .job-card { width: 100%; }
.cmp__fig--wide { grid-column: 1 / -1; }
.cmp__pointerwrap { width: 100%; max-width: 420px; }
.cmp__window--wide .pointer--orig { grid-template-columns: 1fr; }
.cmp__window--wide .pointer__fig img { height: auto; width: 200px; }
.cmp__window[data-state="start"] .pointer__fig { opacity: 0; transform: translateX(70px) rotate(4deg); }
.cmp__window[data-state="start"] .pointer__bubble, .cmp__window[data-state="start"] .pointer__arrow { opacity: 0; }
.cmp__window[data-state="mid"] .pointer__arrow { clip-path: inset(0 0 0 50%); }
.cmp__window[data-state="mid"] .pointer__bubble { opacity: 0; } /* Sprechblase (CTA) erst, wenn Figur und Pfeil stehen */
.cmp__window--mobile { width: 320px; background: var(--ppd-paper); border-color: var(--line); place-items: start stretch; min-height: 0; padding: 12px 12px 50px; }
.cmp__window--mobile .pointer--m { grid-template-columns: 1fr 120px; align-items: start; height: 168px; padding: 16px 0 0 16px; border-radius: 22px; background: var(--ppd-green-soft); border: 2px dashed rgba(88,111,88,.45); }
.cmp__window--mobile .pointer--m .pointer__arrow { display: none; }
.cmp__window--mobile .pointer--m .pointer__fig { width: 120px; height: 152px; overflow: hidden; align-self: end; }
.cmp__window--mobile .pointer--m .pointer__fig img { width: 120px; height: auto; }
.cmp__window--mobile .pointer--m .pointer__down { display: block; position: absolute; left: 22px; bottom: -34px; width: 46px; height: 46px; fill: none; stroke: var(--ppd-green-dark); stroke-width: 2.5; stroke-linecap: round; }
.cmp__window--discard { background: #f3d9d2; border-color: #c96b52; filter: grayscale(.4); overflow: hidden; }
.cmp__window--discard .mr { height: 340px; width: auto; }
.cmp__fig figcaption { margin-top: 8px; font-size: .88rem; color: var(--text-muted); }
.cmp__fig--discard figcaption { color: #8a2f1c; font-weight: 700; }
