/* Newsdesk preset: Schulheft – lined paper, polaroids with tape, handwriting, stamps */
.ndk--schulheft { --ndk-radius: 0; --d-sketch: 255px 15px 225px 15px / 15px 225px 15px 255px; }
.ndk-d-title, .ndk-d-cap, .ndk-d-sh-title, .ndk-d-pencil, .ndk-d-sticky-title, .ndk-d-n, .ndk-d-btn, .ndk-d-itab, .ndk-d-stamp, .ndk-d-pn span, .ndk-d-crumb, .ndk--schulheft .ndk-content h2, .ndk--schulheft .ndk-content h3, .ndk--schulheft .ndk-content blockquote { font-family: var(--ndk-font-display); font-weight: 700; }
.ndk-d-paper { background-image: linear-gradient(var(--ndk-line) 1px, transparent 1px); background-size: 100% 32px; padding-bottom: 64px; }
.ndk-d-mark { background: linear-gradient(transparent 55%, var(--ndk-accent) 55%, var(--ndk-accent) 90%, transparent 90%); padding-inline: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ndk-d-pencil { display: inline-block; margin: 0; font-size: 22px; color: var(--ndk-muted); transform: rotate(-2deg); }

/* Polaroid + tape */
.ndk-d-polaroid { position: relative; display: block; margin: 0; padding: 12px 12px 14px; background: var(--ndk-surface); box-shadow: 0 2px 4px rgba(35, 50, 74, .08), 0 14px 30px rgba(35, 50, 74, .14); }
.ndk-d-photo { width: 100%; aspect-ratio: 4 / 3; height: auto !important; object-fit: cover; }
.ndk-d-tape::before { content: ""; position: absolute; z-index: 2; top: -13px; left: 50%; width: 100px; height: 26px; background: var(--tape, var(--ndk-accent)); opacity: .88; transform: translateX(-50%) rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.ndk-d-cap { display: block; margin: 10px 0 0; font-size: 22px; line-height: 1.15; }
.ndk-d-label { display: inline-block; padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ndk-text); transform: rotate(-2deg); }
.ndk-d-stamp { position: absolute; z-index: 3; right: -14px; top: -16px; width: 84px; height: 84px; display: inline-flex; align-items: center; justify-content: center; border: 3px solid var(--ndk-primary); border-radius: 50%; background: color-mix(in srgb, var(--ndk-bg) 85%, transparent); color: var(--ndk-primary); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-12deg); }

/* Hero */
.ndk-d-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px; align-items: center; padding-block: 32px 48px; }
.ndk-d-title { font-size: clamp(40px, 5.6vw, 70px); line-height: 1.05; margin: 6px 0 16px; }
.ndk-d-intro { max-width: 480px; margin: 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; }
.ndk-d-hero-pic { justify-self: center; width: 100%; max-width: 440px; transform: rotate(2deg); }

/* Index tabs + search */
.ndk-d-tabsrow { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; margin-bottom: 44px; border-bottom: 2px solid var(--ndk-text); }
.ndk-d-itabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ndk-d-itab { padding: 10px 16px 8px; border: 2px solid var(--ndk-text); border-bottom: 0; border-radius: 12px 12px 0 0; font-size: 17px; transition: transform .15s; }
.ndk-d-itab:hover, .ndk-d-itab[aria-current="page"] { transform: translateY(-6px); box-shadow: 0 6px 0 var(--ndk-text); }
.ndk-d-search { margin: 0 0 8px auto; display: flex; align-items: center; gap: 8px; width: min(240px, 100%); padding: 6px 2px; border-bottom: 2px dashed var(--ndk-text); }
.ndk-d-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 16px; padding: 0; box-shadow: none; }
.ndk-d-result { margin: -20px 0 28px; font-weight: 700; }

/* Grid */
.ndk-d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 48px 34px; }
.ndk-d-card { transform: rotate(var(--rot, 0deg)); transition: transform .2s; }
.ndk-d-card:hover { transform: rotate(0) scale(1.02); }
.ndk-d-card--big { grid-column: span 2; }
.ndk-d-card .ndk-d-cap { font-size: 24px; }
.ndk-d-card--big .ndk-d-cap { font-size: 32px; }
.ndk-d-ex { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; }
.ndk-d-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--ndk-muted); }
.ndk-d-btn { display: inline-flex; gap: 10px; align-items: center; padding: 12px 28px; border: 2px solid var(--ndk-text); border-radius: var(--d-sketch); background: var(--ndk-surface); font-size: 21px; }
.ndk-d-btn--small { margin-left: auto; padding: 6px 16px; font-size: 17px; }

