/* Gemeinsame Darstellung der Sortiments-Unterseiten. */
.sortiment-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 18px 48px; box-sizing: border-box; }
.sortiment-card { background: #d8e292; border-radius: 18px; overflow: hidden; box-shadow: 0 5px 18px rgba(37,63,0,.18); }
.sortiment-hero { position: relative; height: 399px; margin: 0; overflow: hidden; background: #d8e292; }
.sortiment-hero img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.sortiment-copy { padding: 24px; color: #253f00; line-height: 1.55; }
.sortiment-copy h2 { margin: 0 0 12px; color: #253f00; }
.sortiment-copy h3 { margin: 24px 0 8px; }
.sortiment-copy ul { padding-left: 24px; }
.sortiment-copy a { color: #274f18; font-weight: 700; }
.sortiment-copy-columns { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 14px; }
.sortiment-copy-block { padding: 18px; border-radius: 12px; background: rgba(255,255,255,.35); }
.sortiment-copy-block h2 { font-size: 1.25rem; }
.apfel-detail-layout { position: relative; display: grid; grid-template-columns: minmax(280px,420px) minmax(0,1fr); gap: 24px; align-items: start; padding: 24px; }
.apfel-detail-layout .sortiment-copy { position: relative; grid-column: 2; grid-row: 1; padding: 0; }
.apfel-detail-layout.apfel-neu-detail { grid-template-columns: minmax(0,1fr); }
.apfel-detail-layout.apfel-neu-detail .sortiment-copy { grid-column: 1; }
.apfel-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.apfel-list-heading h2 { margin-bottom: 0; }
.apfel-add-form { margin: 0; }
.apfel-add-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #aabd25; color: #0c3e00; font-size: 28px; line-height: 1; text-decoration: none; }
.apfel-add-button:hover, .apfel-add-button:focus-visible { background: #0c3e00; color: #fff; }
.apfel-detail-layout .sortiment-copy h2 { padding-right: 42px; }
.apfel-detail-images { display: grid; grid-column: 1; grid-row: 1; gap: 14px; }
.apfel-detail-images .sortiment-thumb img { aspect-ratio: auto; max-height: 560px; }
.apfel-detail-image-item { position: relative; display: grid; gap: 8px; }
.apfel-photo-upload-date { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 3px 6px; border-radius: 5px; background: rgba(35,55,27,.78); color: #fff; font-size: 10px; line-height: 1.2; pointer-events: none; }
.apfel-detail-close { position: absolute; z-index: 2; top: 0; right: 0; padding: 0; border: 0; background: transparent; color: #0d3d00; font-size: 32px; line-height: 1; cursor: pointer; }
.apfel-detail-close:hover, .apfel-detail-close:focus-visible { color: #000; }
.apfel-admin-panel { margin: 0 0 20px; border: 1px solid #739250; border-radius: 12px; background: #d1deb5; }
.apfel-admin-panel summary, .apfel-row-editor summary { padding: 10px 12px; color: #0d3d00; cursor: pointer; font-weight: 700; }
.apfel-admin-panel form, .apfel-row-editor form, .apfel-image-upload-form { display: grid; gap: 12px; padding: 12px; }
.apfel-admin-panel label, .apfel-row-editor label, .apfel-image-upload-form label { display: grid; gap: 5px; font-weight: 700; }
.apfel-admin-panel input, .apfel-admin-panel textarea, .apfel-row-editor input, .apfel-row-editor textarea, .apfel-image-upload-form input { width: 100%; padding: 9px 10px; border: 1px solid #739250; border-radius: 8px; background: #fff; color: #253f00; font: inherit; }
.apfel-admin-panel textarea, .apfel-row-editor textarea { resize: vertical; }
.apfel-admin-panel button, .apfel-row-editor button, .apfel-image-upload-form button, .apfel-image-delete-form button { padding: 9px 14px; border: 0; border-radius: 20px; background: #aabd25; color: #fff; cursor: pointer; font-size: 17px; font-weight: 700; }
.apfel-admin-panel button:hover, .apfel-admin-panel button:focus-visible, .apfel-row-editor button:hover, .apfel-row-editor button:focus-visible, .apfel-image-upload-form button:hover, .apfel-image-upload-form button:focus-visible { background: #0c3e00; }
.apfel-admin-cell { min-width: 190px; }
.apfel-row-editor { color: #253f00; }
.apfel-row-editor form { min-width: 320px; }
.apfel-admin-link { display: inline-block; margin: 4px 12px 12px; }
.apfel-detail-editor { margin-top: 20px; }
.apfel-detail-editor .sortiment-copy { padding: 20px; }
.apfel-image-delete-form { text-align: center; }
.apfel-image-delete-form button { background: #8a3d2f; }
.apfel-image-delete-form .delete-photo-btn { position: absolute; top: 8px; right: 8px; z-index: 20; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #000; cursor: pointer; font-size: 0; font-weight: normal; line-height: 1; }
.apfel-image-delete-form .delete-photo-btn svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.apfel-image-delete-form .delete-photo-btn:hover, .apfel-image-delete-form .delete-photo-btn:focus-visible { background: transparent; }
.apfel-image-delete-form .delete-photo-box { position: absolute; top: 53px; right: 8px; z-index: 21; width: 220px; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.66); box-shadow: 0 2px 8px rgba(0,0,0,.25); text-align: left; }
.apfel-image-delete-form .delete-photo-ok { width: 100%; margin-top: 8px; padding: 10px 12px; border: 0; border-radius: 6px; background: #dd0000; color: #fff; cursor: pointer; font-size: 16px; font-weight: normal; line-height: 1.4; }
.apfel-image-upload-form { display: block; margin-top: 10px; padding: 10px; border: 1px dashed #739250; border-radius: 12px; background: rgba(255,255,255,.28); text-align: center; }
.apfel-image-upload-title { margin: 0 0 12px; color: #253f00; font-weight: 700; }
.apfel-image-upload-form .apfel-upload-button { width: 100%; max-width: 280px; padding: 10px 15px; border: none; border-radius: 24px; background: #aabd25; color: #fff; cursor: pointer; font-size: 24px; font-weight: normal; }
.apfel-image-upload-form .apfel-upload-button + .apfel-upload-button { margin-top: 10px; }
.apfel-image-upload-form .apfel-upload-button:hover, .apfel-image-upload-form .apfel-upload-button:focus-visible { background: #0c3e00; }
.apfel-points-editor { margin-top: 16px; border: 1px solid #739250; border-radius: 12px; background: rgba(255,255,255,.28); }
.apfel-points-editor summary { padding: 10px 12px; color: #0d3d00; cursor: pointer; font-weight: 700; }
.apfel-points-editor form { display: grid; gap: 12px; padding: 12px; }
.apfel-points-editor label { display: grid; gap: 5px; font-weight: 700; }
.apfel-points-editor textarea { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #739250; border-radius: 8px; background: #fff; color: #253f00; font: inherit; resize: vertical; }
.apfel-points-editor button { padding: 9px 14px; border: 0; border-radius: 20px; background: #aabd25; color: #fff; cursor: pointer; font-weight: 700; }
.apfel-points-editor button:hover, .apfel-points-editor button:focus-visible { background: #0c3e00; }
.apfel-inline-points-editor { display: block; }
.apfel-name-editor { display: block; box-sizing: border-box; margin: 0 76px 12px 0; }
.apfel-reifezeit-editor { display: grid; gap: 5px; max-width: 256px; margin: 0 0 16px 41px; color: #253f00; font-weight: 700; }
.apfel-name-editor + .apfel-reifezeit-editor { margin-top: -16px; }
.apfel-reifezeit-editor select { width: 100%; min-height: 36px; padding: 5px 8px; border: 1px solid #739250; border-radius: 7px; background: rgba(255,255,255,.72); color: #253f00; font: inherit; }
.apfel-name-editor span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.apfel-name-editor input, .apfel-name-editor textarea { width: 100%; min-width: min(256px,100%); box-sizing: border-box; padding: 0; border: 0; background: transparent; color: #253f00; font: inherit; font-size: 1.5em; font-weight: 700; line-height: 1.2; resize: none; }
.apfel-ai-button { position: absolute; z-index: 2; top: 1px; right: 40px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #aabd25; color: #0c3e00; cursor: pointer; line-height: 1; }
.apfel-ai-button svg { width: 18px; height: 18px; fill: currentColor; }
.apfel-ai-button:hover, .apfel-ai-button:focus-visible { background: #0c3e00; color: #fff; }
.apfel-ai-button:disabled { cursor: wait; opacity: .75; }
.apfel-inline-points-editor ul { margin-bottom: 14px; }
.apfel-point-editor-row { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.apfel-point-editor-row::before { content: "•"; flex: 0 0 auto; color: #253f00; font-size: 20px; line-height: 1; }
.apfel-point-editor-row input, .apfel-point-editor-row textarea { flex: 1 1 auto; width: 100%; min-width: 256px; min-height: 34px; box-sizing: border-box; padding: 5px 8px; border: 1px solid #739250; border-radius: 7px; background: rgba(255,255,255,.72); color: #253f00; font: inherit; line-height: 1.35; resize: none; overflow: hidden; }
.apfel-point-editor-row.is-ai-suggestion textarea { background: #d8edb9; }
.apfel-point-drag-handle { align-self: stretch; flex: 0 0 22px; width: 22px; min-height: 34px; padding: 0; border: 1px solid #739250; border-radius: 2px; background: #d1deb5; color: #253f00; cursor: grab; font-size: 16px; line-height: 1; touch-action: none; }
.apfel-point-drag-handle:active { cursor: grabbing; }
.apfel-point-editor-row.is-dragging { opacity: .72; pointer-events: none; }
.apfel-point-sort-placeholder { box-sizing: border-box; margin-right: 28px; margin-bottom: 7px; margin-left: 18px; border: 2px dashed #789236; border-radius: 7px; background: transparent; list-style: none; }
body.apfel-point-sorting-active,
body.apfel-point-sorting-active * { user-select: none !important; -webkit-user-select: none !important; -webkit-touch-callout: none !important; -webkit-tap-highlight-color: transparent !important; }
.apfel-inline-points-editor button { padding: 9px 14px; border: 0; border-radius: 20px; background: #aabd25; color: #fff; cursor: pointer; font-size: 17px; font-weight: 700; }
.apfel-inline-points-editor button[type="submit"] { display: block; margin-left: auto; margin-right: auto; }
.apfel-delete-form { position: relative; margin-top: 18px; text-align: center; }
.apfel-delete-button { padding: 9px 14px; border: 0; border-radius: 20px; background: #8a3d2f; color: #fff; cursor: pointer; font-size: 17px; }
.apfel-delete-box { position: absolute; z-index: 30; left: 50%; width: min(280px, 90vw); padding: 12px; border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 2px 8px rgba(0,0,0,.25); color: #253f00; text-align: left; transform: translateX(-50%); }
.apfel-delete-box p { margin: 0 0 10px; }
.apfel-delete-box input, .apfel-delete-box button { box-sizing: border-box; width: 100%; padding: 9px 10px; }
.apfel-delete-box button { margin-top: 8px; border: 0; border-radius: 6px; background: #dd0000; color: #fff; cursor: pointer; }
.apfel-inline-points-editor button:hover, .apfel-inline-points-editor button:focus-visible { background: #0c3e00; }
.apfel-inline-points-editor .apfel-point-drag-handle { align-self: stretch; flex: 0 0 22px; width: 22px; min-height: 34px; padding: 0; border: 1px solid #739250; border-radius: 4px; background: #d1deb5; color: #253f00; cursor: grab; font-size: 16px; font-weight: normal; line-height: 1; touch-action: none; }
.apfel-inline-points-editor .apfel-point-drag-handle:hover, .apfel-inline-points-editor .apfel-point-drag-handle:focus-visible { background: #bdca72; color: #253f00; }
.sortiment-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 16px; padding: 0 24px 24px; }
.sortiment-copy .apfel-list-thumbnails { padding: 0 0 24px; }
.sortiment-thumb { display: block; border-radius: 12px; overflow: hidden; background: #bdca72; cursor: pointer; }
.sortiment-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s ease; }
.sortiment-grid-original-ratio { grid-template-columns: repeat(2,minmax(0,320px)); justify-content: center; }
.sortiment-grid-original-ratio .sortiment-thumb img { height: auto; aspect-ratio: auto; object-fit: contain; }
.sortiment-thumb:hover img, .sortiment-thumb:focus img { transform: scale(1.025); }
.sortiment-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sortiment-table { width: 100%; border-collapse: collapse; min-width: 720px; background: #ddd; }
.sortiment-table th, .sortiment-table td { padding: 9px 10px; text-align: left; vertical-align: top; }
.sortiment-table tr:first-child { background: #0c3e00; color: #fff; }
.sortiment-table tr:nth-child(even) { background: #cddc7a; color: #26351f; }
.sortiment-table tr:nth-child(odd):not(:first-child) { background: #e6f19a; color: #26351f; }
.sortiment-table a { color: inherit; }
.sortiment-table td a {
  position: relative;
  display: inline-block;
  padding-left: 16px;
  text-decoration: none;
}
.sortiment-table td a::before {
  content: "▸";
  position: absolute;
  left: 0;
  transform: translateY(-2px);
  color: red;
  font-size: 22px;
  line-height: 1;
}
.sortiment-table td a.mit-foto::before { color: blue; }
.sortiment-downloads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 36px; list-style: none; padding: 0; margin: 0; }
.sortiment-downloads a { display: inline-flex; align-items: center; gap: 8px; }
.sortiment-downloads img { width: 20px; height: auto; }
.sortiment-downloads span { color: #52613a; }
.sortiment-overlay[hidden] { display: none; }
.sortiment-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.78); opacity: 0; transition: opacity .22s ease; }
.sortiment-overlay.is-open { opacity: 1; }
.sortiment-overlay-inner { position: relative; max-width: min(1100px,96vw); max-height: 92vh; }
.sortiment-overlay img { display: block; max-width: 100%; max-height: 88vh; border-radius: 14px; }
.sortiment-overlay-caption { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 6px; background: rgba(12,62,0,.82); color: #fff; font-weight: 700; text-decoration: none; }
.sortiment-overlay-caption:hover, .sortiment-overlay-caption:focus-visible { background: #aabd25; color: #000; }
.sortiment-overlay-close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #253f00; font-size: 30px; line-height: 1; cursor: pointer; }
body.sortiment-overlay-open { overflow: hidden; }
@media (max-width: 1195px) {
  .sortiment-hero { height: calc(34.7368vw - 15.6316px); }
}
@media (max-width: 600px) {
  .sortiment-main { padding: 25px 10px 34px; }
  .sortiment-copy { padding: 18px 15px; }
  .apfel-detail-layout { grid-template-columns: 1fr; gap: 16px; padding: 18px 15px; }
  .apfel-detail-layout .sortiment-copy { grid-column: auto; grid-row: auto; width: 100%; min-width: 0; box-sizing: border-box; padding-right: 24px; }
  .apfel-name-editor input, .apfel-name-editor textarea { min-width: 0; }
  .apfel-inline-points-editor button[type="submit"] { margin-bottom: 14px; }
  .apfel-detail-images { grid-column: auto; grid-row: auto; }
  .sortiment-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 0 15px 18px; }
  .sortiment-copy .apfel-list-thumbnails .sortiment-thumb:nth-child(n+3) { display: none; }
  .sortiment-grid-original-ratio { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sortiment-overlay { padding: 10px; }
  .sortiment-downloads { grid-template-columns: 1fr; gap: 10px; }
  .sortiment-page .standard-hero-text h1.sortiment-title-long { font-size: 30px; }
  .sortiment-table { min-width: 0; border-collapse: separate; border-spacing: 0 10px; background: transparent; }
  .sortiment-table tr:first-child { display: none; }
  .sortiment-table tr { display: block; padding: 8px 0; border-radius: 10px; overflow: hidden; }
  .sortiment-table td { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 8px; padding: 5px 10px; overflow-wrap: anywhere; }
  .sortiment-table td::before { font-weight: 700; color: #0c3e00; }
  .sortiment-table td:nth-child(1)::before { content: "Name"; }
  .sortiment-table td:nth-child(2)::before { content: "Reifezeit"; }
  .sortiment-table td:nth-child(3)::before { content: "Text"; }
  .sortiment-table td:nth-child(4)::before { content: "Bearbeiten"; }
  .apfel-row-editor form { min-width: 0; }
}
