/* Werkbank Digitale Produktion. Schrift und Abstände für die Zielgruppe 60+. */

.wdp {
    --wdp-primary: var(--bod-primary, #1e40af);
    --wdp-accent: var(--bod-accent, #d97706);
    --wdp-text: var(--bod-text, #1f2937);
    --wdp-muted: var(--bod-text-light, #4b5563);
    --wdp-bg: #f4f1ea;
    --wdp-line: var(--bod-border, #e5e7eb);
    color: var(--wdp-text);
    font-size: 1.125rem;
    line-height: 1.55;
    max-width: 1120px;
    margin: 0 auto 3rem;
}

.wdp h1,
.wdp h2,
.wdp h3 {
    line-height: 1.25;
    margin: 0 0 0.6rem;
}

.wdp h1 { font-size: 2.1rem; }
.wdp h2 { font-size: 1.55rem; }

.wdp-kicker {
    margin: 0 0 0.35rem;
    color: var(--wdp-primary);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.wdp-intro p:last-child { max-width: 46rem; }

.wdp-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.wdp-progress li {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--wdp-line);
    color: var(--wdp-muted);
}

.wdp-progress li.is-active {
    background: var(--wdp-primary);
    border-color: var(--wdp-primary);
    color: #fff;
    font-weight: 700;
}

.wdp-progress li.is-done { color: var(--wdp-text); }

.wdp-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.wdp-note {
    background: #fff;
    border-left: 4px solid var(--wdp-accent);
    padding: 0.8rem 1rem;
    margin: 0 0 1rem;
}

.wdp-drop {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
    min-height: 180px;
    padding: 1.5rem;
    border: 2px dashed #93c5fd;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    text-align: center;
}

.wdp-drop.is-over { background: #eff6ff; }

.wdp-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.wdp-drop-title { font-size: 1.25rem; font-weight: 700; }
.wdp-drop-hint { color: var(--wdp-muted); }

.wdp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.wdp-btn {
    appearance: none;
    border: 2px solid var(--wdp-primary);
    background: #fff;
    color: var(--wdp-primary);
    font: inherit;
    font-weight: 700;
    padding: 0.75rem 1.15rem;
    border-radius: 12px;
    cursor: pointer;
    min-height: 48px;
}

.wdp-btn:hover,
.wdp-btn:focus-visible { background: #eff6ff; }

.wdp-btn-primary {
    background: var(--wdp-accent);
    border-color: var(--wdp-accent);
    color: #fff;
}

.wdp-btn-primary:hover,
.wdp-btn-primary:focus-visible { background: #b45309; }

.wdp-btn[disabled] { opacity: 0.6; cursor: wait; }

.wdp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.wdp-card {
    display: block;
    text-align: left;
    background: #fff;
    border: 2px solid var(--wdp-line);
    border-radius: 16px;
    padding: 1rem;
    font: inherit;
    color: inherit;
    cursor: pointer;
    min-height: 148px;
}

.wdp-card.is-selected {
    border-color: var(--wdp-primary);
    box-shadow: inset 0 0 0 2px var(--wdp-primary);
}

.wdp-card strong { display: block; font-size: 1.15rem; margin-bottom: 0.3rem; }
.wdp-card small { display: block; color: var(--wdp-muted); margin-top: 0.45rem; }
.wdp-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.wdp-tweaks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin: 1rem 0;
}

.wdp-tweaks fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.wdp-tweaks legend { font-weight: 700; margin-bottom: 0.35rem; }

.wdp-tweaks label,
.wdp-form label,
.wdp-leistungen label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0.35rem 0;
}

.wdp-stage-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.wdp-seite { margin: 0; font-weight: 700; }

.wdp-stage {
    background: #d6d3d1;
    border-radius: 16px;
    padding: 1.25rem 0.75rem 1.5rem;
    overflow-x: auto;
}

.wdp-spread {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
}

.wdp-fahne {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.wdp-page {
    background: #fff;
    color: #1c1917;
    width: min(440px, 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 0 0 auto;
    min-height: 0;
    font-size: 15px;
}

.wdp-ratio-a5 { aspect-ratio: 148 / 210; }
.wdp-ratio-b5 { aspect-ratio: 170 / 240; width: min(480px, 100%); }
.wdp-ratio-lyrik { aspect-ratio: 154 / 216; }

.wdp-paper-creme { background: #f6f1e4; }
.wdp-paper-weiss { background: #fff; }

.wdp-schrift-kleiner .wdp-page { font-size: 13px; }
.wdp-schrift-normal .wdp-page { font-size: 15px; }
.wdp-schrift-groesser .wdp-page { font-size: 17px; }
.wdp-schrift-normal .wdp-page.wdp-font-nunito { font-size: 18px; }
.wdp-schrift-groesser .wdp-page.wdp-font-nunito { font-size: 20px; }
.wdp-schrift-kleiner .wdp-page.wdp-font-nunito { font-size: 16px; }

.wdp-font-baskerville { font-family: "Libre Baskerville", Georgia, serif; }
.wdp-font-source { font-family: "Source Serif 4", Georgia, serif; }
.wdp-font-literata { font-family: Literata, Georgia, serif; }
.wdp-font-nunito { font-family: Nunito, "Source Sans 3", sans-serif; }
.wdp-font-sans { font-family: "Source Sans 3", "Segoe UI", sans-serif; }

.wdp-page-head,
.wdp-page-foot {
    flex: 0 0 auto;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72em;
    color: #57534e;
    padding: 0.7em 1.2em 0;
}

.wdp-page-foot { padding: 0.4em 1em 0.8em; }

.wdp-page-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.6em 1.35em 0.4em;
    overflow: hidden;
    line-height: 1.45;
}

.wdp-layout-roman-klassik .wdp-page-body,
.wdp-layout-roman-stimme .wdp-page-body { text-align: justify; hyphens: auto; }

.wdp-layout-roman-klassik .wdp-p,
.wdp-layout-roman-stimme .wdp-p { text-indent: 1.15em; margin: 0; }

.wdp-layout-roman-klassik .wdp-p.wdp-drop,
.wdp-layout-roman-stimme .wdp-p.wdp-drop,
.wdp-layout-roman-heute .wdp-p { text-indent: 0; }

.wdp-layout-roman-heute .wdp-p { margin: 0 0 0.7em; }

.wdp-layout-roman-stimme .wdp-page-body { line-height: 1.6; }

.wdp-layout-sach-creme .wdp-page-body,
.wdp-layout-sach-ratgeber .wdp-page-body { text-align: justify; hyphens: auto; line-height: 1.48; }

.wdp-layout-sach-klar .wdp-page-body { line-height: 1.5; }
.wdp-layout-sach-klar .wdp-h { font-family: "Source Sans 3", sans-serif; }

.wdp-h {
    text-indent: 0;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.55em;
    text-align: left;
}

.wdp-layout-roman-klassik .wdp-h,
.wdp-layout-roman-stimme .wdp-h,
.wdp-layout-sach-creme .wdp-h {
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-top: 0.4em;
}

.wdp-drop::first-letter {
    float: left;
    font-size: 3.1em;
    line-height: 0.8;
    padding-right: 0.06em;
    font-weight: 700;
}

.wdp-layout-kind-vorlesen .wdp-page-body,
.wdp-layout-kind-erstleser .wdp-page-body,
.wdp-layout-kind-bild .wdp-page-body {
    line-height: 1.45;
    font-weight: 600;
}

.wdp-layout-kind-erstleser .wdp-page-body { line-height: 1.6; }

.wdp-layout-gedicht-still .wdp-page-body,
.wdp-layout-gedicht-papier .wdp-page-body { text-align: center; }

.wdp-layout-gedicht-links .wdp-page-body { text-align: left; padding-right: 2.2em; }

.wdp-poem-title {
    font-weight: 700;
    margin: 0 0 0.8em;
    letter-spacing: 0.03em;
}

.wdp-poem-line { margin: 0; }
.wdp-stanz { height: 0.9em; }

.wdp-picture {
    margin: auto;
    border: 1px dashed #a8a29e;
    min-height: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1em;
    gap: 0.4em;
}

.wdp-picture span {
    font-family: "Source Sans 3", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75em;
}

.wdp-hints { margin: 0 0 1rem; padding-left: 1.2rem; }
.wdp-hints li { margin: 0.35rem 0; }

.wdp-freigabe {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 1.5rem;
    align-items: start;
}

.wdp-form label,
.wdp-leistungen {
    font-weight: 700;
}

.wdp-form input,
.wdp-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    font: inherit;
    font-weight: 400;
    padding: 0.65rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-sizing: border-box;
}

.wdp-leistungen {
    border: 1px solid var(--wdp-line);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    font-weight: 400;
}

.wdp-leistungen legend { font-weight: 700; }
.wdp-leistungen label span { font-weight: 400; }

.wdp-preis {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0.4rem 0;
}

.wdp-preis small {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--wdp-muted);
}

.wdp-klein { color: var(--wdp-muted); font-size: 1rem; }

.wdp-done {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
    max-width: 42rem;
}

@media (max-width: 800px) {
    .wdp-freigabe { grid-template-columns: 1fr; }
    .wdp h1 { font-size: 1.7rem; }
    .wdp-spread { flex-direction: column; align-items: center; }
}
