/* Long preference names in the privacy notice must fit a narrow reading column. */
.prose code { overflow-wrap: anywhere; }

/* Publication catalogue */
.editions { margin-block: 0 var(--section-space); }
.editions-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 20px; }
.editions-heading h2, .founders h2, .enquiry h2 { font-size: clamp(28px,3.4vw,47px); line-height: 1.08; }
.editions-heading .overline, .enquiry .overline { margin-bottom: 7px; }
.editions-heading > p, .book-release { max-width: 38ch; color: var(--muted); font-size: 14px; }
.book-release { margin: 16px 0 4px; border-inline-start: 3px solid var(--brand-accent); padding-inline-start: 12px; }
.series-intro .text-link { margin-top: 12px; }
.edition-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(10px,1.5vw,24px); }
.editions > .text-link { margin-top: 22px; }
.edition-card { display: block; min-width: 0; }
.edition-card:hover h3, .guide-paths a:hover strong, .founder-caption a:hover { text-decoration: underline; text-underline-offset: 3px; }
.book-pair {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4/5;
  background: var(--pixel-paper), linear-gradient(145deg,#e4e4ec,#ecebe6 80%);
}
.book-pair[data-edition="alltag"] { background-color: #e9e1d6; background-image: var(--pixel-paper); }
.book-pair[data-edition="informatik"] { background-color: #dce0e6; background-image: var(--pixel-paper); }
.book-pair[data-edition="technik"] { background-color: #d9d8e7; background-image: var(--pixel-paper); }
.book-pair[data-edition="mathematik"] { background-color: #e6e3d8; background-image: var(--pixel-paper); }
.book-front { width: 64%; aspect-ratio: 2/3; box-shadow: -2px 2px 0 #989997, -4px 4px 0 #d4d1c9, -6px 7px 13px #29273735; }
.book-app { position: absolute; right: 8%; bottom: 8%; width: 25%; border-radius: 22%; box-shadow: 0 4px 8px #0b0d1036; }
.edition-caption { margin-block: 12px 4px; }
.edition-caption small, .guide-paths small { font-size: 12px; color: var(--signal-text); font-weight: 650; }
.edition-caption h3 { font-size: clamp(16px,1.65vw,23px); line-height: 1.16; margin: 4px 0 8px; letter-spacing: -.035em; }
.edition-caption p, .guide-paths small { line-height: 1.45; }
.edition-caption p { color: var(--muted); font-size: 14px; }
.edition-detail figcaption { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 7px; font-size: 13px; color: var(--signal-text); }
.edition-detail figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.edition-detail .book-pair { aspect-ratio: auto; height: clamp(220px,25vw,315px); }
.series-header .book-front { height: 80%; width: auto; max-height: 250px; }
.series-header .book-app { bottom: 11%; width: clamp(52px,6vw,82px); right: max(10%,calc(50% - 125px)); }

/* Founders in the studio’s pixel illustration style. */
.founders { margin-bottom: var(--section-space); }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px,3vw,40px); margin-top: 19px; }
.founder-frame { position: relative; isolation: isolate; overflow: hidden; background: #f3f1ed; }
.founder-frame img { width: 100%; height: 100%; object-fit: contain; }
.founder-frame .founder-character { aspect-ratio: 1.47; max-height: 390px; }
.founder-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 15px; margin-top: 10px; }
.founder-caption h3 { font-size: clamp(20px,2.2vw,31px); }
.founder-caption a { color: var(--signal-text); text-underline-offset: 3px; font-size: 14px; }
.guide-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.guide-paths a { display: grid; gap: 5px; align-content: start; padding: clamp(14px,2vw,26px); border-top: 3px solid var(--brand-accent); background: #ebeaf4 var(--pixel-paper); }
.guide-paths a:last-child { border-color: var(--brand-slate); background-color: #e9e8e3; }
.guide-paths strong { font: 600 clamp(17px,1.8vw,24px)/1.25 var(--font-title); }
.guide-paths strong span { white-space: nowrap; }
.enquiry { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(20px,5vw,72px); padding: clamp(18px,4vw,48px); background: #eae9f1 var(--pixel-paper); margin: 10px 0 32px; }
.enquiry > div > p:last-child { margin-top: 14px; max-width: 42ch; color: var(--muted); }
.enquiry form { display: grid; gap: 6px; }
.enquiry label { font-weight: 650; }
.enquiry label:not(:first-child) { margin-top: 10px; }
.enquiry label small { font-weight: 400; }
.enquiry :is(select,textarea) { width: 100%; max-width: 100%; min-width: 0; border: 1px solid #8a8d95; border-radius: 3px; background: white; color: var(--brand); padding: 10px; font: inherit; }
.enquiry textarea { resize: vertical; }
.enquiry form p, .enquiry form small { font-size: 13px; color: var(--muted); }
.enquiry .btn { justify-self: start; margin-block: 7px; }
.enquiry a, .partner-foot button, .privacy-note a { text-decoration: underline; text-underline-offset: 3px; }
.partner-foot { display: grid; grid-template-columns: minmax(110px,.6fr) minmax(0,1.9fr) auto; gap: clamp(12px,3vw,38px); align-items: center; border-block-start: 1px solid #d1d1d6; margin-top: 26px; padding-top: 20px; }
.partner-foot img { width: 134px; }
.partner-foot p { color: var(--muted); font-size: 13px; max-width: 68ch; }
.partner-foot button { font: inherit; font-size: 13px; border: 0; background: transparent; color: var(--brand); padding: 8px 0; justify-self: start; cursor: pointer; }
.privacy-note { padding: 15px 0 22px; border-top: 1px solid var(--line); color: var(--ink); }
.privacy-note:not([hidden]) { display: flex; justify-content: space-between; align-items: center; gap: 10px 28px; flex-wrap: wrap; }

.privacy-note strong { font: 650 17px/1.3 var(--font-title); }
.privacy-note p { margin: 5px 0 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.privacy-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 5px; }
.privacy-note a { font-size: 13px; }
.privacy-actions .btn { font-size: 13px; padding-block: 8px; }
.pixel-intro, [hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .edition-card .book-front { transition: transform .25s ease-out; }
  .edition-card:is(:hover,:focus-visible) .book-front { transform: translateY(-4px) rotate(-1deg); }

}
@media (max-width: 959px) { .edition-grid { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 22px; } }
@media (max-width: 700px) {
  .edition-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .editions-heading { align-items: start; flex-direction: column; gap: 8px; }
  .editions-heading > p { max-width: 52ch; }
  .founder-grid, .enquiry { grid-template-columns: 1fr; }
  .guide-paths { grid-template-columns: 1fr; gap: 8px; }
  .partner-foot { grid-template-columns: 1fr; }
}
@media print { .pixel-intro, .privacy-note, .enquiry { display: none !important; } }
