/* EXAM SIMULATION */
.exam-shell {
  width:min(100vw,432px);height:100dvh;margin:0 auto;overflow:hidden;color:var(--green);
  background:radial-gradient(circle at 82% 3%,rgba(255,255,255,.24),transparent 25%),linear-gradient(180deg,#f6e5d0 0%,#eed7ba 100%);
}
.exam-intro,.exam-session,.exam-overview,.exam-result{height:100%;min-height:0;display:flex;flex-direction:column;padding:max(18px,env(safe-area-inset-top)) 15px max(14px,env(safe-area-inset-bottom))}
.exam-intro,.exam-overview,.exam-result{overflow-y:auto;scrollbar-width:none}.exam-intro::-webkit-scrollbar,.exam-overview::-webkit-scrollbar,.exam-result::-webkit-scrollbar{display:none}
.exam-back{width:44px;height:44px;display:grid;place-items:center;flex:0 0 auto;border:1px solid rgba(255,255,255,.78);border-radius:50%;background:rgba(255,249,241,.54);color:var(--green);box-shadow:0 7px 18px rgba(86,60,37,.08),inset 0 1px 0 rgba(255,255,255,.92)}
.exam-back svg,.exam-timer svg,.exam-flag svg,.exam-result-icon svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.exam-back svg{width:21px;height:21px}
.exam-intro-header,.exam-overview-header{display:flex;align-items:center;gap:11px;flex:0 0 auto}.exam-intro-header>div,.exam-overview-header>div:nth-child(2){min-width:0}
.exam-intro-header span,.exam-overview-header span{display:block;color:#9a711d;font-size:7px;font-weight:900;letter-spacing:1.2px}.exam-intro-header h1,.exam-overview-header h1{margin:3px 0 0;font-family:Georgia,serif;font-size:27px;line-height:1}
.exam-hero{margin-top:15px;padding:20px 17px;border:1px solid rgba(255,255,255,.8);border-radius:28px;background:rgba(255,249,241,.57);box-shadow:0 10px 25px rgba(91,62,37,.08),inset 0 1px 0 rgba(255,255,255,.92)}
.exam-kicker{display:block;color:#9a711d;font-size:7px;font-weight:900;letter-spacing:1.2px}.exam-hero h2{margin:7px 0 15px;font-family:Georgia,serif;font-size:25px;line-height:1.08}
.exam-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.exam-facts>div{padding:11px 7px;border-radius:17px;background:rgba(235,224,202,.55);text-align:center}.exam-facts strong,.exam-facts span{display:block}.exam-facts strong{font-family:Georgia,serif;font-size:23px}.exam-facts span{margin-top:2px;color:#746e65;font-size:8px}
.exam-rules,.exam-note,.exam-result-section{margin-top:12px;padding:15px;border:1px solid rgba(255,255,255,.75);border-radius:23px;background:rgba(255,249,241,.52)}
.exam-section-title{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:9px}.exam-section-title h3{margin:0;font-family:Georgia,serif;font-size:19px}.exam-section-title span{color:#7a746b;font-size:7.5px;text-align:right}
.exam-rule-row,.exam-result-subject{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid rgba(121,86,47,.09)}.exam-rule-row:first-of-type{border-top:0}.exam-rule-row div,.exam-result-subject div{min-width:0}
.exam-rule-row strong,.exam-rule-row small,.exam-result-subject strong,.exam-result-subject small{display:block}.exam-rule-row strong,.exam-result-subject strong{font-size:11px;line-height:1.2}.exam-rule-row small,.exam-result-subject small{margin-top:3px;color:#777067;font-size:8px}.exam-rule-row>span,.exam-result-subject>span{flex:0 0 auto;color:#8e6716;font-size:8px;font-weight:850}
.exam-note strong{font-family:Georgia,serif;font-size:15px}.exam-note p{margin:5px 0 0;color:#6e685f;font-size:10px;line-height:1.4}
.exam-primary,.exam-secondary,.exam-text-button,.exam-overview-button{min-height:50px;border-radius:17px;font-weight:900}.exam-primary{border:0;background:linear-gradient(180deg,#08704d 0%,#07583c 100%);color:#fff;box-shadow:0 10px 20px rgba(9,97,63,.16)}.exam-primary:disabled{opacity:.45}.exam-secondary{border:1px solid rgba(11,74,56,.15);background:rgba(255,249,241,.52);color:var(--green)}.exam-secondary:disabled{opacity:.35}.exam-text-button{border:0;background:transparent;color:var(--green)}.exam-start{width:100%;margin-top:12px;flex:0 0 auto}
.exam-session{overflow:hidden}.exam-session-header{flex:0 0 auto;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:9px}.exam-session-heading{min-width:0}.exam-session-heading span,.exam-session-heading strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exam-session-heading span{color:#777067;font-size:8px}.exam-session-heading strong{margin-top:2px;font-family:Georgia,serif;font-size:16px}
.exam-timer{display:flex;align-items:center;gap:5px;padding:8px 9px;border:1px solid rgba(11,74,56,.12);border-radius:13px;background:rgba(255,249,241,.5);font-size:10px}.exam-timer svg{width:15px;height:15px}.exam-timer b{font-variant-numeric:tabular-nums}.exam-timer b.is-low{color:#9b3f36}
.exam-progress{height:5px;flex:0 0 auto;margin:11px 2px 12px;overflow:hidden;border-radius:999px;background:rgba(11,74,56,.1)}.exam-progress i{display:block;height:100%;border-radius:inherit;background:var(--green)}
.exam-session-content{flex:1 1 auto;min-height:0;overflow-y:auto;padding:0 1px 10px;scrollbar-width:none}.exam-session-content::-webkit-scrollbar{display:none}
.exam-question-card{padding:16px;border:1px solid rgba(255,255,255,.78);border-radius:24px;background:rgba(255,249,241,.56);box-shadow:0 9px 22px rgba(91,62,37,.08)}.exam-question-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.exam-question-meta>span{color:#746e65;font-size:8px;font-weight:800}
.exam-flag{display:flex;align-items:center;gap:4px;min-height:28px;padding:0 8px;border:1px solid rgba(11,74,56,.12);border-radius:11px;background:rgba(255,255,255,.35);color:var(--green);font-size:8px;font-weight:850}.exam-flag svg{width:14px;height:14px}.exam-flag.is-active{border-color:rgba(185,131,24,.35);background:rgba(231,216,180,.7);color:#88640f}
.exam-question-card h1{margin:7px 0 0;font-family:Georgia,serif;font-size:clamp(20px,5.5vw,26px);line-height:1.12}.exam-options{display:grid;gap:8px;margin-top:10px}
.exam-option{width:100%;min-height:57px;display:grid;grid-template-columns:39px minmax(0,1fr);align-items:center;gap:10px;padding:8px 11px 8px 8px;border:1px solid rgba(11,74,56,.12);border-radius:19px;background:rgba(255,249,241,.53);color:var(--green);text-align:left}.exam-option-marker{width:37px;height:37px;display:grid;place-items:center;border:1px solid rgba(11,74,56,.15);border-radius:50%;background:rgba(255,255,255,.42);font-family:Georgia,serif;font-weight:800}.exam-option-marker.is-multi{border-radius:11px}.exam-option>span:last-child{font-size:12.5px;line-height:1.28;font-weight:670}.exam-option.is-selected{border-color:rgba(11,74,56,.42);background:rgba(200,215,185,.67)}.exam-option.is-selected .exam-option-marker{background:rgba(11,74,56,.12);border-color:rgba(11,74,56,.3)}
.exam-session-footer{position:relative;flex:0 0 auto;display:grid;grid-template-columns:90px 54px minmax(0,1fr);gap:7px;padding-top:8px}.exam-overview-button{border:1px solid rgba(11,74,56,.14);background:rgba(255,249,241,.52);color:var(--green);font-size:9px}.exam-save-error{position:absolute;left:0;right:0;bottom:56px;margin:0;color:#9b3f36;font-size:8px;text-align:center}
.exam-overview-header{display:grid;grid-template-columns:44px minmax(0,1fr) auto}.exam-overview-legend{display:flex;gap:12px;flex-wrap:wrap;margin:15px 2px 9px;color:#716b63;font-size:8px}.exam-overview-legend span{display:flex;align-items:center;gap:5px}.exam-overview-legend i{width:10px;height:10px;border:1px solid rgba(11,74,56,.18);border-radius:3px;background:rgba(255,249,241,.5)}.exam-overview-legend i.is-answered{background:rgba(148,190,143,.75)}.exam-overview-legend i.is-flagged{background:rgba(218,185,112,.78)}
.exam-question-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;padding:13px;border:1px solid rgba(255,255,255,.75);border-radius:22px;background:rgba(255,249,241,.48)}.exam-grid-cell{aspect-ratio:1;border:1px solid rgba(11,74,56,.14);border-radius:10px;background:rgba(255,255,255,.36);color:var(--green);font-size:9px;font-weight:850}.exam-grid-cell.is-answered{background:rgba(184,211,177,.72)}.exam-grid-cell.is-flagged{box-shadow:inset 0 0 0 2px rgba(185,131,24,.62)}
.exam-submit-card{margin-top:12px;padding:15px;border:1px solid rgba(255,255,255,.75);border-radius:22px;background:rgba(255,249,241,.52)}.exam-submit-card strong{font-family:Georgia,serif;font-size:18px}.exam-submit-card p{margin:6px 0 12px;color:#6f6960;font-size:10px;line-height:1.4}.exam-submit-card .exam-primary{width:100%}
.exam-loading,.exam-empty{height:100%;display:grid;place-items:center;align-content:center;gap:13px;padding:24px;text-align:center}.exam-loading span{width:34px;height:34px;border:3px solid rgba(11,74,56,.15);border-top-color:var(--green);border-radius:50%;animation:exam-spin .8s linear infinite}.exam-loading strong{font-family:Georgia,serif}@keyframes exam-spin{to{transform:rotate(360deg)}}
.exam-empty-mark{width:70px;height:70px;display:grid;place-items:center;border-radius:23px;background:rgba(255,249,241,.58);font-family:Georgia,serif;font-size:34px;color:#9a711d}.exam-empty h1{margin:0;font-family:Georgia,serif;font-size:28px}.exam-empty p{max-width:300px;margin:0;color:#6f6960;font-size:11px;line-height:1.4}.exam-empty .exam-primary,.exam-empty .exam-text-button{width:min(100%,300px)}.exam-empty .exam-back{position:absolute;left:16px;top:max(18px,env(safe-area-inset-top))}
.exam-result{gap:12px}.exam-result-hero{padding:20px 16px;border:1px solid rgba(255,255,255,.8);border-radius:27px;background:rgba(255,249,241,.57);text-align:center;box-shadow:0 10px 25px rgba(91,62,37,.08)}.exam-result-icon{width:52px;height:52px;display:grid;place-items:center;margin:0 auto 10px;border-radius:18px;background:rgba(255,255,255,.45)}.exam-result-icon svg{width:28px;height:28px}.exam-result-hero.is-pass .exam-result-icon{color:#0b6949;background:rgba(190,221,193,.65)}.exam-result-hero.is-fail .exam-result-icon{color:#9b3f36;background:rgba(232,192,183,.55)}
.exam-result-hero h1{margin:6px 0 7px;font-family:Georgia,serif;font-size:27px}.exam-score{font-family:Georgia,serif;font-size:44px;line-height:1}.exam-score small{font-size:19px}.exam-result-hero p{margin:8px 0 0;color:#6f6960;font-size:10px}.exam-result-section{margin-top:0}.exam-result-subject.is-pass>span{color:#0b6949}.exam-result-subject.is-fail>span{color:#9b3f36}
.exam-review-item{border-top:1px solid rgba(121,86,47,.09)}.exam-review-item:first-of-type{border-top:0}.exam-review-item summary{display:grid;grid-template-columns:25px minmax(0,1fr);gap:8px;align-items:start;padding:10px 0;list-style:none;cursor:pointer}.exam-review-item summary::-webkit-details-marker{display:none}.exam-review-item summary>span{width:24px;height:24px;display:grid;place-items:center;border-radius:8px;background:rgba(164,61,52,.09);color:#9b3f36;font-size:8px;font-weight:900}.exam-review-item summary strong{font-size:10.5px;line-height:1.3}.exam-review-item>div{padding:0 0 12px 33px}.exam-review-item small{color:#9a711d;font-size:7px;font-weight:900;letter-spacing:.8px}.exam-review-item ul{margin:5px 0 0;padding-left:17px;font-size:10px;line-height:1.4}.exam-review-item p{margin:8px 0 0;color:#6f6960;font-size:9.5px;line-height:1.4}.exam-review-memory{margin-top:8px;padding:8px;border-radius:12px;background:rgba(231,216,180,.55);font-size:9px;line-height:1.35}.exam-perfect{padding:16px;text-align:center;color:#0b6949;font-size:10px}.exam-review-limit{color:#756f66;font-size:8px;text-align:center}.exam-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-bottom:4px}
@media(max-height:760px){.exam-intro,.exam-session,.exam-overview,.exam-result{padding-top:max(12px,env(safe-area-inset-top))}.exam-question-card{padding:13px;border-radius:21px}.exam-question-card h1{font-size:clamp(18px,5vw,23px)}.exam-options{gap:6px;margin-top:7px}.exam-option{min-height:51px;border-radius:16px}.exam-option-marker{width:33px;height:33px}.exam-session-footer{padding-top:6px}.exam-primary,.exam-secondary,.exam-overview-button{min-height:46px}}


/* EXAM RESUME + HISTORY */
.exam-active-card,
.exam-history {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 23px;
  background: rgba(255,249,241,.52);
}
.exam-active-card {
  display: grid;
  gap: 11px;
  border-color: rgba(11,74,56,.18);
  background: rgba(197,218,188,.42);
}
.exam-active-card.is-expired {
  border-color: rgba(164,61,52,.18);
  background: rgba(230,195,187,.36);
}
.exam-active-card h3 {
  margin: 5px 0 0;
  font-family: Georgia,serif;
  font-size: 20px;
}
.exam-active-card p {
  margin: 5px 0 0;
  color: #6d675f;
  font-size: 9px;
}
.exam-active-actions {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 7px;
}
.exam-active-card.is-expired .exam-active-actions {
  grid-template-columns: 1fr;
}
.exam-abandon {
  min-width: 90px;
  border: 1px solid rgba(11,74,56,.12);
  background: rgba(255,255,255,.24);
}
.exam-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(121,86,47,.09);
}
.exam-history-row:first-of-type { border-top: 0; }
.exam-history-row strong,
.exam-history-row small { display: block; }
.exam-history-row strong { font-size: 10px; }
.exam-history-row small { margin-top: 3px; color: #777067; font-size: 7.5px; }
.exam-history-row > span {
  font-family: Georgia,serif;
  font-size: 17px;
  font-weight: 700;
}
.exam-history-row.is-pass > span { color: #0b6949; }
.exam-history-row.is-fail > span { color: #9b3f36; }


/* OFFICIAL CATALOG ATTRIBUTION */
.exam-catalog-source{
  display:block;
  margin-top:12px;
  padding:11px 13px;
  border:1px solid rgba(11,74,56,.10);
  border-radius:17px;
  background:rgba(255,249,241,.44);
  color:var(--green);
  text-decoration:none;
}
.exam-catalog-source>span,
.exam-catalog-source>strong,
.exam-catalog-source>small{display:block}
.exam-catalog-source>span{color:#9a711d;font-size:6.5px;font-weight:900;letter-spacing:1px}
.exam-catalog-source>strong{margin-top:3px;font-size:10px;line-height:1.25}
.exam-catalog-source>small{margin-top:3px;color:#746e65;font-size:7.5px;line-height:1.3}


/* Main exam overview follows the persistent JagdIQ tab layout; active exam sessions stay distraction-free. */
.exam-intro{padding-bottom:max(84px,calc(env(safe-area-inset-bottom) + 70px))}
.exam-main-nav{
  position:absolute;
  left:15px;
  right:15px;
  bottom:max(14px,env(safe-area-inset-bottom));
  z-index:20;
  grid-template-columns:repeat(5,minmax(0,1fr));
}


/* Mixed open-text exam */
.exam-open-answer {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.exam-open-answer label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text, #162016);
}
.exam-open-answer textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid rgba(24, 55, 33, .16);
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(255,255,255,.92);
  color: var(--text, #162016);
  font: inherit;
  line-height: 1.5;
  outline: none;
  box-sizing: border-box;
}
.exam-open-answer textarea:focus {
  border-color: rgba(42, 93, 54, .48);
  box-shadow: 0 0 0 3px rgba(42, 93, 54, .08);
}
.exam-open-answer small {
  color: var(--muted, #6d776f);
  line-height: 1.4;
}
.exam-open-review {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 20px 18px 34px;
  box-sizing: border-box;
}
.exam-review-counter {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(42, 93, 54, .08);
  color: #2a5d36;
  font-size: 12px;
  font-weight: 800;
}
.exam-review-answer-card,
.exam-review-score-card {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(24,55,33,.10);
  border-radius: 20px;
  padding: 18px;
  margin-top: 14px;
  box-shadow: 0 10px 30px rgba(27,46,31,.05);
}
.exam-review-answer-card h2 {
  margin: 8px 0 16px;
  font-size: 20px;
  line-height: 1.35;
}
.exam-review-answer-block {
  border-radius: 15px;
  padding: 13px 14px;
  background: rgba(26, 38, 29, .045);
  margin-top: 10px;
}
.exam-review-answer-block.is-model {
  background: rgba(42, 93, 54, .08);
}
.exam-review-answer-block small {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--muted, #6d776f);
}
.exam-review-answer-block p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}
.exam-review-score-card strong {
  display: block;
  margin-bottom: 5px;
}
.exam-review-score-card p {
  margin: 0 0 12px;
  color: var(--muted, #6d776f);
  font-size: 13px;
}
.exam-review-score-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.exam-review-score-buttons button {
  min-height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(24,55,33,.14);
  background: rgba(255,255,255,.9);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.exam-review-score-buttons button.is-selected {
  border-color: #2a5d36;
  background: rgba(42, 93, 54, .10);
  color: #214a2b;
}
@media (max-width: 520px) {
  .exam-review-score-buttons {
    grid-template-columns: 1fr;
  }
  .exam-open-review {
    padding-inline: 12px;
  }
}


/* JagdIQ mündliche KI-Prüfung */
.exam-oral-card{width:100%;box-sizing:border-box;display:flex;align-items:center;gap:13px;margin:14px 0;padding:15px 16px;border:1px solid rgba(69,61,53,.1);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(236,238,225,.9));color:inherit;text-align:left;font:inherit;box-shadow:0 10px 26px rgba(54,46,39,.05)}
.exam-oral-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:var(--text,#2d2824);color:#fff}
.exam-oral-icon svg{width:23px;height:23px}
.exam-oral-card>div:nth-child(2){display:grid;gap:2px;min-width:0;flex:1}
.exam-oral-card>div:nth-child(2)>span{font-size:9px;letter-spacing:.11em;font-weight:850;color:var(--text-soft,#74695f)}
.exam-oral-card>div:nth-child(2)>strong{font-size:14px;color:var(--text,#2d2824)}
.exam-oral-card>div:nth-child(2)>small{font-size:10px;line-height:1.3;color:var(--text-soft,#74695f)}
.exam-oral-arrow{font-size:25px;line-height:1;color:var(--text-soft,#74695f)}


/* EXAM HEADER-02 — visual state header */
.exam-intro-header--visual{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:2px 1px 0;
}
.exam-intro-heading{
  min-width:0;
}
.exam-intro-heading>span{
  display:block;
  margin-bottom:4px;
  color:#9b7425;
  font-size:7.5px;
  font-weight:900;
  letter-spacing:1.55px;
}
.exam-intro-heading>h1{
  margin:0;
  color:var(--green);
  font-family:Georgia,"Times New Roman",serif;
  font-size:31px;
  line-height:.98;
  letter-spacing:-.5px;
}
.exam-hero-visual{
  position:relative;
  min-height:235px;
  margin-top:12px;
  overflow:hidden;
  border-radius:0 0 28px 28px;
}
.exam-hero-visual>img{
  position:absolute;
  inset:0 0 auto 0;
  width:100%;
  height:190px;
  object-fit:cover;
  object-position:center 48%;
  filter:saturate(.88) contrast(.96) brightness(1.03);
}
.exam-hero-fade{
  position:absolute;
  inset:112px 0 0;
  background:linear-gradient(180deg,rgba(246,229,208,0) 0%,rgba(246,229,208,.58) 36%,#f3dfc7 82%,#f1dcc2 100%);
  pointer-events:none;
}
.exam-facts--hero{
  position:absolute;
  left:13px;
  right:13px;
  bottom:7px;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
.exam-facts--hero>div{
  min-height:78px;
  display:grid;
  place-items:center;
  align-content:center;
  padding:9px 7px;
  border:1px solid rgba(255,255,255,.86);
  border-radius:20px;
  background:rgba(255,252,247,.91);
  box-shadow:0 9px 22px rgba(58,47,36,.10), inset 0 1px 0 rgba(255,255,255,.94);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.exam-facts--hero strong{
  color:var(--green);
  font-family:Georgia,"Times New Roman",serif;
  font-size:27px;
  line-height:1;
}
.exam-facts--hero span{
  margin-top:5px;
  color:#69645d;
  font-size:9px;
  font-weight:500;
}

@media(max-width:380px){
  .exam-intro-heading>h1{font-size:28px}
  .exam-hero-visual{min-height:220px}
  .exam-hero-visual>img{height:178px}
  .exam-facts--hero{left:9px;right:9px;gap:7px}
  .exam-facts--hero>div{min-height:72px;border-radius:18px}
  .exam-facts--hero strong{font-size:24px}
  .exam-facts--hero span{font-size:8.5px}
}
