/* Kuerbis-Themenseite v2 (07.10.2026): Ergebnis-Fotos zuerst, Schablone in passender Groesse, Schnitt-Reihenfolge, Schnitz-Modus,
   Auswahlhilfe, alle drucken, Ausmalen. Farben wie die Seite: #fb9e43 / #ea580c / #c2410c, hell #fff7ed. */
.pk, .pk-dlg, #pk-carve, #pk-sheet { --o: #ea580c; --o2: #c2410c; --o-l: #fff7ed; --o-b: #f3d3b8; --ink: #1d1d1d; --mut: #5b5b5b; --line: #e9e4dc; --night: #141729;
  --ok: #166534; --ok-l: #dcfce7; --warn: #92400e; --warn-l: #fef3c7; --bad: #991b1b; --bad-l: #fee2e2 }
.pk { padding: 18px 0 60px }
.pk [hidden], #pk-carve[hidden] { display: none !important }
.pk *, .pk-dlg *, #pk-carve * { box-sizing: border-box }
/* style.css setzt li { margin-left: 30px !important; text-indent: -30px } -> hier zuruecksetzen */
.pk li, .pk-dlg li, #pk-carve li, #pk-sheet li { margin-left: 0 !important; text-indent: 0 }
.pk-dlg ol li, #pk-sheet ol li { margin-left: 2px !important }
.pk h1.title { margin: 0; line-height: 1.25 }
.pk .lead { margin: 4px 0 8px; color: #444; max-width: 60ch; line-height: 1.55 }
.pk .trust { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13.5px; color: #3f3f3f }
.pk .trust li:before { content: none } .pk .trust b { color: var(--ok); margin-right: 3px }
.pk button:focus-visible, .pk a:focus-visible, .pk-dlg button:focus-visible, #pk-carve button:focus-visible { outline: 3px solid #fb9e43; outline-offset: 2px }

/* Leiste */
.pk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px }
.pk-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; padding: 2px }
.pk-chips::-webkit-scrollbar { display: none }
.pk-chip { flex: none; font: 600 14px/1 Inter, sans-serif; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 13px; cursor: pointer; min-height: 38px; white-space: nowrap }
.pk-chip small { color: #8a8a8a; margin-left: 3px }
.pk-chip[aria-pressed=true] { background: var(--o); border-color: var(--o); color: #fff } .pk-chip[aria-pressed=true] small { color: #ffe4d1 }
.pk-chip.help { border-color: var(--o-b); background: var(--o-l); color: var(--o2) }
.pk-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; flex: none }
.pk-seg button { font: 600 13px/1 Inter, sans-serif; border: 0; background: transparent; padding: 9px 12px; cursor: pointer; color: var(--mut); min-height: 36px }
.pk-seg button[aria-pressed=true] { background: var(--ink); color: #fff }
.pk-all { flex: none; font: 700 13px/1 Inter, sans-serif; border: 0; border-radius: 999px; background: var(--ink); color: #fff; padding: 11px 14px; cursor: pointer }

/* Themen (Hauptseite) */
.pk-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px }
.pk-themes a { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--night); text-decoration: none }
.pk-themes img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92 }
.pk-themes span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font: 700 15px/1.2 Inter, sans-serif }
.pk-themes small { display: block; font-weight: 400; font-size: 12px; opacity: .85 }
/* Auswahlhilfe */
.pk-quiz { background: var(--o-l); border: 1px solid var(--o-b); border-radius: 14px; padding: 14px; margin: 0 0 14px; display: grid; gap: 10px }
.pk-quiz h3 { margin: 0; font: 700 15px/1.3 Inter, sans-serif; color: var(--ink) }
.pk-quiz .q { display: grid; gap: 6px } .pk-quiz .q > span { font-size: 13px; color: var(--mut); font-weight: 600 }
.pk-quiz .opts { display: flex; flex-wrap: wrap; gap: 6px }
.pk-result { font-size: 14px; color: #3f3f3f; margin: 0 0 10px } .pk-result button { background: none; border: 0; color: var(--o2); font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0 4px }

/* Galerie */
.pk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px }
.pk-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-align: left; padding: 0; font: inherit; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s }
.pk-card:hover { border-color: #fb9e43; box-shadow: 0 6px 18px rgba(234, 88, 12, .14); transform: translateY(-2px) }
.pk-pic { position: relative; aspect-ratio: 4 / 5; background: var(--night) }
.pk-pic img.main { width: 100%; height: 100%; object-fit: cover; display: block }
.pk-pic.sheet { background: #fff; aspect-ratio: 1 } .pk-pic.sheet img.main { object-fit: contain; padding: 10px }
.pk-inset { position: absolute; right: 8px; bottom: 8px; width: 30%; aspect-ratio: 1; background: #fff; border-radius: 6px; padding: 3px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transform: rotate(3deg) }
.pk-inset img { width: 100%; height: 100%; object-fit: contain; display: block }
.pk-lvl { position: absolute; left: 8px; top: 8px; font: 700 12px/1 Inter, sans-serif; padding: 5px 8px; border-radius: 6px; background: #fff; color: var(--ink) }
.pk-lvl.easy { background: var(--ok-l); color: var(--ok) } .pk-lvl.medium { background: var(--warn-l); color: var(--warn) } .pk-lvl.hard { background: var(--bad-l); color: var(--bad) }
.pk-cap { padding: 10px 12px 12px; display: grid; gap: 2px }
.pk-cap .t { font-weight: 700; font-size: 16px; line-height: 21px; color: var(--ink) }
.pk-cap .m { font-size: 13px; line-height: 18px; color: var(--mut) }
.pk-levels { font-size: 13px; color: var(--mut); margin: 10px 0 0; line-height: 1.6 } .pk-levels b { color: var(--ink) }
.pk-pdf { font-size: 14px; margin: 6px 0 0; color: #444 } .pk-pdf a { color: var(--o2); font-weight: 700 }

/* Text */
.pk-txt { margin-top: 30px }
.pk-txt h2 { margin: 34px 0 12px; line-height: 1.3 }
.pk-txt p, .pk-txt li { color: #444; line-height: 1.7 }
.pk-txt p { max-width: 760px; margin: 0 0 14px }
.pk-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.pk-steps li { counter-increment: s; background: var(--o-l); border-radius: 12px; padding: 14px 16px 14px 54px !important; position: relative; margin: 0 !important; line-height: 1.55; font-size: 15px }
.pk-steps li:before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--o); color: #fff; font: 700 14px/28px Inter, sans-serif; text-align: center; display: block }
.pk-steps b { color: var(--ink) }
.pk-tip { max-width: 760px; margin: 14px 0 0; padding: 12px 14px; border-left: 4px solid #fb9e43; background: #fffaf3; color: #444; line-height: 1.6; border-radius: 0 8px 8px 0 }
.pk-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.pk-type { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start }
.pk-type img { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; background: var(--night); display: block }
.pk-type h3 { margin: 0 0 4px; font-size: 17px; line-height: 22px; color: var(--ink) } .pk-type p { margin: 0; font-size: 15px; line-height: 1.55 }
.pk-tbl { overflow-x: auto; max-width: 760px }
.pk-tbl table { border-collapse: collapse; width: 100%; font-size: 15px }
.pk-tbl th, .pk-tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top }
.pk-tbl th { font-size: 13px; color: var(--mut); font-weight: 600; background: #faf8f5 }
.pk-faq { max-width: 760px }
.pk-faq details { border-bottom: 1px solid var(--line); padding: 4px 0 }
.pk-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; line-height: 24px; padding: 10px 28px 10px 0; list-style: none; position: relative; color: var(--ink) }
.pk-faq summary::-webkit-details-marker { display: none }
.pk-faq summary:after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 22px; color: var(--o) }
.pk-faq details[open] summary:after { content: "–" } .pk-faq details p { margin: 0 0 12px }
.pk-more { margin-top: 30px; font-size: 15px; line-height: 1.9; color: var(--mut); max-width: 900px }
.pk-more a { color: var(--o2); font-weight: 600; text-decoration: none; white-space: nowrap } .pk-more .sep { margin: 0 6px; color: #c9c2b8 }
.pk p.pk-between { max-width: 760px; margin: 26px 0; color: var(--mut); font-size: 15px; line-height: 1.55 }
.pk-ad { margin: 26px 0; height: 120px; border: 2px dashed #d4d4d8; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 10px; color: #8b8b93; font: 600 13px Inter, sans-serif; background: #fafafa }

/* Gesichter-Baukasten */
.pk-build { margin: 28px 0 0; background: var(--o-l); border: 1px solid var(--o-b); border-radius: 16px; padding: 16px }
.pk-build h2 { margin: 0 0 4px; line-height: 1.3 } .pk-build > p { margin: 0 0 12px; color: #444; max-width: 70ch }
.pk-bgrid { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 16px; align-items: start }
.pk-bprev { background: #fff; border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 1 } .pk-bprev svg { width: 100%; height: 100%; display: block }
.pk-brow { display: grid; gap: 6px; margin-bottom: 10px } .pk-brow > b { font: 700 14px Inter, sans-serif }
.pk-bopts { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: thin }
.pk-bopts button { flex: none; width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 4px; cursor: pointer; font: 600 11px Inter, sans-serif; color: var(--mut) }
.pk-bopts button[aria-pressed=true] { border-color: var(--o); box-shadow: 0 0 0 2px var(--o) inset }
.pk-bopts svg { width: 100%; height: 100%; display: block }
.pk-bact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px }
.pk-bact button { font: 700 14px/1 Inter, sans-serif; border: 1px solid var(--o-b); border-radius: 999px; background: #fff; color: var(--o2); padding: 12px 14px; cursor: pointer }
.pk-bact button.primary { background: var(--o); border-color: var(--o); color: #fff }
.pk-bcheck { font-size: 13px; color: var(--ok); margin-top: 8px }
@media (max-width: 700px) { .pk-themes { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px } .pk-themes::-webkit-scrollbar { display: none } .pk-themes a { flex: 0 0 116px } .pk-bgrid { grid-template-columns: 1fr } .pk-bprev { max-width: 320px; margin: 0 auto; width: 100% } }
/* Detail */
.pk-dlg { margin: auto; border: 0; padding: 0; border-radius: 16px; width: min(1000px, 95vw); max-height: 92vh; overflow: hidden; color: var(--ink) }
.pk-dlg::backdrop { background: rgba(15, 17, 30, .62) }
.pk-dlg .in { display: grid; grid-template-columns: 1.1fr 1fr; max-height: 92vh }
.pk-media { position: relative; background: var(--night); min-height: 0; display: flex; flex-direction: column }
.pk-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; min-height: 0 }
.pk-track::-webkit-scrollbar { display: none }
.pk-slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0 }
.pk-slide img { width: 100%; height: 100%; max-height: 92vh; object-fit: contain; display: block }
.pk-slide.sheet { background: #fff }
.pk-slide .wrap { position: relative; width: 100%; aspect-ratio: 1; max-height: 100% }
.pk-slide .wrap img { position: absolute; inset: 0 }
.pk-num { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ink); font: 700 13px/26px Inter, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--o) }
.pk-slide .cap { position: absolute; left: 10px; top: 10px; font: 600 12px Inter, sans-serif; background: rgba(0, 0, 0, .55); color: #fff; padding: 4px 8px; border-radius: 6px }
.pk-slide.sheet .cap { background: rgba(0, 0, 0, .06); color: var(--ink) }
.pk-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 20px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25) }
.pk-nav.l { left: 10px } .pk-nav.r { right: 10px }
.pk-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px }
.pk-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .45) } .pk-dots i.on { background: #fff }
.pk-dlg .side { overflow-y: auto; padding: 16px 20px 0; display: flex; flex-direction: column; gap: 13px; font: 15px/1.55 Inter, sans-serif }
.pk-dlg .hd { display: flex; justify-content: space-between; align-items: start; gap: 8px }
.pk-dlg h2 { margin: 0; font: 700 21px/1.25 Inter, sans-serif; color: var(--ink) }
.pk-dlg .hbtn { display: flex; gap: 6px; flex: none }
.pk-dlg .hbtn button { border: 0; background: #f2efea; width: 36px; height: 36px; border-radius: 50%; font-size: 17px; cursor: pointer; color: var(--ink) }
.pk-dlg .tags { display: flex; flex-wrap: wrap; gap: 6px }
.pk-dlg .tag { font: 600 13px/1 Inter, sans-serif; padding: 6px 9px; border-radius: 6px; background: #f2efea; color: #3f3f3f }
.pk-dlg .tag.easy { background: var(--ok-l); color: var(--ok) } .pk-dlg .tag.medium { background: var(--warn-l); color: var(--warn) } .pk-dlg .tag.hard { background: var(--bad-l); color: var(--bad) }
.pk-dlg h3 { margin: 0 0 6px; font: 700 15px/1.3 Inter, sans-serif; color: var(--ink) }
.pk-size { background: var(--o-l); border: 1px solid var(--o-b); border-radius: 12px; padding: 12px }
.pk-size .opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px }
.pk-size .opts button { font: 600 13px/1.25 Inter, sans-serif; border: 1px solid var(--o-b); background: #fff; border-radius: 9px; padding: 8px 4px; cursor: pointer; color: var(--ink) }
.pk-size .opts button small { display: block; font-weight: 400; color: var(--mut); font-size: 12px }
.pk-size .opts button[aria-pressed=true] { border-color: var(--o); box-shadow: 0 0 0 2px var(--o) inset }
.pk-size .opts button:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through }
.pk-size .res { margin-top: 8px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center }
.pk-size .unit { font-size: 13px; color: var(--o2); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0 }
.pk-check { font-size: 14px; border-radius: 8px; padding: 8px 10px; background: var(--ok-l); color: var(--ok) }
.pk-dlg label.opt { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer }
.pk-dlg ol { margin: 0; padding-left: 20px } .pk-dlg ol li { margin-bottom: 4px !important; list-style: decimal; color: #444 } .pk-dlg ol li:before { content: none }
.pk-dlg .who { font-size: 14px; color: #444; background: #faf8f5; border-radius: 10px; padding: 10px 12px }
.pk-dlg .act { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); margin: 0 -20px; padding: 12px 20px 14px; display: grid; gap: 8px }
.pk-dlg .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.pk-dlg .print { font: 700 17px/1 Inter, sans-serif; border: 0; border-radius: 999px; background: var(--o); color: #fff; padding: 15px 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(234, 88, 12, .35) }
.pk-dlg .print:hover { background: var(--o2) }
.pk-dlg .sec { font: 700 14px/1 Inter, sans-serif; border: 1px solid var(--o-b); border-radius: 999px; background: var(--o-l); color: var(--o2); padding: 12px 10px; cursor: pointer }
.pk-dlg .dl { display: flex; justify-content: center; gap: 18px; font-size: 13px } .pk-dlg .dl a { color: var(--o2); font-weight: 600 }

/* Schnitz-Modus */
#pk-carve { position: fixed; inset: 0; z-index: 99999; background: #0f1220; color: #fff; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; grid-template-columns: 100%; font: 16px/1.5 Inter, sans-serif; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px) }
#pk-carve[hidden] { display: none }
#pk-carve .top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #262b40 }
#pk-carve .top b { flex: 1; font-size: 16px } #pk-carve .top span { font-size: 14px; color: #c9cbe0; font-variant-numeric: tabular-nums }
#pk-carve .top button { border: 0; background: #262b40; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer }
#pk-carve .bar { height: 5px; background: #262b40 } #pk-carve .bar i { display: block; height: 100%; background: #fb9e43; transition: width .2s }
#pk-carve .stage { display: flex; align-items: center; justify-content: center; padding: 12px; min-height: 0; min-width: 0; overflow: hidden }
#pk-carve canvas { width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: 1; background: #fff; border-radius: 12px }
#pk-carve .say { padding: 4px 18px 10px; max-width: 640px; margin: 0 auto; width: 100% }
#pk-carve .say h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.3; color: #fff }
#pk-carve .say p { margin: 0; color: #d8dae8; font-size: 16px }
#pk-carve .say ul { margin: 6px 0 0; padding-left: 20px; color: #d8dae8 } #pk-carve .say li { list-style: disc; margin: 2px 0 !important } #pk-carve .say li:before { content: none; display: none }
#pk-carve .nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 10px 16px 16px; max-width: 640px; margin: 0 auto; width: 100% }
#pk-carve .nav button { font: 700 18px/1 Inter, sans-serif; border: 0; border-radius: 14px; padding: 20px 10px; cursor: pointer; background: #262b40; color: #fff }
#pk-carve .nav button.next { background: #ea580c }

.pk-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1d1d1d; color: #fff; padding: 10px 16px; border-radius: 10px; font: 600 14px Inter, sans-serif; z-index: 100000 }
#pk-sheet { display: none }
@media print {
  body > *:not(#pk-sheet) { display: none !important }
  #pk-sheet { display: block !important; font: 10.5pt/1.4 Inter, Arial, sans-serif; color: #000 }
  #pk-sheet .pg { page-break-after: always } #pk-sheet .pg:last-child { page-break-after: auto }
  #pk-sheet h2 { font: 700 15pt Inter, Arial, sans-serif; margin: 0 0 1mm }
  #pk-sheet .m { font-size: 9pt; color: #444; margin: 0 0 2mm }
  #pk-sheet .lg { display: flex; gap: 8mm; font-size: 9pt; margin: 0 0 2mm }
  #pk-sheet .lg i { display: inline-block; width: 4mm; height: 4mm; border: .3mm solid #000; vertical-align: -.7mm; margin-right: 1.5mm } #pk-sheet .lg i.b { background: #000 }
  #pk-sheet .art { display: flex; justify-content: center }
  #pk-sheet ol { margin: 2mm 0 0; padding-left: 5mm }
  #pk-sheet .cal { margin-top: 3mm; display: flex; align-items: center; gap: 3mm; font-size: 8pt } #pk-sheet .cal span { display: inline-block; border-top: .4mm solid #000 }
  #pk-sheet .ft { font-size: 7.5pt; color: #666; margin-top: 2mm }
  @page { margin: 10mm }
}
@media (max-width: 1000px) { .pk-grid { grid-template-columns: repeat(3, 1fr) } .pk-steps { grid-template-columns: repeat(2, 1fr) } .pk-types { grid-template-columns: 1fr } }
@media (max-width: 700px) {
  .pk { padding-top: 10px } .pk h1.title { font-size: 28px !important; line-height: 1.25 !important } .pk .lead { font-size: 14.5px; margin-bottom: 6px }
  .pk .trust { font-size: 12.5px; gap: 2px 10px; margin-bottom: 8px }
  .pk-bar { gap: 6px } .pk-chips { flex-basis: 100% }
  .pk-grid { grid-template-columns: repeat(2, 1fr); gap: 10px }
  .pk-cap { padding: 8px 10px 10px } .pk-cap .t { font-size: 15px; line-height: 19px }
  .pk-steps { grid-template-columns: 1fr }
  .pk-dlg { width: 100vw; max-width: 100vw; max-height: 95vh; margin: auto 0 0; border-radius: 18px 18px 0 0 }
  .pk-dlg .in { grid-template-columns: 1fr; max-height: 95vh; overflow-y: auto }
  .pk-media { height: 52vh; flex: none } .pk-slide img { max-height: 52vh }
  .pk-nav { display: none }
  .pk-dlg .side { overflow: visible; padding: 14px 16px 0 } .pk-dlg .act { margin: 0 -16px; padding: 10px 16px 14px }
}
@media (prefers-reduced-motion: reduce) { .pk-card { transition: none } .pk-card:hover { transform: none } }