/* Most read sticky note */
.ndk-d-bottom { padding-top: 56px; }
.ndk-d-sticky { max-width: 520px; padding: 26px 28px; background: var(--ndk-note); transform: rotate(-1.2deg); box-shadow: 0 14px 28px rgba(35, 50, 74, .12); }
.ndk-d-sticky-title { font-size: 30px; margin-bottom: 10px !important; }
.ndk-d-sticky ol { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ndk-d-sticky a { display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 1.3; }
.ndk-d-sticky .ndk-views { display: block; font-size: 13px; color: var(--ndk-muted); }
.ndk-d-n { font-size: 28px; width: 28px; }

/* Single */
.ndk-d-page { position: relative; }
.ndk-d-page::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(10px, 5vw, 72px); width: 2px; background: var(--ndk-margin); pointer-events: none; }
.ndk-d-sh { position: relative; max-width: 900px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 0; }
.ndk-d-crumb { font-size: 18px; color: var(--ndk-muted); margin-bottom: 12px; }
.ndk-d-sh-title { font-size: clamp(40px, 5.8vw, 68px); line-height: 1.05; margin: 12px 0 14px; }
.ndk-d-lead { margin: 0; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.6; }
.ndk-d-shmeta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; font-size: 15px; color: var(--ndk-muted); }
.ndk-d-shmeta > span { display: inline-flex; gap: 6px; align-items: center; }
.ndk-d-pencil-ico { width: 22px; height: 22px; }
.ndk-d-shpic { max-width: 980px; margin: 36px auto 0; padding-inline: clamp(16px, 4vw, 40px); }
.ndk-d-shpic .ndk-d-polaroid { transform: rotate(-1deg); }
.ndk-d-shpic .ndk-d-photo { aspect-ratio: auto; height: clamp(220px, 36vw, 460px) !important; }
.ndk-d-body { max-width: 760px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 0; }
.ndk-d-content { font-size: 18px; line-height: 32px; }
.ndk--schulheft .ndk-content > * { margin-block: 0 32px; }
.ndk--schulheft .ndk-content h2 { font-size: 32px; line-height: 40px; margin-bottom: 16px; }
.ndk--schulheft .ndk-content blockquote { margin-block: 40px; padding: 24px 28px 20px; border: 0; background: var(--ndk-note); transform: rotate(1.5deg); box-shadow: 0 12px 24px rgba(35, 50, 74, .12); font-size: 28px; line-height: 1.25; }
.ndk--schulheft .ndk-content blockquote p { margin: 0; }
.ndk--schulheft .ndk-content blockquote cite { display: block; margin-top: 8px; font-family: var(--ndk-font-body); font-weight: 400; font-style: normal; font-size: 15px; color: var(--ndk-muted); }
.ndk--schulheft .ndk-content .wp-block-gallery figure, .ndk--schulheft .ndk-content .gallery-item { background: var(--ndk-surface); padding: 8px 8px 22px; box-shadow: 0 10px 20px rgba(35, 50, 74, .14); }
.ndk--schulheft .ndk-content .wp-block-gallery figure:nth-child(odd) { transform: rotate(-2deg); }
.ndk--schulheft .ndk-content .wp-block-gallery figure:nth-child(even) { transform: rotate(2deg); }
.ndk-d-pn { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; max-width: 980px; margin: 56px auto 0; padding-inline: clamp(16px, 4vw, 40px); }
.ndk-d-pn a { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px; border: 2px solid var(--ndk-text); background: linear-gradient(225deg, var(--ndk-bg) 22px, color-mix(in srgb, var(--ndk-line) 70%, var(--ndk-muted)) 22px, color-mix(in srgb, var(--ndk-line) 70%, var(--ndk-muted)) 30px, var(--ndk-surface) 30px); }
.ndk-d-pn small { font-size: 14px; color: var(--ndk-muted); }
.ndk-d-pn span { font-size: 24px; line-height: 1.15; }
.ndk-d-pn-next { text-align: right; }
.ndk-d-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 40px; max-width: 980px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 40px) 0; }
.ndk-d-rel .ndk-d-ex, .ndk-d-rel .ndk-d-meta { display: none; }

