/* ===== ponodo Engine: listings, filters and product pages ===== */

/* --- Product names exactly as in the feed --- */
body { font-feature-settings: "calt" 0; } /* system fonts (San Francisco, Inter) turn "59 x 89" into "59 × 89" by context, only on one line: one heading showed "59 × 89 x 59" (#174) */

/* --- Page layout: filters left, results right --- */
.pn-page { width: 100%; box-sizing: border-box; padding-left: 50px; padding-right: 50px; } /* same side space as the normal WordPress pages (theme: 50px, phone 30px) */
@media (max-width: 768px) {
    .pn-page { padding-left: 30px; padding-right: 30px; }
}
.pn-head { padding-top: 32px; }
.pn-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 8px 0 32px; }
.pn-title { margin: 0 0 16px; }
.pn-breadcrumb { font-size: 14px; color: #6b7280; margin-bottom: 12px; }
.pn-breadcrumb a { color: inherit; }

/* Own category text: first paragraph under the title, the rest below the list */
.pn-intro { max-width: 820px; margin: -4px 0 16px; color: #374151; }
.pn-intro-more { margin-top: 32px; }

/* --- Filter column --- */
.pn-filters { font-size: 15px; }
.pn-filter-title { font-size: 18px; margin: 0 0 12px; }
.pn-filter-block { border: 0; padding: 0; margin: 0 0 24px; }
.pn-filter-block legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.pn-cats ul { list-style: none; margin: 0; padding: 0; }
.pn-cats li { margin: 0 0 6px; padding-left: calc(var(--pn-depth, 0) * 12px); }
.pn-cats a[aria-current="page"] { font-weight: 600; }
.pn-count { color: #6b7280; font-size: 13px; }
.pn-check { display: block; margin: 0 0 6px; cursor: pointer; }
.pn-check input { margin-right: 6px; }
.pn-price-range { display: flex; align-items: center; gap: 6px; }
.pn-price-go { padding: 6px 12px; } /* small "OK" next to the price fields (boxes filter at once) */
.pn-price-range label { display: inline-flex; flex: 1 1 0; min-width: 0; align-items: center; gap: 4px; } /* both fields share the width, "OK" fits next to them */
.pn-price-range input { width: 100%; min-width: 0; padding: 6px 8px; }
/* no up/down arrows in the price fields: they take the room of the digits */
.pn-price-range input { -moz-appearance: textfield; appearance: textfield; }
.pn-price-range input::-webkit-inner-spin-button, .pn-price-range input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pn-reset { display: block; margin-top: 12px; font-size: 14px; }
.pn-filter-note { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: #6b7280; } /* small print under a filter (shop facts) */

/* Filters fold away on phones (summary hidden on desktop, so they always stay open there) */
.pn-filter-summary { display: none; }

/* --- Toolbar above the list --- */
.pn-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.pn-count-line { margin: 0; font-size: 14px; color: #374151; }
.pn-sort select { padding: 8px 10px; }

/* --- List view: thumbnail | title + merchant | price | button --- */
.pn-list { list-style: none; margin: 0; padding: 0; }
.pn-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; align-items: center; column-gap: 20px; padding: 12px 0; border-bottom: 1px solid #e5e7eb; }
.pn-item-image { display: block; width: 96px; height: 96px; overflow: hidden; background: #fff; }
.pn-item-image img, .pn-item-image .pn-noimg { display: block; width: 96px; height: 96px; object-fit: contain; font-size: 11px; color: #6b7280; }
.pn-item-title { display: block; font-size: 16px; line-height: 1.35; }
/* Merchant and available sizes under the product name */
.pn-item-merchant, .pn-item-sizes { display: block; font-size: 13px; color: #6b7280; margin-top: 4px; }
/* Note "Gebraucht" / "Generalüberholt" under the title in result lists and cards: small outlined label */
.pn-condition { display: inline-block; font-size: 12px; line-height: 1.4; color: #4b5563; border: 1px solid #d1d5db; border-radius: 3px; padding: 0 6px; margin-top: 4px; }
.pn-item-price { white-space: nowrap; text-align: right; }
.pn-item-price del, .pn-product-price del { color: #6b7280; font-weight: 400; margin-right: 4px; }
.pn-noimg { display: block; background: #f3f4f6; }
/* Unit price (Grundpreis) and legal note "inkl. MwSt., zzgl. 4,95 € Versand" (unknown: "ggf. zzgl. Versandkosten") from the feed, shown with every price */
.pn-base-price, .pn-price-note { display: block; font-size: 12px; font-weight: 400; color: #6b7280; }
/* The note may wrap, the price itself stays on one line */
.pn-price-note { white-space: normal; }
/* Cards: price, unit price and note as one block, space before the button */
.pn-card .pn-card-price { margin-bottom: 2px; }
.pn-card .pn-price-note { margin-bottom: 12px; }
.pn-product-price .pn-base-price { display: inline; font-size: 14px; margin-left: 8px; }

/* --- Buttons in the shop red --- */
.pn-button { display: inline-block; background: #c8160f; color: #fff !important; padding: 10px 18px; font-weight: 600; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; }
.pn-button:hover { background: #a31209; }
.pn-button-secondary { background: #374151; }
.pn-button-secondary:hover { background: #1f2937; }

/* --- Pagination --- */
.pn-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 8px; }
.pn-pagination a, .pn-pagination span { padding: 6px 12px; border: 1px solid #e5e7eb; text-decoration: none; }
.pn-pagination .pn-current { background: #c8160f; border-color: #c8160f; color: #fff; }
.pn-pagination .pn-gap { border: 0; }
/* Page navigation of the result list: large and centred right after the last result, so it cannot be missed */
.pn-pager { margin: 28px 0 8px; padding: 24px 0 8px; border-top: 1px solid #e5e7eb; text-align: center; }
.pn-pager-info { margin: 0 0 12px; font-size: 15px; color: #374151; }
.pn-pager .pn-pager-next { display: inline-block; font-size: 17px; padding: 12px 36px; }
.pn-pager .pn-pagination { justify-content: center; margin: 16px 0 0; }
.pn-list + .pn-pager { border-top: 0; padding-top: 8px; } /* the last result row already has a line */
.pn-hint, .pn-empty { color: #374151; }

/* --- Product page --- */
.pn-product { padding: 32px 0; }
.pn-product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pn-product-image { overflow: hidden; }
.pn-product-image img { width: 100%; font-size: 13px; color: #6b7280; height: auto; max-height: 520px; object-fit: contain; background: #fff; }
.pn-product-image .pn-noimg { aspect-ratio: 1 / 1; }
.pn-product-price { font-size: 28px; margin: 0 0 4px; }
.pn-product-meta { font-size: 14px; color: #6b7280; margin: 0 0 20px; }
.pn-duty { font-size: 13px; color: #7c4a03; background: #fff7ed; border-left: 3px solid #f59e0b; padding: 8px 12px; margin: -8px 0 20px; border-radius: 4px; }
.pn-button-offer { font-size: 17px; padding: 12px 24px; }
.pn-affiliate-note { font-size: 0.8em; color: #6b7280; margin: 8px 0 24px; }
.pn-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.pn-facts dt { font-weight: 600; }
.pn-facts dd { margin: 0; }
.pn-gone { background: #f3f4f6; padding: 12px 16px; }
.pn-source-note { font-size: 13px; color: #6b7280; }

/* Below the top area: description and "Technische Daten" left (readable line length), box "Auf einen Blick" right */
.pn-below { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; margin-top: 40px; }
.pn-below-solo { grid-template-columns: minmax(0, 420px); } /* no description: only the box */
.pn-description { max-width: 70ch; }
.pn-description p { margin: 0 0 1em; }
/* Technical details as a table with a light grid */
.pn-specs { width: 100%; border-collapse: collapse; margin: 4px 0 16px; font-size: 15px; }
.pn-specs th, .pn-specs td { text-align: left; vertical-align: top; padding: 7px 10px; border: 1px solid #e5e7eb; }
.pn-specs th { width: 40%; font-weight: 600; color: #374151; }
/* Box "Auf einen Blick": stays in view while scrolling (desktop) */
.pn-glance { position: sticky; top: 24px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px 22px; background: #fafafa; }
.pn-glance h2 { font-size: 20px; margin: 0 0 12px; }
.pn-glance dl { display: grid; grid-template-columns: minmax(0, max-content) minmax(50%, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; } /* long names wrap, values keep at least half the width */
.pn-glance dt { font-weight: 600; color: #374151; overflow-wrap: break-word; }
.pn-glance dd { margin: 0; overflow-wrap: break-word; }
.pn-glance-specs { padding-bottom: 14px; margin-bottom: 14px !important; border-bottom: 1px solid #e5e7eb; }
.pn-glance-buy { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5e7eb; }
.pn-glance-buy .pn-product-price { font-size: 22px; }
.pn-glance-buy .pn-product-meta { font-size: 13px; margin-bottom: 14px; }
.pn-glance-buy .pn-button-offer { display: block; text-align: center; }
.pn-glance-buy .pn-affiliate-note { margin-bottom: 0; }

/* --- Similar products: centered cards like the home page --- */
.pn-similar { margin-top: 40px; }
.pn-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pn-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pn-card-image { display: block; width: 100%; overflow: hidden; }
.pn-card-image img, .pn-card-image .pn-noimg { font-size: 11px; color: #6b7280; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain; background: #fff; }
.pn-card-title { flex-grow: 1; margin: 12px 0 8px; line-height: 1.35; }
.pn-card-price { font-weight: 700; margin-bottom: 12px; }

/* Shortcode rows on normal pages: as many columns as products (max 6) */
.pn-cards-shortcode { grid-template-columns: repeat(var(--pn-cols, 5), minmax(0, 1fr)); }

/* --- Tablet and phone --- */
@media (max-width: 900px) {
    .pn-head { padding-top: 16px; }
    .pn-layout { grid-template-columns: 1fr; gap: 16px; }
    .pn-filter-summary { display: block; cursor: pointer; font-weight: 600; padding: 10px 14px; border: 1px solid #e5e7eb; }
    .pn-filter-details[open] .pn-filter-summary { margin-bottom: 16px; }
    .pn-product-top { grid-template-columns: 1fr; gap: 24px; }
    .pn-below { grid-template-columns: 1fr; gap: 24px; }
    .pn-glance { position: static; }
    .pn-description + .pn-glance .pn-glance-specs { display: none; } /* phone: the details are already in the table above */
    .pn-cards, .pn-cards-shortcode { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .pn-item { grid-template-columns: 72px minmax(0, 1fr); row-gap: 6px; }
    .pn-item-image { grid-row: 1 / 3; }
    .pn-item-image, .pn-item-image img, .pn-item-image .pn-noimg { width: 72px; height: 72px; }
    .pn-item-price { text-align: left; }
    .pn-item .pn-button { grid-column: 1 / 3; text-align: center; }
}

/* Size selector on the product page: one small box per size, the current one framed in the shop red */
.pn-variants { margin: 0 0 16px; }
.pn-variants-title { margin: 0 0 6px; font-weight: 600; }
.pn-variant-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pn-variant { display: block; min-width: 44px; padding: 8px 10px; border: 1px solid #d1d5db; text-align: center; text-decoration: none; color: inherit; }
.pn-variant:hover, .pn-variant.is-current { border-color: #c8160f; }
.pn-variant.is-current { box-shadow: inset 0 0 0 1px #c8160f; font-weight: 600; }
/* Sizes that are out of stock: still selectable, but visibly weaker */
.pn-variant.is-out { color: #9ca3af; text-decoration: line-through; }

/* Link "So sortieren wir" next to the sort selection (ranking transparency, § 5b UWG) */
.pn-sort { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.pn-sort-info { font-size: 13px; white-space: nowrap; }

/* Merchant logos (bin/awin-logos.php cuts their empty margin): about a text line high, wide logos may use more width,
   so a name written inside the logo stays readable */
.pn-logo { display: inline-block; vertical-align: middle; width: auto; height: auto; max-height: 26px; max-width: 140px; }
.pn-item-merchant .pn-logo { display: block; margin-top: 2px; }
.pn-product-merchant { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #4b5563; }
.pn-product-merchant .pn-logo { max-height: 34px; max-width: 180px; }

/* --- eBay offers: own block below ponodo's results, kept apart from them (eBay's licence requires that) --- */
/* Framed and lightly tinted, so eBay's offers are clearly apart from ponodo's list above (eBay's licence requires that) */
.pn-ebay { margin: 28px 0 8px; padding: 18px 22px 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; }
.pn-ebay-title { font-size: 22px; margin: 0 0 6px; }
.pn-ebay-logo { vertical-align: -4px; }
/* Small grey notes: what is shown, how old the data is, eBay's terms */
.pn-ebay-note { font-size: 13px; color: #6b7280; margin: 0 0 20px; }
.pn-ebay-list + .pn-ebay-note, .pn-ebay-more + .pn-ebay-note { margin: 16px 0 0; }
/* Rows inside the frame: the last one without a line */
.pn-ebay-list .pn-item:last-child { border-bottom: 0; }
/* Test environment: clearly marked, only administrators see it */
.pn-ebay-test { background: #fff7ed; border-left: 4px solid #f59e0b; padding: 8px 12px; font-size: 14px; margin: 0 0 16px; }
.pn-ebay-page > .pn-ebay-note { margin-top: 32px; }
/* Link to the page with more eBay offers, under the cards */
.pn-ebay-more { margin: 16px 0 0; }
/* Page "Mehr Angebote bei eBay": the block is the page, so no line and gap above it */
.pn-ebay-only { margin-top: 8px; }
/* Offers without a picture: light grey square instead of an empty gap */
.pn-ebay-list .pn-item-image .pn-noimg { background: #f3f4f6; }

/* --- Shop directory (/shops/) --- */
/* Filter by main category and A-Z letters: one wrapping row of links; letters without shops greyed out */
.pn-shop-cats, .pn-shop-letters { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 16px; }
.pn-shop-letters { gap: 4px; margin-bottom: 24px; }
.pn-shop-letters a, .pn-shop-letters span { display: inline-block; min-width: 32px; padding: 6px 4px; text-align: center; border: 1px solid #e5e7eb; }
.pn-shop-letters span { color: #9ca3af; }
/* Shops of one letter: two columns on wide screens, one on the phone */
.pn-shop-group h2 { margin: 24px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #e5e7eb; }
.pn-shop-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.pn-shop-list a { font-weight: 600; }
.pn-shop-focus, .pn-shop-meta { display: block; font-size: 14px; }
.pn-shop-meta { color: #6b7280; }
/* Shop page: the box with the link comes first on the phone */
.pn-shop-below { margin-top: 8px; }
.pn-shop-products { margin: 16px 0 0; }
/* Product part of a partner's shop page (#139): own block below the facts, room above the cards and their button */
.pn-shop-catalog { margin: 40px 0 32px; }
.pn-shop-catalog .pn-cards { margin-top: 16px; }
.pn-shop-all { margin-top: 24px; }
@media (max-width: 900px) {
    .pn-shop-list { grid-template-columns: 1fr; }
    .pn-shop-below .pn-glance { order: -1; }
}
/* Product page: "Mehr über den Shop" as a small link next to the merchant logo */
.pn-shop-more { font-size: 14px; }
/* Shop directory: search by name in one row (wraps on the phone) */
/* Shop directory: filter by payment method and seat (0.55.1) */
.pn-shop-filter { margin: 0 0 16px; }
.pn-shop-filter fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; padding: 12px 16px; border: 1px solid #e5e7eb; }
.pn-shop-filter legend { padding: 0 6px; font-weight: 600; }
.pn-shop-filter .pn-check { margin: 0; }
.pn-shop-filter .pn-filter-note { margin: 8px 0 0; }
.pn-shop-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.pn-shop-search input[type="search"] { flex: 1 1 240px; max-width: 420px; }
.pn-shop-letters strong { display: inline-block; min-width: 32px; padding: 6px 4px; text-align: center; border: 1px solid currentColor; }
/* "Ratgeber zu diesem Thema" (category pages) and "Mehr aus dem Ratgeber" (articles): a light box like "Auf einen Blick" */
.pn-ratgeber-box { margin: 32px 0 0; padding: 16px 20px; border: 1px solid #e5e7eb; border-radius: 6px; background: #f9fafb; }
.pn-ratgeber-box h2 { margin: 0 0 8px; font-size: 20px; }
.pn-ratgeber-box ul { margin: 0; padding-left: 20px; }
.pn-ratgeber-products { margin-top: 32px; font-weight: 600; }
/* Link to the editorial principles at the very end of an article: small and quiet */
.pn-ratgeber-principles { margin-top: 24px; font-size: 14px; color: #6b7280; }
/* "Passend dazu" on the search page (#147): the same light box, but above the results - so the space is below it.
   Compact (small heading, less padding), so the first products stay on the first screen of a phone. */
.pn-ratgeber-box.pn-related { margin: 0 0 20px; padding: 10px 16px; font-size: 15px; }
.pn-ratgeber-box.pn-related h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }

/* --- Photo gallery on the product page (#148, markup: includes/class-gallery.php) --- */
/* One row of photos that scrolls sideways and snaps photo by photo; no scrollbar (previews, dots and swiping move it) */
.pn-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pn-gallery-track::-webkit-scrollbar { display: none; }
/* Every photo fills the row and gets the same square frame, whatever its own format is; a click enlarges it */
.pn-gallery-slide { flex: 0 0 100%; scroll-snap-align: start; cursor: zoom-in; }
.pn-gallery .pn-gallery-slide img { display: block; aspect-ratio: 1 / 1; }
/* Previews under the photo: small squares, the visible photo framed in the shop red */
.pn-gallery-thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pn-gallery-thumbs a { display: block; width: 66px; height: 66px; border: 1px solid #e5e7eb; }
.pn-gallery-thumbs a:hover, .pn-gallery-thumbs a.is-current { border-color: #c8160f; }
.pn-gallery .pn-gallery-thumbs img { display: block; width: 64px; height: 64px; }

/* Enlarged view (assets/ponodo-gallery.js): the photo on a white full-screen sheet, product photos have a white background */
.pn-lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; overflow: hidden; }
.pn-lightbox::backdrop { background: #fff; }
/* The page behind does not scroll while the enlarged view is open */
.pn-lightbox-open { overflow: hidden; }
/* Same sideways row as on the page, one photo per screen; a click beside the photo closes the view */
.pn-lightbox-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.pn-lightbox-track::-webkit-scrollbar { display: none; }
.pn-lightbox-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 60px 16px; cursor: zoom-out; }
.pn-lightbox-slide img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: default; }
/* Round buttons: close top right, previous/next at the sides; "Bild 2 von 4" at the bottom */
.pn-lightbox button { position: absolute; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f3f4f6; color: #1f2937; font-size: 28px; line-height: 1; cursor: pointer; }
.pn-lightbox button:hover, .pn-lightbox button:focus { background: #e5e7eb; color: #1f2937; }
.pn-lightbox button:disabled { visibility: hidden; }
.pn-lightbox-close { top: 8px; right: 8px; }
.pn-lightbox-nav { top: 50%; margin-top: -22px; }
.pn-lightbox-prev { left: 8px; }
.pn-lightbox-next { right: 8px; }
.pn-lightbox-count { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 14px; color: #6b7280; pointer-events: none; }
@media (max-width: 900px) {
    /* Phone and tablet: dots instead of previews (photos are swiped); the preview pictures are not loaded there */
    .pn-gallery-thumbs { justify-content: center; gap: 0; margin-top: 4px; }
    .pn-gallery-thumbs a, .pn-gallery-thumbs a:hover, .pn-gallery-thumbs a.is-current { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 0; }
    .pn-gallery-thumbs a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; }
    .pn-gallery-thumbs a.is-current::before { background: #c8160f; }
    .pn-gallery .pn-gallery-thumbs img { display: none; }
    /* Enlarged view on the phone: swipe instead of the side buttons, less empty space around the photo */
    .pn-lightbox-nav { display: none; }
    .pn-lightbox-slide { padding: 56px 0 44px; }
}

/* --- EU energy label on the product page (#121, markup: templates/product.php) --- */
/* The class as an arrow pointing left, like on the EU label; the text beside it names class and scale */
.pn-energy { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 14px; }
.pn-energy-arrow { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 28px; padding: 0 8px 0 18px;
    color: #fff; font-size: 17px; font-weight: 700; line-height: 1; text-shadow: 0 0 2px #000, 0 0 1px #000;
    clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%); }
/* Colours of the EU label from the best class (step 0, dark green) to the worst (step 6, red) of the scale */
.pn-energy-0 { background: #00a651; }
.pn-energy-1 { background: #50b848; }
.pn-energy-2 { background: #bfd730; }
.pn-energy-3 { background: #fff200; }
.pn-energy-4 { background: #fdb913; }
.pn-energy-5 { background: #f37021; }
.pn-energy-6 { background: #ed1c24; }

/* --- Merchant area (#102, markup: templates/merchant.php) --- */
/* Forms: the label stands above its field, fields are as wide as a comfortable line, hints small below */
.pn-form { max-width: 560px; margin: 0 0 24px; }
.pn-form-row { margin: 0 0 14px; }
.pn-form-row label, .pn-form-label { display: block; margin-bottom: 4px; font-weight: 600; }
.pn-form-row input[type="text"], .pn-form-row input[type="url"], .pn-form-row input[type="email"], .pn-form-row textarea, .pn-form-row select { width: 100%; }
.pn-form-check label { font-weight: 400; }
.pn-form-hint { display: block; margin-top: 4px; font-size: 13px; color: #6b7280; }
/* Messages of a form: errors in dark red (contrast 6.5:1 on white), confirmations in a light green box */
.pn-form-error { margin: -6px 0 14px; color: #b91c1c; font-weight: 600; }
.pn-form-ok { padding: 12px 16px; border: 1px solid #a7f3d0; border-radius: 6px; background: #ecfdf5; }
/* Trap field for bots: outside the visible page (people never see or reach it) */
.pn-form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Merchant area, logo (#171): the logo at its full size in a white box, beside it the small size of the result lists */
.pn-logo-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.pn-logo-big { max-width: 100%; height: auto; padding: 8px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; }
.pn-logo-small { display: inline-flex; align-items: center; gap: 8px; }
/* Tables with many columns scroll sideways on a phone instead of widening the page */
.pn-table-wide { display: block; overflow-x: auto; }
/* "Klicks pro Tag" can be opened: a little room before the next heading */
.pn-merchant-area details { margin: 0 0 16px; }

/* --- Gift finder (/geschenkfinder/, includes/class-giftfinder.php): choices as plain links, rows of offers per category --- */
.pn-gift { margin: 8px 0 32px; scroll-margin-top: 90px; }
.pn-gift-group { margin: 0 0 20px; }
.pn-gift-legend { font-weight: 600; margin: 0 0 8px; }
.pn-gift-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pn-gift-chips li { margin: 0; }
.pn-gift-chip { display: inline-block; padding: 9px 16px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; color: #1f2937 !important; text-decoration: none; line-height: 1.2; }
.pn-gift-chip:hover, .pn-gift-chip:focus-visible { border-color: #1f2937; }
.pn-gift-chip.is-on { background: #1f2937; border-color: #1f2937; color: #fff !important; }
.pn-gift-hint { color: #374151; margin: 8px 0 0; }
.pn-gift-note { max-width: 820px; color: #566070; font-size: 15px; margin: 8px 0 24px; }
.pn-gift-row { margin: 0 0 40px; }
.pn-gift-cat { font-size: 22px; margin: 0 0 16px; }
.pn-gift-cat a { color: inherit; text-decoration: none; }
.pn-gift-cat a:hover { text-decoration: underline; }
.pn-gift-more { margin: 14px 0 0; }
@media (max-width: 768px) {
    .pn-gift-chips { gap: 6px; }
    .pn-gift-chip { padding: 7px 12px; font-size: 15px; }
}

/* --- Checklists (/checklisten/, includes/class-checklists.php) --- */
.pn-checklists { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pn-checklists li { margin: 0; padding: 18px 20px; border: 1px solid #e3e6ea; }
.pn-checklists-title { display: block; font-size: 19px; font-weight: 600; margin-bottom: 6px; text-decoration: none; }
.pn-checklists li span { color: #4b5563; font-size: 15px; }
.pn-checklist { max-width: 820px; margin-bottom: 32px; }
.pn-checklist-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
.pn-checklist-count { font-weight: 600; margin-right: 6px; }
.pn-checklist-section { font-size: 22px; margin: 28px 0 10px; }
.pn-checklist-items { list-style: none; margin: 0; padding: 0; }
.pn-checklist-items li { margin: 0; padding: 10px 0; border-bottom: 1px solid #eceef1; }
.pn-checklist-items input { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
.pn-checklist-items input:checked + label { color: #6b7280; text-decoration: line-through; }
.pn-checklist-link { margin-left: 8px; font-size: 14px; white-space: nowrap; }
.pn-checklist-hint { display: block; margin: 4px 0 0 30px; color: #566070; font-size: 14px; }
.pn-checklist-closing { margin: 24px 0 0; padding: 14px 18px; background: #f3f4f6; }
/* Lexicon (/lexikon/, markup: includes/class-lexikon.php) */
.pn-lexikon-list { max-width: 820px; margin: 0 0 32px; }
.pn-lexikon-list dt { margin: 18px 0 2px; font-size: 19px; font-weight: 600; }
.pn-lexikon-list dt a { text-decoration: none; }
.pn-lexikon-list dd { margin: 0; color: #4b5563; }
.pn-lexikon p { margin: 0 0 14px; }
/* Size helpers (/groessenhelfer/, markup: includes/class-sizehelp.php) */
.pn-sizehelp { max-width: 820px; margin-bottom: 32px; }
.pn-sizehelp ul { margin: 0 0 16px; padding-left: 22px; }
.pn-sizehelp li { margin: 0 0 6px; }
.pn-size-table { width: auto; }
.pn-size-table caption { caption-side: top; text-align: left; font-size: 14px; color: #566070; padding: 0 0 6px; }
.pn-size-table thead th { width: auto; background: #f3f4f6; }
.pn-size-table tbody th { width: auto; }
.pn-size-table td { min-width: 7ch; hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 600px) { .pn-size-table { font-size: 14px; } .pn-size-table th, .pn-size-table td { padding: 6px 7px; } }
.pn-size-calc { margin: 0 0 16px; padding: 16px 18px; border: 1px solid #e3e6ea; background: #fafafa; }
.pn-size-calc p { margin: 0 0 10px; }
.pn-size-calc label { display: block; margin-bottom: 4px; font-weight: 600; }
.pn-size-calc input { width: 140px; max-width: 100%; }
.pn-size-result { margin: 4px 0 0 !important; font-weight: 600; }
.pn-sizehelp-cats { margin: 24px 0 0; padding: 14px 18px; background: #f3f4f6; }
.pn-sizehelp-link { margin: 0 0 16px; }
@media print {
    .pn-checklist-link, .pn-checklist-bar button, .site-header, .site-footer, .main-navigation, .pn-gift-note { display: none !important; }
}

/* 0.76.0: calculators (/rechner/), accessory finder, barcode search, fit filter, power costs */
.pn-calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 18px; align-items: end; }
.pn-calc-grid > .pn-calc-wide { grid-column: 1 / -1; }
.pn-size-calc select { max-width: 100%; padding: 6px 8px; }
.pn-size-calc .pn-check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.pn-size-calc .pn-check input { width: auto; }
.pn-calc-unit { color: #566070; font-size: 14px; }
.pn-calc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin-bottom: 10px; }
.pn-calc-set { border: 1px solid #e3e6ea; padding: 10px 14px 4px; margin: 0; background: #fff; }
.pn-calc-set legend { font-weight: 600; padding: 0 6px; }
.pn-calc .pn-size-result { font-weight: 600; line-height: 1.5; }
.pn-calc-go { margin: 0 0 8px; }
.pn-tool-form input[type=text], .pn-scan-form input[type=text] { width: 100%; max-width: 420px; padding: 8px 10px; }
.pn-scan-view { position: relative; max-width: 520px; margin: 0 0 12px; background: #000; line-height: 0; }
.pn-scan-video { width: 100%; max-height: 60vh; object-fit: cover; }
.pn-scan-line { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #c8160f; box-shadow: 0 0 6px rgba(200, 22, 15, .8); }
.pn-scan-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.pn-scan-status:empty { display: none; }
.pn-scan-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e3e6ea; }
.pn-fit .pn-fit-row, .pn-filter-block .pn-fit-row { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.pn-fit-row > span:first-child { flex: 0 0 5.5em; }
.pn-fit-row input[type=number] { width: 84px; min-width: 0; padding: 6px 8px; -moz-appearance: textfield; appearance: textfield; }
.pn-fit-row input::-webkit-inner-spin-button, .pn-fit-row input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pn-fit-row select { flex: 1 1 auto; min-width: 0; padding: 6px 8px; }
.pn-fit .pn-price-go { margin-top: 2px; }
.pn-fits-note { margin: 0 0 16px; padding: 12px 16px; background: #f3f4f6; font-size: 15px; }
.pn-power-note { display: block; color: #6b7280; font-size: 13px; line-height: 1.4; margin-top: 2px; }
.pn-scan-link { margin: 0 0 14px; font-size: 15px; }
.pn-scan [hidden], .pn-calc [hidden], .pn-tool [hidden] { display: none !important; } /* .pn-button sets display and would show a hidden button */
/* Business area "ponodo Gewerbe" (0.90.0): band on every page of the area, net price large, gross smaller beside it */
.pn-b2b-band { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; margin: 24px 0 0; padding: 14px 18px; background: #1f2937; color: #fff; }
.pn-b2b-band-text { margin: 0; font-size: 15px; line-height: 1.45; flex: 1 1 320px; }
.pn-b2b-band-name { color: #fff !important; font-weight: 700; text-decoration: none; margin-right: 6px; }
.pn-b2b-band-name::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: #c8160f; border-radius: 2px; }
.pn-b2b-band { box-sizing: border-box; max-width: 100%; }
.pn-b2b-band-info { color: #fff !important; text-decoration: underline; white-space: nowrap; margin-left: 4px; }
.pn-b2b-price { display: block; }
.pn-b2b-price strong { font-size: 1em; }
.pn-b2b-vat { font-size: 12px; font-weight: 600; color: #374151; }
.pn-b2b-gross { display: block; font-size: 13px; font-weight: 400; color: #4b5563; }
.pn-product-price .pn-b2b-gross { font-size: 15px; margin-top: 2px; }
.pn-product-price .pn-b2b-vat { font-size: 14px; }
.pn-b2b-hint { margin: 0 0 16px; padding: 10px 14px; border-left: 4px solid #1f2937; background: #f3f4f6; font-size: 15px; }
.pn-b2b-intro { max-width: 820px; }
@media (max-width: 600px) { .pn-b2b-band { margin-top: 12px; padding: 12px; } }
/* 0.92.1 (owner 24 Nov 2026: the „Hilfen“ links land „etwas unterhalb“): headings reached by an anchor (#rechner, #hilfen, glossary
   terms) stop below the sticky menu bar (50 px) instead of underneath it */
.entry-content [id] { scroll-margin-top: 80px; }
/* 0.93.0/0.93.2 Ratgeber of ponodo Gewerbe (/gewerbe-ratgeber/): two columns like the consumer Ratgeber (picture, title,
   summary, rubric); one column on phones */
.pn-b2b-ratgeber { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; margin-top: 24px; }
.pn-b2b-ratgeber > p { grid-column: 1 / -1; }
.pn-b2b-ratgeber-item { min-width: 0; }
.pn-b2b-ratgeber-img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 0 14px; }
.pn-b2b-ratgeber-item h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; }
.pn-b2b-ratgeber-item h2 a { color: inherit; text-decoration: none; }
.pn-b2b-ratgeber-item h2 a:hover { text-decoration: underline; }
.pn-b2b-ratgeber-item p { margin: 0 0 10px; }
.pn-b2b-ratgeber-rubric { font-size: 14px; }
@media (max-width: 768px) { .pn-b2b-ratgeber { grid-template-columns: 1fr; } }
/* 0.93.7 business start page: the same distances as the consumer start page (logo 16 px higher than before) */
.separate-containers article.pn-b2b-home-article .inside-article, article.pn-b2b-home-article .inside-article { padding-top: 0; }
.pn-b2b-home-article .entry-content { margin-top: 34px; }
/* 0.94.6 merchant registration: „An wen verkaufst du?“ – two framed choices */
.pn-form-choice { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.pn-form-choice .pn-form-radio { display: block; margin: 8px 0; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-weight: 400; cursor: pointer; }
.pn-form-choice .pn-form-radio input { margin-right: 6px; }
.pn-form-choice .pn-form-radio:has(input:checked) { border-color: #c8160f; background: #fef2f2; }
/* 0.98.27 page „Flüge & Hotels“ ([ponodo_reisen]) */
.pn-travel section { margin: 0 0 44px; }
.pn-travel h2 { margin: 0 0 6px; }
.pn-travel-sub { color: #4b5563; margin: 0 0 18px; }
.pn-travel-hero { background: #f3f4f6; padding: 28px; }
.pn-travel-lead { font-size: 19px; max-width: 760px; margin: 0 0 18px; }
.pn-travel-box { background: #fff; border: 1px solid #e3e6ea; padding: 20px; }
.pn-travel-tabs { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.pn-travel-tab { min-height: 44px; padding: 0 20px; border: 1px solid #d1d5db; background: #fff; color: #1f2937; font: inherit; font-weight: 600; cursor: pointer; }
.pn-travel-tab[aria-pressed="true"] { background: #c8160f; border-color: #c8160f; color: #fff; }
.pn-travel-tab:focus-visible, .pn-travel-tile:focus-visible, .pn-travel-dest:focus-visible { outline: 2px solid #1f2937; outline-offset: 2px; }
.pn-travel-consent p { margin: 0 0 12px; max-width: 760px; }
.pn-travel-consent p:last-child { margin: 0; }
.pn-travel-consent .pn-button { white-space: normal; max-width: 100%; min-height: 44px; box-sizing: border-box; font: inherit; font-weight: 600; }
.pn-travel-widget { min-height: 120px; }
.pn-travel-note { color: #566070; font-size: 14px; margin: 14px 0 0; }
.pn-travel-todo { border: 2px dashed #9ca3af; background: #fafafa; color: #374151; padding: 14px 16px; margin: 12px 0 0; font-size: 15px; }
.pn-travel-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pn-travel-grid li { margin: 0; }
.pn-travel-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pn-travel-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pn-travel-tile, .pn-travel-dest, .pn-travel-steps li { display: block; height: 100%; box-sizing: border-box; padding: 18px 20px; border: 1px solid #e3e6ea; background: #fff; text-decoration: none; color: #1f2937; }
a.pn-travel-tile:hover, a.pn-travel-dest:hover { border-color: #c8160f; }
.pn-travel-tile strong, .pn-travel-dest strong, .pn-travel-steps strong { display: block; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.pn-travel-tile span, .pn-travel-dest span, .pn-travel-steps span { display: block; color: #4b5563; font-size: 15px; }
.pn-travel-tile em { display: block; font-style: normal; font-size: 13px; font-weight: 600; color: #c8160f; margin-bottom: 6px; }
.pn-travel-dest { border-top-width: 6px; }
.pn-travel-dest-1 { border-top-color: #7fb7c9; } .pn-travel-dest-2 { border-top-color: #e3b074; } .pn-travel-dest-3 { border-top-color: #9aa9d6; }
.pn-travel-dest-4 { border-top-color: #9cc48a; } .pn-travel-dest-5 { border-top-color: #d99a9a; } .pn-travel-dest-6 { border-top-color: #b6a0d4; }
.pn-travel-steps { counter-reset: pn-step; }
.pn-travel-steps li { counter-increment: pn-step; }
.pn-travel-steps li::before { content: counter(pn-step); display: block; font-size: 28px; font-weight: 700; color: #c8160f; line-height: 1; margin-bottom: 8px; }
.pn-travel-faq { max-width: 860px; }
.pn-travel-faq details { border: 1px solid #e3e6ea; padding: 0 18px; margin: 0 0 10px; }
.pn-travel-faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 24px; }
.pn-travel-faq details p { margin: 0 0 16px; color: #374151; }
/* 0.99.1 photos: hero with the unmodified partner widget as a card, photo cards */
.pn-travel-hero { position: relative; overflow: hidden; padding: 0; background: #0e7490; color: #fff; }
.pn-travel-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pn-travel-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,47,73,.55), rgba(8,47,73,.25) 60%, rgba(8,47,73,.45)); }
.pn-travel-hero-in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 48px 20px 36px; text-align: center; }
.pn-travel-hero .pn-travel-hero-title { color: #fff; font-size: 38px; line-height: 1.15; margin: 0 0 10px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.pn-travel-hero .pn-travel-lead { color: #fff; margin: 0 auto 24px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.pn-travel-hero .pn-travel-box { text-align: left; border: 0; border-radius: 14px; padding: 22px; box-shadow: 0 14px 40px rgba(0,0,0,.35); color: #1f2937; }
.pn-travel-hero .pn-travel-note { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); font-size: 15px; }
.pn-travel-hero .pn-travel-todo { color: #374151; }
.pn-travel-hero .pn-travel-widget { display: flex; justify-content: center; }
.pn-travel-hero .pn-travel-widget[hidden] { display: none; }
.pn-travel-dest, .pn-travel-tile-pic { position: relative; padding: 0; overflow: hidden; border-radius: 12px; border: 0; aspect-ratio: 4 / 3; background: #0e7490; }
.pn-travel-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.pn-travel-dest:hover .pn-travel-pic, a.pn-travel-tile-pic:hover .pn-travel-pic { transform: scale(1.06); }
.pn-travel-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,0)); color: #fff; }
.pn-travel-dest .pn-travel-cap strong, .pn-travel-tile-pic .pn-travel-cap strong { color: #fff; font-size: 22px; margin: 0 0 2px; }
.pn-travel-dest .pn-travel-cap span, .pn-travel-tile-pic .pn-travel-cap span { color: #fff; font-size: 14px; }
.pn-travel-tile-pic .pn-travel-cap strong { font-size: 18px; }
.pn-travel-dest { border-top-width: 0; box-shadow: 0 6px 18px rgba(15,23,42,.15); }
.pn-travel h2 { font-size: 28px; }
.pn-travel-steps li::before { color: #0e7490; }
.pn-travel-credit { font-size: 13px; color: #566070; margin: -20px 0 0; }
@media (max-width: 900px) { .pn-travel-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .pn-travel-hero-in { padding: 28px 12px 24px; }
    .pn-travel-hero .pn-travel-hero-title { font-size: 28px; }
    .pn-travel-hero .pn-travel-box { padding: 16px; }
    .pn-travel-grid-3, .pn-travel-grid-4 { grid-template-columns: 1fr; }
}
/* 0.98.28 calculators: result as a list, questions and answers */
.pn-calc div.pn-size-result ul { margin: 6px 0 0 20px; padding: 0; font-weight: 400; }
.pn-calc div.pn-size-result li { margin: 0 0 2px; }
.pn-calc-faq { max-width: 860px; margin: 0 0 20px; }
.pn-calc-faq details { border: 1px solid #e3e6ea; padding: 0 18px; margin: 0 0 10px; }
.pn-calc-faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.pn-calc-faq details p { margin: 0 0 16px; color: #374151; }
