.hlh-case-chapter [data-case-step]{min-width:0}
.hlh-case-chapter .hlh-kicker,.hlh-sentence-step-heading span{color:#315f73}
.hlh-case-chapter .hlh-case-lens>.hlh-kicker{color:#72558b}
.hlh-case-chapter .hlh-case-mission{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:center;border-color:#b8ccd9;border-left:7px solid #4f7b91;background:linear-gradient(145deg,#f7fbfd,#edf5f7)}
.hlh-case-chapter .hlh-case-mission img{display:block;width:120px;height:100px;object-fit:cover;border-radius:14px}
.hlh-case-chapter .hlh-case-mission>div>span{display:block;margin-bottom:5px;color:#315f73;font-size:.76rem;font-weight:900;letter-spacing:.08em}
.hlh-case-chapter .hlh-case-mission>div>strong{display:block;color:#263b43;font-size:1.12rem}
.hlh-case-chapter .hlh-case-mission>div>p{margin:.4rem 0;color:#465b62;line-height:1.5}
.hlh-case-chapter .hlh-case-mission>div>small{color:#597078;font-weight:700}
.hlh-word-lab-stage{margin:1rem 0;padding:1rem;border:1px solid #d9e5d8;border-radius:18px;background:#fff}
.hlh-word-lab-stage h4{margin-top:0;color:#355943}
.hlh-vocab-chunk{margin:.8rem 0;padding:.85rem;border:1px solid #d9e5d8;border-radius:16px;background:#f8fbf7}
.hlh-vocab-chunk h5{margin:0 0 .7rem;color:#355943;font-size:1rem}
.hlh-vocab-cards article b{display:block;margin-top:.25rem;color:#496b58;font-size:.78rem}
.hlh-vocab-scene{font-size:1.35rem}
.hlh-study-instruction{color:#53645a}.hlh-vocab-study-cards article{min-height:260px;padding:0;overflow:hidden}.hlh-vocab-study-cards article>[data-study-front],.hlh-vocab-study-cards article>[data-study-back]{display:flex;min-height:260px;box-sizing:border-box;flex-direction:column;gap:.7rem;padding:1.1rem}.hlh-vocab-study-cards article>[data-study-front]{align-items:center;justify-content:center;text-align:center;background:linear-gradient(145deg,#fbf8f0,#f2f5ed)}.hlh-vocab-study-cards article>[data-study-back]{background:#fff}.hlh-vocab-study-cards button{margin-top:auto;padding:.65rem .8rem;border:1px solid #5b7962;border-radius:11px;background:#fff;color:#355943;font:inherit;font-weight:800;cursor:pointer}.hlh-vocab-study-cards article.is-sure{outline:3px solid #7c9b78;background:#eef7ef}.hlh-study-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:auto}.hlh-study-actions [data-study-sure]{background:#58745f;color:#fff}.hlh-start-recall:disabled{opacity:.48;cursor:not-allowed}
.hlh-recall-start{padding:.8rem 1rem;border-left:5px solid #4f7b91;background:#edf5f7}
.hlh-word-lab-fields{display:grid;gap:.8rem}
.hlh-vocab-recall-card{display:grid;grid-template-columns:minmax(130px,.65fr) minmax(300px,1.8fr) auto;gap:.8rem;align-items:start;padding:1rem;border:1px solid #d9e5d8;border-radius:16px;background:#fff}
.hlh-vocab-recall-card>strong{padding-top:.72rem;font-size:1.08rem}.hlh-vocab-skill-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.65rem}.hlh-vocab-skill{display:grid!important;grid-template-columns:1fr!important;gap:.32rem!important;padding:0!important;border:0!important}.hlh-vocab-skill>span{color:#53645a;font-size:.78rem;font-weight:800}.hlh-vocab-skill select{width:100%;padding:.75rem;border:1px solid #aebfcc;border-radius:12px;background:#fff;font:inherit}.hlh-vocab-skill.is-correct input,.hlh-vocab-skill.is-correct select{border-color:#6f9276;background:#eef7ef}.hlh-vocab-skill.is-wrong:not(.is-correct) input,.hlh-vocab-skill.is-wrong:not(.is-correct) select{border-color:#c49a35;background:#fffaf0}.hlh-vocab-recall-card>.hlh-pilot-feedback{grid-column:1/-1;margin:0}.hlh-vocab-recall-card.is-complete{background:#eef7ef}
.hlh-word-lab-fields label,.hlh-word-lab-stage>label{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;gap:.65rem;align-items:center;padding:.8rem;border:1px solid #d9e5d8;border-radius:14px}
.hlh-word-lab-fields input,.hlh-word-lab-stage>label input,.hlh-case-translation textarea{width:100%;box-sizing:border-box;padding:.75rem;border:1px solid #aebfcc;border-radius:12px;background:#fff;font:inherit}
.hlh-word-lab-fields label.is-complete,.hlh-word-lab-stage>label.is-complete{background:#eef7ef}
.hlh-word-lab-fields .hlh-pilot-feedback,.hlh-word-lab-stage>label .hlh-pilot-feedback{grid-column:1/-1;margin:0}
.hlh-vocab-cards article small{display:block;margin-top:.4rem;color:#5e6e64;line-height:1.35}
.hlh-case-exercises{display:grid;gap:1rem}
.hlh-case-exercises mark{padding:.05em .2em;border-radius:.25em;background:#dfeef5;color:inherit}
.hlh-find-case-exercise{padding:1.1rem;border:1px solid #d9e5d8;border-radius:18px;background:#fff}
.hlh-find-case-sentence{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
.hlh-find-case-sentence button{padding:.65rem .8rem;border:2px solid #d4ded2;border-radius:12px;background:#fff;color:#26342b;font:inherit;font-family:Georgia,serif;font-size:1.12rem;font-weight:750;cursor:pointer}
.hlh-find-case-sentence button.is-selected{border-color:#4f7b91;background:#dfeef5}.hlh-find-case-sentence button.is-wrong{border-color:#b44e46;background:#fff0ee}
.hlh-case-chapter .hlh-vocab-recall{display:block}
.hlh-exercise-solution{padding:.75rem;border-left:4px solid #789d82;background:#eef7ef}
.hlh-case-text.is-locked{opacity:.72}
.hlh-folder-latin{padding:1.1rem;border:1px solid #d4dfd2;border-radius:16px;background:#fbfcfa;font-size:1.12rem;line-height:1.8}
.hlh-case-translation{display:grid;gap:.5rem;margin:1rem 0}
.hlh-translation-solution{margin:1rem 0;padding:1rem;border-left:5px solid #5d8067;border-radius:16px;background:#eef7ef}
.hlh-case-game-break{padding:1.1rem;border:1px solid #d7c89d;border-radius:20px;background:linear-gradient(145deg,#fffdf7,#f8f1dc)}
.hlh-case-game-break>div{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;align-items:center}
.hlh-case-game-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#fff;font-size:2rem;box-shadow:0 5px 13px rgba(70,55,27,.12)}
.hlh-case-game-break h3{margin:0 0 .3rem}.hlh-case-game-break p{margin:.25rem 0 .8rem}
.hlh-required-game-status{display:block;margin-top:.55rem;color:#6a5a32}.hlh-required-game-status.is-done{color:#426f4b}
.hlh-case-chapter .hlh-workshop-mission{border-left-color:#4f7b91;background:#edf5f7}
.hlh-case-chapter .hlh-workshop-mission strong{color:#315f73}
.hlh-case-chapter .hlh-workshop-sentence>.hlh-mark-tools button.is-drop-target{border-color:#4f7b91;background:#edf5f7;box-shadow:0 0 0 4px rgba(79,123,145,.18)}
.hlh-case-chapter .hlh-mark-tools [data-mark-tool="genitive"] i{background:#956a35}
.hlh-case-chapter .hlh-mark-sentence button[data-mark="genitive"],.hlh-case-chapter .hlh-summary-sentence [data-role="genitive"]{border-color:#956a35;background:#f7efe3}
.hlh-case-chapter .hlh-pilot-feedback.is-wrong{border-left-color:#c49a35;background:#fff8e7;color:#5a4a27}
.hlh-case-chapter .hlh-pilot-feedback.is-sentence-part-feedback{display:grid;gap:.2rem;border-left-color:#4f7b91;background:#edf5f7;color:#294c5d}
.hlh-case-chapter .hlh-pilot-feedback.is-sentence-part-feedback strong{color:#315f73}
.hlh-case-chapter .hlh-pilot-feedback.is-lens-feedback{border-left-color:#72558b;background:#f0e8f6;color:#59436c}
.hlh-pretext-recall{padding:1.1rem;border:1px solid #c9d9e2;border-radius:20px;background:linear-gradient(145deg,#fbfdfe,#eef5f8)}
.hlh-pretext-recall>h3{margin:.3rem 0}.hlh-pretext-recall>p{line-height:1.5}
.hlh-pretext-recall .hlh-pilot-question{background:#fff}
.hlh-pretext-transfer{padding:.8rem 1rem;border-left:5px solid #4f7b91;background:#fff}
.hlh-text-lens-task ol{margin:.6rem 0 0;padding-left:1.3rem}.hlh-text-lens-task li{margin:.55rem 0;line-height:1.5}
.hlh-case-accusation{display:grid;gap:1rem}.hlh-case-accusation label{display:grid;gap:.45rem;padding:1rem;border:1px solid #d9e5d8;border-radius:16px;background:#fff}.hlh-case-accusation input{width:100%;box-sizing:border-box;padding:.8rem;border:1px solid #aebfcc;border-radius:12px;font:inherit}.hlh-accusation-resolution{padding:1rem;border-left:5px solid #5d8067;border-radius:14px;background:#eef7ef}
.hlh-catchup-preview{margin-top:1.3rem;padding:1.1rem;border:2px dashed #c9a95c;border-radius:20px;background:#fff9e9}
.hlh-catchup-preview h3{margin:.3rem 0}.hlh-catchup-preview details>summary{padding:.8rem 0;font-weight:850;cursor:pointer}
.hlh-catchup-chests,.hlh-catchup-packages{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.75rem}
.hlh-catchup-chests article,.hlh-catchup-packages section{padding:.8rem;border:1px solid #ddcfaa;border-radius:14px;background:#fff}
.hlh-catchup-chests article{display:grid;grid-template-columns:36px 1fr;gap:.2rem .6rem}.hlh-catchup-chests article>span{grid-row:1/3;font-size:1.5rem}.hlh-catchup-chests small{color:#6d6654}
.hlh-catchup-packages h4{margin:0 0 .45rem}.hlh-catchup-packages ul{margin:.2rem 0;padding-left:1.2rem}.hlh-catchup-rule{padding:.8rem;border-left:5px solid #c9a95c;background:#fff}
.hlh-teacher-solution{margin-top:1rem;padding:1rem;border:2px solid #d5b760;border-radius:16px;background:#fff9e8}
@media(max-width:700px){.hlh-word-lab-fields label,.hlh-word-lab-stage>label,.hlh-vocab-recall-card{grid-template-columns:1fr}.hlh-vocab-recall-card>strong{padding-top:0}.hlh-word-lab-fields .hlh-pilot-feedback,.hlh-word-lab-stage>label .hlh-pilot-feedback,.hlh-vocab-recall-card>.hlh-pilot-feedback{grid-column:1}.hlh-case-chapter .hlh-case-mission{grid-template-columns:72px minmax(0,1fr)}.hlh-case-chapter .hlh-case-mission img{width:72px;height:72px}.hlh-case-game-break>div{grid-template-columns:1fr}.hlh-case-game-icon{width:50px;height:50px}}

/* Breite PC- und iPad-Ansichten: kein Abschneiden durch innere Mindestbreiten. */
.hlh-pilot{width:100%;max-width:1180px;overflow-x:clip}.hlh-pilot *{min-width:0}.hlh-pilot img,.hlh-pilot svg,.hlh-pilot canvas{max-width:100%}.hlh-slide-deck,.hlh-slide,.hlh-pilot-section{width:100%;max-width:100%}.hlh-slide{overflow-wrap:anywhere}
.hlh-word-rescue{display:grid;gap:.55rem;grid-column:1/-1;margin-top:.5rem;padding:.8rem;border:1px solid #cbb9d8;border-radius:13px;background:#f7f2fa}.hlh-word-rescue small{color:#655b69}.hlh-word-rescue .hlh-choice-row button{flex:1 1 150px}
.hlh-module-route,.hlh-companion-route{display:flex;gap:14px;overflow-x:auto;padding-bottom:14px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}.hlh-module-route>.hlh-route-card,.hlh-companion-route>button{flex:0 0 clamp(280px,40%,390px);scroll-snap-align:start}@media(max-width:700px){.hlh-module-route>.hlh-route-card,.hlh-companion-route>button{flex-basis:82vw}}
/* Vereinbarte Satzfarben: Subjekt blau, Prädikat rot. */
.hlh-mark-tools [data-mark-tool="predicate"] i{background:#b34e4e}.hlh-mark-tools [data-mark-tool="subject"] i{background:#4f7fae}.hlh-mark-sentence button[data-mark="predicate"]{border-color:#b34e4e;background:#f9e7e7}.hlh-mark-sentence button[data-mark="subject"]{border-color:#4f7fae;background:#e7f0f8}
.hlh-small-word-guide {
	margin: 1rem 0;
	padding: 1rem;
	border: 1px solid #c9d9e2;
	border-radius: 18px;
	background: #f7fbfd;
}

.hlh-small-word-guide > summary {
	cursor: pointer;
	color: #315f73;
	font-weight: 850;
}

.hlh-small-word-guide > p {
	line-height: 1.5;
}

.hlh-small-word-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: .65rem;
	margin: .8rem 0;
}

.hlh-small-word-grid > span {
	display: grid;
	gap: .15rem;
	padding: .7rem;
	border: 1px solid #d7e3e8;
	border-radius: 12px;
	background: #fff;
}

.hlh-small-word-grid strong {
	color: #294c5d;
	font-size: 1.08rem;
}

.hlh-small-word-grid small {
	color: #53676f;
}

.hlh-final-check-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	align-items: center;
}

.hlh-competency-row .hlh-profile-actions {
	grid-column: auto !important;
	margin-top: .65rem;
}

.hlh-competency-row .hlh-profile-actions .hlh-button {
	font-size: .82rem;
}

.hlh-digital-text-analysis,
.hlh-digital-form-check,
.hlh-digital-translation {
	display: grid;
	gap: 1rem;
	margin: 1.2rem 0;
	padding: clamp(1rem, 2vw, 1.5rem);
	border: 1px solid #cdddcf;
	border-radius: 18px;
	background: #f8fbf7;
}

.hlh-digital-text-analysis fieldset {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: .7rem;
	margin: 0;
	padding: 1rem;
	border: 1px solid #d9e3d8;
	border-radius: 14px;
	background: #fff;
}

.hlh-digital-text-analysis legend {
	width: 100%;
	padding: 0 .25rem;
	font-weight: 750;
}

.hlh-digital-text-analysis legend small,
.hlh-digital-text-analysis legend strong {
	display: block;
}

.hlh-digital-text-analysis legend small {
	margin: 0 0 .55rem 2.1rem;
	color: #617067;
	font-size: .82rem;
}

.hlh-digital-text-analysis legend strong {
	font-size: clamp(1.08rem, 2vw, 1.3rem);
	line-height: 1.45;
}

.hlh-digital-text-analysis legend span {
	display: inline-grid;
	width: 1.7rem;
	height: 1.7rem;
	place-items: center;
	margin-right: .35rem;
	border-radius: 50%;
	background: #526f58;
	color: #fff;
}

.hlh-digital-text-analysis label,
.hlh-digital-form-grid label,
.hlh-digital-translation label {
	display: grid;
	gap: .35rem;
	font-weight: 700;
}

.hlh-digital-text-analysis select,
.hlh-digital-form-grid select,
.hlh-digital-translation textarea {
	width: 100%;
	min-height: 46px;
	padding: .7rem;
	border: 1px solid #aebdad;
	border-radius: 11px;
	background: #fff;
	font: inherit;
}

.hlh-digital-text-analysis select.is-correct,
.hlh-digital-form-grid select.is-correct {
	border-color: #4f7958;
	background: #eaf5e9;
}

.hlh-digital-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: .75rem;
}

.hlh-guided-sentence-fields,
.hlh-guided-form-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: .75rem;
	grid-column: 1 / -1;
}

.hlh-guided-form-fields {
	margin-top: .35rem;
	padding-top: 1rem;
	border-top: 1px solid #d9e3d8;
}

.hlh-guided-form-fields > strong { grid-column: 1 / -1; }
.hlh-guided-paper-check {
	display: flex !important;
	grid-column: 1 / -1;
	align-items: center;
	gap: .65rem;
	padding: .85rem 1rem;
	border-radius: 11px;
	background: #f4efe3;
}
.hlh-guided-paper-check input { width: 1.2rem; height: 1.2rem; }
.hlh-digital-text-analysis [data-next-guided-sentence],
.hlh-digital-text-analysis [data-check-guided-sentence],
.hlh-digital-text-analysis [data-guided-sentence-feedback] { grid-column: 1 / -1; }

@media (max-width: 680px) {
	.hlh-digital-text-analysis fieldset,
	.hlh-digital-form-grid { grid-template-columns: 1fr; }
}

.hlh-text-grammar {
	margin-bottom: 28px;
	padding: clamp(18px, 3vw, 30px);
	border: 2px solid #cbb9d8;
	border-radius: 22px;
	background: linear-gradient(145deg, #fff, #f5f0f8);
}
.hlh-text-grammar > h3 { margin-top: 6px; }
.hlh-text-grammar-grid { display: grid; gap: 16px; margin: 20px 0; }
.hlh-text-grammar-grid fieldset {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 18px;
	border: 1px solid #d8cce1;
	border-radius: 16px;
	background: #fff;
}
.hlh-text-grammar-grid legend { padding: 0 8px; color: #34503d; font-weight: 850; }
.hlh-text-grammar-grid label { display: grid; gap: 6px; color: #53655b; font-weight: 750; }
.hlh-text-grammar-grid input {
	width: 100%;
	box-sizing: border-box;
	min-height: 50px;
	padding: 10px 12px;
	border: 2px solid #bbc6bb;
	border-radius: 11px;
	background: #fff;
	font: inherit;
}
.hlh-text-grammar-grid input.is-correct { border-color: #4f8c5b; background: #e4f2e6; }
.hlh-text-grammar-grid input.is-wrong { border-color: #b44e46; background: #fff0ee; }
.hlh-text-grammar-check { width: 100%; min-height: 58px; }
.hlh-text-grammar-solution { margin-top: 18px; }
.hlh-sentence-solution { margin: 14px 0; }
.hlh-sentence-solution button { width: 100%; min-height: 52px; touch-action: manipulation; white-space: normal; }
.hlh-sentence-solution [hidden] { display: none !important; }

@media (max-width: 760px) {
	.hlh-text-grammar-grid fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
	.hlh-text-grammar-grid fieldset { grid-template-columns: 1fr; }
}