@media (max-width: 760px) {
	.ndk-d-card--big { grid-column: auto; }
	.ndk-d-itabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-top: 8px; }
	.ndk-d-itab { flex-shrink: 0; }
	.ndk-d-tabsrow { border-bottom: 0; }
	.ndk-d-search { margin-left: 0; width: 100%; }
	.ndk-d-btn--small { margin-left: 0; }
}

/* ---------- Module: carousel ---------- */
.ndk-d-car { padding: clamp(20px, 4vw, 40px) clamp(12px, 3vw, 32px) 40px; }
.ndk-d-car-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.ndk-d-car-title { margin: 0 !important; font-size: clamp(32px, 4.6vw, 56px); }
.ndk-d-arrows { display: flex; gap: 12px; margin-left: auto; }
.ndk-d-arrows button { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ndk-text); border-radius: var(--d-sketch); background: var(--ndk-surface); }
.ndk-d-arrows .ndk-d-arrows-dark { background: var(--ndk-text); color: var(--ndk-bg); }
.ndk-d-car-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 48px); align-items: center; }
.ndk-d-deck { position: relative; height: 440px; }
.ndk-d-deck-card { position: absolute; inset: 20px 30px 30px 20px; opacity: 0; pointer-events: none; transform: rotate(4deg) translate(30px, 10px); transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.ndk-d-deck-card .ndk-d-photo, .ndk-d-deck-card .ndk-noimg { height: calc(100% - 52px) !important; aspect-ratio: auto; }
.ndk-d-deck-card[data-pos="0"] { z-index: 3; opacity: 1; pointer-events: auto; transform: rotate(-2deg); }
.ndk-d-deck-card[data-pos="1"] { z-index: 2; opacity: 1; transform: rotate(6deg) translate(16px, 4px); }
.ndk-d-deck-card[data-pos="2"] { z-index: 1; opacity: 1; transform: rotate(-6deg) translate(-8px, 12px); }
.ndk-d-note { position: relative; display: none; flex-direction: column; gap: 12px; padding: 30px 30px 26px; background: var(--ndk-note); box-shadow: 0 14px 28px rgba(35, 50, 74, .14); transform: rotate(1.5deg); }
.ndk-d-note[data-pos="0"] { display: flex; animation: ndkDNote .45s ease; }
.ndk-d-note-title { font-family: var(--ndk-font-display); font-weight: 700; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.1; }
.ndk-d-note p { margin: 0; font-size: 16px; line-height: 1.55; }
.ndk-d-note .ndk-d-meta { margin-top: 0; }
.ndk-d-link { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; border-bottom: 2px solid var(--ndk-text); font-family: var(--ndk-font-display); font-weight: 700; font-size: 21px; }
.ndk-d-tabs { display: flex; flex-direction: column; gap: 6px; }
.ndk-d-tabs button { min-height: 40px; padding: 8px 14px; border: 2px solid var(--ndk-text); border-left: 0; border-radius: 0 12px 12px 0; color: var(--ndk-text); font-family: var(--ndk-font-display); font-weight: 700; font-size: 16px; transition: transform .2s; }
.ndk-d-tabs button[aria-current="true"] { box-shadow: 3px 3px 0 var(--ndk-text); transform: translateX(10px); }
.ndk-d-car-all { margin: 24px 0 0; }
.ndk-d-paper--module { padding-bottom: 24px; }
@keyframes ndkDNote { from { opacity: .2; transform: translateY(10px) rotate(1.5deg); } to { opacity: 1; transform: rotate(1.5deg); } }
.ndk--schulheft .ndk-gal { gap: 22px; }
.ndk--schulheft .ndk-gal-item { padding: 8px 8px 22px; border-radius: 0; background: var(--ndk-surface); box-shadow: 0 10px 20px rgba(35, 50, 74, .14); }
.ndk--schulheft .ndk-gal-item:nth-child(odd) { transform: rotate(-2deg); }
.ndk--schulheft .ndk-gal-item:nth-child(even) { transform: rotate(2deg); }
.ndk--schulheft .ndk-gal-more { inset: 8px 8px 22px; }
@media (max-width: 760px) {
	.ndk-d-car-in { grid-template-columns: 1fr; }
	.ndk-d-deck { height: 320px; }
	.ndk-d-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
	.ndk-d-tabs button { flex-shrink: 0; border: 2px solid var(--ndk-text); border-top: 0; border-radius: 0 0 12px 12px; }
	.ndk-d-tabs button[aria-current="true"] { transform: translateY(8px); }
}
